/* ==========================================================================
   COMPONENT: hero
   --------------------------------------------------------------------------
   Page-top hero section. Full viewport height. Three layout variants:

     .e-hero                — default two-column (content left, visual right)
     .e-hero--centered      — single centered column, no visual
     .e-hero--split-vs      — full-bleed split with two halves (vs comparison)

   The content side composes:
     .e-hero__headline      — large primary heading
     .e-hero__subheadline   — feature list (use .e-feature-list inside)
     .e-hero__cta-row       — CTA + caption
   ========================================================================== */


/* BASE — two-column hero.
   Mirror of legacy `.hero` (components.css line 259) — same padding-top:25px,
   same min-height:100vh, same flex/center alignment. */

.e-hero {
    padding-top: 25px;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.e-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
    width: 100%;
}

.e-hero__content {
    display: flex;
    flex-direction: column;
    gap: var(--e-space-sm);
    max-width: 42rem;
    width: 100%;
}


/* HEADLINE — mirror of legacy `.headline` (components.css line 307).
   font-size constant 32px at every breakpoint — does NOT scale up at 1024px. */

.e-hero__headline {
    font-size: 32px;
    font-weight: var(--e-font-weight-bold);
    letter-spacing: var(--e-tracking-tight);
    color: var(--e-color-primary);
    line-height: 1.2;
    margin: 0;
}

.e-hero__headline .e-hero__headline-accent { font-style: normal; color: var(--e-color-secondary); }
.e-hero__headline .e-hero__headline-bold   { font-weight: var(--e-font-weight-bold); color: var(--e-color-secondary); }


/* CTA ROW — mirror of legacy `.hero-content .hero-cta-wrap`. No flex-wrap,
   no margin-top. */

.e-hero__cta-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;
}

.e-hero__cta-note {
    color: var(--e-color-muted);
    opacity: 0.5;
    font-weight: var(--e-font-weight-medium);
    font-size: 14px;
}


/* VISUAL SLOT — right column (above the content on mobile). */

.e-hero__visual {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* SCREEN-READER ONLY EXTRACTABLE CONTEXT */

.e-hero__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ==========================================================================
   VARIANT — CENTERED HERO
   For standalone content pages (Playbook, Comecar, etc.) — single centered
   column, no right-side visual.
   ========================================================================== */

.e-hero--centered {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.e-hero--centered .e-hero__inner {
    align-items: center;
}

.e-hero--centered .e-hero__content {
    align-items: center;
    text-align: center;
}

.e-hero--centered .e-hero__cta-row {
    justify-content: center;
}


/* ==========================================================================
   VARIANT — TWO-COLUMN HERO (DESKTOP)
   ========================================================================== */

@media (min-width: 1024px) {

    .e-hero__inner {
        flex-direction: row;
        align-items: center;
        gap: var(--e-space-md);
    }

    .e-hero__content {
        flex: 1 1 0;
    }

    .e-hero__visual {
        flex: 1 1 0;
    }

    /* Headline font-size stays constant 32px — legacy `.headline` does NOT
       scale up at any breakpoint. */

}


/* ==========================================================================
   VARIANT — SPLIT-VS HERO
   Full-bleed split with two colored halves, decorative shapes, and a
   centered text overlay. Used for "X vs Y" comparison pages.
   ========================================================================== */

.e-hero--split-vs {
    height: 100vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.e-hero--split-vs .e-hero-split {
    position: absolute;
    inset: 0;
    display: flex;
}

.e-hero-split__side {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--e-space-sm);
    overflow: hidden;
}

.e-hero-split__side--primary {
    background: linear-gradient(160deg, var(--e-color-primary-700) 0%, var(--e-color-primary) 40%, var(--e-color-secondary) 100%);
}

.e-hero-split__side--accent {
    background: linear-gradient(200deg, var(--e-color-accent-700) 0%, var(--e-color-accent) 40%, var(--e-color-accent-50) 100%);
}

.e-hero-split__icon {
    width: 120px;
    height: 120px;
    opacity: 0.30;
    filter: drop-shadow(0 4px 25px rgba(0, 0, 0, 0.20));
}

.e-hero-split__side--primary .e-hero-split__icon { transform: translateX(-50px); }
.e-hero-split__side--accent  .e-hero-split__icon { transform: translateX( 50px); }

.e-hero-split__shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.e-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.60) 0%, rgba(15, 23, 42, 0.30) 40%, transparent 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--e-space-md);
    text-align: center;
    z-index: var(--e-z-content);
}

.e-hero-overlay__badge {
    display: inline-block;
    padding: 6px var(--e-space-sm);
    border-radius: var(--e-radius-2xl);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--e-text-on-dark);
    font-weight: var(--e-font-weight-semibold);
    letter-spacing: 0.5px;
}

.e-hero-overlay__headline {
    font-size: var(--e-font-size-2xl);
    color: var(--e-text-on-dark);
    font-weight: var(--e-font-weight-bold);
    line-height: var(--e-leading-tight);
    margin: 0;
    max-width: 800px;
    text-shadow: 0 2px 25px rgba(0, 0, 0, 0.30);
}

.e-hero-overlay__subheadline {
    font-size: var(--e-font-size-md);
    color: rgba(255, 255, 255, 0.80);
    line-height: var(--e-leading-relaxed);
    margin: 0;
    max-width: 650px;
}


/* SPLIT-VS RESPONSIVE */

@media (min-width: 1024px) {

    .e-hero-overlay__headline { font-size: var(--e-font-size-3xl); }
    .e-hero-split__icon       { width: 180px; height: 180px; }

}

@media (max-width: 767px) {

    .e-hero-overlay              { padding: 0 var(--e-space-sm); gap: var(--e-space-sm); }
    .e-hero-overlay__headline    { font-size: var(--e-font-size-xl); }
    .e-hero-overlay__subheadline { font-size: var(--e-font-size-sm); }
    .e-hero-split__icon          { width: 50px; height: 50px; opacity: 0.10; transform: none; }
    .e-hero-split__shape         { display: none; }

}
