/* === SKAGIT RESIDENTS — Patriotic Civic Theme === */
:root {
  --navy:        #0a1e3a;
  --navy-light:  #1a3460;
  --navy-mid:    #0d2b54;
  --red:         #B22234;
  --red-dark:    #8B1A27;
  --white:       #FFFFFF;
  --cream:       #F8F5F0;
  --cream-dark:  #EDE8E0;
  --gold:        #C4A042;
  --gold-light:  #DAB84D;
  --gray:        #6B7280;
  --gray-light:  #D1D5DB;
  --text:        #1a1a2e;

  --font-head: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;

  --max-w: 1100px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--cream); line-height: 1.65; }

/* ── STRIPE ── */
.stripe { height: 6px; background: linear-gradient(90deg, var(--red) 33%, var(--white) 33% 66%, var(--navy) 66%); }

/* ── HEADER ── */
header { background: var(--navy-mid); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.35); border-bottom: 2px solid rgba(196,160,66,0.35); }
.header-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); align-self: center; }
.logo-star { color: var(--gold); font-size: 22px; }
.logo-text { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.2; }
.logo-sub { display: block; font-family: var(--font-body); font-size: 0.65rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); opacity: 0.9; }

/* ── NAV ── */
nav { display: flex; align-items: center; gap: 4px; }
nav.mobile { display: none; }
nav a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 14px; border-radius: var(--radius); transition: color 0.15s; position: relative; }
nav a::after { content: ''; position: absolute; bottom: 2px; left: 14px; right: 14px; height: 2px; background: var(--gold); border-radius: 2px; opacity: 0; transition: opacity 0.15s; }
nav a:hover { color: var(--white); }
nav a:hover::after { opacity: 0.5; }
nav a.active { color: var(--gold); }
nav a.active::after { opacity: 1; }
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.7em; }
.nav-dropdown-menu { display: none; position: absolute; top: calc(100% + 4px); right: 0; background: var(--navy-light); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); min-width: 260px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); overflow: hidden; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 10px 18px; border-radius: 0; font-size: 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.06); text-transform: none; }
.nav-dropdown-menu a:last-child { border-bottom: none; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.2s; }

/* ── FOOTER ── */
footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 48px 20px 24px; margin-top: 64px; }
.circular-strip + footer { margin-top: 0; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 0.82rem; line-height: 1.6; max-width: 280px; }
.footer-col h4 { color: var(--gold); font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.82rem; transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { max-width: var(--max-w); margin: 20px auto 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ── PAGE HERO (inner pages) ── */
.page-hero { background: var(--navy); padding: 56px 20px 48px; text-align: center; }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--white); font-weight: 700; letter-spacing: -0.01em; }
.page-hero p { color: rgba(255,255,255,0.7); margin-top: 10px; font-size: 1rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.page-hero .eyebrow { display: inline-block; background: var(--red); color: var(--white); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; padding: 4px 12px; border-radius: 2px; margin-bottom: 16px; }

/* ── MAIN CONTENT ── */
.main-content { max-width: var(--max-w); margin: 0 auto; padding: 48px 20px; }

/* ── HERO (Homepage) ── */
.hero { background: var(--navy); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('../images/skagit5.jpg') center 30% / cover no-repeat; opacity: 0.10; }
.hero-inner { position: relative; max-width: var(--max-w); margin: 0 auto; padding: 88px 20px 72px; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: var(--white); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; padding: 6px 16px; border-radius: 2px; margin-bottom: 24px; }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.8rem); color: var(--white); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 16px; }
.hero h1 span { color: var(--gold); }
.hero-sub { color: rgba(255,255,255,0.75); font-size: clamp(1rem, 2vw, 1.18rem); max-width: 600px; margin: 0 auto 32px; }
.hero-date { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.85); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 20px; border-radius: 40px; }

/* ── SECTION INTRO ── */
.section-intro { background: var(--cream-dark); border-left: 4px solid var(--red); padding: 24px 28px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 40px; }
.section-intro p { font-size: 0.95rem; line-height: 1.75; color: var(--text); max-width: 800px; }
.section-intro strong { color: var(--navy); }

