/* ===========================================================
   Elm Mott Fire Rescue — Station 36
   Shared stylesheet
   Palette: navy #0b2545 · red #b8222a · gold #c9a227
   =========================================================== */

:root {
  --navy: #0b2545;
  --navy-deep: #071a33;
  --navy-soft: #13315c;
  --red: #b8222a;
  --red-bright: #d62b34;
  --gold: #c9a227;
  --gold-soft: #e3c768;
  --cream: #f6f3ec;
  --paper: #ffffff;
  --ink: #1c2330;
  --ink-soft: #4a5568;
  --line: #e2ddd2;

  --shadow-sm: 0 2px 8px rgba(7, 26, 51, 0.08);
  --shadow-md: 0 10px 30px rgba(7, 26, 51, 0.14);
  --shadow-lg: 0 24px 60px rgba(7, 26, 51, 0.22);

  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-bright); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--navy);
}
.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
}
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--gold);
}
.eyebrow.on-light { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-bright); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: #cdd7e6;
  font-size: 0.82rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 7px;
}
.topbar a { color: #cdd7e6; }
.topbar a:hover { color: #fff; }
.topbar .topbar-right { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar .tag { color: var(--gold-soft); letter-spacing: 0.04em; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 3px solid var(--gold);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.28);
}
.brand .brand-text { line-height: 1.05; }
.brand .brand-text strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  font-size: 1.25rem;
}
.brand .brand-text span {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.92rem;
  color: #d7deea;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: var(--navy-soft); }
.nav-links a.active { color: var(--gold); }
.nav-links .btn { margin-left: 6px; padding: 0.6rem 1.1rem; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,26,51,0.78) 0%, rgba(7,26,51,0.4) 50%, rgba(7,26,51,0.15) 100%),
    var(--hero-img, none);
  background-size: cover, cover;
  background-position: center, var(--hero-pos, center);
}
.page-hero .wrap { position: relative; padding-block: 78px; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); text-transform: uppercase; }
.page-hero p { max-width: 640px; color: #d7deea; margin-top: 12px; font-size: 1.08rem; }
.page-hero .accent-line {
  width: 64px; height: 4px; background: var(--gold); margin-bottom: 20px;
}

/* ---------- Sections ---------- */
.section { padding-block: 84px; }
.section.tight { padding-block: 56px; }
.section.navy { background: var(--navy); color: #e7ecf3; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section.cream { background: var(--cream); }
.section.paper { background: var(--paper); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  text-transform: uppercase;
  margin-top: 10px;
}
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.08rem; }
.section.navy .section-head p { color: #b7c2d4; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .card-icon {
  width: 46px; height: 46px; border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold);
  font-family: var(--display); font-weight: 700; font-size: 1.2rem;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.3rem; text-transform: uppercase; margin-bottom: 8px; color: var(--navy); }
.section.navy .card h3 { color: var(--navy); }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Split blocks ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse > div:first-child { order: 2; }
.split .media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split .copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); text-transform: uppercase; }
.split .copy p { margin-top: 16px; color: var(--ink-soft); }
.section.navy .split .copy p { color: #b7c2d4; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--navy); padding: 30px 24px; text-align: center; }
.stat .num {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--gold); line-height: 1;
}
.stat .label {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.78rem; color: #b7c2d4; margin-top: 8px;
}

/* ---------- Sponsor tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tier {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--navy);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.tier.bronze { border-top-color: #a8703c; }
.tier.silver { border-top-color: #8a93a3; }
.tier.gold   { border-top-color: var(--gold); }
.tier.basic  { border-top-color: var(--navy); }
.tier .tier-name {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--navy); font-size: 1.05rem;
}
.tier .tier-price {
  font-family: var(--display); font-weight: 700;
  font-size: 2.2rem; color: var(--red); margin: 6px 0 16px;
}
.tier ul { list-style: none; display: grid; gap: 10px; }
.tier li {
  font-size: 0.94rem; color: var(--ink-soft);
  padding-left: 22px; position: relative;
}
.tier li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; background: var(--gold);
  transform: rotate(45deg);
}
.tier-exclusive {
  background: var(--navy); color: #fff;
}
.tier-exclusive .tier-name { color: var(--gold); }
.tier-exclusive .tier-price { color: #fff; }
.tier-exclusive li { color: #cdd7e6; }
.tier-flag {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.7rem; color: var(--gold); margin-top: 4px; margin-bottom: 14px;
}

/* ---------- Featured / exclusive two-up ---------- */
.feature-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }

