:root{
  --bg: #0b1220;       /* hero/base dark */
  --page: #070b14;     /* page background */
  --panel: #0f172a;    /* card surface */
  --panel2: #111827;   /* band surface */
  --paper: #ffffff;    /* light surface (sparingly) */
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --line: rgba(255,255,255,0.12);

  --red: #c1142a;     /* IAFF-aligned red cue */
  --gold: #ffb339;    /* IAFF gold cue (use sparingly) */
  --charcoal: #111827;
  --slate: #334155;

  --radius: 18px;
  --shadow: 0 18px 45px rgba(2, 6, 23, 0.14);

  --container: 1160px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 680px at 20% -10%, rgba(193, 20, 42, 0.16), transparent 60%),
    radial-gradient(900px 700px at 90% 0%, rgba(255, 179, 57, 0.10), transparent 60%),
    radial-gradient(1200px 900px at 50% 20%, rgba(255,255,255,0.06), transparent 62%),
    linear-gradient(180deg, var(--page), var(--bg));
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Firefighter-themed “embers” band (subtle, not gimmicky) */
.ember-band{
  position: relative;
  padding: 42px 0 22px 0;
  background:
    radial-gradient(1000px 560px at 15% 10%, rgba(193,20,42,0.24), transparent 62%),
    radial-gradient(900px 520px at 85% 15%, rgba(255,179,57,0.16), transparent 64%),
    radial-gradient(900px 520px at 35% 95%, rgba(255,80,0,0.12), transparent 58%),
    linear-gradient(180deg, rgba(7,11,20,0.92), rgba(7,11,20,0.30));
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ember-band::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06), transparent 52%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 9px);
  opacity: 0.35;
  mix-blend-mode: overlay;
}

.fireline{
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(193,20,42,1), rgba(193,20,42,1), rgba(255,179,57,0.18));
  box-shadow: 0 10px 30px rgba(193,20,42,0.18);
}

.skip-link{
  position:absolute;
  left:-9999px;
  top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  z-index: 9999;
}
.skip-link:focus{ left: 12px; }

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(7,11,20,0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.site-header::before{
  content:"";
  display:block;
  height: 4px;
  background: linear-gradient(90deg, rgba(193,20,42,1), rgba(193,20,42,1), rgba(255,179,57,0.10));
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 220px;
}
.brand img{ height: 46px; width:auto; display:block; }
.brand-text{ display:flex; flex-direction:column; line-height:1.08; }
.brand-title{
  font-weight: 950;
  letter-spacing: 0.2px;
  font-size: 14px;
  color: rgba(255,255,255,0.92);
}
.brand-sub{
  margin-top: 4px;
  font-weight: 750;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}
.nav{
  display:flex;
  align-items:center;
  gap: 12px;
}
.nav a{
  padding: 10px 10px;
  border-radius: 12px;
  font-weight: 850;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.86);
}
.nav a:hover{
  background: rgba(255,255,255,0.08);
}
.nav a:focus{
  outline: 3px solid rgba(255,179,57,0.35);
  outline-offset: 2px;
}
.nav a[aria-current="page"]{
  background: rgba(255,255,255,0.10);
  color: #fff;
}
.nav .pill{
  background: rgba(255,255,255,0.08);
}
.nav .cta{
  background: linear-gradient(135deg, rgba(193, 20, 42, 1), rgba(17, 24, 39, 0.86));
  color: #fff;
}

.menu-btn{
  display:none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color:#fff;
}

/* Hero */
.hero{
  position: relative;
  color: #fff;
  background: var(--bg);
  overflow: clip;
}
.hero-media{
  position:absolute;
  inset:0;
  background: url("assets/img/hero_fireline.jpg") center/cover no-repeat;
  filter: saturate(1.02) contrast(1.06);
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  /* Higher contrast for legibility (fixes the washed-out text from the screenshot). */
  background: linear-gradient(90deg, rgba(11,18,32,0.92), rgba(11,18,32,0.45) 55%, rgba(11,18,32,0.78));
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  /* Secondary scrim to ensure CTA/pill contrast without a “black rectangle”. */
  background: radial-gradient(circle at 22% 40%, rgba(0,0,0,0.58), rgba(0,0,0,0.00) 58%);
  z-index: 1;
}
.hero-inner{
  position: relative;
  z-index: 2;
  min-height: clamp(520px, 70vh, 740px);
  padding: 52px 0;
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,0.86);
  justify-content: center;
}
.kicker .dot{
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(193,20,42,0.18);
}
.hero h1{
  margin: 18px 0 14px 0;
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.6px;
  text-shadow: 0 18px 40px rgba(0,0,0,0.30);
}
.hero p{
  margin:0;
  max-width: 64ch;
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 14px 30px rgba(0,0,0,0.26);
}
.hero-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  justify-content: center; /* requested */
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 850;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(7,11,20,0.52);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  cursor: pointer;
}
.btn.primary{
  border: 1px solid rgba(193, 20, 42, 0.35);
  background: linear-gradient(135deg, rgba(193, 20, 42, 1), rgba(17, 24, 39, 0.92));
}
.btn.secondary{
  background: rgba(7,11,20,0.44);
  border: 1px solid rgba(255,255,255,0.22);
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}
.btn:active{
  transform: translateY(0px);
}
.btn.light{
  color: #0f172a;
  background: var(--paper);
  border: 1px solid rgba(15,23,42,0.18);
  box-shadow: 0 16px 40px rgba(2,6,23,0.10);
}
.btn:focus{
  outline: 3px solid rgba(255, 179, 57, 0.45);
  outline-offset: 2px;
}

