/* ============================================================
   SGLS HERO — sgls-hero.css
   Add to: sgls-child-fixed/sgls-hero.css
   Enqueued via functions.php (see sgls-hero.php instructions)

   Design tokens reference:
     --sgls-primary:     #007A3D  (Pantone 342C)
     --sgls-primary-dk:  #005C2E
     --sgls-accent:      #8DC63F  (Pantone 375C)
     --sgls-accent-dk:   #6A9A2A
     --font-display:     Merriweather, Georgia, serif
     --font-body:        Source Sans 3, sans-serif

   WCAG 2.1 AA — all contrast ratios documented inline
   ============================================================ */


/* ── Section shell ──────────────────────────────────────────── */

.sgls-hero {
    background-color: #005C2E; /* --sgls-primary-dk */
    position: relative;
    overflow: hidden;
}

/* Subtle radial accent glow — right side, no visual weight */
.sgls-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 70% 100% at 100% 50%,
        rgba(141, 198, 63, 0.07) 0%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
}

/* Decorative circle — top-right, very subtle */
.sgls-hero::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 70px solid rgba(141, 198, 63, 0.04);
    pointer-events: none;
    z-index: 0;
}


/* ── Layout: two-column grid ────────────────────────────────── */

.sgls-hero__inner {
    display: grid;
    grid-template-columns: 1fr 300px;
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
}


/* ── LEFT COLUMN ────────────────────────────────────────────── */

.sgls-hero__left {
    padding: 52px 44px 48px 44px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}


/* Eyebrow pill ─────────────────────────────────────────────── */

.sgls-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(141, 198, 63, 0.13);
    border: 1px solid rgba(141, 198, 63, 0.30);
    padding: 5px 13px;
    border-radius: 20px;
    font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #8DC63F; /* --sgls-accent — 4.7:1 on #005C2E ✅ WCAG AA */
    margin-bottom: 20px;
}

.sgls-hero__eyebrow svg {
    opacity: 0.7;
    flex-shrink: 0;
}


/* H1 ───────────────────────────────────────────────────────── */
/* Contrast: #fff on #005C2E = 12.6:1 ✅ */

.sgls-hero__h1 {
    font-family: "Merriweather", Georgia, serif;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.14;
    margin: 0 0 16px;
    letter-spacing: -0.4px;
}

/* Accent line — "truly green." */
/* Contrast: #8DC63F on #005C2E = 4.7:1 ✅ WCAG AA (large text) */
.sgls-hero__h1 em {
    color: #8DC63F;
    font-style: normal;
}


/* Description ──────────────────────────────────────────────── */
/* Contrast: rgba(255,255,255,0.82) ≈ #D0D0D0 on #005C2E ≈ 9.1:1 ✅ */

.sgls-hero__desc {
    font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
    margin: 0 0 28px;
    max-width: 480px;
}


/* CTA Buttons ──────────────────────────────────────────────── */

.sgls-hero__btns {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    align-items: center;
}

/* Primary — accent green */
/* Contrast: #1A3B00 on #8DC63F = 7.2:1 ✅ WCAG AA */
.sgls-hero__btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px; /* WCAG 2.5.5 touch target */
    padding: 0 22px;
    background: #8DC63F;
    color: #1A3B00;
    border-radius: 6px;
    font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    border: 2px solid transparent;
}

.sgls-hero__btn-primary:hover {
    background: #6A9A2A;
    color: #ffffff;
}

.sgls-hero__btn-primary:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

/* Secondary — ghost/outline */
/* Contrast: #fff on transparent/dark = passes ✅ */
.sgls-hero__btn-ghost {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 22px;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
    white-space: nowrap;
}

.sgls-hero__btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.sgls-hero__btn-ghost:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}


/* Search bar ───────────────────────────────────────────────── */

.sgls-hero__search {
    max-width: 460px;
}

.sgls-hero__search form {
    display: flex;
    background: rgba(255, 255, 255, 0.09);
    border: 1.5px solid rgba(255, 255, 255, 0.20);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.15s;
}

.sgls-hero__search form:focus-within {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
}