/* ---------- Leadership ---------- */
.leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.leader {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.leader .photo {
  aspect-ratio: 4/5; background: var(--navy-soft);
  background-size: cover; background-position: center top;
}
.leader .leader-body { padding: 22px; }
.leader .role { color: var(--red); font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; }
.leader h3 { font-size: 1.35rem; margin: 4px 0 8px; }
.leader p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(rgba(7,26,51,0.9), rgba(7,26,51,0.9)),
    var(--cta-img, var(--navy));
  background-size: cover; background-position: center;
  color: #fff; text-align: center;
}
.cta-band .wrap { padding-block: 80px; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); text-transform: uppercase; }
.cta-band p { color: #cdd7e6; max-width: 600px; margin: 16px auto 28px; font-size: 1.1rem; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--display); text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 0.82rem; color: var(--navy); margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); font-family: var(--body); font-size: 1rem;
  background: var(--cream);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold); border-color: var(--gold); background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- Donate amounts ---------- */
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.amount-btn {
  border: 2px solid var(--line); background: var(--cream);
  border-radius: var(--radius); padding: 16px; text-align: center; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--navy);
  transition: 0.15s;
}
.amount-btn:hover, .amount-btn.active { border-color: var(--red); background: #fff; color: var(--red); }

/* ---------- Info / contact list ---------- */
.info-list { display: grid; gap: 18px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item .dot {
  width: 40px; height: 40px; flex: none; border-radius: var(--radius);
  background: var(--navy); color: var(--gold); display: grid; place-items: center;
  font-family: var(--display); font-weight: 700;
}
.info-item .label { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; color: var(--ink-soft); }
.info-item .value { font-size: 1.05rem; color: var(--ink); font-weight: 600; }

/* ---------- Steps / timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 18px; }
.step .step-num {
  font-family: var(--display); font-weight: 700; font-size: 2.6rem;
  color: var(--gold); line-height: 1;
}
.step h3 { font-size: 1.25rem; text-transform: uppercase; margin: 8px 0; }
.step p { color: var(--ink-soft); font-size: 0.96rem; }
.section.navy .step p { color: #b7c2d4; }

/* ---------- Pull quote ---------- */
.pull {
  border-left: 4px solid var(--gold); padding-left: 24px;
  font-family: var(--display); font-weight: 500; font-size: 1.5rem;
  color: var(--navy); line-height: 1.3;
}
.section.navy .pull { color: #fff; }

/* ---------- Banner notice ---------- */
.notice {
  background: var(--red); color: #fff; text-align: center;
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em;
  padding: 10px; font-size: 0.92rem;
}
.notice a { color: #fff; text-decoration: underline; }

/* ---------- Countdown ---------- */
.countdown {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.cd-box {
  background: var(--navy-deep);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 20px 8px 14px;
  min-width: 104px;
}
.cd-num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-label {
  display: block;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: #b7c2d4;
}
@media (max-width: 520px) {
  .cd-box { min-width: 70px; padding: 14px 6px 10px; }
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery figure {
  position: relative; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin: 0;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(7,26,51,0.92));
  color: #fff; font-size: 0.82rem; padding: 28px 14px 12px;
  font-family: var(--body); opacity: 0; transition: opacity 0.25s ease;
}
.gallery figure:hover figcaption { opacity: 1; }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-wide { grid-column: span 2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #aeb9c9; padding-block: 56px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; margin-bottom: 16px; }
.site-footer a { color: #aeb9c9; }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; display: grid; gap: 9px; font-size: 0.95rem; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.footer-brand img { width: 56px; height: 56px; }
.footer-brand strong { color: #fff; font-family: var(--display); text-transform: uppercase; display: block; font-size: 1.1rem; }
.footer-brand span { font-size: 0.75rem; letter-spacing: 0.18em; color: var(--gold); text-transform: uppercase; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.85rem; color: #7e8ba0;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4, .tiers, .leaders, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > div:first-child { order: 0; }
  .feature-tiers { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .g-wide { grid-column: span 2; }
  .gallery .g-tall { grid-row: span 1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); flex-direction: column; align-items: stretch;
    gap: 0; padding: 10px 16px 18px; border-bottom: 3px solid var(--gold);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; border-bottom: 1px solid var(--navy-soft); }
  .nav-links .btn { margin: 10px 0 0; justify-content: center; }
  .topbar .wrap { justify-content: center; }
  .topbar .topbar-left { display: none; }
  .grid-2, .grid-3, .grid-4, .tiers, .leaders, .steps, .stats, .amounts, .field-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery .g-wide, .gallery .g-tall { grid-column: span 1; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
