/*
 * ============================================================
 *  South Central Task Force (SCTF) — Site Stylesheet
 *  style.css
 * ============================================================
 *
 *  Table of Contents
 *  -----------------
 *  1.  CSS Custom Properties (Design Tokens)
 *  2.  Base / Reset
 *  3.  Navigation Bar
 *  4.  Hero Section
 *  5.  Section Headers (shared)
 *  6.  Mission & Vision Section
 *  7.  Member Counties Section
 *  8.  PA County Map Section
 *  9.  Regional Resources & Tools Section
 * 10.  Organizational Structure Section
 *      10a. Executive Bar
 *      10b. Functional Area Accordion Cards
 * 11.  Events Calendar Section
 * 12.  Footer
 * 13.  Responsive / Media Queries
 *
 * ============================================================
 */


/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */

:root {
    --navy:    #1B3A6B;   /* Primary navy — SCTF brand blue */
    --navy-dk: #0f2244;   /* Darker navy — navbar, footer, hero bg */
    --gold:    #C8952A;   /* Primary gold accent */
    --gold-lt: #e8b84b;   /* Lighter gold — text on dark backgrounds */
    --gray-lt: #f4f5f7;   /* Light gray — alternating section background */
    --gray-md: #dde1e8;   /* Medium gray — borders, dividers */
    --text:    #1e2530;   /* Primary body text color */
    --muted:   #5a6478;   /* Secondary / muted text color */
}


/* ============================================================
   2. BASE / RESET
   ============================================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Source Sans 3", sans-serif;
    color: var(--text);
    background: #fff;
}

h1, h2, h3, h4 {
    font-family: "Oswald", sans-serif;
    letter-spacing: 0.03em;
}


/* ============================================================
   3. NAVIGATION BAR
   ============================================================ */

.navbar {
    background: var(--navy-dk);
    padding: 0.6rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.navbar-brand {
    font-family: "Oswald", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* SCTF eagle logo image in the navbar */
.navbar-logo {
    height: 42px;
    width: auto;
    /* The logo has a black background — mix-blend-mode lightens it
       so only the eagle artwork shows against the dark navbar */
    mix-blend-mode: lighten;
}

/* Two-line brand text block */
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

/* "SCTF" abbreviation in gold */
.brand-abbr {
    font-size: 1.2rem;
    color: var(--gold-lt);
}

/* Full name in small caps beneath the abbreviation */
.brand-full {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: #a0b4cc;
    font-family: "Source Sans 3", sans-serif;
    text-transform: uppercase;
}

.nav-link {
    color: #c0cfe0 !important;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.5rem 0.85rem !important;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--gold-lt) !important;
}

.navbar-toggler {
    border-color: #3a5580;
}


/* ============================================================
   4. HERO SECTION
   ============================================================ */

.hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--navy-dk);
}

/* D3 map SVG rendered at low opacity as the hero background */
.hero-map-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.22;
}

#hero-pa-map {
    width: 100%;
    height: 100%;
}

/* Gradient overlay that sits between the map and the text */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 22, 44, 0.85) 0%, rgba(27, 58, 107, 0.6) 100%);
}

/* Text content — sits above map and overlay */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 3rem 1.5rem;
    max-width: 820px;
}

/* Large "SCTF" display text */
.hero-logo-text {
    font-family: "Oswald", sans-serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--gold-lt);
    line-height: 1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* "South Central Task Force · Pennsylvania" subtitle */
.hero-tagline {
    font-family: "Oswald", sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #a8c0dc;
    margin-top: 0.3rem;
    margin-bottom: 1.5rem;
}

/* Italic description paragraph */
.hero-desc {
    font-family: "Source Serif 4", serif;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 300;
    line-height: 1.65;
    color: #c8d8ec;
    max-width: 680px;
    margin: 0 auto 2rem;
    font-style: italic;
}

/* Row of small gold-outlined badges */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-badge {
    background: rgba(200, 149, 42, 0.15);
    border: 1px solid rgba(200, 149, 42, 0.4);
    color: var(--gold-lt);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 2px;
}

