/* ==========================================================================
   HERO STANDARD — Shared hero component for all Progress Collective pages
   Source of truth for all hero/banner sections across the marketing site.

   Usage — two-column layout (content left, media right):
     <section class="hero-std">
       <div class="hero-std__inner">
         <div class="hero-std__copy"> … </div>
         <div class="hero-std__media"> … </div>
       </div>
     </section>

   Usage — single-column centered (no media panel):
     <section class="hero-std hero-std--centered">
       <div class="hero-std__inner">
         <div class="hero-std__copy"> … </div>
       </div>
     </section>

   Do NOT add hero-related CSS to individual page <style> blocks.
   All hero overrides belong here.
========================================================================== */

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.hero-std,
header.hero-std,
section.hero-std {
  background: linear-gradient(135deg, #0b1f3b 0%, #123b6d 58%, #0b2f55 100%);
  color: #fff;
  padding: 72px 24px 64px;
  position: relative;
  overflow: hidden;
  /* Reset global section constraints */
  max-width: 100%;
  margin: 0;
}

/* Subtle ambient overlay */
.hero-std::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 42%, rgba(255,255,255,0.06), transparent 52%),
    radial-gradient(circle at 78% 62%, rgba(0,198,255,0.04), transparent 52%);
  pointer-events: none;
  z-index: 0;
}

/* ── Inner grid — 55/45 two-column ───────────────────────────────────────── */
.hero-std__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 52px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ── Single-column modifier ───────────────────────────────────────────────── */
.hero-std--centered .hero-std__inner {
  grid-template-columns: 1fr;
  max-width: 860px;
  text-align: center;
}

.hero-std--centered .hero-std__actions {
  justify-content: center;
}

.hero-std--centered .hero-std__trust {
  text-align: center;
}

/* ── Copy column ─────────────────────────────────────────────────────────── */
.hero-std__copy {
  /* intentionally unstyled — content elements handle their own spacing */
}

/* ── Typography ──────────────────────────────────────────────────────────── */
.hero-std__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin: 0 0 14px;
}

.hero-std__title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
  color: #fff;
}

.hero-std__body {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  margin: 0 0 10px;
}

.hero-std__support {
  font-size: 15px;
  color: rgba(255,255,255,0.66);
  line-height: 1.55;
  margin: 0 0 4px;
}

/* ── CTA group ───────────────────────────────────────────────────────────── */
.hero-std__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.hero-std__trust {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.48);
}

/* ── Buttons (canonical definition — used site-wide in hero context) ──────── */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  border: 2px solid transparent;
  margin: 0;
}

.btn-primary {
  background: #ffffff;
  color: #004080;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
}

.btn-primary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.65);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-secondary:focus-visible {
  outline: 3px solid rgba(255,255,255,0.8);
  outline-offset: 3px;
}

/* ── Media column ────────────────────────────────────────────────────────── */
.hero-std__media {
  position: relative;
}

/* Video / image frame */
.hero-std__media-shell {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08);
  background: #0a1a2e;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-std__media-shell:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.12);
}

.hero-std__media-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(0,20,50,0.85);
  color: #e0eaff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  pointer-events: none;
}

.hero-std__video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 380px;
  object-fit: cover;
}

.hero-std__image {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Stats panel (right-column alternative when no video/image asset) ─────── */
.hero-std__stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}

.hero-std__stat {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-std__stat:last-child {
  border-bottom: none;
}

.hero-std__stat-num {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -1.5px;
}

.hero-std__stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.45;
  font-weight: 500;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-std__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero-std__actions {
    justify-content: center;
  }

  .hero-std__trust {
    text-align: center;
  }

  .hero-std__title {
    font-size: 32px;
  }

  .hero-std__media {
    max-width: 540px;
    margin: 0 auto;
  }

  .hero-std__stats {
    flex-direction: row;
    border-radius: 12px;
  }

  .hero-std__stat {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.08);
    padding: 20px 16px;
    align-items: center;
    text-align: center;
  }

  .hero-std__stat:last-child {
    border-right: none;
  }

  .hero-std__stat-num {
    font-size: 30px;
  }
}

@media (max-width: 640px) {
  .hero-std,
  header.hero-std,
  section.hero-std {
    padding: 52px 20px 48px;
  }

  .hero-std__title {
    font-size: 27px;
  }

  .hero-std__body {
    font-size: 16px;
  }

  .hero-std__stats {
    flex-direction: column;
  }

  .hero-std__stat {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    align-items: flex-start;
    text-align: left;
    padding: 18px 20px;
  }

  .hero-std__stat:last-child {
    border-bottom: none;
  }

  .hero-std__stat-num {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .hero-std__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
