/* ============================================================
   SGLS AUDIENCE ROUTING — sgls-audience.css
   Add to: sgls-child-fixed/sgls-audience.css

   WCAG 2.1 AA contrast ratios documented inline.
   ============================================================ */


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

.sgls-audience {
    background: #ffffff;
    padding: 56px 0 60px;
}

.sgls-audience__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 44px;
}


/* ── Section heading ────────────────────────────────────────── */

.sgls-audience__header {
    text-align: center;
    margin-bottom: 36px;
}

/* Eyebrow — decorative, aria-hidden */
.sgls-audience__eyebrow {
    font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #007A3D;
    margin: 0 0 10px;
}

/* H2 — contrast: #1A1A1A on #fff = 18.1:1 ✅ */
.sgls-audience__title {
    font-family: "Merriweather", Georgia, serif;
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
    line-height: 1.2;
}


/* ── Card grid ──────────────────────────────────────────────── */

.sgls-audience__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


/* ── Individual card ────────────────────────────────────────── */

.sgls-audience__card {
    display: flex;
    flex-direction: column;
    background: #F8FAF8;
    border: 1.5px solid #C0DEC8;
    border-radius: 12px;
    padding: 28px 26px 24px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    position: relative;
}

.sgls-audience__card:hover {
    border-color: #007A3D;
    box-shadow: 0 4px 20px rgba(0, 122, 61, 0.10);
    transform: translateY(-2px);
}

.sgls-audience__card:focus-visible {
    outline: 3px solid #007A3D;
    outline-offset: 3px;
}

/* Featured card (Card 2 — Get Certified) — slightly elevated */
.sgls-audience__card--featured {
    background: #EBF5EF;
    border-color: #007A3D;
    border-width: 2px;
}

.sgls-audience__card--featured:hover {
    box-shadow: 0 6px 24px rgba(0, 122, 61, 0.15);
}

/* Renewal card (Card 3) */
.sgls-audience__card--renewal {
    background: #F8FAF8;
}


/* ── Card icon ──────────────────────────────────────────────── */

.sgls-audience__card-icon {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1.5px solid #C0DEC8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007A3D;
    margin-bottom: 18px;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}

.sgls-audience__card:hover .sgls-audience__card-icon {
    background: #007A3D;
    border-color: #007A3D;
    color: #ffffff;
}

.sgls-audience__card--featured .sgls-audience__card-icon {
    background: #007A3D;
    border-color: #007A3D;
    color: #ffffff;
}


/* ── Card text ──────────────────────────────────────────────── */

/* Card eyebrow — contrast: #555 on #F8FAF8 = 7.0:1 ✅ */
.sgls-audience__card-eyebrow {
    font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #555555;
    margin: 0 0 8px;
}

/* Card title — contrast: #1A1A1A on #F8FAF8 = 17.5:1 ✅ */
.sgls-audience__card-title {
    font-family: "Merriweather", Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 12px;
    line-height: 1.25;
}

/* Card description — contrast: #555 on #F8FAF8 = 7.0:1 ✅ */
.sgls-audience__card-desc {
    font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
    font-size: 14px;
    color: #555555;
    line-height: 1.7;
    margin: 0 0 20px;
    flex: 1; /* pushes link to bottom of card */
}

/* Card link — contrast: #007A3D on #F8FAF8 = 5.2:1 ✅ */
.sgls-audience__card-link {
    font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #007A3D;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.15s;
    margin-top: auto;
}

.sgls-audience__card:hover .sgls-audience__card-link {
    gap: 8px;
}

.sgls-audience__card--featured .sgls-audience__card-link {
    color: #005C2E;
}


/* ── Maintenance notice ─────────────────────────────────────── */
/* Contrast: #92400E on #FEF3C7 = 7.5:1 ✅ */

.sgls-audience__notice {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 16px;
    padding: 10px 12px;
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 6px;
    font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #92400E;
    line-height: 1.5;
}

.sgls-audience__notice svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #D97706;
}


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

@media (max-width: 900px) {

    .sgls-audience__inner {
        padding: 0 28px;
    }

    .sgls-audience {
        padding: 44px 0 48px;
    }

    .sgls-audience__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* On tablet single column, cards go horizontal */
    .sgls-audience__card {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0 20px;
        align-items: flex-start;
    }

    .sgls-audience__card-icon {
        margin-bottom: 0;
        margin-top: 2px;
    }

    .sgls-audience__card-eyebrow,
    .sgls-audience__card-title,
    .sgls-audience__card-desc,
    .sgls-audience__card-link,
    .sgls-audience__notice {
        width: calc(100% - 64px);
    }

    .sgls-audience__notice {
        width: 100%;
        margin-left: 64px;
    }
}


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

@media (max-width: 600px) {

    .sgls-audience__inner {
        padding: 0 20px;
    }

    .sgls-audience {
        padding: 36px 0 40px;
    }

    /* Back to vertical stacking on mobile */
    .sgls-audience__card {
        flex-direction: column;
    }

    .sgls-audience__card-icon {
        margin-bottom: 16px;
    }

    .sgls-audience__card-eyebrow,
    .sgls-audience__card-title,
    .sgls-audience__card-desc,
    .sgls-audience__card-link {
        width: 100%;
    }

    .sgls-audience__notice {
        margin-left: 0;
        width: 100%;
    }

    .sgls-audience__card-title {
        font-size: 17px;
    }
}


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

@media (prefers-reduced-motion: reduce) {
    .sgls-audience__card,
    .sgls-audience__card-icon,
    .sgls-audience__card-link {
        transition: none;
    }

    .sgls-audience__card:hover {
        transform: none;
    }
}
