/* ==========================================================================
   Claypool Volunteer Fire Department
   styles.css — single stylesheet for the whole site
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  --red:        #c8102e;
  --red-dark:   #97101f;
  --red-deep:   #6d0a16;
  --ink:        #14161a;
  --ink-soft:   #1f242b;
  --slate:      #4a525d;
  --slate-light:#78828f;
  --line:       #e2ddd4;
  --cream:      #fbf8f3;
  --cream-deep: #f3ede3;
  --white:      #ffffff;
  --gold:       #c6a25c;

  --font-display: "Oswald", "Haettenschweiler", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;

  --wrap: 1140px;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(20, 22, 26, .08), 0 1px 2px rgba(20, 22, 26, .06);
  --shadow-md: 0 4px 16px rgba(20, 22, 26, .10), 0 2px 4px rgba(20, 22, 26, .06);
  --shadow-lg: 0 12px 40px rgba(20, 22, 26, .16);
}

/* --- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red-dark); }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .01em;
  margin: 0 0 .5em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; letter-spacing: .04em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* --- Layout helpers ----------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.wrap--narrow { max-width: 780px; }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2.25rem, 4vw, 3.25rem) 0; }
.section--cream { background: var(--cream-deep); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: #d8dce2; }
.section--ink h2, .section--ink h3 { color: #fff; }

.section-head { max-width: 700px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 .6rem;
  font-weight: 500;
}
.section--ink .eyebrow { color: var(--gold); }

.lede { font-size: 1.15rem; color: var(--slate); }
.section--ink .lede { color: #b9c0c9; }

.rule {
  width: 60px; height: 4px;
  background: var(--red);
  border: 0; margin: 0 0 1.5rem;
}
.center .rule { margin-inline: auto; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .85rem 1.9rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .12s ease, background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark:hover { background: #000; color: #fff; }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

.btn--lg { font-size: 1.15rem; padding: 1.05rem 2.4rem; }
.btn--block { display: block; width: 100%; text-align: center; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.center .btn-row, .btn-row.center { justify-content: center; }

/* --- Emergency strip ---------------------------------------------------- */
.alert-strip {
  background: var(--ink);
  color: #fff;
  font-size: .9rem;
  padding: .55rem 0;
  text-align: center;
  letter-spacing: .02em;
}
.alert-strip strong { color: #fff; }
.alert-strip .dot { color: var(--red); font-weight: 700; margin: 0 .5rem; }
.alert-strip a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* --- Site header -------------------------------------------------------- */
.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand img { width: 58px; height: 58px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-weight: 600;
}
.brand-sub {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate-light);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: .5rem .7rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { display: block; }

.nav ul {
  display: flex;
  align-items: center;
  gap: .3rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav a {
  display: block;
  font-family: var(--font-display);
  font-size: .93rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: .55rem .8rem;
  border-radius: var(--radius);
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--red); background: var(--cream); }
.nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }

.nav .nav-cta a,
.nav .nav-cta a[aria-current="page"] {
  background: var(--red);
  color: #fff;
  border-bottom-color: transparent;
  margin-left: .5rem;
  padding-inline: 1.3rem;
}
.nav .nav-cta a:hover { background: var(--red-dark); color: #fff; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/antique-engine.jpg");
  background-size: cover;
  background-position: center 58%;
  filter: grayscale(.35);
  opacity: .3;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,22,26,.72) 0%, rgba(20,22,26,.55) 45%, rgba(20,22,26,.9) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(3.5rem, 9vw, 7rem) 0;
  text-align: center;
}
.hero-patch {
  width: clamp(120px, 18vw, 168px);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.5));
  border-radius: 50%;
}
.hero h1 { color: #fff; margin-bottom: .35rem; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.hero-since {
  font-family: var(--font-display);
  font-size: clamp(.85rem, 2vw, 1.05rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.hero p.hero-lede {
  max-width: 640px;
  margin: 0 auto 2.2rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: #e5e8ec;
}

/* --- Page banner (interior pages) --------------------------------------- */
.page-banner {
  background: var(--ink);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4.25rem) 0;
  border-bottom: 5px solid var(--red);
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/antique-engine.jpg");
  background-size: cover;
  background-position: center 60%;
  opacity: .13;
  filter: grayscale(.6);
}
.page-banner .wrap { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; margin-bottom: .3rem; }
.page-banner p { color: #c3cad3; max-width: 620px; font-size: 1.1rem; margin: 0; }
.page-banner .eyebrow { color: var(--gold); }

/* --- Cards -------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--slate); }
.card-icon {
  width: 44px; height: 44px;
  color: var(--red);
  margin-bottom: 1rem;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1;
  color: var(--red);
  display: block;
  margin-bottom: .35rem;
}
.section--ink .stat-num { color: var(--gold); }
.stat-label {
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--slate);
}
.section--ink .stat-label { color: #aab2bc; }

/* --- Split media/text --------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-media { grid-template-columns: 1.2fr 1fr; }
}
.split figure { margin: 0; }
.split img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 6px solid var(--white);
}
.split figcaption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .92rem;
  color: var(--slate-light);
  margin-top: .7rem;
}

/* --- Donate band -------------------------------------------------------- */
.band-red {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-deep) 100%);
  color: #fff;
  text-align: center;
}
.band-red h2 { color: #fff; }
.band-red p { color: #f6d9dd; }
.band-red .lede { color: #f6d9dd; }

/* --- Amount picker ------------------------------------------------------ */
.amounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.amount-card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .16s, transform .12s, box-shadow .16s;
  display: block;
}
.amount-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.amount-value {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--red);
  display: block;
  line-height: 1;
  margin-bottom: .4rem;
}
.amount-note { font-size: .88rem; color: var(--slate); line-height: 1.45; display: block; }

/* --- Timeline ----------------------------------------------------------- */
.timeline { position: relative; margin: 0; padding: 0 0 0 2.5rem; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: .55rem; top: .5rem; bottom: .5rem;
  width: 3px;
  background: linear-gradient(var(--red), var(--gold));
  border-radius: 2px;
}
.timeline li { position: relative; padding-bottom: 2.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -2.5rem; top: .45rem;
  width: 15px; height: 15px;
  background: var(--white);
  border: 4px solid var(--red);
  border-radius: 50%;
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--red);
  display: block;
  line-height: 1.1;
  margin-bottom: .2rem;
}
.timeline-title { font-weight: 700; display: block; margin-bottom: .3rem; }
.timeline p { color: var(--slate); margin: 0; }

