/* ============================================================
   Defender Fundraiser Group — styles.css
   Theme tokens live in :root. Adjust colors here in one place.
   ============================================================ */

:root {
  --navy: #0A1F44;
  --navy-deep: #06152E;
  --red: #B22234;
  --red-dark: #8E1B29;
  --white: #FFFFFF;
  --gray-bg: #F4F5F7;
  --gray-line: #E2E6EC;
  --gray-text: #4A5568;
  --gold: #C8A24B;

  --max-width: 1140px;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(6, 21, 46, 0.10);
  --shadow-lg: 0 16px 40px rgba(6, 21, 46, 0.16);

  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, Segoe UI, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--navy);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--red);
  margin: 0.9rem auto 2.2rem;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.85rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-donate { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-donate:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--gray-line); color: var(--gray-text); border-color: var(--gray-line);
  cursor: not-allowed; transform: none;
}
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(6,21,46,0.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 96px; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--white); min-width: 0; }
.brand-logo { width: 80px; height: 80px; object-fit: contain; }
/* Emblem logo already contains the org name, so the text wordmark is hidden. */
.brand span { display: none; }
.nav-menu { display: flex; align-items: center; gap: 1.6rem; }
.nav-menu a {
  color: var(--white); text-decoration: none; font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: 0.8px; font-size: 0.95rem; font-weight: 400;
  transition: color 0.15s ease;
}
.nav-menu a:not(.nav-donate):hover { color: var(--gold); }
.nav-donate { padding: 0.55rem 1.3rem; color: var(--white); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--white); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   Hero banner (CSS flag)
   ============================================================ */