/* Alert bar */
.alertbar{
  display:none; /* toggle to flex when an alert is active */
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  background: linear-gradient(90deg, rgba(193, 20, 42, 1), rgba(17, 24, 39, 0.98));
  color:#fff;
}
.alertbar strong{ font-weight: 900; letter-spacing: 0.2px; }
.alertbar .alert-actions{
  display:flex;
  gap: 10px;
  align-items: center;
}
.alertbar .mini{
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  font-weight: 850;
}
.alertbar button{
  appearance:none;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.10);
  color:#fff;
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 850;
  cursor: pointer;
}

/* Sections */
section{
  padding: 44px 0;
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.section-head::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-2px;
  height: 3px;
  width: 160px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(193,20,42,1), rgba(193,20,42,1), rgba(255,179,57,0.18));
}
.section-head h2{
  margin:0;
  font-size: 26px;
  letter-spacing: -0.2px;
  color: var(--text);
}
.section-head p{
  margin:0;
  color: var(--muted);
  font-weight: 650;
  max-width: 72ch;
}

.grid3{ display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid2{ display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.card{
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17,24,39,0.86), rgba(15,23,42,0.92));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 45px rgba(0,0,0,0.28);
  overflow: hidden;
}
.card .pad{ padding: 16px; }
.card h3{
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.1px;
  color: rgba(255,255,255,0.92);
}
.meta{
  margin-top: 10px;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
  line-height: 1.45;
}
.meta small{
  display:inline-block;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
}

.thumb{
  height: 208px;
  background: #0b1220;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.count{
  display:flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
}
.count .n{
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.5px;
}
.count .lbl{
  font-weight: 850;
  color: var(--muted);
}

.band{
  background: linear-gradient(180deg, rgba(17,24,39,0.66), rgba(15,23,42,0.86));
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.callout{
  border-radius: 26px;
  background: radial-gradient(900px 500px at 20% 0%, rgba(193,20,42,0.16), transparent 55%),
              radial-gradient(900px 500px at 100% 0%, rgba(255,179,57,0.14), transparent 55%),
              rgba(15,23,42,0.92);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
}
.callout h3{ margin:0; font-size: 20px; letter-spacing: -0.2px; }
.callout p{ margin: 6px 0 0 0; color: var(--muted); font-weight: 650; line-height: 1.5; }
.callout .actions{ display:flex; gap: 10px; flex-wrap: wrap; }

/* Footer */
.site-footer{
  background: radial-gradient(900px 480px at 20% -10%, rgba(193,20,42,0.20), transparent 60%),
              radial-gradient(800px 500px at 90% 0%, rgba(255,179,57,0.12), transparent 60%),
              #050812;
  color: rgba(255,255,255,0.86);
  padding: 44px 0 34px 0;
  margin-top: 44px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}
.site-footer h4{
  margin:0 0 8px 0;
  color:#fff;
  font-size: 14px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.site-footer a{
  color: rgba(255,255,255,0.86);
  font-weight: 650;
}
.site-footer a:hover{
  color: #fff;
}
.fine{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.60);
  font-weight: 650;
  font-size: 13px;
  line-height: 1.45;
}

/* Page layout */
.page-hero{
  padding: 34px 0 18px 0;
}
.page-hero h1{
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.4px;
}
.page-hero p{
  margin: 10px 0 0 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.5;
  max-width: 78ch;
}

.prose{
  background: rgba(15,23,42,0.92);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.28);
}
.prose p{ margin: 0 0 12px 0; line-height: 1.65; color: rgba(255,255,255,0.84); }
.prose p:last-child{ margin-bottom: 0; }

.notice{
  border-radius: 18px;
  border: 1px solid rgba(193, 20, 42, 0.22);
  background: rgba(193, 20, 42, 0.10);
  padding: 14px;
  color: rgba(255,255,255,0.86);
}
.notice strong{ color: var(--red); }
.list{
  display:grid;
  gap:6px;
  font-weight:650;
  color: rgba(255,255,255,0.82);
  line-height:1.45;
}

/* Responsive */
@media (max-width: 980px){
  .grid3{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 840px){
  .menu-btn{ display:inline-flex; }
  .nav{
    position: absolute;
    right: 20px;
    top: 64px;
    width: min(420px, calc(100% - 40px));
    display:none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    background: rgba(7,11,20,0.94);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.45);
  }
  .nav.open{ display:flex; }
  .nav a{ padding: 12px 12px; }
}
@media (max-width: 700px){
  .brand-sub{ display:none; }
  .hero-actions{ justify-content:center; }
  .hero::after{
    /* Slightly stronger overlay on mobile. */
    background: linear-gradient(90deg, rgba(11,18,32,0.94), rgba(11,18,32,0.56) 55%, rgba(11,18,32,0.80));
  }
}
