/* ============================================
   HERO MISSION BLOCK
   Front-page only. Loaded conditionally via functions.php.
   Replaces the former .hero-actions (two CTA buttons).

   Color tokens (from style.css :root):
     --gold-primary: #C9A227
     --gold-light:   #E8D48A
     --navy-deep:    #1B2838
     --navy-medium:  #2D4156
   Fonts:
     Serif:    'Playfair Display', Georgia, serif
     Sans:     'Libre Franklin', 'Inter', system-ui, sans-serif
   ============================================ */

/* -----------------------------------------------
   Outer wrapper
   ----------------------------------------------- */
.hero-mission-block {
    width: 100%;
    margin-top: 2rem;
    text-align: center;
}

/* -----------------------------------------------
   Part 1 — Funnel / Advocacy Statement
   ----------------------------------------------- */

.hmb-funnel {
    background: var(--navy-deep);
    border: 1px solid rgba(201, 162, 39, 0.38);
    border-radius: var(--radius-md);
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem 2.25rem 2.5rem;
    color: #fff;
    text-align: center;
}

/* Promoted to h1 — matches removed hero-title in style.
   White base, gold gradient on "Safer Place" span. */
.hmb-funnel-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.hmb-funnel-title span {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hmb-funnel p {
    font-family: 'Libre Franklin', 'Inter', system-ui, sans-serif;
    font-size: clamp(0.78rem, 1.4vw, 0.92rem);
    font-weight: 500;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.75rem 0;
}

.hmb-funnel p:last-child {
    margin-bottom: 0;
}

.hmb-accent {
    color: var(--gold-primary);
    font-weight: 700;
}

/* Small downward-pointing gold triangle below the funnel */
.hmb-funnel-arrow {
    width: 0;
    height: 0;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-top: 16px solid var(--gold-primary);
    margin: 8px auto 14px;
}

/* -----------------------------------------------
   Part 2 — Four Mission Buttons
   ----------------------------------------------- */
.hmb-mission-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.7rem;
    max-width: 820px;
    margin: 0 auto;
}

.hmb-mission-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.25rem 0.6rem 1.1rem;
    background: var(--navy-deep);
    border: 1px solid var(--gold-primary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: #fff;
    transition:
        background var(--transition-base),
        border-color var(--transition-base),
        transform var(--transition-fast),
        box-shadow var(--transition-base);
    cursor: pointer;
}

.hmb-mission-card:hover {
    background: var(--navy-medium);
    border-color: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.25);
}

.hmb-mission-card:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
    background: var(--navy-medium);
}

.hmb-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(201, 162, 39, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hmb-card-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--gold-primary);
    stroke-width: 2;
}

.hmb-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(0.95rem, 1.7vw, 1.1rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

/* WCAG AA: rgba(255,255,255,0.65) on #1B2838 ≈ 9:1 contrast */
.hmb-card-sub {
    font-family: 'Libre Franklin', 'Inter', system-ui, sans-serif;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.35;
    text-align: center;
}

/* -----------------------------------------------
   Part 3 — Network Rectangle
   ----------------------------------------------- */
.hmb-network {
    max-width: 820px;
    margin: 0.75rem auto 0;
    background: var(--navy-deep);
    border: 1px solid rgba(201, 162, 39, 0.38);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.75rem 1.5rem;
    text-align: center;
}

.hmb-network-eyebrow {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin: 0 0 0.3rem 0;
}

.hmb-network-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.9rem 0;
}

.hmb-network-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
    align-items: center;
}

/* WCAG AA: #E8D48A on #1B2838 ≈ 8.5:1 contrast */
.hmb-network-link {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gold-light);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 162, 39, 0.32);
    border-radius: var(--radius-full);
    padding: 0.38rem 1rem;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast);
}

.hmb-network-link:hover {
    background: rgba(201, 162, 39, 0.18);
    color: #fff;
    border-color: var(--gold-primary);
}

.hmb-network-link:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
    background: rgba(201, 162, 39, 0.18);
    color: #fff;
}

/* -----------------------------------------------
   Responsive — Tablet 768–1023px
   ----------------------------------------------- */
@media (max-width: 1023px) {
    .hmb-funnel {
        padding: 1.75rem 1.75rem 2.25rem;
    }

    .hmb-mission-buttons {
        gap: 0.55rem;
    }

    .hmb-mission-card {
        padding: 1.1rem 0.5rem 1rem;
    }
}

/* -----------------------------------------------
   Responsive — Mobile < 768px
   ----------------------------------------------- */
@media (max-width: 767px) {
    .hero-mission-block {
        margin-top: 1.5rem;
    }

    .hmb-funnel {
        padding: 1.5rem 1.5rem 1.75rem;
    }

    .hmb-mission-buttons {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 0.6rem;
    }

    .hmb-mission-card {
        padding: 1rem 0.6rem;
    }

    .hmb-network {
        max-width: 100%;
        padding: 1.2rem 1.1rem 1.3rem;
    }

    .hmb-network-link {
        white-space: normal;
        text-align: center;
        font-size: 0.75rem;
    }

    .hmb-network-links {
        gap: 0.45rem;
    }
}