.vet-banner{
  container-type: inline-size;
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 600;
  overflow: hidden;
  background: #0a1626;
  font-family: var(--font-body);
}
/* Flag */
.vb-flag{ position:absolute; inset:0; }
.vb-stripes{
  position:absolute; inset:0;
  background: repeating-linear-gradient(180deg,#b22234 0 7.6923%,#f4f1ea 7.6923% 15.3846%);
}
.vb-canton{
  position:absolute; top:0; left:0; width:28.125%; height:53.83%;
  background:#0a2a5e;
  display:flex; flex-direction:column; justify-content:space-evenly;
  padding: 0.94cqw 1.35cqw;
}
.vb-row{ display:flex; justify-content:center; gap:2.4cqw; color:#f4f1ea; font-size:1.56cqw; line-height:1; }
.vb-folds{
  position:absolute; inset:0;
  background: linear-gradient(96deg,
    rgba(0,0,0,.46) 0%, rgba(0,0,0,.05) 7%, rgba(255,255,255,.15) 14%,
    rgba(0,0,0,.02) 22%, rgba(0,0,0,.38) 31%, rgba(255,255,255,.10) 41%,
    rgba(0,0,0,.30) 50%, rgba(255,255,255,.14) 60%, rgba(0,0,0,.36) 69%,
    rgba(255,255,255,.10) 79%, rgba(0,0,0,.30) 88%, rgba(255,255,255,.08) 95%,
    rgba(0,0,0,.34) 100%);
}
.vb-folds-h{
  position:absolute; inset:0;
  background: linear-gradient(178deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.16) 62%, rgba(0,0,0,0) 84%);
}
/* Overlays */
.vb-glow{ position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(120% 90% at 88% 60%, rgba(255,179,96,.45) 0%, rgba(255,150,70,.14) 33%, rgba(0,0,0,0) 60%); }
.vb-darken{ position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(100deg, rgba(6,13,24,.8) 0%, rgba(6,13,24,.6) 30%, rgba(6,13,24,.26) 52%, rgba(6,13,24,.04) 72%, rgba(6,13,24,0) 100%); }
.vb-vignette{ position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(180deg, rgba(6,13,24,.5) 0%, rgba(6,13,24,0) 24%, rgba(6,13,24,0) 66%, rgba(6,13,24,.62) 100%); }
/* Content */
.vb-content{
  position:absolute; inset:0;
  display:flex; flex-direction:column; justify-content:center; align-items:flex-start;
  gap:1.35cqw; padding:0 6.25cqw; max-width:49cqw;
}
.vb-eyebrow{ display:flex; align-items:center; gap:0.73cqw;
  font-weight:600; font-size:.83cqw; letter-spacing:.32em; text-transform:uppercase; color:#e8eef7; }
.vb-bar{ width:2.71cqw; height:.21cqw; border-radius:.1cqw; background:#b22234; }
.vb-title{ margin:0; font-family:var(--font-head); font-weight:700; font-size:4.58cqw;
  line-height:.98; text-transform:uppercase; color:#fff; text-shadow:0 .1cqw 1.35cqw rgba(0,0,0,.55); }
.vb-sub{ margin:0; max-width:31cqw; font-weight:400; font-size:1.2cqw; line-height:1.5;
  color:#cdd8e8; text-shadow:0 .05cqw .73cqw rgba(0,0,0,.6); }
.vb-actions{ display:flex; align-items:center; gap:1.15cqw; margin-top:.42cqw; }
.vb-btn{ display:inline-flex; align-items:center; justify-content:center;
  padding:.89cqw 1.98cqw; border-radius:.21cqw; background:#b22234; color:#fff;
  font-family:var(--font-head); font-weight:600; font-size:.94cqw; letter-spacing:.05em; text-transform:uppercase; text-decoration:none;
  box-shadow:0 .42cqw 1.46cqw rgba(0,0,0,.4); transition:filter .15s,transform .15s; }
.vb-btn:hover{ filter:brightness(1.08); transform:translateY(-1px); }
.vb-accent{ position:absolute; left:0; right:0; bottom:0; height:.31cqw;
  background: linear-gradient(90deg,#b22234 0 50%,#1b3a66 50% 100%); }

/* Banner responsive: taller shape + readable rem text on tablet/phone */
@media (max-width: 820px){
  .vet-banner{ aspect-ratio: 16 / 10; }
  .vb-content{ max-width: 82%; gap: 0.7rem; padding: 0 2rem; }
  .vb-eyebrow{ font-size: 0.72rem; gap: 0.5rem; }
  .vb-bar{ width: 26px; height: 3px; border-radius: 2px; }
  .vb-title{ font-size: clamp(2rem, 7vw, 3rem); }
  .vb-sub{ font-size: clamp(0.95rem, 2.6vw, 1.15rem); max-width: 34ch; }
  .vb-btn{ font-size: 0.95rem; padding: 0.75rem 1.6rem; border-radius: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
  .vb-accent{ height: 5px; }
}
@media (max-width: 520px){
  .vet-banner{ aspect-ratio: 5 / 4; }
  .vb-content{ max-width: 100%; padding: 0 1.4rem; gap: 0.6rem; }
  .vb-title{ font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .vb-sub{ max-width: 40ch; }
  .vb-darken{ background: linear-gradient(180deg, rgba(6,13,24,.30) 0%, rgba(6,13,24,.55) 55%, rgba(6,13,24,.82) 100%); }
}

/* ============================================================
   Mission band
   ============================================================ */
.mission { background: var(--gray-bg); text-align: center; padding: 4rem 0; border-bottom: 1px solid var(--gray-line); }
.mission-statement {
  font-family: var(--font-head); font-weight: 300; text-transform: none;
  font-size: clamp(1.4rem, 3.2vw, 2rem); line-height: 1.35; color: var(--navy);
  max-width: 860px; margin: 0 auto;
}

/* ============================================================
   Programs / What We Do
   ============================================================ */
.programs { padding: 4.5rem 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--white); border: 1px solid var(--gray-line); border-top: 4px solid var(--red);
  border-radius: var(--radius); padding: 2rem 1.6rem; box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 1.3rem; margin-bottom: 0.7rem; color: var(--navy); }
.card p { color: var(--gray-text); }

/* ============================================================
   Impact stats
   ============================================================ */
.impact { background: var(--navy); color: var(--white); padding: 3.5rem 0; }
.stats { display: flex; justify-content: space-around; gap: 1.5rem; flex-wrap: wrap; text-align: center; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.6rem); color: var(--white); line-height: 1; }
.stat-label { text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; color: var(--gold); margin-top: 0.5rem; }

/* ============================================================
   Stories
   ============================================================ */
.stories { background: var(--gray-bg); padding: 4.5rem 0; }
.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.story {
  background: var(--white); border-radius: var(--radius); padding: 2rem 2rem 1.6rem;
  box-shadow: var(--shadow); position: relative; border-left: 4px solid var(--red);
}
.story p { font-size: 1.12rem; font-style: italic; color: var(--navy); margin-bottom: 1rem; }
.story cite { font-style: normal; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; color: var(--gray-text); }

/* ============================================================
   Ways to Give
   ============================================================ */
.ways { padding: 4.5rem 0; }
.way-card { text-align: center; }
.way-card h3 { color: var(--navy); font-size: 1.25rem; margin-bottom: 0.6rem; }
.way-card p { color: var(--gray-text); margin-bottom: 1.3rem; }

/* ============================================================
   Newsletter
   ============================================================ */
.newsletter { background: var(--navy-deep); color: var(--white); padding: 3.5rem 0; text-align: center; }
.newsletter h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 1.3rem; }
.newsletter-form { display: flex; gap: 0.6rem; justify-content: center; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1 1 240px; padding: 0.85rem 1rem; border: 0; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem;
}
.muted-note { margin-top: 0.9rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.82); padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr; gap: 2.5rem; align-items: start; }
.footer-logo { width: 84px; height: auto; display: block; margin-bottom: 1rem; }
.footer-brand strong { display: block; color: var(--white); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: 1.15rem; }
.footer-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-top: 0.6rem; max-width: 24ch; }
.footer-heading {
  color: var(--white); font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: 1.5px; font-size: 0.95rem; margin-bottom: 1.1rem;
  padding-bottom: 0.6rem; position: relative;
}
.footer-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--red); }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.82); text-decoration: none; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.8px; font-size: 0.9rem; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--gold); }
.footer-contact { font-size: 0.92rem; line-height: 1.85; color: rgba(255,255,255,0.82); }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { color: var(--gold); }
.footer-legal { font-size: 0.82rem; color: rgba(255,255,255,0.58); line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 3rem; padding: 1.4rem 0; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.5); text-align: center; margin: 0; }

