/* ── WILDFIRE PROTECTIVE SYSTEMS — SHARED STYLESHEET ── */
:root {
  --fire: #E8490F;
  --ember: #F7A325;
  --ash: #111111;
  --dark: #1A1A1A;
  --smoke: #242424;
  --white: #F5F0EB;
  --muted: #8A8480;
  --light: #C8C0B8;
  --accent: #4ECDC4;
  --rule: #2A2A2A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--ash);
  color: var(--white);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(17,17,17,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #222;
  padding: 0 48px; height: 66px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 20px; letter-spacing: 2px; color: var(--white);
  text-decoration: none;
}
.nav-logo span { color: var(--fire); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 12px; color: var(--muted); text-decoration: none;
  letter-spacing: 1px; transition: color .2s; padding: 4px 0;
  border-bottom: 2px solid transparent; transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ember); border-bottom-color: var(--fire); }
.nav-cta {
  background: var(--fire); color: var(--white); border: none;
  padding: 10px 22px; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; transition: background .2s; cursor: pointer;
}
.nav-cta:hover { background: #C93B0A; }
.nav-mobile-btn { display: none; background: none; border: none; color: var(--white); font-size: 22px; cursor: pointer; }

/* ── PAGE HERO ── */
.page-hero {
  min-height: 42vh; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 120px 80px 60px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.page-hero::before {
  content: ''; position: absolute; right: -150px; top: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,73,15,.12) 0%, transparent 65%);
}
.page-hero .ph-label {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 9px; letter-spacing: 5px; color: var(--fire);
  text-transform: uppercase; margin-bottom: 14px; display: block;
}
.page-hero h1 {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: clamp(42px, 6vw, 86px);
  line-height: .95; letter-spacing: 1px; margin-bottom: 20px;
}
.page-hero h1 span { color: var(--fire); }
.page-hero p {
  font-size: 16px; color: var(--muted); max-width: 620px;
  line-height: 1.7; font-weight: 300;
}

/* ── MAIN CONTENT ── */
main { padding: 80px; }
.section { margin-bottom: 80px; }
.section-label {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 9px; letter-spacing: 5px; color: var(--fire);
  text-transform: uppercase; display: block; margin-bottom: 14px;
}
.section-title {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: clamp(32px, 4vw, 58px);
  line-height: .96; letter-spacing: 1px; margin-bottom: 24px;
}
.section-title span { color: var(--fire); }
.section-body {
  font-size: 15px; color: var(--light);
  max-width: 700px; line-height: 1.75; font-weight: 300;
}

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

.card {
  background: var(--smoke); padding: 32px;
  border-left: 4px solid transparent; transition: border-color .2s;
}
.card:hover { border-left-color: var(--fire); }
.card h3 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.card p { font-size: 13px; color: var(--muted); line-height: 1.7; }

.stat-card { background: var(--smoke); padding: 28px; text-align: center; border-top: 3px solid var(--fire); }
.stat-card .sn {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 44px; color: var(--fire); line-height: 1; display: block; margin-bottom: 8px;
}
.stat-card .sd { font-size: 12px; color: var(--muted); line-height: 1.5; }
.stat-card.hi { background: var(--fire); border-top-color: var(--ember); }
.stat-card.hi .sn { color: var(--white); }
.stat-card.hi .sd { color: rgba(255,255,255,.75); }

/* ── BUTTONS ── */
.btn { display: inline-block; padding: 14px 32px; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; transition: all .2s; cursor: pointer; border: none; }
.btn-fire { background: var(--fire); color: var(--white); }
.btn-fire:hover { background: #C93B0A; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid #333; }
.btn-outline:hover { border-color: var(--ember); color: var(--ember); }
.btn-accent { background: var(--accent); color: var(--ash); }
.btn-accent:hover { background: #3DBDB5; }

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: var(--smoke); border-left: 4px solid var(--fire);
  padding: 24px 28px; margin: 24px 0;
}
.highlight-box.accent { border-left-color: var(--accent); }
.highlight-box.ember { border-left-color: var(--ember); }
.highlight-box p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ── SOURCE NOTE ── */
.src-note {
  font-size: 9.5px; color: #383838; margin-top: 20px;
  font-family: Consolas, 'Courier New', monospace; line-height: 1.6;
  border-top: 1px solid #1E1E1E; padding-top: 12px;
}
.src-note strong { color: #484848; }

/* ── TABLE ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  background: var(--fire); color: var(--white);
  padding: 12px 16px; text-align: left;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 8.5px; letter-spacing: 2px;
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid #1E1E1E; color: var(--muted); }
.data-table tr:nth-child(even) td { background: rgba(255,255,255,.015); }
.ck { color: var(--accent); font-size: 16px; font-weight: 700; }
.cx { color: var(--fire); font-size: 16px; font-weight: 700; }

/* ── PROGRESS BAR ── */
#prog { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--fire), var(--ember)); width: 0; z-index: 9999; }

/* ── FOOTER ── */
footer {
  background: #080808; padding: 48px 80px;
  border-top: 1px solid #161616;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px;
}
.footer-brand .fb-logo {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 20px; letter-spacing: 2px; color: #2A2A2A;
  display: block; margin-bottom: 12px;
}
.footer-brand .fb-logo span { color: var(--fire); }
.footer-brand p { font-size: 11px; color: #2A2A2A; line-height: 1.7; }
.footer-links h4 { font-size: 9px; letter-spacing: 3px; color: #333; font-family: Consolas, 'Courier New', monospace; text-transform: uppercase; margin-bottom: 14px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { font-size: 12px; color: #333; text-decoration: none; transition: color .2s; }
.footer-links ul li a:hover { color: var(--muted); }
.footer-contact h4 { font-size: 9px; letter-spacing: 3px; color: #333; font-family: Consolas, 'Courier New', monospace; text-transform: uppercase; margin-bottom: 14px; }
.footer-contact p { font-size: 11px; color: #333; line-height: 1.8; }
.footer-contact a { color: #444; text-decoration: none; }
.footer-bottom {
  background: #050505; padding: 14px 80px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #111; flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: 9px; color: #222; font-family: Consolas, 'Courier New', monospace; letter-spacing: 2px; }

/* ── FORM ── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 10px; letter-spacing: 2px; color: var(--muted); font-family: Consolas, 'Courier New', monospace; text-transform: uppercase; margin-bottom: 7px; }
.form-input {
  width: 100%; background: var(--smoke); border: 1px solid #333;
  color: var(--white); padding: 13px 16px; font-size: 13.5px;
  font-family: inherit; outline: none; transition: border-color .2s;
}
.form-input:focus { border-color: var(--fire); }
.form-input::placeholder { color: #444; }
textarea.form-input { resize: vertical; min-height: 120px; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-mobile-btn { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 66px; left: 0; right: 0; background: var(--ash); padding: 20px; border-bottom: 1px solid #222; gap: 16px; }
  .page-hero, main { padding: 100px 24px 48px; }
  footer { grid-template-columns: 1fr; padding: 40px 24px; }
  .footer-bottom { padding: 14px 24px; flex-direction: column; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
