/* ==========================================================================
   FIREMANBRAND — Design tokens
   Direction: "verified technical dossier" — the visual language of an
   official fire test report (Firelab red rule, stamped tables, contract
   reference numbers) crossed with industrial hazard signage. Nothing here
   is decorative; every device (the report refs, the burn-strip motif, the
   monospace data) points back to the fact that every claim on this site
   traces to an actual, numbered document.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Expanded:wght@600;800&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  /* Color */
  --steel:        #1C1E22;   /* primary dark — structure, header, footer */
  --steel-2:      #2B2E34;   /* raised panels on dark */
  --signal-red:   #C8232C;   /* Firelab red — critical, sparing */
  --hazard-amber: #E8A33D;   /* secondary accent — caution / in-progress */
  --ash:          #5B6169;   /* body text on light */
  --paper:        #F4F2ED;   /* "report paper" background */
  --paper-line:   #DAD6CC;   /* hairline on paper */
  --white:        #FFFFFF;

  /* Type */
  --f-display: 'Archivo Expanded', sans-serif;
  --f-body:    'IBM Plex Sans', sans-serif;
  --f-mono:    'IBM Plex Mono', monospace;

  --radius: 3px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--f-body);
  color:var(--steel);
  background:var(--paper);
  line-height:1.55;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3,h4{ font-family:var(--f-display); margin:0; line-height:1.05; letter-spacing:.01em; }