/* ── CANDIDATE CARDS ── */
.candidates-grid { display: grid; gap: 28px; }
.candidate-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,0.08); border: 1px solid var(--gray-light); }
.card-office { background: var(--navy); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-office-group {}
.card-office-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 2px; }
.card-office-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--white); letter-spacing: 0.01em; }
.write-in-badge { background: var(--red); color: var(--white); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 12px; border-radius: 2px; white-space: nowrap; flex-shrink: 0; }
.card-body { padding: 28px 24px; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; }
.card-photo-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.card-photo { width: 130px; height: 155px; object-fit: cover; object-position: center top; border-radius: var(--radius); border: 3px solid var(--cream-dark); display: block; }
.card-photo-placeholder { width: 130px; height: 155px; background: var(--cream-dark); border-radius: var(--radius); border: 3px solid var(--gray-light); display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 2.5rem; }
.card-qr { text-align: center; }
.card-qr img { width: 76px; height: 76px; display: block; image-rendering: pixelated; border: 1px solid var(--gray-light); padding: 4px; background: white; }
.card-qr span { display: block; font-size: 0.62rem; color: var(--gray); margin-top: 4px; }
.card-info h2 { font-family: var(--font-head); font-size: 1.75rem; color: var(--navy); font-weight: 700; margin-bottom: 4px; }
.card-party { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.card-party::before { content: '★'; color: var(--gold); font-size: 1em; }
.card-tagline { font-family: var(--font-head); font-size: 1rem; font-style: italic; color: var(--navy-light); margin-bottom: 12px; line-height: 1.5; }
.card-bio { font-size: 0.9rem; line-height: 1.75; color: #374151; margin-bottom: 18px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-size: 0.82rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 1px; transition: color 0.15s, border-color 0.15s; }
.card-link:hover { color: var(--red); border-color: var(--red); }
.card-link::after { content: ' →'; }

/* ── CTA SECTION ── */
.cta-section { background: var(--navy); border-radius: var(--radius); padding: 52px 36px; text-align: center; margin-top: 48px; position: relative; overflow: hidden; }
.cta-section::before { content: '★'; position: absolute; top: -30px; left: 50%; transform: translateX(-50%); font-size: 140px; color: rgba(255,255,255,0.025); pointer-events: none; }
.cta-section h2 { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--white); margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.btn-group { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-primary { display: inline-block; background: var(--red); color: var(--white); padding: 13px 32px; border-radius: var(--radius); text-decoration: none; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.05em; transition: background 0.15s, transform 0.1s; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-secondary { display: inline-block; background: transparent; color: rgba(255,255,255,0.85); padding: 13px 28px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.3); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: background 0.15s, border-color 0.15s; }
.btn-secondary:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.5); }

/* ── DOCUMENT PAGE ── */
.document-frame { background: var(--white); border: 1px solid var(--gray-light); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.1); text-align: center; padding: 36px; }
.document-frame img { max-width: 100%; height: auto; display: block; margin: 0 auto 28px; border: 1px solid var(--gray-light); box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.doc-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-doc { display: inline-flex; align-items: center; gap: 7px; background: var(--navy); color: var(--white); padding: 11px 24px; border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: 0.85rem; transition: background 0.15s; }
.btn-doc:hover { background: var(--navy-light); }
.btn-doc-outline { display: inline-flex; align-items: center; gap: 7px; background: transparent; color: var(--navy); padding: 11px 24px; border: 2px solid var(--navy); border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: 0.85rem; transition: all 0.15s; }
.btn-doc-outline:hover { background: var(--navy); color: var(--white); }

/* ── LEGAL / CONTENT PAGES ── */
.legal-content { max-width: 820px; }
.legal-content h2 { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--cream-dark); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy-light); margin: 28px 0 8px; }
.legal-content p { margin-bottom: 16px; font-size: 0.95rem; line-height: 1.78; color: #374151; }
.legal-content ul, .legal-content ol { margin: 12px 0 18px 28px; }
.legal-content li { font-size: 0.95rem; line-height: 1.7; color: #374151; margin-bottom: 8px; }
.legal-content strong { color: var(--navy); }
.statute { background: var(--cream-dark); border-left: 4px solid var(--navy); padding: 14px 20px; margin: 14px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.statute .stat-ref { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.statute p { margin-bottom: 0 !important; font-style: italic; font-size: 0.88rem; }
.officials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin: 20px 0; }
.official-card { text-align: center; background: var(--cream-dark); border-radius: var(--radius); padding: 14px 8px; border: 1px solid var(--gray-light); }
.official-card img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; margin: 0 auto 8px; display: block; border: 2px solid var(--gray-light); }
.official-card span { display: block; font-size: 0.68rem; font-weight: 600; color: var(--navy); line-height: 1.3; }

/* ── PDF LINK PAGE ── */
.pdf-card { background: var(--white); border: 1px solid var(--gray-light); border-radius: var(--radius); padding: 40px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.07); max-width: 480px; margin: 0 auto; }
.pdf-icon { font-size: 3.5rem; margin-bottom: 16px; }
.pdf-card h2 { font-family: var(--font-head); font-size: 1.3rem; color: var(--navy); margin-bottom: 10px; }
.pdf-card p { font-size: 0.9rem; color: var(--gray); margin-bottom: 28px; }

/* ── REVOCATION TEMPLATE ── */
.revocation-template { background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius); padding: 40px; font-family: var(--font-head); max-width: 680px; line-height: 1.7; }
.revocation-template .rev-title { font-size: 1rem; font-weight: bold; text-align: center; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); margin-bottom: 4px; }
.revocation-template .rev-subtitle { text-align: center; font-size: 0.8rem; color: var(--gray); margin-bottom: 24px; }
.rev-two-col { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--navy); margin-bottom: 24px; }
.rev-col { padding: 16px; font-size: 0.82rem; }
.rev-col:first-child { border-right: 1px solid var(--navy); }
.rev-col .vs { font-weight: bold; font-size: 0.9em; margin: 4px 0; }
.rev-body { font-size: 0.86rem; line-height: 1.9; margin-bottom: 24px; color: #374151; }
.rev-sig { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.rev-sig-line { border-top: 1px solid var(--navy); padding-top: 6px; font-size: 0.75rem; color: var(--gray); font-family: var(--font-body); }
.rev-print-note { background: var(--cream-dark); border-radius: var(--radius); padding: 16px 20px; margin-top: 28px; font-size: 0.82rem; color: var(--gray); text-align: center; font-family: var(--font-body); }

/* ── CONTACT PAGE ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.contact-info h2 { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); margin-bottom: 24px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-detail-icon { font-size: 1.3rem; margin-top: 1px; flex-shrink: 0; }
.contact-detail h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.contact-detail p, .contact-detail a { font-size: 0.9rem; color: #374151; text-decoration: none; }
.contact-detail a:hover { color: var(--navy); text-decoration: underline; }
.map-embed { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-light); }
.map-embed iframe { display: block; }
.contact-form-wrapper { background: var(--white); border: 1px solid var(--gray-light); border-radius: var(--radius); padding: 36px; box-shadow: 0 2px 16px rgba(0,0,0,0.07); }
.contact-form-wrapper h2 { font-family: var(--font-head); font-size: 1.4rem; color: var(--navy); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--navy); margin-bottom: 7px; }
.form-group input, .form-group textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--gray-light); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.92rem; color: var(--text); background: var(--cream); transition: border-color 0.15s, box-shadow 0.15s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,30,58,0.1); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.turnstile-wrap { margin-bottom: 20px; }
.btn-submit { width: 100%; background: var(--red); color: var(--white); border: none; padding: 13px; border-radius: var(--radius); font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; cursor: pointer; letter-spacing: 0.04em; transition: background 0.15s, transform 0.1s; }
.btn-submit:hover { background: var(--red-dark); transform: translateY(-1px); }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.88rem; font-weight: 500; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── CIRCULAR DOWNLOAD STRIP ── */
.circular-strip { background: var(--navy-mid); border-top: 3px solid var(--gold); padding: 40px 20px; text-align: center; }
.circular-strip-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.circular-pdf-icon { flex-shrink: 0; }
.circular-pdf-icon svg { width: 72px; height: 72px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }
.circular-text h3 { font-family: var(--font-head); font-size: 1.4rem; color: var(--white); margin-bottom: 6px; }
.circular-text p { color: rgba(255,255,255,0.65); font-size: 0.88rem; margin-bottom: 0; }
.btn-circular { display: inline-flex; align-items: center; gap: 9px; background: var(--gold); color: var(--navy); padding: 13px 28px; border-radius: var(--radius); text-decoration: none; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; transition: background 0.15s, transform 0.1s; white-space: nowrap; flex-shrink: 0; }
.btn-circular:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-circular svg { width: 18px; height: 18px; }
.circular-preview { margin-top: 36px; text-align: center; }
.circular-preview img { width: 100%; max-width: 100%; border-radius: var(--radius); box-shadow: 0 8px 40px rgba(0,0,0,0.5); border: 3px solid rgba(196,160,66,0.4); display: inline-block; }

/* ── THANK YOU ── */
.thankyou-center { text-align: center; padding: 80px 20px; max-width: 600px; margin: 0 auto; }
.thankyou-icon { font-size: 4rem; margin-bottom: 24px; }
.thankyou-center h1 { font-family: var(--font-head); font-size: 2.2rem; color: var(--navy); margin-bottom: 14px; }
.thankyou-center p { font-size: 1rem; color: var(--gray); margin-bottom: 28px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .header-inner { height: 58px; }
  nav.desktop { display: none !important; }
  .hamburger { display: flex; }
  nav.mobile { display: none; position: fixed; top: 58px; left: 0; right: 0; background: var(--navy-mid); border-top: 1px solid rgba(255,255,255,0.1); padding: 12px 0; z-index: 99; max-height: calc(100vh - 58px); overflow-y: auto; }
  nav.mobile.open { display: block; }
  nav.mobile a { display: block; padding: 11px 24px; border-radius: 0; font-size: 0.9rem; }
  nav.mobile .nav-dropdown-menu { display: block; position: static; background: rgba(255,255,255,0.06); border: none; border-radius: 0; box-shadow: none; padding-left: 16px; min-width: unset; }
  .card-body { grid-template-columns: 1fr; }
  .card-photo-col { flex-direction: row; align-items: flex-start; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-name-row { grid-template-columns: 1fr; }
  .rev-two-col { grid-template-columns: 1fr; }
  .rev-col:first-child { border-right: none; border-bottom: 1px solid var(--navy); }
  .rev-sig { grid-template-columns: 1fr; }
  .officials-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .hero-inner { padding: 56px 16px 48px; }
  .main-content { padding: 32px 16px; }
  .officials-grid { grid-template-columns: repeat(2, 1fr); }
  .revocation-template { padding: 20px; }
  .btn-group { flex-direction: column; align-items: center; }
}