/* ============================================================
   Inner page hero strip (About / Donate / Legal)
   ============================================================ */
.page-strip { background: var(--navy); color: var(--white); text-align: center; padding: 3.2rem 0; position: relative; }
.page-strip::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); }
.page-strip h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-strip p { color: rgba(255,255,255,0.85); margin-top: 0.6rem; }

/* ============================================================
   Donate page
   ============================================================ */
.donate-page { padding: 3.5rem 0 4.5rem; background: var(--gray-bg); }
.donate-inner { max-width: 720px; text-align: center; }
.donate-inner > h1 { display: none; } /* page-strip carries the title */
.donate-lead { font-size: 1.15rem; color: var(--gray-text); max-width: 560px; margin: 0 auto 2.4rem; }
.donate-card {
  background: var(--white); border-radius: var(--radius); padding: 2.4rem 2rem;
  box-shadow: var(--shadow); border-top: 4px solid var(--red); margin-bottom: 1.6rem;
}
.donate-card h2 { color: var(--navy); font-size: 1.5rem; margin-bottom: 1.2rem; }
.zelle-qr { width: 240px; height: auto; margin: 0 auto 1.3rem; }
.donate-card p { color: var(--gray-text); }
.donate-card-soon { border-top-color: var(--gray-line); background: #fafbfc; }
.donate-card-soon h2 { color: var(--gray-text); }
.donate-card-soon .btn { margin-top: 1rem; }
.tax-note { font-size: 0.85rem; color: var(--gray-text); margin-top: 1.6rem; line-height: 1.6; }

/* ============================================================
   About page
   ============================================================ */
.prose { padding: 4rem 0; }
.prose .container { max-width: 760px; }
.about-logo { display: block; width: min(300px, 62%); height: auto; margin: 0 auto 2rem; }
.prose h2 { color: var(--navy); font-size: 1.7rem; margin: 0 0 1rem; }
.prose p { color: var(--gray-text); margin-bottom: 1.1rem; }
.team { background: var(--gray-bg); padding: 4.5rem 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.member { background: var(--white); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow); }
.avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1rem;
  background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.8rem; font-weight: 600;
}
.member h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 0.2rem; }
.member .role { color: var(--red); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: 0.82rem; }
.transparency { padding: 4rem 0; text-align: center; }
.transparency .container { max-width: 760px; }
.transparency p { color: var(--gray-text); }

/* ============================================================
   Board of Directors page
   ============================================================ */
.board-page { padding: 3.5rem 0 4.5rem; }
.board-intro {
  max-width: 720px; margin: 0 auto 3rem; text-align: center;
  color: var(--gray-text); font-size: 1.12rem;
}
.board-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.board-member {
  background: var(--white); border: 1px solid var(--gray-line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.board-photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  background: var(--gray-bg); border-bottom: 3px solid var(--red);
}
.board-member h2 {
  font-size: 1.3rem; color: var(--navy); margin: 1.3rem 1.4rem 0.2rem;
}
.board-role {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px;
  font-size: 0.85rem; color: var(--red); margin: 0 1.4rem 0.9rem;
}
.board-bio { color: var(--gray-text); font-size: 0.97rem; margin: 0 1.4rem 1.6rem; }

/* ============================================================
   Legal pages
   ============================================================ */
.legal-page { padding: 3.5rem 0 4.5rem; }
.legal-page .container { max-width: 720px; }
.legal-page h2 { color: var(--navy); font-size: 1.35rem; margin: 2rem 0 0.6rem; }
.legal-page p, .legal-page li { color: var(--gray-text); margin-bottom: 0.9rem; }
.legal-page ul { padding-left: 1.3rem; margin-bottom: 0.9rem; }
.legal-updated { color: var(--gray-text); font-size: 0.9rem; font-style: italic; margin-bottom: 1.5rem; }

/* ============================================================
   Section helpers
   ============================================================ */
.star-divider { text-align: center; color: var(--red); font-size: 1.2rem; letter-spacing: 8px; padding: 0.5rem 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .board-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header-inner { min-height: 74px; }
  .brand-logo { width: 60px; height: 60px; }
  .nav-menu {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 0.5rem 1.25rem 1.25rem;
    box-shadow: 0 12px 24px rgba(6,21,46,0.35);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-donate { text-align: center; margin-top: 0.8rem; border: 2px solid var(--red); }
  .card-grid, .story-grid, .team-grid, .board-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .stats { gap: 2rem; }
  .stat { flex: 1 1 40%; }
}

@media (max-width: 520px) {
  .brand-logo { width: 54px; height: 54px; flex-shrink: 0; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 380px) {
  .brand span { font-size: 0.78rem; letter-spacing: 0.5px; }
  .brand { gap: 0.5rem; }
}
