/* Colorado State Fire Fighters Foundation — fundraising site
   Brand: navy + firefighter red + gold (sampled from logo) */

:root {
  --navy:        #1B2C5C;
  --navy-deep:   #0F1B40;
  --red:         #C8102E;
  --red-deep:    #9A0C24;
  --gold:        #F2C200;
  --ink:         #1A1A1A;
  --ink-soft:    #2A2A2A;
  --paper:       #FFFFFF;
  --paper-soft:  #F8F9FB;
  --paper-card:  #FFFFFF;
  --muted:       #5A5A5A;
  --muted-soft:  #8C8F97;
  --line:        rgba(15, 27, 64, 0.12);
  --line-soft:   rgba(15, 27, 64, 0.06);
  --shadow-sm:   0 1px 2px rgba(15, 27, 64, 0.06), 0 2px 8px rgba(15, 27, 64, 0.06);
  --shadow-md:   0 6px 16px rgba(15, 27, 64, 0.08), 0 16px 40px rgba(15, 27, 64, 0.06);
  --radius:      8px;
  --radius-lg:   14px;
  --maxw:        1180px;
  --pad-x:       clamp(1rem, 4vw, 2rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--red-deep); text-decoration: none; }
a:hover { color: var(--red); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  line-height: 1.65;
}

.text-center { text-align: center; }

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--soft  { background: var(--paper-soft); }
.section--navy  { background: var(--navy); color: var(--paper); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--paper); }
.section--navy .eyebrow { color: var(--gold); }
.section--navy .lede { color: rgba(255,255,255,0.85); }

/* === Skip link === */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--navy); color: var(--paper);
  padding: 0.75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* === Top bar === */
.topbar {
  background: var(--navy);
  color: var(--paper);
  font-size: 0.85rem;
  padding: 0.45rem 0;
  border-bottom: 3px solid var(--red);
}
.topbar__inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.topbar a { color: var(--paper); }
.topbar a:hover { color: var(--gold); text-decoration: none; }
.topbar__phone { font-weight: 600; }

/* === Header / nav === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.8rem; gap: 1rem;
}
.site-header__brand {
  display: flex; align-items: center; gap: 0.75rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.site-header__brand img { width: 44px; height: 44px; }
.site-header__brand:hover { text-decoration: none; color: var(--red-deep); }
.site-header__brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.site-header__brand-text .lg { font-size: 1.05rem; color: var(--navy); }
.site-header__brand-text .sm {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red); font-weight: 700;
}
@media (max-width: 599px) {
  .site-header__brand-text { display: none; }
}

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  width: 40px; height: 40px; border-radius: var(--radius);
  cursor: pointer; color: var(--navy);
}
.nav-toggle:hover { background: var(--paper-soft); }
@media (min-width: 900px) { .nav-toggle { display: none; } }

.site-nav { display: none; }
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.site-nav a {
  display: block; padding: 0.65rem 0;
  color: var(--navy); font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--red); text-decoration: none;
}
.site-nav .nav-cta {
  display: inline-block; margin-top: 0.5rem;
  padding: 0.65rem 1.2rem; background: var(--red);
  color: var(--paper); border-radius: var(--radius);
  font-weight: 700; border: none;
  letter-spacing: 0.02em;
}
.site-nav .nav-cta:hover { background: var(--red-deep); color: var(--paper); text-decoration: none; }
@media (min-width: 900px) {
  .site-nav { display: block !important; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 1.6rem; }
  .site-nav a { border: none; padding: 0.4rem 0; }
}
@media (max-width: 899px) {
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.75rem var(--pad-x) 1.25rem;
  }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
  letter-spacing: 0.01em;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); color: var(--paper); }
.btn--primary:hover { background: var(--red-deep); color: var(--paper); box-shadow: var(--shadow-md); }
.btn--navy { background: var(--navy); color: var(--paper); }
.btn--navy:hover { background: var(--navy-deep); color: var(--paper); }
.btn--ghost {
  background: transparent; color: var(--paper);
  border-color: rgba(255,255,255,0.5);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); color: var(--paper); border-color: var(--paper); }
.btn--outline {
  background: transparent; color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: var(--paper); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* === Hero === */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 20% 30%, rgba(200, 16, 46, 0.35), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(242, 194, 0, 0.18), transparent 50%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
}
.hero__inner {
  padding-block: clamp(4rem, 9vw, 7rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.4fr 1fr; gap: 4rem; }
}
.hero h1 { color: var(--paper); margin-bottom: 1rem; }
.hero .eyebrow { color: var(--gold); }
.hero .lede { color: rgba(255,255,255,0.88); max-width: 38em; }
.hero__ctas {
  display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.75rem;
  font-size: 0.82rem; color: rgba(255,255,255,0.7); font-weight: 600;
  letter-spacing: 0.05em;
}
.hero__badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.hero__logo {
  display: flex; justify-content: center;
}
.hero__logo img {
  width: 100%; max-width: 320px;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.3));
}

