/* Fire Rating website. Colours, fonts and logos from docs/branding (keep in step: branding/README.md). */
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/BarlowSemiCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --low: #4A8B3F; --moderate: #E3A925; --high: #DD6B1F; --extreme: #B5241C;
  --ink: #1C1B19; --ground: #F7F6F2; --on-dark: #FFF8EE; --quiet: #5E5B55; --line: #E4E1D8;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 "Inter", system-ui, sans-serif; color: var(--ink); background: var(--ground); }
img { max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(247, 246, 242, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.logo img { display: block; }
.menu { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.menu a { text-decoration: none; color: var(--quiet); }
.menu a:hover { color: var(--ink); }
.menu .pill { color: #fff; background: var(--ink); padding: 8px 16px; border-radius: 999px; }
.menu .pill:hover { color: #fff; background: #000; }

/* Type */
h1, h2 { font-family: "Barlow Semi Condensed", "Inter", sans-serif; font-weight: 700; line-height: 1.05;
  letter-spacing: .01em; margin: 0 0 18px; }
h1 { font-size: clamp(40px, 5.6vw, 66px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 19px; margin: 0 0 8px; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--high); }
.lead { font-size: 20px; color: var(--quiet); max-width: 34em; }
.narrow { max-width: 40em; color: var(--quiet); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-block; padding: 13px 22px; border-radius: 999px; border: 1.5px solid var(--ink);
  font-weight: 700; text-decoration: none; font-size: 16px; }
.button.primary { background: var(--high); border-color: var(--high); color: var(--ink); }
.button:hover { transform: translateY(-1px); }

/* Hero */
.hero { position: relative; padding: 72px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-bottom: 72px; }
.live { margin: 0; background: #fff; border-radius: var(--radius); padding: 18px 18px 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 18px 40px rgba(28,27,25,.12); }
.live iframe { display: block; width: 100%; aspect-ratio: 600 / 180; border: 0; }
.live figcaption { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--quiet); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--low); box-shadow: 0 0 0 4px rgba(74,139,63,.18); }
.bands { display: grid; grid-template-columns: repeat(4, 1fr); height: 10px; }
.bands span:nth-child(1) { background: var(--low); }
.bands span:nth-child(2) { background: var(--moderate); }
.bands span:nth-child(3) { background: var(--high); }
.bands span:nth-child(4) { background: var(--extreme); }

/* Sections */
.section { padding: 88px 0; }
.tint { background: #fff; }
.dark { background: var(--ink); color: var(--on-dark); }
.dark p { color: #D8D3C8; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { margin: 0; color: var(--quiet); }
.card:nth-child(1) { border-top: 5px solid var(--low); }
.card:nth-child(2) { border-top: 5px solid var(--moderate); }
.card:nth-child(3) { border-top: 5px solid var(--high); }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 22px 0 30px; }
.ticks li { position: relative; padding-left: 30px; margin: 10px 0; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 7px;
  border-left: 3px solid var(--low); border-bottom: 3px solid var(--low); transform: rotate(-45deg); }
.flow { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 14px; }
.flow li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto;
  column-gap: 14px; background: var(--ground); border-radius: var(--radius); padding: 18px 20px; }
.flow li::before { content: counter(step); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--ink); }
.flow li:nth-child(2)::before { background: var(--high); }
.flow li:nth-child(3)::before { background: var(--low); }
.flow span { color: var(--quiet); font-size: 15px; }
.styles { display: grid; grid-template-columns: 1fr 1.25fr .9fr; gap: 20px; align-items: end; margin-top: 36px; }
.styles figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.styles img { display: block; width: 100%; height: auto; }
.styles figcaption { margin-top: 10px; font-size: 13px; color: var(--quiet); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.store { border: 1.5px solid rgba(255,248,238,.5); border-radius: 12px; padding: 12px 18px; font-weight: 700; font-size: 15px; }
.mark { justify-self: center; }

/* Footer */
.foot { background: #121110; color: #BDB7AB; padding: 40px 0; font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot nav { display: flex; gap: 22px; }
.foot a { color: var(--on-dark); text-decoration: none; }
.foot p { flex-basis: 100%; margin: 6px 0 0; }

/* Phones */
@media (max-width: 860px) {
  .menu a:not(.pill) { display: none; }
  .hero { padding-top: 44px; }
  .hero-grid, .split, .cards, .styles { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 60px 0; }
  .mark { display: none; }
}