/* Gold "Learn More" call-to-action button */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hero-cta:hover {
    background: var(--gold-lt);
    color: #fff;
    transform: translateY(-1px);
}


/* ============================================================
   5. SECTION HEADERS (shared across all sections)
   ============================================================ */

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Small uppercase label above the section title */
.section-header .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}

/* Short gold horizontal rule beneath the section title */
.gold-rule {
    width: 50px;
    height: 3px;
    background: var(--gold);
    margin: 0.75rem auto 1rem;
}


/* ============================================================
   6. MISSION & VISION SECTION
   ============================================================ */

#mission {
    background: var(--gray-lt);
    padding: 4.5rem 0;
}

.mv-card {
    background: #fff;
    border-radius: 4px;
    padding: 2.5rem 2rem;
    height: 100%;
    border-top: 4px solid var(--navy);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.mv-card:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Circular icon container */
.mv-card .mv-icon {
    width: 44px;
    height: 44px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.mv-card .mv-icon i {
    color: var(--gold-lt);
    font-size: 1.2rem;
}

.mv-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.mv-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* "About SCTF" card uses gold top border instead of navy */
.founded-card {
    border-top-color: var(--gold);
}


/* ============================================================
   7. MEMBER COUNTIES SECTION
   ============================================================ */

#counties {
    padding: 4.5rem 0;
}

.county-card {
    background: #fff;
    border: 1px solid var(--gray-md);
    border-radius: 4px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
    color: var(--text);
}

.county-card:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(27, 58, 107, 0.25);
    text-decoration: none;
}

.county-card:hover .county-name  { color: #fff; }
.county-card:hover .county-label { color: var(--gold-lt); }
.county-card:hover .county-icon  { color: var(--gold-lt); }

.county-icon {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.county-name {
    font-family: "Oswald", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.2rem;
    transition: color 0.2s;
}

.county-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    transition: color 0.2s;
}


/* ============================================================
   8. PA COUNTY MAP SECTION
   ============================================================ */

#map-section {
    background: var(--navy-dk);
    padding: 4rem 0;
}

/* Override shared section-header colors for dark background */
#map-section .section-header h2 { color: #fff; }
#map-section .section-header p  { color: #8aaccc; }
#map-section .eyebrow            { color: var(--gold-lt); }

/* Container that holds the D3 SVG map */
.pa-map-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

/* The SVG element rendered by D3 */
#coverage-pa-map {
    min-height: 380px;
}


/* ============================================================
   9. REGIONAL RESOURCES & TOOLS SECTION
   ============================================================ */

#tools {
    background: var(--gray-lt);
    padding: 4.5rem 0;
}

.tool-card {
    background: #fff;
    border-radius: 4px;
    padding: 2rem 1.5rem;
    height: 100%;
    border-left: 4px solid var(--gold);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.tool-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.tool-card .tool-icon {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.tool-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
}

.tool-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}


/* ============================================================
  10. ORGANIZATIONAL STRUCTURE SECTION
   ============================================================ */

#org {
    padding: 4.5rem 0;
}


/* ----------------------------------------------------------
   10a. Executive Committee Bar
   ---------------------------------------------------------- */

/* Full-width navy banner listing the Executive Committee */
.exec-bar {
    background: var(--navy);
    color: #fff;
    border-radius: 4px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.exec-bar .exec-title {
    font-family: "Oswald", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-lt);
    white-space: nowrap;
}

.exec-bar .exec-subtitle {
    font-size: 0.85rem;
    color: #8aaccc;
}

/* Row of county name badges inside the exec bar */
.exec-counties {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0.5rem;
}

.exec-county {
    background: rgba(200, 149, 42, 0.15);
    border: 1px solid rgba(200, 149, 42, 0.35);
    color: var(--gold-lt);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 2px;
}


/* ----------------------------------------------------------
   10b. Functional Area Accordion Cards
   ---------------------------------------------------------- */

