/* VoteArtis.com — Campaign Theme v1.0
   DéMaria Artis for Lee County Supervisor of Elections
   Brand: Navy #0D2240 · Red #B22234 · White #FFFFFF
   Concept: Bridge to Community (Concept C)
   Fonts: DM Serif Display (headlines) + Source Sans 3 (body)

   SWAP GUIDE: To change concept lockup, update --brand-concept-class in :root
   and swap the hero asset reference. All other tokens stay constant.
*/

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ── Fallback fonts (CLS prevention) ── */
@font-face {
    font-family: 'DM Serif Display Fallback';
    src: local('Georgia');
    size-adjust: 94.5%;
    ascent-override: 103.16%;
    descent-override: 38.76%;
    line-gap-override: 0%;
}
@font-face {
    font-family: 'Source Sans 3 Fallback';
    src: local('Arial');
    size-adjust: 105.32%;
    ascent-override: 93.53%;
    descent-override: 26.14%;
    line-gap-override: 0%;
}

/* ── Design tokens ── */
:root {
    /* Brand palette — LOCKED */
    --navy:        #0D2240;
    --navy-hover:  #162f58;
    --navy-light:  rgba(13, 34, 64, 0.07);
    --red:         #B22234;
    --red-hover:   #c42940;
    --red-muted:   rgba(178, 34, 52, 0.08);
    --white:       #FFFFFF;

    /* Backgrounds */
    --bg:          #FFFFFF;
    --bg-card:     #FFFFFF;
    --bg-light:    #f4f6f9;
    --bg-navy:     #0D2240;
    --bg-section:  #eef1f6;

    /* Text */
    --text:        #0D2240;
    --text-secondary: #3a4a5e;
    --text-dim:    #6b7a8d;

    /* Borders & shadows */
    --border:       rgba(13, 34, 64, 0.1);
    --border-strong: rgba(13, 34, 64, 0.18);
    --shadow-sm:   0 1px 3px rgba(13,34,64,0.06), 0 2px 8px rgba(13,34,64,0.04);
    --shadow:      0 2px 6px rgba(13,34,64,0.07), 0 6px 24px rgba(13,34,64,0.07);
    --shadow-lg:   0 4px 12px rgba(13,34,64,0.09), 0 16px 48px rgba(13,34,64,0.09);

    /* Typography */
    --serif: 'DM Serif Display', 'DM Serif Display Fallback', Georgia, serif;
    --sans:  'Source Sans 3', 'Source Sans 3 Fallback', -apple-system, sans-serif;

    /* Layout */
    --max-width: 1100px;
    --section-pad: 88px 48px;
    --section-pad-mobile: 60px 20px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
}

/* ── Accessibility ── */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ── Navigation ── */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0 48px;
    display: flex; justify-content: space-between; align-items: stretch;
    background: var(--navy);
    height: 64px;
    box-shadow: 0 2px 16px rgba(13,34,64,0.35);
    transition: height 0.3s;
}
.site-nav.scrolled { height: 56px; }
.nav-brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--white);
    font-family: var(--serif); font-size: 1.1em;
    white-space: nowrap;
}
.nav-brand .brand-name-bold { font-weight: 400; color: var(--white); }
.nav-brand .brand-office {
    font-family: var(--sans); font-size: 0.62em; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(255,255,255,0.65); margin-left: 2px; line-height: 1;
}
.nav-links {
    display: flex; align-items: center; gap: 4px; list-style: none;
}
.nav-links a {
    display: flex; align-items: center; height: 64px;
    padding: 0 14px;
    color: rgba(255,255,255,0.8); text-decoration: none;
    font-size: 0.82em; font-weight: 600; letter-spacing: 0.07em;
    text-transform: uppercase; transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-links a.active { color: var(--white); border-bottom: 3px solid var(--red); }
.nav-cta {
    display: flex; align-items: center;
    background: var(--red) !important;
    color: var(--white) !important;
    border-radius: 0;
    padding: 0 22px !important;
    font-weight: 700 !important;
    transition: background 0.25s !important;
}
.nav-cta:hover { background: var(--red-hover) !important; }

/* Hamburger */
.nav-hamburger {
    display: none; background: none; border: none; cursor: pointer;
    padding: 8px; margin-left: auto; align-self: center;
}
.nav-hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--white); margin: 5px 0; transition: all 0.3s;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 34px;
    background: var(--red); color: var(--white);
    text-decoration: none; font-weight: 700; font-size: 0.95em;
    border-radius: 6px; border: none; cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 2px 12px rgba(178,34,52,0.3);
    letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--red-hover); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(178,34,52,0.4); }
