/* ==========================================================================
   PFAM — Professional Firefighters Association of Midland
   ========================================================================== */

:root {
  --red: #C8202F;
  --red-dark: #9C1522;
  --yellow: #FFC42C;
  --black: #17130F;
  --charcoal: #221D19;
  --white: #FAF8F5;
  --cream: #F3EEE7;
  --gray: #6b645c;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-condensed: 'Bebas Neue', var(--font-display);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
  --header-h: 84px;

  --ease: cubic-bezier(.22,.68,0,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--yellow); color: var(--black);
  padding: 12px 18px; z-index: 999; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; }
p { line-height: 1.7; color: var(--charcoal); margin: 0 0 1em; }

.section-label {
  font-family: var(--font-condensed);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--red);
  margin: 0 0 10px;
  font-weight: 400;
}
.section-label--light { color: var(--yellow); }

.section-heading { margin-bottom: 48px; max-width: 640px; }
.section-heading h2 { font-size: clamp(28px, 3.6vw, 42px); }

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .03em;
  text-decoration: none;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  text-transform: uppercase;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(200,32,47,.55); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.65); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); transform: translateY(-2px); }
.btn-small { padding: 10px 20px; font-size: 12px; }
.btn:active { transform: translateY(0) scale(.98); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(23,19,15,.08);
  transition: box-shadow .35s var(--ease), padding .35s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px -10px rgba(23,19,15,.25);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { height: 52px; width: auto; transition: height .35s var(--ease); }
.is-scrolled .brand-mark { height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: var(--black); font-family: var(--font-condensed); font-size: 22px; letter-spacing: .05em; }
.brand-text small { color: var(--red); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  color: var(--black); text-decoration: none; font-size: 14px; font-weight: 600;
  position: relative; padding: 6px 0; opacity: .85;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--red); transition: width .3s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 24px; background: var(--black); transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--black);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 38% 42%;
  transform: scale(1.08);
  filter: brightness(.5) saturate(.85);
  will-change: transform;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 46%, rgba(15,12,9,.55) 0%, rgba(15,12,9,0) 100%),
    linear-gradient(180deg, rgba(15,12,9,.75) 0%, rgba(15,12,9,.58) 42%, rgba(15,12,9,.92) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: var(--white);
  max-width: 900px; padding: 0 24px;
}
.eyebrow {
  font-family: var(--font-condensed);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--yellow); font-size: 16px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 68px);
  color: var(--white);
  text-wrap: balance;
}
.hero-tagline {
  color: var(--white); opacity: .92;
  font-size: clamp(16px, 2vw, 20px);
  margin: 22px 0 34px;
  letter-spacing: .02em;
}
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.75);
  border-radius: 20px; z-index: 2;
}
.scroll-cue span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: var(--yellow);
  animation: scrollCue 1.8s infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 22px; }
}

/* ==========================================================================
   MISSION
   ========================================================================== */
.mission { padding: 110px 0; text-align: center; background: var(--white); }
.mission-statement {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 36px);
  line-height: 1.45;
  max-width: 900px; margin: 0 auto;
  color: var(--black);
  font-weight: 600;
}
.mission-statement em {
  font-style: normal; color: var(--red);
  position: relative;
}

/* ==========================================================================
   PILLARS
   ========================================================================== */
.pillars { padding: 100px 0 120px; background: var(--cream); }
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.pillar-card {
  background: var(--white);
  padding: 38px 28px;
  border-top: 4px solid var(--red);
  box-shadow: 0 14px 34px -20px rgba(23,19,15,.25);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.pillar-card:nth-child(even) { border-top-color: var(--yellow); }
.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 44px -18px rgba(23,19,15,.32);
}
.pillar-icon {
  width: 54px; height: 54px; margin-bottom: 20px;
  color: var(--red);
}
.pillar-card:nth-child(even) .pillar-icon { color: var(--black); }
.pillar-icon svg {
  width: 100%; height: 100%;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.pillar-card h3 { font-size: 21px; margin-bottom: 12px; }
.pillar-card p { font-size: 14.5px; color: var(--gray); margin: 0; }

/* ==========================================================================
   ALWAYS READY BANNER
   ========================================================================== */
.banner {
  position: relative;
  height: 68vh; min-height: 420px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.banner-media { position: absolute; inset: 0; }
.banner-media img {
  width: 100%; height: 120%; object-fit: cover; object-position: 50% 20%;
  filter: grayscale(.55) sepia(.35) saturate(1.5) contrast(1.05);
  will-change: transform;
}
.banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,19,15,.55), rgba(156,21,34,.55));
  mix-blend-mode: multiply;
}
.banner::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(17,13,10,.35); z-index: 1;
}
.banner-content {
  position: relative; z-index: 2; text-align: center; color: var(--white);
  max-width: 720px; padding: 0 24px;
}
.banner-content h2 {
  font-family: var(--font-condensed);
  letter-spacing: .04em;
  font-size: clamp(38px, 6vw, 64px);
  color: var(--white);
  margin-bottom: 18px;
}
.banner-content p { color: rgba(255,255,255,.92); font-size: 17px; }

