/* A+ Fire & Safety — mobile-first stylesheet */
:root {
  --ink: #15171a;
  --ink-2: #23262b;
  --ink-3: #31353b;
  --paper: #ffffff;
  --tint: #f4f1ec;
  --line: #e3ded6;
  --text: #24272c;
  --muted: #646a73;
  --fire: #d7191f;
  --fire-dark: #b01217;
  --tag: #f2d40c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(21, 23, 26, .06), 0 8px 24px rgba(21, 23, 26, .08);
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --mast-h: 64px;
}
@media (min-width: 700px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--mast-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px; /* room for the mobile call bar */
}
@media (min-width: 960px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--fire-dark); text-underline-offset: .18em; }
a:hover { color: var(--fire); }
h1, h2, h3 { font-family: var(--head); line-height: 1.05; color: var(--ink); margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--tag); outline-offset: 2px; border-radius: 4px; }

.eyebrow {
  font: 700 .82rem/1.2 var(--body); text-transform: uppercase; letter-spacing: .14em;
  color: var(--fire); margin-bottom: .9rem; display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: currentColor; border-radius: 2px; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.55; max-width: 44em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .6em 1.3em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--body); letter-spacing: .02em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: .75em 1.7em; font-size: 1.06rem; }
.btn-fire { background: var(--fire); color: #fff; }
.btn-fire:hover { background: var(--fire-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--fire-dark); }
.btn-light:hover { background: var(--ink); color: #fff; }

/* Masthead */
.masthead { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; min-height: var(--mast-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { height: 32px; width: auto; }
.brand-word { font: 800 1.45rem/1 var(--head); text-transform: uppercase; color: var(--fire); letter-spacing: .02em; white-space: nowrap; }
.brand-word b { color: #fff; font-weight: 700; }
.brand:hover { color: #fff; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-right: -8px;
  background: none; border: 0; color: #fff; cursor: pointer; border-radius: 10px;
}
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background-color .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-open .bars { background: transparent; }
.nav-open .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav { display: none; }
.nav-open .nav {
  display: block; position: fixed; inset: var(--mast-h) 0 0 0; background: var(--ink);
  padding: 12px var(--gutter) 32px; overflow-y: auto; border-top: 1px solid var(--ink-3);
}
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li a {
  display: block; padding: 16px 0; border-bottom: 1px solid var(--ink-3);
  font: 700 1.5rem/1.1 var(--head); text-transform: uppercase; color: #fff; text-decoration: none;
}
.nav a[aria-current="page"] { color: var(--tag); }
.nav-phones { display: grid; gap: 10px; margin: 24px 0; }
.nav-phones a { color: #fff; text-decoration: none; font: 700 1.35rem/1.2 var(--head); }
.nav-phones small { display: block; font: 500 .8rem/1.4 var(--body); color: #a9afb8; text-transform: uppercase; letter-spacing: .08em; }
.nav-cta { width: 100%; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav, .nav-open .nav { display: flex; position: static; align-items: center; gap: 22px; padding: 0; background: none; border: 0; overflow: visible; }
  .nav ul { display: flex; gap: 4px; }
  .nav li a { border: 0; padding: 10px 12px; white-space: nowrap; font: 600 1rem/1 var(--body); text-transform: none; color: #d6d9de; border-radius: 8px; }
  .nav li a:hover { color: #fff; background: var(--ink-2); }
  .nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--fire); border-radius: 0; }
  .nav-phones { display: none; }
  .nav-cta { width: auto; min-height: 42px; }
}
.topbar { display: none; }
@media (min-width: 960px) {
  .topbar { display: block; background: #0d0e10; color: #a9afb8; font-size: .88rem; }
  .topbar-row { display: flex; justify-content: flex-end; align-items: center; gap: 28px; min-height: 36px; }
  .topbar a { color: #fff; text-decoration: none; font-weight: 600; }
  .topbar a:hover { color: var(--tag); }
  .topbar-area { margin-right: 6px; }
}

/* Hero */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--ink); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(21, 23, 26, .55) 0%, rgba(21, 23, 26, .88) 70%);
}
@media (min-width: 900px) {
  .hero::after { background: linear-gradient(90deg, rgba(21, 23, 26, .94) 0%, rgba(21, 23, 26, .78) 42%, rgba(21, 23, 26, .1) 78%); }
}
.hero-inner { padding-top: clamp(64px, 12vw, 140px); padding-bottom: clamp(56px, 10vw, 128px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 span { color: var(--tag); display: block; }
.hero .lede { color: #e4e6ea; max-width: 34em; }
.hero .eyebrow { color: var(--tag); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 479px) { .hero-actions .btn { flex: 1 1 100%; } }

/* Proof strip */
.proof { background: var(--fire); color: #fff; }
.proof-list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-top: 6px; padding-bottom: 6px; }
.proof-list li { padding: 16px 12px 16px 0; display: grid; gap: 2px; }
.proof-list strong { font: 700 1.2rem/1.1 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.proof-list span { font-size: .9rem; line-height: 1.35; color: #ffe1e1; }
@media (min-width: 900px) {
  .proof-list { grid-template-columns: repeat(4, 1fr); }
  .proof-list li { padding: 22px 20px; border-left: 1px solid rgba(255, 255, 255, .25); }
  .proof-list li:first-child { border-left: 0; padding-left: 0; }
}

/* Sections */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-tint { background: var(--tint); }
.section-ink { background: var(--ink); color: #d6d9de; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .muted { color: #a9afb8; }
.section-ink .eyebrow { color: var(--tag); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 5vw, 48px); }

/* Service cards */
.cards { display: grid; gap: 20px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.card {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card img { width: 100%; object-fit: cover; aspect-ratio: 16 / 10; transition: transform .4s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(21, 23, 26, .06), 0 18px 40px rgba(21, 23, 26, .14); color: var(--text); }
.card:hover img { transform: scale(1.03); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; border-top: 4px solid var(--fire); position: relative; z-index: 1; background: var(--paper); }
.card-body p { color: var(--muted); }
.more { margin-top: auto; font-weight: 700; color: var(--fire-dark); }
.more::after { content: " →"; transition: margin .2s; }
.card:hover .more::after { margin-left: 4px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: tl; }
.timeline li { position: relative; background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 22px 22px 20px 22px; }
.timeline p { margin: 0; color: #b9bec6; }
.tl-when {
  display: inline-block; font: 800 .95rem/1 var(--head); text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink); background: var(--tag); padding: 6px 10px; border-radius: 6px; margin-bottom: 14px;
}
@media (min-width: 700px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .timeline li { border-radius: 0; border-right-width: 0; }
  .timeline li:first-child { border-radius: var(--radius) 0 0 var(--radius); }
  .timeline li:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-right-width: 1px; }
  .timeline li:not(:last-child)::after {
    content: ""; position: absolute; right: -9px; top: 30px; width: 16px; height: 16px; z-index: 1;
    background: var(--ink-2); border-top: 1px solid var(--ink-3); border-right: 1px solid var(--ink-3); transform: rotate(45deg);
  }
}

/* Split layouts */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split-rev > :first-child { order: 2; }
}
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 1em 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--fire) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.prose { max-width: 40em; }
.prose-narrow { max-width: 760px; }

/* Service areas */
.areas { display: grid; gap: 16px; }
@media (min-width: 700px) { .areas { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.area { background: var(--paper); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); border-top: 4px solid var(--ink); }
.area h3 { margin-bottom: .3em; }
.area-phone { font: 700 1.5rem/1.2 var(--head); color: var(--fire-dark); text-decoration: none; }
.area-phone:hover { text-decoration: underline; }

/* CTA band */
.cta { background: var(--fire); color: #fff; padding: clamp(44px, 7vw, 72px) 0; }
.cta h2 { color: #fff; }
.cta p { color: #ffe1e1; max-width: 40em; margin: 0; }
.cta-inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; gap: 48px; } }

/* Page header */
.pagehead { position: relative; isolation: isolate; background: var(--ink); color: #fff; overflow: hidden; }
.pagehead-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.pagehead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(21, 23, 26, .93) 0%, rgba(21, 23, 26, .75) 55%, rgba(21, 23, 26, .45) 100%); }
.pagehead-inner { padding-top: clamp(48px, 9vw, 104px); padding-bottom: clamp(44px, 8vw, 92px); }
.pagehead h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.8rem); max-width: 16ch; }
.pagehead .lede { color: #e4e6ea; }
.pagehead .eyebrow { color: var(--tag); }

/* Extinguisher page */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.pillars li { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.pillars span { flex: none; font: 800 2.6rem/.9 var(--head); color: var(--fire); }
.pillars p { margin: 0; font-size: 1.15rem; font-weight: 500; color: var(--ink); }
.reqs { display: grid; gap: 16px; }
@media (min-width: 800px) { .reqs { grid-template-columns: 1fr 1fr; gap: 20px; } }
.req { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 24px; }
.req header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.req h3 { margin: 0; }
.req p { margin: 0; color: #b9bec6; }
.tag { font: 700 .75rem/1 var(--body); text-transform: uppercase; letter-spacing: .08em; padding: 6px 9px; border-radius: 6px; background: var(--fire); color: #fff; white-space: nowrap; }
.tag-ok { background: var(--ink-3); color: #d6d9de; }

/* Training page */
blockquote { margin: 0 0 1.5em; padding: 20px 24px; border-left: 4px solid var(--fire); background: var(--tint); border-radius: 0 var(--radius) var(--radius) 0; }
blockquote p { font-size: 1.12rem; font-style: italic; color: var(--ink); }
blockquote cite { font-style: normal; font-weight: 600; color: var(--muted); font-size: .95rem; }
.note { background: var(--ink); color: #d6d9de; border-radius: var(--radius); padding: 28px; align-self: start; }
.note h3 { color: var(--tag); }
.note strong { color: #fff; }
.note .muted { color: #a9afb8; font-size: .9rem; }
.note-phone { color: #fff; font: 700 1.5rem/1.2 var(--head); text-decoration: none; }
.note-phone:hover { color: var(--tag); }

/* Contact */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 64px; } }
.contact h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.form { margin-top: 28px; display: grid; gap: 18px; }
.row { display: grid; gap: 18px; }
@media (min-width: 640px) { .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; color: var(--ink); padding: 0; }
.req-mark { color: var(--fire); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff;
  border: 1.5px solid #cfc9bf; border-radius: 10px; padding: 12px 14px; min-height: 50px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 130px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 212, 12, .6); }
.has-error input { border-color: var(--fire); }
.err { margin: 0; color: var(--fire-dark); font-size: .92rem; font-weight: 600; }
.hint { margin: -8px 0 0; color: var(--muted); font-size: .92rem; }
.choices { display: grid; gap: 10px; margin-top: 6px; }
@media (min-width: 640px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 500 !important; }
.choice:has(input:checked) { border-color: var(--fire); background: #fff5f5; }
.choice input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--fire); flex: none; }
.form .btn { justify-self: start; }
@media (max-width: 479px) { .form .btn { justify-self: stretch; } }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.contact-side { display: grid; gap: 20px; align-content: start; }
@media (min-width: 960px) { .contact-side { position: sticky; top: calc(var(--mast-h) + 24px); } }
.contact-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; }
.contact-card h2 { color: #fff; font-size: 1.9rem; margin: 0; }
.contact-phone { color: #fff; text-decoration: none; font: 700 1.7rem/1.1 var(--head); }
.contact-phone small { display: block; font: 600 .78rem/1.5 var(--body); color: var(--tag); text-transform: uppercase; letter-spacing: .1em; }
.contact-phone:hover { color: var(--tag); }
.contact-email { color: #d6d9de; word-break: break-all; }
.contact-email:hover { color: #fff; }
.contact-photo { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.notice { min-height: 50vh; }

/* Footer */
.footer { background: var(--ink); color: #d6d9de; padding: 56px 0 24px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--tag); }
.footer .muted { color: #9aa1aa; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.footer-grid p { margin-top: 16px; max-width: 30em; }
.footer-h { color: var(--tag); font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; font-family: var(--body); font-weight: 700; margin-bottom: 14px; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--ink-3); font-size: .9rem; }

/* Mobile call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr auto;
  background: var(--ink); border-top: 1px solid var(--ink-3); padding-bottom: env(safe-area-inset-bottom);
}
.callbar a { display: grid; align-content: center; min-height: 60px; padding: 6px 12px; color: #fff; text-decoration: none; font: 700 1.05rem/1.15 var(--head); border-right: 1px solid var(--ink-3); }
.callbar small { font: 600 .66rem/1.3 var(--body); color: var(--tag); text-transform: uppercase; letter-spacing: .08em; }
.callbar .callbar-cta { background: var(--fire); border: 0; padding: 0 18px; font-size: 1.15rem; text-transform: uppercase; justify-content: center; }
@media (min-width: 960px) { .callbar { display: none; } }
.nav-open .callbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