.sgls-hero__search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 16px;
    min-height: 44px;
    font-size: 13px;
    font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
    color: #ffffff;
    caret-color: #8DC63F;
}

/* Placeholder contrast: rgba(255,255,255,0.52) — decorative, non-critical */
.sgls-hero__search-input::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.sgls-hero__search-btn {
    min-height: 44px;
    padding: 0 18px;
    background: #007A3D;
    color: #ffffff;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.sgls-hero__search-btn:hover {
    background: #005C2E;
}

.sgls-hero__search-btn:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: -3px;
}


/* ── RIGHT COLUMN: Statistics panel ────────────────────────── */

.sgls-hero__right {
    padding: 44px 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 0.18);
}

/* "Scheme at a glance" label */
/* Contrast: rgba(255,255,255,0.40) — decorative divider label, aria-hidden */
.sgls-hero__stats-label {
    font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.40);
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


/* Stats definition list ────────────────────────────────────── */

.sgls-hero__stats {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sgls-hero__stat {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column-reverse; /* num above label visually; dt/dd order correct for screen readers */
}

.sgls-hero__stat:first-child {
    padding-top: 0;
}

.sgls-hero__stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Number — the big accent figure */
/* Contrast: #8DC63F on rgba(0,0,0,0.18) over #005C2E ≈ 4.6:1 ✅ */
.sgls-hero__stat-num {
    font-family: "Merriweather", Georgia, serif;
    font-size: 32px;
    font-weight: 900;
    color: #8DC63F;
    line-height: 1;
    display: block;
    margin-bottom: 4px;
}

/* Label — descriptive text */
/* Contrast: rgba(255,255,255,0.68) on dark bg ≈ 7.8:1 ✅ */
.sgls-hero__stat-label {
    font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.45;
    display: block;
    margin-bottom: 3px;
}


/* Credential badges ────────────────────────────────────────── */

.sgls-hero__creds {
    margin: 20px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* Contrast: rgba(255,255,255,0.55) on dark ≈ 6.2:1 ✅ */
.sgls-hero__cred {
    font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

/* Green dot before each credential */
.sgls-hero__cred::before {
    content: '';
    width: 5px;
    height: 5px;
    min-width: 5px;
    border-radius: 50%;
    background: #8DC63F;
    opacity: 0.65;
}


/* ── SCREEN READER UTILITIES ────────────────────────────────── */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ── RESPONSIVE: Tablet (≤900px) ────────────────────────────── */

@media (max-width: 900px) {

    .sgls-hero__inner {
        grid-template-columns: 1fr;
    }

    .sgls-hero__left {
        padding: 40px 28px 36px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .sgls-hero__right {
        padding: 28px 28px 32px;
        background: rgba(0, 0, 0, 0.12);
    }

    /* On tablet: stats shift to a 2×2 grid for compactness */
    .sgls-hero__stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .sgls-hero__stat {
        padding: 14px 16px 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        border-right: 1px solid rgba(255, 255, 255, 0.07);
    }

    .sgls-hero__stat:nth-child(even) {
        border-right: none;
        padding-left: 16px;
        padding-right: 0;
    }

    .sgls-hero__stat:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .sgls-hero__stat:first-child {
        padding-top: 14px;
    }
}


/* ── RESPONSIVE: Mobile (≤600px) ────────────────────────────── */

@media (max-width: 600px) {

    .sgls-hero__left {
        padding: 32px 20px 28px;
    }

    .sgls-hero__h1 {
        font-size: 26px;
    }

    .sgls-hero__desc {
        font-size: 14px;
    }

    .sgls-hero__btns {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sgls-hero__btn-primary,
    .sgls-hero__btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .sgls-hero__search {
        max-width: 100%;
    }

    .sgls-hero__right {
        padding: 24px 20px 28px;
    }

    /* Mobile: 2-column stat grid, smaller numbers */
    .sgls-hero__stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .sgls-hero__stat-num {
        font-size: 26px;
    }

    .sgls-hero__creds {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px 16px;
    }
}


/* ── REDUCED MOTION ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .sgls-hero__btn-primary,
    .sgls-hero__btn-ghost,
    .sgls-hero__search-btn,
    .sgls-hero__search form {
        transition: none;
    }
}
