/* ============================================================
   SGLS CERTIFICATION STEPS + CTA BAND — sgls-steps.css
   Add to: sgls-child-fixed/sgls-steps.css

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


/* ══════════════════════════════════════════
   TWENTY TWENTY GLOBAL OVERRIDE
   Forces horizontal text + flex layouts.
   Remove entire block when migrating to GeneratePress.
   ══════════════════════════════════════════ */

.sgls-steps,
.sgls-steps *,
.sgls-cta-band,
.sgls-cta-band * {
    writing-mode: horizontal-tb !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.sgls-steps__grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
}

.sgls-steps__card {
    display: flex !important;
    flex-direction: column !important;
}

.sgls-steps__card-top {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.sgls-cta-band__inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 32px !important;
}

.sgls-cta-band__text {
    flex: 1 !important;
    min-width: 0 !important;
}

.sgls-cta-band__btns {
    display: flex !important;
    flex-direction: row !important;
    flex-shrink: 0 !important;
    gap: 12px !important;
    align-items: center !important;
}


/* ══════════════════════════════════════════
   STEPS SECTION
   ══════════════════════════════════════════ */

.sgls-steps {
    background: #F8FAF8;
    padding: 56px 0 52px;
    border-bottom: 1px solid #E5EDE7;
    position: relative;
}

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


/* ── Section header ─────────────────────────────────────────── */

.sgls-steps__header {
    text-align: center;
    margin-bottom: 40px;
}

/* Eyebrow — contrast: #007A3D on #F8FAF8 = 5.1:1 ✅ */
.sgls-steps__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 8px;
}

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


/* ── Steps grid ─────────────────────────────────────────────── */

.sgls-steps__grid {
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}


/* ── Connector line between steps ───────────────────────────── */

.sgls-steps__connector {
    position: absolute;
    top: 68px;
    left: calc(44px + 16.66%);
    right: calc(44px + 16.66%);
    pointer-events: none;
    z-index: 0;
}

.sgls-steps__connector-line {
    height: 2px;
    background: linear-gradient(
        to right,
        #C0DEC8 0%,
        #8DC63F 50%,
        #C0DEC8 100%
    );
    border-radius: 1px;
}


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

.sgls-steps__card {
    background: #ffffff;
    border: 1.5px solid #C0DEC8;
    border-radius: 12px;
    padding: 28px 24px 24px;
    position: relative;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.sgls-steps__card:hover {
    border-color: #007A3D;
    box-shadow: 0 4px 20px rgba(0, 122, 61, 0.09);
}


/* ── Card top: number + icon ────────────────────────────────── */

.sgls-steps__card-top {
    margin-bottom: 18px;
}

/* Step number circle */
/* Contrast: #005C2E on #EBF5EF = 7.1:1 ✅ */
.sgls-steps__num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #EBF5EF;
    border: 2px solid #C0DEC8;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: "Merriweather", Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    color: #005C2E;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.sgls-steps__card:hover .sgls-steps__num {
    background: #007A3D;
    border-color: #007A3D;
    color: #ffffff;
}

/* Step icon */
.sgls-steps__icon {
    width: 36px;
    height: 36px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #007A3D;
    opacity: 0.6;
}

.sgls-steps__icon svg {
    width: 22px;
    height: 22px;
}

.sgls-steps__card:hover .sgls-steps__icon {
    opacity: 1;
}


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

/* Step title — contrast: #1A1A1A on #fff = 18.1:1 ✅ */
.sgls-steps__card-title {
    font-family: "Merriweather", Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 10px;
    line-height: 1.3;
}

/* Step description — contrast: #555 on #fff = 7.0:1 ✅ */
.sgls-steps__card-desc {
    font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
    font-size: 14px;
    color: #555555;
    line-height: 1.7;
    margin: 0 0 18px;
    flex: 1;
}

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

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

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


/* ══════════════════════════════════════════
   CTA BAND
   ══════════════════════════════════════════ */

.sgls-cta-band {
    background: #ffffff;
    border-top: 1px solid #E5EDE7;
    border-left: 5px solid #007A3D;
    padding: 0;
}

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


/* ── CTA text ───────────────────────────────────────────────── */

/* H3 — contrast: #1A1A1A on #fff = 18.1:1 ✅ */
.sgls-cta-band__title {
    font-family: "Merriweather", Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 8px;
    line-height: 1.25;
}

/* Description — contrast: #555 on #fff = 7.0:1 ✅ */
.sgls-cta-band__desc {
    font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
    font-size: 14px;
    color: #555555;
    line-height: 1.65;
    margin: 0;
    max-width: 520px;
}


/* ── CTA buttons ────────────────────────────────────────────── */

/* Primary — contrast: #fff on #007A3D = 5.2:1 ✅ */
.sgls-cta-band__btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
    min-height: 44px;
    padding: 0 22px;
    background: #007A3D;
    color: #ffffff;
    border-radius: 6px;
    font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}

.sgls-cta-band__btn-primary:hover {
    background: #005C2E;
    color: #ffffff;
}

.sgls-cta-band__btn-primary:focus-visible {
    outline: 3px solid #005C2E;
    outline-offset: 3px;
}

/* Secondary — contrast: #007A3D on #fff = 5.2:1 ✅ */
.sgls-cta-band__btn-secondary {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 44px;
    padding: 0 22px;
    background: transparent;
    color: #007A3D;
    border: 1.5px solid #007A3D;
    border-radius: 6px;
    font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}

.sgls-cta-band__btn-secondary:hover {
    background: #EBF5EF;
    color: #005C2E;
}

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


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

@media (max-width: 900px) {

    .sgls-steps__inner,
    .sgls-cta-band__inner {
        padding: 0 28px !important;
    }

    .sgls-steps {
        padding: 44px 0 40px;
    }

    .sgls-steps__grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .sgls-steps__connector {
        display: none !important;
    }

    .sgls-steps__card {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0 20px !important;
        align-items: flex-start !important;
    }

    .sgls-steps__card-top {
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 0 !important;
        width: 44px !important;
    }

    .sgls-steps__card-title,
    .sgls-steps__card-desc,
    .sgls-steps__card-link {
        width: calc(100% - 64px) !important;
    }

    .sgls-cta-band__inner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }
}


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

@media (max-width: 600px) {

    .sgls-steps__inner,
    .sgls-cta-band__inner {
        padding: 0 20px !important;
    }

    .sgls-steps {
        padding: 36px 0 32px;
    }

    .sgls-steps__card {
        flex-direction: column !important;
    }

    .sgls-steps__card-top {
        flex-direction: row !important;
        width: 100% !important;
        margin-bottom: 16px !important;
    }

    .sgls-steps__card-title,
    .sgls-steps__card-desc,
    .sgls-steps__card-link {
        width: 100% !important;
    }

    .sgls-cta-band__btns {
        flex-direction: column !important;
        width: 100% !important;
    }

    .sgls-cta-band__btn-primary,
    .sgls-cta-band__btn-secondary {
        width: 100% !important;
        justify-content: center !important;
    }
}


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

@media (prefers-reduced-motion: reduce) {
    .sgls-steps__card,
    .sgls-steps__num,
    .sgls-steps__card-link,
    .sgls-cta-band__btn-primary,
    .sgls-cta-band__btn-secondary {
        transition: none;
    }
}
