﻿/* ================================================================
   BENEFITS PAGE — benefits.css
   File: wwwroot/css/benefits.css
   Author: Jessie Martin
   Last Updated: 2026-06-09

   Layout: Option 1 — A+C hybrid
    1. Page Shell
    2. Hero Band
    3. Intro Band
    4. Anchor Nav Bar
    5. Two-Col Sections (Retirement, Leave)
    6. Stat Cards
    7. Full-Width Sections (Health, Flexible, Off-Duty)
    8. Health Link Items
    9. Flexible Tags
   10. Off-Duty Callout
   11. Shared Utilities
   12. Responsive
   13. Accessibility
   ================================================================ */


/* ================================================================
   1. PAGE SHELL
   ================================================================ */

.benefits-page {
    background-color: #000;
    color: #fff;
}


/* ================================================================
   2. HERO BAND
   ================================================================ */

.benefits-hero {
    background: linear-gradient(160deg, var(--dps-navy, #11294B) 0%, #000 70%);
    padding: 8rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid rgba(31, 65, 155, 0.4);
}

.benefits-hero__eyebrow {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.78rem;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: rgba(215, 213, 207, 0.75);
    margin-bottom: 0.5rem;
}

.benefits-hero__title {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #fff;
    margin-bottom: 0.75rem;
}

.benefits-hero__subtitle {
    font-family: var(--font-modern, 'Inter', sans-serif);
    font-size: 1.05rem;
    color: rgba(215, 213, 207, 0.8);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}


/* ================================================================
   3. INTRO BAND
   ================================================================ */

.benefits-intro {
    background-color: var(--surface-dark, #0d1b2e);
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(31, 65, 155, 0.2);
}

.benefits-intro__text {
    font-size: 1rem;
    color: var(--text-grey, #D7D5CF);
    line-height: 1.75;
    margin-bottom: 0;
}

.benefits-link {
    color: #6B8FE8;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.benefits-link:hover,
.benefits-link:focus-visible {
    color: #fff;
}


/* ================================================================
   4. ANCHOR NAV BAR
   ================================================================ */

.benefits-anchorbar {
    background-color: #060d18;
    border-top: 1px solid rgba(31, 65, 155, 0.5);
    border-bottom: 2px solid rgba(31, 65, 155, 0.35);
    padding: 0.5rem 0;
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 500;
    transition: top 200ms ease;
}

.benefits-anchorbar__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.benefits-anchorbar__link {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.75rem;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: rgba(215, 213, 207, 0.75);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.benefits-anchorbar__link:hover,
.benefits-anchorbar__link:focus-visible {
    background-color: rgba(31, 65, 155, 0.2);
    color: #7a9de0;
}

.benefits-anchorbar__link.is-active {
    background-color: rgba(31, 65, 155, 0.2);
    border: 1px solid var(--dps-orange, #E87722);
    color: #fff;
}

/* ================================================================
   5. TWO-COL SECTIONS (Retirement, Leave)
   ================================================================ */

.benefits-twocol {
    padding: 4rem 0;
    background-color: #000;
}

.benefits-twocol--alt {
    background-color: var(--surface-dark, #0d1b2e);
}

.benefits-twocol__inner {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    align-items: start;
}

.benefits-twocol__eyebrow {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.8rem;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: #6B8FE8;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.benefits-twocol__title {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #fff;
    margin-bottom: 0.75rem;
}

.benefits-twocol__sub {
    font-size: 0.9rem;
    color: rgba(215, 213, 207, 0.85);
    line-height: 1.7;
    margin: 0;
}


/* ================================================================
   6. STAT CARDS
   ================================================================ */

.benefits-stat-card {
    background-color: var(--surface-raised, #111c2d);
    border: 1px solid rgba(31, 65, 155, 0.3);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    height: 100%;
    transition: border-color 0.25s, transform 0.25s;
}

.benefits-stat-card:hover {
    border-color: var(--dps-blue, #1F419B);
    transform: translateY(-3px);
}

.benefits-stat-card__icon {
    font-size: 1.6rem;
    color: #6B8FE8;
    margin-bottom: 0.6rem;
}

.benefits-stat-card__stat {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.benefits-stat-card__unit {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(215, 213, 207, 0.7);
}

.benefits-stat-card__label {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #6B8FE8;
    margin: 0.4rem 0 0.5rem;
}

.benefits-stat-card__desc {
    font-size: 0.82rem;
    color: rgba(215, 213, 207, 0.85);
    line-height: 1.6;
    margin-bottom: 0;
}

.benefits-section__note {
    font-size: 0.875rem;
    color: rgba(215, 213, 207, 0.9);
    line-height: 1.8;
    border-left: 3px solid var(--dps-blue, #1F419B);
    padding-left: 1.1rem;
    margin: 0;
}


/* ================================================================
   7. FULL-WIDTH SECTIONS (Health, Flexible, Off-Duty)
   ================================================================ */

.benefits-fullwidth {
    padding: 4rem 0;
    background-color: #000;
}

.benefits-fullwidth--alt {
    background-color: var(--surface-dark, #0d1b2e);
}

.benefits-fullwidth__eyebrow {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.8rem;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: #6B8FE8;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.benefits-fullwidth__title {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #fff;
    margin-bottom: 0.75rem;
}

.benefits-fullwidth__body {
    font-size: 0.95rem;
    color: rgba(215, 213, 207, 0.8);
    line-height: 1.75;
    margin-bottom: 0;
}


/* ================================================================
   8. HEALTH LINK ITEMS
   ================================================================ */

.benefits-link-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.benefits-link-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    background-color: var(--surface-raised, #111c2d);
    border: 1px solid rgba(31, 65, 155, 0.3);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background-color 0.2s;
}

.benefits-link-item:hover,
.benefits-link-item:focus-visible {
    border-color: var(--dps-blue, #1F419B);
    background-color: rgba(31, 65, 155, 0.12);
    color: #fff;
}

.benefits-link-item__icon {
    font-size: 1.35rem;
    color: var(--dps-blue, #6482C8);
    flex-shrink: 0;
}

.benefits-link-item__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.benefits-link-item__label {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #fff;
}

.benefits-link-item__sub {
    font-size: 0.78rem;
    color: rgba(215, 213, 207, 0.75);
}

.benefits-link-item__arrow {
    color: rgba(215, 213, 207, 0.4);
    flex-shrink: 0;
    font-size: 0.8rem;
}


/* ================================================================
   9. FLEXIBLE BENEFIT TAGS
   ================================================================ */

.benefits-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.benefits-tag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background-color: rgba(31, 65, 155, 0.15);
    border: 1px solid rgba(31, 65, 155, 0.4);
    border-radius: 100px;
    font-size: 0.85rem;
    color: rgba(215, 213, 207, 0.85);
    white-space: nowrap;
}


/* ================================================================
   10. OFF-DUTY CALLOUT
   ================================================================ */

.benefits-callout {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background-color: var(--surface-raised, #111c2d);
    border: 1px solid rgba(31, 65, 155, 0.3);
    border-left: 4px solid var(--dps-blue, #1F419B);
    border-radius: 0 8px 8px 0;
    padding: 1.75rem;
    max-width: 760px;
}

.benefits-callout__icon {
    font-size: 1.75rem;
    color: var(--dps-blue, #6482C8);
    flex-shrink: 0;
    padding-top: 0.15rem;
}

.benefits-callout__title {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 700;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #fff;
    margin-bottom: 0.6rem;
}

.benefits-callout__desc {
    font-size: 0.95rem;
    color: rgba(215, 213, 207, 0.8);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}


/* ================================================================
   11. SHARED UTILITIES
   ================================================================ */

.benefits-divider {
    border: none;
    border-top: 1px solid rgba(31, 65, 155, 0.2);
    margin: 0;
}


/* ================================================================
   12. RESPONSIVE
   ================================================================ */

/* ── iPad Mini and up (768px+): two-col grid narrows left rail ── */
@media (min-width: 768px) and (max-width: 991px) {

    .benefits-twocol__inner {
        grid-template-columns: 170px 1fr;
        gap: 2rem;
    }
}

/* ── Below 768px: stack two-col into single col ── */
@media (max-width: 767px) {

    .benefits-twocol__inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .benefits-twocol {
        padding: 3rem 0;
    }

    .benefits-fullwidth {
        padding: 3rem 0;
    }

    .benefits-callout {
        max-width: 100%;
    }

    /* Stat cards: 3-col works fine at 576px+, but below that switch to 1-col */
    /* Bootstrap col-4 stays 3-col until we override it */
    .benefits-twocol__content .col-4 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .benefits-stat-card {
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 1.25rem;
    }

    .benefits-stat-card__icon {
        font-size: 1.5rem;
        margin-bottom: 0;
        flex-shrink: 0;
        padding-top: 0.2rem;
    }

    .benefits-stat-card__stat {
        font-size: 1.75rem;
    }
}

/* ── 576px–767px: keep 3-col stat cards, they're fine at this width ── */
@media (min-width: 576px) and (max-width: 767px) {

    .benefits-hero {
        padding: 7rem 0 3.5rem;
    }

    /* Restore 3-col cards at 576px+ since we overrode to 1-col above */
    .benefits-twocol__content .col-4 {
        width: 33.333%;
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .benefits-stat-card {
        text-align: center;
        display: block;
        padding: 1.5rem 1rem;
    }

    .benefits-stat-card__icon {
        margin-bottom: 0.6rem;
    }

    .benefits-stat-card__stat {
        font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    }
}

/* ── Below 576px: phones ── */
@media (max-width: 575px) {

    .benefits-hero {
        padding: 8rem 0 3rem;
    }

    /* Anchorbar: compress to single row by shrinking pills */
    .benefits-anchorbar {
        padding: 0.4rem 0;
    }

    .benefits-anchorbar__list {
        flex-wrap: nowrap;          /* force single row */
        overflow-x: auto;           /* scroll if needed on very small screens */
        justify-content: flex-start;
        padding: 0 0.75rem;
        gap: 0.15rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;      /* hide scrollbar — Firefox */
    }

    .benefits-anchorbar__list::-webkit-scrollbar {
        display: none;              /* hide scrollbar — Chrome/Safari */
    }

    .benefits-anchorbar__link {
        font-size: 0.68rem;
        padding: 0.3rem 0.6rem;
        white-space: nowrap;        /* prevent individual pill text wrapping */
        letter-spacing: 0.05em;
    }

    .benefits-callout {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
        border-radius: 0 6px 6px 0;
    }

    .benefits-callout__icon {
        padding-top: 0;
    }

    .benefits-tags {
        gap: 0.4rem;
    }

    .benefits-tag {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }
}

/* ── Below 400px: very small phones (Galaxy S9+ 320px) ── */
@media (max-width: 400px) {

    .benefits-anchorbar__link {
        font-size: 0.62rem;
        padding: 0.25rem 0.5rem;
        letter-spacing: 0.03em;
    }

    .benefits-hero__title {
        font-size: 2rem;
    }
}


/* ================================================================
   13. ACCESSIBILITY — REDUCED MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {

    .benefits-stat-card {
        transition: none;
    }

    .benefits-stat-card:hover {
        transform: none;
    }

    .benefits-anchorbar__link {
        transition: none;
    }
}