/* Outer card wrapper for each functional area */
.func-card {
    border: 1px solid var(--gray-md);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Clickable header row — navy when expanded */
.func-header {
    background: var(--navy);
    color: #fff;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.func-header:hover {
    background: #24508a;
}

/* Collapsed state — light gray background */
.func-header.collapsed {
    background: var(--gray-lt);
    color: var(--navy);
}

.func-header.collapsed .func-label  { color: var(--navy); }
.func-header.collapsed .func-chevron { color: var(--muted); }
.func-header.collapsed .func-icon   { color: var(--navy); }

/* Icon in the left of each header */
.func-icon {
    font-size: 1.1rem;
    color: var(--gold-lt);
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

/* Section title text */
.func-label {
    font-family: "Oswald", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    flex: 1;
}

/* Chevron icon that rotates when the panel is open */
.func-chevron {
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.func-header:not(.collapsed) .func-chevron {
    transform: rotate(180deg);
    color: var(--gold-lt);
}

/* Collapsible body panel */
.func-body {
    padding: 1.25rem 1.5rem;
    background: #fff;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.7;
}

.func-body p              { margin-bottom: 0.5rem; }
.func-body p:last-child   { margin-bottom: 0; }

/* Subcommittee label pill inside a func-body */
.sub-label {
    display: inline-block;
    background: rgba(27, 58, 107, 0.08);
    border-left: 3px solid var(--navy);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.4rem;
}

/* Representative contact lines */
.rep-line        { font-size: 0.85rem; color: var(--muted); }
.rep-line strong { color: var(--navy); }


/* ============================================================
  11. EVENTS CALENDAR SECTION
   ============================================================ */

#calendar {
    background: var(--gray-lt);
    padding: 4.5rem 0;
}

/* Dashed placeholder box shown until a real calendar is connected */
.calendar-placeholder {
    background: #fff;
    border: 2px dashed var(--gray-md);
    border-radius: 4px;
    padding: 3rem;
    text-align: center;
    color: var(--muted);
}

.calendar-placeholder i {
    font-size: 3rem;
    color: var(--gray-md);
    margin-bottom: 1rem;
    display: block;
}

/* Individual event card with gold left border */
.event-card {
    background: #fff;
    border-radius: 4px;
    border-left: 4px solid var(--gold);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

/* Date block on the left side of each event card */
.event-date {
    text-align: center;
    min-width: 55px;
}

.event-month {
    font-family: "Oswald", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.event-day {
    font-family: "Oswald", sans-serif;
    font-size: 1.1rem;
    color: var(--gold);
}

.event-title {
    font-family: "Oswald", sans-serif;
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.event-loc {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.event-desc {
    font-size: 0.9rem;
    margin: 0;
}


/* ============================================================
  12. FOOTER
   ============================================================ */

footer {
    background: var(--navy-dk);
    color: #8aaccc;
    padding: 3rem 0 1.5rem;
}

footer h5 {
    font-family: "Oswald", sans-serif;
    color: var(--gold-lt);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 0.4rem;
}

footer ul li a {
    color: #8aaccc;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

footer ul li a:hover {
    color: var(--gold-lt);
}

/* "SCTF" logotype in the footer */
.footer-brand {
    font-family: "Oswald", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.1em;
}

.footer-brand span {
    color: var(--gold-lt);
}

/* "Semper Vigilans" italic tagline */
.footer-motto {
    font-family: "Source Serif 4", serif;
    font-style: italic;
    font-size: 0.85rem;
    color: #5a7a9a;
    margin-top: 0.25rem;
}

.footer-divider {
    border-color: #1e3456;
    margin: 2rem 0 1.5rem;
}

.footer-bottom {
    font-size: 0.78rem;
    color: #3a5a7a;
}

/* Social media icon links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border: 1px solid #2a4a6a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6a9abb;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}


/* ============================================================
  13. RESPONSIVE / MEDIA QUERIES
   ============================================================ */

@media (max-width: 768px) {
    /* Reduce hero height on small screens */
    .hero {
        min-height: 420px;
    }

    /* Stack exec bar content vertically on mobile */
    .exec-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}