/* ==========================================================================
   FUNDRAISERS
   ========================================================================== */
.fundraisers { padding: 110px 0; background: var(--white); }
.fundraiser-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.fundraiser-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  min-height: 460px;
  display: flex; align-items: flex-end;
  color: var(--white);
  isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  box-shadow: 0 20px 40px -22px rgba(23,19,15,.35);
}
.fundraiser-card:hover { transform: translateY(-6px); box-shadow: 0 30px 54px -20px rgba(23,19,15,.42); }
.fundraiser-media { position: absolute; inset: 0; z-index: -2; }
.fundraiser-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.fundraiser-card:hover .fundraiser-media img { transform: scale(1.06); }
.fundraiser-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(15,12,9,.92) 0%, rgba(15,12,9,.3) 62%, rgba(15,12,9,.18) 100%);
}
.fundraiser-body { position: relative; z-index: 1; padding: 40px; }
.fundraiser-event-logo { height: 44px; width: auto; margin-bottom: 18px; opacity: .95; }
.fundraiser-body h3 {
  font-family: var(--font-body); font-weight: 800; letter-spacing: -.01em;
  font-size: clamp(21px, 2.2vw, 26px); line-height: 1.25;
  color: var(--white); margin-bottom: 14px;
}
.fundraiser-quote { color: var(--yellow); font-style: italic; font-family: var(--font-display); font-size: 16px; margin-bottom: 24px; }

/* ==========================================================================
   FUNDING / PAC
   ========================================================================== */
.funding { background: var(--black); padding: 110px 0; }
.funding-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
.funding-col h2 { color: var(--white); font-size: clamp(24px,2.8vw,34px); margin-bottom: 18px; }
.funding-col p { color: rgba(255,255,255,.8); }
.funding-fineprint { font-size: 13.5px; color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; margin-top: 4px; }

/* ==========================================================================
   BENEVOLENCE FORM
   ========================================================================== */
.benevolence { padding: 110px 0 130px; background: var(--cream); }
.benevolence-grid {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start;
}
.benevolence-foundation-logo { height: 96px; width: auto; margin-bottom: 22px; }
.benevolence-intro h2 { font-size: clamp(26px,3vw,38px); margin-bottom: 18px; }
.benevolence-photo {
  margin-top: 30px; width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 4px; box-shadow: 0 20px 40px -22px rgba(23,19,15,.35);
}

.benevolence-form {
  background: var(--white);
  padding: 44px;
  border-radius: 4px;
  box-shadow: 0 24px 60px -28px rgba(23,19,15,.3);
}
.benevolence-form fieldset {
  border: none; padding: 0; margin: 0 0 26px;
}
.benevolence-form legend {
  font-weight: 700; font-size: 13.5px; letter-spacing: .01em;
  margin-bottom: 10px; padding: 0; color: var(--black);
}
.benevolence-form legend span { font-weight: 400; color: var(--gray); }
.benevolence-form legend .req { color: var(--red); font-weight: 600; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--gray); margin-bottom: 6px; }
.field label .req { color: var(--red); }

input[type="text"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1.5px solid #ddd6cc;
  border-radius: 3px;
  background: var(--white);
  color: var(--black);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(200,32,47,.12);
}
select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b645c' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}

.btn-submit { width: 100%; padding: 17px; font-size: 15px; }
.form-note { font-size: 12.5px; color: var(--gray); text-align: center; margin: 14px 0 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--charcoal); color: var(--white); padding-top: 70px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand p { color: rgba(255,255,255,.85); margin: 0; font-family: var(--font-display); font-size: 18px; }
.footer-sub { color: var(--yellow) !important; font-size: 12.5px !important; letter-spacing: .1em; text-transform: uppercase; margin-top: 6px !important; font-family: var(--font-body) !important; }
.footer-logo { width: 92px; margin-bottom: 18px; background: var(--white); border-radius: 6px; padding: 10px; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { color: rgba(255,255,255,.8); text-decoration: none; font-size: 14px; transition: color .25s; }
.footer-nav a:hover { color: var(--yellow); }
.footer-bottom { padding: 22px 0; }
.footer-bottom p { color: rgba(255,255,255,.5); font-size: 12.5px; margin: 0; text-align: center; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .fundraiser-grid { grid-template-columns: 1fr; }
  .funding-grid { grid-template-columns: 1fr; gap: 44px; }
  .benevolence-grid { grid-template-columns: 1fr; }
  .benevolence-photo { display: none; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-small { display: none; }

  .site-header.nav-open .main-nav {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 20px 28px 28px; gap: 18px;
    box-shadow: 0 12px 24px -12px rgba(23,19,15,.25);
  }
  .site-header.nav-open .main-nav a { opacity: 1; }
  .site-header.nav-open .header-actions .btn-small { display: inline-flex; margin-top: 4px; }

  .pillar-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .benevolence-form { padding: 30px 24px; }
  .footer-inner { flex-direction: column; }
}
