:root {
  --paper: #fffaf3;
  --white: #ffffff;
  --mist: #f3f5f2;
  --ink: #18201d;
  --muted: #66706c;
  --line: #dfe3dc;
  --red: #d7352a;
  --red-dark: #a9251d;
  --gold: #f2b73f;
  --green: #23423a;
  --green-soft: #dce8e2;
  --shadow: 0 22px 70px rgba(24, 32, 29, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Sans 3", sans-serif;
  font-size: 18px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(24, 32, 29, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(180deg, rgba(215, 53, 42, 0.045), transparent 42%);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 250, 243, 0.92);
  border-bottom: 1px solid rgba(24, 32, 29, 0.1);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, min-height 180ms ease;
}

.site-header[data-scrolled="true"] {
  min-height: 68px;
  box-shadow: 0 14px 42px rgba(24, 32, 29, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  background:
    linear-gradient(135deg, transparent 0 24%, rgba(255, 255, 255, 0.2) 24% 48%, transparent 48%),
    var(--red);
  border: 2px solid var(--gold);
  border-radius: 6px;
  font-family: "Chivo", sans-serif;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-family: "Chivo", sans-serif;
  font-size: 1rem;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 30px);
}

.primary-nav a {
  color: var(--muted);
  font-family: "Chivo", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-nav a:hover {
  color: var(--red);
}

.header-call,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: "Chivo", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-call,
.button-primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 10px 22px rgba(215, 53, 42, 0.22);
}

.header-call:hover,
.button-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--green);
  background: var(--white);
  border-color: var(--line);
}

.button-secondary:hover {
  box-shadow: 0 10px 26px rgba(24, 32, 29, 0.1);
  transform: translateY(-1px);
}

svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
}

.hero {
  padding: 132px clamp(18px, 5vw, 70px) 0;
  overflow: hidden;
}

.hero-shell,
.section,
.footer-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-family: "Chivo", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Chivo", sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(2.85rem, 5vw, 5rem);
  line-height: 1;
}

h2 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 4vw, 4.35rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  line-height: 1.1;
}

.hero-lede,
.section-heading > p:not(.eyebrow),
.contact-section p {
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.45;
}

.hero-lede {
  max-width: 620px;
  font-size: clamp(1.18rem, 2.2vw, 1.45rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.image-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 32, 29, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(215, 53, 42, 0.14), rgba(35, 66, 58, 0.12)),
    var(--mist);
  box-shadow: var(--shadow);
}

.image-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 58%, rgba(24, 32, 29, 0.68));
}

.image-card img {
  width: 100%;
  min-height: 460px;
  object-fit: cover;
}

.image-card img[data-generated="pending"] {
  opacity: 0;
}

.image-card:has(img[data-generated="pending"]) {
  min-height: 460px;
}

.image-card:has(img[data-generated="pending"])::after {
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--green);
  text-align: center;
  content: "AI image pending: replace with generated event fire safety photography";
  border: 1px dashed rgba(35, 66, 58, 0.34);
  border-radius: 6px;
  background:
    linear-gradient(135deg, transparent 0 47%, rgba(215, 53, 42, 0.1) 47% 53%, transparent 53%),
    rgba(255, 255, 255, 0.64);
  font-family: "Chivo", sans-serif;
  font-weight: 800;
}

.image-card figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.image-card figcaption span {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: var(--white);
  background: var(--red);
  border-radius: 999px;
  font-family: "Chivo", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, calc(100% - 36px));
  margin: 54px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 52px rgba(24, 32, 29, 0.08);
  overflow: hidden;
}

.trust-strip article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  min-height: 122px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.trust-strip article:last-child {
  border-right: 0;
}

.trust-strip svg {
  color: var(--red);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 4px;
  font-family: "Chivo", sans-serif;
  font-size: 0.95rem;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.28;
}

.section {
  padding: clamp(68px, 8vw, 112px) 0;
}

.muted {
  width: 100%;
  max-width: none;
  background: var(--mist);
}

.muted > * {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section-heading {
  max-width: 830px;
  margin-bottom: 36px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cover-grid article,
.proof-grid article {
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 44px rgba(24, 32, 29, 0.06);
}

.cover-grid svg,
.proof-grid svg {
  width: 34px;
  height: 34px;
  margin-bottom: 34px;
  color: var(--red);
}

.cover-grid article > span {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-family: "Chivo", sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
}

.cover-grid p,
.proof-grid p,
.steps p,
.faq-list p {
  color: var(--muted);
  line-height: 1.42;
}

.split-section,
.process-shell,
.contact-shell,
.faq-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: start;
}

.event-list {
  display: grid;
  gap: 12px;
}

.event-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 18px 20px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: "Chivo", sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.event-list a:hover {
  border-color: rgba(215, 53, 42, 0.46);
  box-shadow: 0 14px 42px rgba(24, 32, 29, 0.08);
}

.event-list svg {
  flex: 0 0 auto;
  color: var(--red);
}

.process-image img,
.process-image,
.process-image:has(img[data-generated="pending"]) {
  min-height: 620px;
}

.steps {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.steps li > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  font-family: "Chivo", sans-serif;
  font-weight: 800;
}

.proof-section {
  padding-top: 30px;
}

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

.proof-grid article {
  min-height: 230px;
  background: linear-gradient(180deg, var(--white), #fff7ed);
}

.contact-section {
  width: 100%;
  max-width: none;
  color: var(--white);
  background:
    linear-gradient(125deg, rgba(24, 32, 29, 0.96), rgba(35, 66, 58, 0.96)),
    var(--green);
}

.contact-section > * {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.contact-section h2,
.contact-section .eyebrow {
  color: var(--white);
}

.contact-section .eyebrow {
  color: var(--gold);
}

.contact-section p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-cards {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-cards a,
.contact-cards span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.contact-cards svg {
  color: var(--gold);
}

.quote-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.quote-form label span {
  font-family: "Chivo", sans-serif;
  font-size: 0.9rem;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.quote-form textarea {
  resize: vertical;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 22px;
  font-family: "Chivo", sans-serif;
  font-weight: 700;
}

.faq-list p {
  margin: 0;
  padding: 0 22px 20px;
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.74);
  background: #121816;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-shell strong {
  display: block;
  color: var(--white);
  font-family: "Chivo", sans-serif;
}

.footer-shell p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .primary-nav {
    position: fixed;
    top: 78px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a:last-child {
    border-bottom: 0;
  }

  .header-call {
    display: none;
  }

  .hero-shell,
  .split-section,
  .process-shell,
  .contact-shell,
  .faq-shell {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .cover-grid,
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding: 12px 16px;
  }

  .brand small {
    max-width: 140px;
    line-height: 1.1;
  }

  .hero {
    padding-top: 112px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .image-card img,
  .image-card,
  .image-card:has(img[data-generated="pending"]),
  .process-image img,
  .process-image,
  .process-image:has(img[data-generated="pending"]) {
    min-height: 360px;
  }

  .image-card figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .trust-strip,
  .cover-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-strip article:last-child {
    border-bottom: 0;
  }

  .footer-shell {
    flex-direction: column;
  }
}