.btn-primary svg { width: 14px; height: 14px; transition: transform 0.25s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px;
    background: transparent; color: var(--navy);
    text-decoration: none; font-weight: 600; font-size: 0.92em;
    border: 2px solid var(--navy);
    border-radius: 6px; transition: all 0.25s;
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }

.btn-white {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 34px;
    background: var(--white); color: var(--navy);
    text-decoration: none; font-weight: 700; font-size: 0.95em;
    border-radius: 6px; border: none; cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.btn-white:hover { background: #e8eef6; transform: translateY(-2px); }

.btn-white-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px;
    background: transparent; color: var(--white);
    text-decoration: none; font-weight: 600; font-size: 0.92em;
    border: 2px solid rgba(255,255,255,0.65);
    border-radius: 6px; transition: all 0.25s;
}
.btn-white-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* ── Sections ── */
.section { padding: var(--section-pad); }
.section-light { background: var(--bg-light); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); }
.section-max { max-width: var(--max-width); margin: 0 auto; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header .kicker {
    font-size: 0.72em; font-weight: 700; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--red); margin-bottom: 12px;
    display: block;
}
.section-header h2 {
    font-family: var(--serif);
    font-size: clamp(1.7em, 3.8vw, 2.5em);
    font-weight: 400; line-height: 1.2;
    margin-bottom: 16px; color: var(--navy);
}
.section-navy .section-header h2 { color: var(--white); }
.section-navy .section-header .kicker { color: rgba(255,255,255,0.6); }
.section-navy .section-header p { color: rgba(255,255,255,0.72); }
.section-header p { color: var(--text-secondary); font-size: 1.05em; font-weight: 300; }

/* ── Cards ── */
.card-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px; max-width: var(--max-width); margin: 0 auto;
}
.card {
    padding: 32px 26px; background: var(--bg-card);
    border-radius: 10px; border: 1px solid var(--border);
    box-shadow: var(--shadow-sm); transition: all 0.3s;
    position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--red); transform: scaleX(0); transform-origin: left;
    transition: transform 0.35s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
    width: 48px; height: 48px; border-radius: 10px;
    background: var(--red-muted); display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px; font-size: 1.4em;
}
.card h3 {
    font-family: var(--serif); font-size: 1.12em;
    margin-bottom: 10px; color: var(--navy);
}
.card p { color: var(--text-secondary); font-size: 0.9em; line-height: 1.7; }

/* ── Reveal animations ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.88em; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 12px 14px;
    border: 1.5px solid var(--border-strong);
    border-radius: 6px; background: var(--bg-card);
    font-family: var(--sans); font-size: 0.95em; color: var(--text);
    transition: border-color 0.25s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--navy); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Footer ── */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    padding: 48px 48px 32px;
}
.footer-inner {
    max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 36px;
}
.footer-brand .brand-wordmark {
    font-family: var(--serif); font-size: 1.3em; color: var(--white);
    margin-bottom: 8px; display: block;
}
.footer-brand .brand-office-line {
    font-size: 0.75em; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: rgba(255,255,255,0.55);
    margin-bottom: 16px; display: block;
}
.footer-brand p { font-size: 0.85em; color: rgba(255,255,255,0.55); line-height: 1.6; }

.footer-col h4 {
    font-size: 0.72em; font-weight: 700; letter-spacing: 0.2em;
    text-transform: uppercase; color: rgba(255,255,255,0.55);
    margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.9em;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-values {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px; margin-bottom: 20px;
    display: flex; flex-wrap: wrap; gap: 8px 24px;
    font-size: 0.75em; font-weight: 700; letter-spacing: 0.15em;
    text-transform: uppercase; color: rgba(255,255,255,0.45);
    justify-content: center;
}
.footer-values span::after { content: ' ·'; margin-left: 24px; }
.footer-values span:last-child::after { content: ''; }

.footer-disclaimer {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px; text-align: center;
    font-size: 0.75em; color: rgba(255,255,255,0.4);
    line-height: 1.6; max-width: 820px; margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .site-nav { padding: 0 20px; }
    .nav-links {
        display: none; position: fixed;
        top: 64px; left: 0; right: 0;
        background: var(--navy);
        flex-direction: column; align-items: stretch;
        padding: 8px 0 16px; gap: 0;
        box-shadow: 0 8px 24px rgba(13,34,64,0.4);
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links a { height: 48px; padding: 0 24px; }
    .nav-cta { height: 48px; border-radius: 0; }
    .nav-hamburger { display: block; }
    .section { padding: var(--section-pad-mobile); }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .site-footer { padding: 36px 20px 24px; }
    .form-grid-2 { grid-template-columns: 1fr; }
}