/* === Mission band === */
.mission-band {
  background: var(--paper-soft);
  border-top: 4px solid var(--red);
}
.mission-band__inner {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 800px) {
  .mission-band__inner { grid-template-columns: 1fr 2fr; gap: 4rem; }
}

/* === Feature cards (Families / Community / Legacy) === */
.features {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature-card {
  background: var(--paper-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature-card h3 {
  color: var(--red); font-size: 0.95rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin: 0 0 0.6rem; font-weight: 700;
}
.feature-card p { margin: 0; color: var(--ink); }

/* === Tier card grid === */
.tiers {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.tier {
  display: flex; flex-direction: column;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.tier:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tier__bar { height: 6px; background: var(--navy); }
.tier--accent .tier__bar { background: var(--red); }
.tier__body { padding: 1.5rem 1.5rem 1.75rem; flex: 1; display: flex; flex-direction: column; }
.tier__name {
  font-size: 0.95rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.tier--accent .tier__name { color: var(--red); }
.tier__amount {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  color: var(--navy); line-height: 1;
  margin: 0.2rem 0 0.85rem;
}
.tier__amount sub { font-size: 0.55em; font-weight: 700; color: var(--muted); vertical-align: baseline; }
.tier__cta {
  display: inline-block; align-self: flex-start;
  margin-top: auto;
  padding: 0.7rem 1.3rem;
  background: var(--navy); color: var(--paper);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}
.tier__cta:hover { background: var(--red); color: var(--paper); text-decoration: none; }
.tier--accent .tier__cta { background: var(--red); }
.tier--accent .tier__cta:hover { background: var(--red-deep); }

/* === Donate options (custom amount) === */
.donate-form {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}
.donate-form h2 { margin-top: 0; }
.amount-options {
  display: grid; gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  margin: 1rem 0 1.25rem;
}
.amount-options label {
  display: block;
}
.amount-options input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.amount-options .chip {
  display: block; text-align: center;
  padding: 0.85rem 0.5rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-weight: 700; color: var(--navy);
  cursor: pointer;
  transition: all 0.12s ease;
}
.amount-options input[type="radio"]:checked + .chip {
  border-color: var(--red);
  background: var(--red);
  color: var(--paper);
}
.amount-options .chip:hover {
  border-color: var(--navy);
}
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.field input, .field textarea, .field select {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}
.field--inline { flex-direction: row; align-items: center; gap: 0.5rem; }
.field--inline input { width: auto; }
.field--prefix {
  display: grid; grid-template-columns: auto 1fr; align-items: stretch;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--paper);
}
.field--prefix:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15); }
.field--prefix span {
  display: flex; align-items: center; padding: 0 0.85rem;
  background: var(--paper-soft); color: var(--muted); font-weight: 700;
  border-right: 1px solid var(--line);
}
.field--prefix input { border: none; padding-left: 0.7rem; }
.field--prefix input:focus { box-shadow: none; }

/* === Split (image + text) === */
.split {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* === Pull quote === */
.pull-quote {
  border-left: 5px solid var(--red);
  background: var(--paper-soft);
  padding: 1.5rem 1.75rem;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 1.5rem 0;
}

/* === CTA band === */
.cta-band {
  background: var(--navy);
  color: var(--paper);
  text-align: center;
  border-top: 4px solid var(--gold);
}
.cta-band h2 { color: var(--paper); }
.cta-band .eyebrow { color: var(--gold); }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 38em; margin-left: auto; margin-right: auto; }

/* === Footer === */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
  font-size: 0.95rem;
}
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: var(--paper); }
.site-footer__grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 {
  color: var(--paper); font-size: 0.85rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin: 0 0 1rem;
}
.site-footer__brand {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem;
}
.site-footer__brand img { width: 56px; height: 56px; }
.site-footer__brand strong {
  color: var(--paper); font-size: 1.1rem; line-height: 1.2;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.5rem; }
.site-footer__legal {
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.8rem; color: rgba(255,255,255,0.6);
}
.site-footer__legal a { color: rgba(255,255,255,0.7); }
.site-footer__legal a:hover { color: var(--gold); }

/* === Breadcrumb === */
.breadcrumb {
  font-size: 0.85rem; color: var(--muted);
  padding-block: 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* === Stat strip === */
.stat-strip {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  text-align: center;
}
.stat-strip__item .num {
  display: block;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800; color: var(--red); line-height: 1;
}
.stat-strip__item .label {
  display: block; margin-top: 0.35rem;
  font-size: 0.85rem; color: var(--muted);
  letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600;
}

/* === Utility === */
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