p{ margin:0 0 1em; }
.container{ max-width:1120px; margin:0 auto; padding:0 24px; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:3px solid var(--hazard-amber);
  outline-offset:2px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- Report-reference tag — the recurring structural device ---------- */
.ref-tag{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  font-family:var(--f-mono);
  font-size:.72rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--signal-red);
  border:1px solid currentColor;
  padding:.3em .7em;
  border-radius:2px;
  background:rgba(200,35,44,.05);
}
.ref-tag.amber{ color:#9A6413; background:rgba(232,163,61,.12); border-color:#9A6413; }
.ref-tag.ash{ color:var(--ash); background:transparent; border-color:var(--paper-line); }

/* ---------- Header ---------- */
.site-header{
  background:var(--steel);
  color:var(--white);
  position:sticky; top:0; z-index:50;
  border-bottom:3px solid var(--signal-red);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  height:76px;
}
.brand{
  display:flex; align-items:baseline; gap:.5em;
  font-family:var(--f-display); font-weight:800; font-size:1.3rem;
  text-decoration:none; color:var(--white);
}
.brand small{
  font-family:var(--f-mono); font-weight:400; font-size:.6rem;
  letter-spacing:.14em; color:var(--hazard-amber); text-transform:uppercase;
}
.nav{ display:flex; align-items:center; gap:28px; }
.nav a{
  font-size:.86rem; text-decoration:none; color:#C7C9CD;
  font-weight:500; letter-spacing:.01em;
  transition:color .15s ease;
}
.nav a:hover{ color:var(--white); }
.nav-cta{
  background:var(--signal-red); color:var(--white) !important;
  padding:.55em 1.1em; border-radius:2px; font-weight:600 !important;
}
.nav-cta:hover{ background:#a91d24; color:var(--white) !important; }
.nav-toggle{ display:none; }

@media (max-width:860px){
  .nav{
    position:fixed; inset:76px 0 0 0; background:var(--steel);
    flex-direction:column; align-items:flex-start; padding:28px 24px;
    transform:translateX(100%); transition:transform .25s ease; gap:22px;
  }
  .nav.open{ transform:translateX(0); }
  .nav-toggle{
    display:block; background:none; border:none; color:var(--white);
    font-size:1.6rem; cursor:pointer; line-height:1;
  }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.6em;
  font-family:var(--f-body); font-weight:600; font-size:.92rem;
  padding:.85em 1.5em; border-radius:2px; text-decoration:none;
  border:2px solid transparent; cursor:pointer;
  transition:transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{ background:var(--signal-red); color:var(--white); }
.btn-primary:hover{ background:#a91d24; }
.btn-outline{ background:transparent; border-color:var(--steel); color:var(--steel); }
.btn-outline:hover{ background:var(--steel); color:var(--white); }
.btn-outline-light{ background:transparent; border-color:rgba(255,255,255,.5); color:var(--white); }
.btn-outline-light:hover{ background:var(--white); color:var(--steel); }

/* ---------- Hero (burn-strip motif) ---------- */
.hero{
  background:var(--steel); color:var(--white);
  padding:72px 0 0;
  overflow:hidden;
  position:relative;
}
.hero-grid{
  display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center;
  padding-bottom:60px;
}
.hero-eyebrow{
  font-family:var(--f-mono); font-size:.78rem; letter-spacing:.12em;
  text-transform:uppercase; color:var(--hazard-amber); margin-bottom:18px;
}
.hero h1{
  font-size:clamp(2.1rem, 4vw, 3.4rem); color:var(--white); margin-bottom:22px;
}
.hero h1 em{ font-style:normal; color:var(--hazard-amber); }
.hero p.lead{ font-size:1.08rem; color:#C7C9CD; max-width:46ch; margin-bottom:30px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:20px; }
.hero-note{ font-size:.8rem; color:#8B8F96; max-width:44ch; }

/* Burn-test visual: two vertical strips (untreated vs treated) in a chimney */
.burn-rig{
  background:var(--steel-2); border:1px solid #3A3D44; border-radius:4px;
  padding:26px 22px 22px; position:relative;
}
.burn-rig-label{
  font-family:var(--f-mono); font-size:.68rem; letter-spacing:.08em;
  text-transform:uppercase; color:#9DA1A8; margin-bottom:16px; display:flex; justify-content:space-between;
}
.burn-cols{ display:flex; gap:18px; align-items:flex-end; height:190px; }
.burn-col{ flex:1; display:flex; flex-direction:column; align-items:center; gap:10px; height:100%; }
.burn-tube{
  width:100%; height:100%; border:1px dashed #4A4E56; border-radius:2px;
  position:relative; overflow:hidden; background:linear-gradient(#23262B,#1C1E22);
}
.burn-fill{
  position:absolute; left:0; right:0; bottom:0; background:var(--signal-red);
  opacity:.85; width:100%;
  animation:fillUp 6s ease-in-out infinite alternate;
}
.burn-col.treated .burn-fill{ background:var(--hazard-amber); animation-duration:6s; }
.burn-col.untreated .burn-fill{ animation-duration:1.4s; }
@keyframes fillUp{ from{ height:4%; } to{ height:78%; } }
.burn-caption{ font-family:var(--f-mono); font-size:.72rem; color:#C7C9CD; text-align:center; }
.burn-caption strong{ display:block; color:var(--white); font-size:.92rem; }
.burn-source{ margin-top:16px; font-size:.68rem; color:#787C83; font-family:var(--f-mono); }

/* ---------- Section shells ---------- */
section{ padding:76px 0; }
.section-alt{ background:var(--white); }
.section-dark{ background:var(--steel); color:var(--white); }
.section-head{ max-width:640px; margin-bottom:44px; }
.section-head .ref-tag{ margin-bottom:14px; }
.section-head h2{ font-size:clamp(1.6rem,2.6vw,2.2rem); margin-bottom:14px; }
.section-head p{ color:var(--ash); font-size:1.02rem; }
.section-dark .section-head p{ color:#C7C9CD; }

/* ---------- Cards ---------- */
.grid{ display:grid; gap:22px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:860px){ .grid-3,.grid-2{ grid-template-columns:1fr; } }

.card{
  background:var(--white); border:1px solid var(--paper-line); border-radius:3px;
  padding:28px; display:flex; flex-direction:column; gap:12px;
}
.card h3{ font-size:1.15rem; }
.card p{ color:var(--ash); font-size:.94rem; margin-bottom:0; }
.card .ref-tag{ align-self:flex-start; }
.card-link{ margin-top:auto; font-weight:600; font-size:.88rem; text-decoration:none; color:var(--signal-red); }

/* ---------- Data table (report-style) ---------- */
.data-table{ width:100%; border-collapse:collapse; font-size:.92rem; background:var(--white); }
.data-table caption{ text-align:left; font-family:var(--f-mono); font-size:.72rem; color:var(--ash); margin-bottom:8px; letter-spacing:.04em; }
.data-table th, .data-table td{ border:1px solid var(--paper-line); padding:10px 14px; text-align:left; }
.data-table thead th{ background:var(--steel); color:var(--white); font-family:var(--f-mono); font-weight:500; font-size:.78rem; text-transform:uppercase; letter-spacing:.04em; }
.data-table td.num, .data-table th.num{ font-family:var(--f-mono); }
.data-table tbody tr:nth-child(even){ background:#FAF9F6; }

/* ---------- Callouts ---------- */
.callout{
  border-left:4px solid var(--signal-red); background:#FBF2F1;
  padding:18px 22px; border-radius:0 3px 3px 0; font-size:.92rem; color:var(--steel);
}
.callout.amber{ border-color:var(--hazard-amber); background:#FDF6EA; }
.callout strong{ display:block; margin-bottom:4px; }

/* ---------- Timeline (heritage) ---------- */
.timeline{ position:relative; padding-left:32px; }
.timeline::before{ content:''; position:absolute; left:6px; top:6px; bottom:6px; width:2px; background:var(--paper-line); }
.tl-item{ position:relative; padding-bottom:38px; }
.tl-item:last-child{ padding-bottom:0; }
.tl-item::before{
  content:''; position:absolute; left:-32px; top:4px; width:14px; height:14px;
  border-radius:50%; background:var(--signal-red); border:3px solid var(--paper);
}
.tl-year{ font-family:var(--f-mono); color:var(--signal-red); font-weight:500; font-size:.85rem; }
.tl-item h4{ margin:.2em 0 .4em; font-size:1.1rem; }
.tl-item p{ color:var(--ash); font-size:.94rem; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--steel); color:#9DA1A8; padding:52px 0 26px; font-size:.88rem; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px; margin-bottom:36px; }
@media (max-width:860px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
.footer-grid h5{ color:var(--white); font-family:var(--f-body); font-size:.82rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:14px; }
.footer-grid a{ display:block; text-decoration:none; color:#9DA1A8; margin-bottom:8px; }
.footer-grid a:hover{ color:var(--white); }
.footer-bottom{ border-top:1px solid #34373D; padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:.78rem; }

/* ---------- Forms ---------- */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:700px){ .form-grid{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:6px; }
.field.full{ grid-column:1 / -1; }
.field label{ font-size:.85rem; font-weight:600; }
.field input, .field select, .field textarea{
  font-family:var(--f-body); font-size:.95rem; padding:.75em .9em;
  border:1px solid var(--paper-line); border-radius:2px; background:var(--white);
}
.field textarea{ resize:vertical; min-height:110px; }

/* ---------- Utility ---------- */
.eyebrow{ font-family:var(--f-mono); font-size:.75rem; letter-spacing:.1em; text-transform:uppercase; color:var(--signal-red); margin-bottom:10px; display:block; }
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.small{ font-size:.82rem; color:var(--ash); }
.divider{ height:1px; background:var(--paper-line); margin:56px 0; border:none; }