/* --- Event cards -------------------------------------------------------- */
.event {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.event-date {
  background: var(--ink);
  color: #fff;
  padding: 1rem;
  text-align: center;
  font-family: var(--font-display);
  line-height: 1.05;
}
.event-month {
  display: block;
  font-size: .85rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.event-day { display: block; font-size: 2.2rem; }
.event-body { padding: 1.5rem; flex: 1; }
.event-body h3 { margin-bottom: .4rem; }
.event-meta {
  font-size: .9rem;
  color: var(--slate-light);
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: .8rem;
}
.event-body p { color: var(--slate); }

/* --- FAQ / details ------------------------------------------------------ */
.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: .85rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--red);
  line-height: 1;
  flex-shrink: 0;
}
.faq[open] summary::after { content: "\2013"; }
.faq summary:hover { background: var(--cream); }
.faq-body { padding: 0 1.35rem 1.35rem; color: var(--slate); }

/* --- Info list ---------------------------------------------------------- */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.info-list li:last-child { border-bottom: 0; }
.info-list svg { width: 24px; height: 24px; color: var(--red); flex-shrink: 0; margin-top: .25rem; }
.info-list strong {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .9rem;
  color: var(--slate-light);
  font-weight: 500;
}
.info-list a { text-decoration: none; font-weight: 600; }
.info-list a:hover { text-decoration: underline; }

/* --- Checklist ---------------------------------------------------------- */
.checklist { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .7rem;
  color: var(--slate);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .55rem;
  width: 10px; height: 10px;
  background: var(--red);
  transform: rotate(45deg);
}
.section--ink .checklist li { color: #c3cad3; }
.section--ink .checklist li::before { background: var(--gold); }

/* --- Callout ------------------------------------------------------------ */
.callout {
  background: var(--white);
  border-left: 5px solid var(--gold);
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 1.75rem 0;
}
.callout p { color: var(--slate); }
.callout strong { color: var(--ink); }

.quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--ink);
  border-left: 5px solid var(--red);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

/* --- Map ---------------------------------------------------------------- */
.map-embed {
  border: 6px solid var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  line-height: 0;
}
.map-embed iframe { width: 100%; height: 380px; border: 0; }

/* --- Form --------------------------------------------------------------- */
.form-grid { display: grid; gap: 1.15rem; }
@media (min-width: 640px) { .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; } }

.field label {
  display: block;
  font-family: var(--font-display);
  font-size: .88rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: .4rem;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem .9rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--red);
  outline: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.req { color: var(--red); }
.form-note { font-size: .9rem; color: var(--slate-light); }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #aab2bc;
  padding: 3.5rem 0 0;
  font-size: .96rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  padding-bottom: 2.5rem;
}
.site-footer h4 {
  color: #fff;
  letter-spacing: .12em;
  margin-bottom: 1rem;
  font-size: .95rem;
}
.site-footer a { color: #d3d8de; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img {
  width: 74px; height: 74px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  flex-shrink: 0;
}
.footer-brand-name {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.15rem;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: .3rem;
  display: block;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .55rem; }

.footer-bottom {
  border-top: 1px solid #2b3138;
  padding: 1.4rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  font-size: .87rem;
  color: #79828d;
}

.footer-emergency {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: .9rem 1rem;
  font-family: var(--font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 1rem;
}

/* --- Mobile nav --------------------------------------------------------- */
/* Collapses to the hamburger at 1040px so the seven nav items never crowd the
   logo on midsize laptops and tablets. */
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 4px solid var(--red);
    box-shadow: var(--shadow-lg);
    padding: .5rem 1.25rem 1.25rem;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a {
    padding: .95rem .5rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav a[aria-current="page"] { border-bottom-color: var(--red); }
  .nav .nav-cta a,
  .nav .nav-cta a[aria-current="page"] {
    margin: .9rem 0 0;
    text-align: center;
    border-radius: var(--radius);
  }
  .site-header { position: relative; }
  .header-inner { position: relative; }
  .brand img { width: 50px; height: 50px; }
  .brand-name { font-size: 1rem; }
  .brand-sub { font-size: .65rem; }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
}

@media print {
  .site-header, .alert-strip, .nav-toggle, .footer-emergency { display: none; }
  body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
