@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600;6..72,700&family=Public+Sans:wght@400;500;600;700&display=swap');

/* =========================================================
   Fire Risk Assessment London — shared styles
   Aesthetic: "compliance editorial". Warm paper ground,
   deep slate structure, ember accent used as a signal.
   Plain CSS, no build step.
   ========================================================= */

:root {
  /* --- ink & paper --- */
  --ink:        #0E1620;   /* headings, primary text */
  --ink-2:      #1C2A38;   /* dark bands */
  --ink-soft:   #52616F;   /* body / secondary text */
  --paper:      #FCFAF7;   /* page ground (warm off-white) */
  --surface:    #FFFFFF;   /* cards, raised surfaces */
  --surface-2:  #F4F1EB;   /* alternating sections */
  --line:       #E4DED4;   /* hairlines */
  --line-2:     #CEC5B8;   /* stronger rules */

  /* --- ember accent (signal, not decoration) --- */
  --ember:      #C23A11;   /* primary accent */
  --ember-2:    #8F2909;   /* hover — genuinely darker */
  --ember-soft: #FBEDE6;   /* tint background */
  --amber:      #D9942A;   /* secondary accent, used sparingly */

  /* legacy aliases so older markup keeps working */
  --brand:      var(--ember);
  --brand-dark: var(--ember-2);
  --bg:         var(--paper);
  --bg-alt:     var(--surface-2);
  --bg-dark:    var(--ink);

  --max:        1160px;
  --narrow:     760px;
  --radius:     4px;
  --radius-lg:  8px;

  --font-head: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(14,22,32,.04), 0 2px 6px rgba(14,22,32,.04);
  --shadow-md: 0 2px 4px rgba(14,22,32,.04), 0 8px 24px rgba(14,22,32,.07);
  --shadow-lg: 0 4px 8px rgba(14,22,32,.05), 0 18px 48px rgba(14,22,32,.11);

  --ease: cubic-bezier(.2,.7,.3,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  line-height: 1.68;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1.0125rem;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.14;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 1.35rem + 3.1vw, 3.5rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.75vw, 2.35rem); margin-bottom: .5em; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; margin-bottom: .4em; letter-spacing: -.01em; font-weight: 600; }
h4 { font-size: 1.05rem; }

p  { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

a  { color: var(--ember); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--ember-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

strong { color: var(--ink); font-weight: 600; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--ink); color: var(--paper); }

/* visible focus for keyboard users (a11y) */
:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ember);
  color: #fff;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .975rem;
  letter-spacing: .005em;
  font-family: var(--font-body);
  border: 1px solid var(--ember);
  cursor: pointer;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: background .2s var(--ease), border-color .2s var(--ease),
              transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover {
  background: var(--ember-2); border-color: var(--ember-2);
  color: #fff; text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn--ghost { background: transparent; color: var(--ember); border: 1px solid var(--line-2); box-shadow: none; }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn--lg { padding: 17px 36px; font-size: 1.02rem; }

.muted { color: var(--ink-soft); font-size: .9rem; }

/* small uppercase label — used as section eyebrow */
.eyebrow, .hero__eyebrow {
  display: inline-flex; align-items: center;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .74rem;
  font-weight: 600;
  font-family: var(--font-body);
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252,250,247,.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 24px; max-width: var(--max); margin: 0 auto;
}
.nav__logo { color: var(--ink); font-family: var(--font-head); font-size: 1.06rem; letter-spacing: -.02em; }
.nav__logo:hover { color: var(--ember); text-decoration: none; }
.nav__logo strong { font-weight: 600; color: inherit; }
.nav__logo img { max-height: 46px; width: auto; }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__links > li > a {
  display: block; padding: 9px 13px; border-radius: var(--radius);
  color: var(--ink); font-weight: 500; font-size: .935rem;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav__links > li > a:hover { color: var(--ember); background: var(--ember-soft); text-decoration: none; }

/* dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  min-width: 268px; padding: 8px; box-shadow: var(--shadow-lg);
}
.has-dropdown::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 16px; display: none;
}
.has-dropdown:hover::after { display: block; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown li { list-style: none; }
.dropdown a {
  display: block; padding: 10px 14px; font-size: .92rem;
  color: var(--ink); border-radius: var(--radius); font-weight: 500;
}
.dropdown a:hover { background: var(--surface-2); color: var(--ember); text-decoration: none; }

.nav__call {
  background: var(--ember); color: #fff !important;
  padding: 11px 20px !important; border-radius: var(--radius); font-weight: 600;
  font-size: .93rem; box-shadow: var(--shadow-sm);
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.nav__call:hover { background: var(--ember-2) !important; text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.nav__toggle { display: none; background: none; border: 0; font-size: 1.55rem; cursor: pointer; color: var(--ink); line-height: 1; padding: 4px 8px; }

@media (max-width: 900px) {
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 24px 18px; box-shadow: var(--shadow-md);
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links > li > a { padding: 11px 0; border-radius: 0; }
  .nav__links > li > a:hover { background: transparent; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 6px 16px; min-width: 0; background: transparent; }
  .dropdown a { padding: 8px 0; }
  .nav__call { display: inline-block; margin-top: 10px; text-align: center; }
  .nav__toggle { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); }

/* layered scrim: warm at the base, deep slate overall, vignette at the edge */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(104deg, rgba(14,22,32,.93) 0%, rgba(14,22,32,.78) 42%, rgba(14,22,32,.42) 100%),
    linear-gradient(0deg, rgba(194,58,17,.20) 0%, rgba(194,58,17,0) 55%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 -90px 90px -60px rgba(14,22,32,.85);
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto; padding: 104px 24px 108px;
}
.hero__eyebrow { color: var(--amber); opacity: 1; margin-bottom: 20px; }
.hero h1 { color: #fff; margin: 0 0 20px; max-width: 17ch; letter-spacing: -.028em; }
.hero p { color: rgba(255,255,255,.86); font-size: 1.13rem; max-width: 48ch; }
.hero__cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .btn--ghost { border-width: 1px; backdrop-filter: blur(4px); background: rgba(255,255,255,.06); }
.hero .btn--ghost:hover { background: #fff; color: var(--ink) !important; border-color: #fff !important; }

/* staggered entrance */
.hero__eyebrow, .hero h1, .hero p, .hero__cta { animation: rise .8s var(--ease) both; }
.hero h1     { animation-delay: .06s; }
.hero p      { animation-delay: .13s; }
.hero__cta   { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 700px) { .hero__inner { padding: 72px 24px 76px; } }

/* ---------- sections ---------- */
.section { padding: 84px 0; position: relative; }
.section--alt { background: var(--surface-2); }
.section--alt + .section--alt { padding-top: 0; }
.section--dark { background: var(--ink); color: rgba(255,255,255,.82); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.78); }
.section--dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.section--dark .card h3 { color: #fff; }
.section--dark .card p { color: rgba(255,255,255,.75); }

/* The reading measure belongs on the lead's paragraphs, not on the lead
   container. Some pages nest a .grid / .linklist inside .section__lead;
   capping the container squeezed those to 66ch (~698px) instead of letting
   them use the full 1160px wrap. */
.section__lead { font-size: 1.08rem; }
.section__lead > p { max-width: 66ch; }
.section__lead p { margin-bottom: 1.1rem; }
.center .section__lead > p { margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.center .section__lead { margin: 0 auto; }
.center .eyebrow { justify-content: center; }

@media (max-width: 700px) { .section { padding: 60px 0; } }

/* two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 34px; } }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
/* ember rule that draws in on hover */
.card::before {
  content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px;
  width: 2px; background: var(--ember); border-radius: 2px;
  transform: scaleY(0); transform-origin: 50% 0;
  transition: transform .3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card:hover::before { transform: scaleY(1); }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.section--alt .card { background: var(--surface); }

/* ---------- link list (service areas) ---------- */
.linklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; }
@media (max-width: 820px) { .linklist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .linklist { grid-template-columns: 1fr; } }
.linklist a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface);
  color: var(--ink); font-weight: 500; font-size: .95rem;
  transition: border-color .2s var(--ease), color .2s var(--ease),
              background .2s var(--ease), transform .2s var(--ease);
}
.linklist a::after {
  content: "→"; font-size: .95rem; color: var(--line-2);
  transition: transform .2s var(--ease), color .2s var(--ease);
}
.linklist a:hover {
  border-color: var(--ember); color: var(--ember);
  background: var(--ember-soft); text-decoration: none; transform: translateX(2px);
}
.linklist a:hover::after { color: var(--ember); transform: translateX(3px); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 26px 0; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
th {
  background: var(--surface-2); font-family: var(--font-body); font-weight: 600;
  color: var(--ink); font-size: .78rem; text-transform: uppercase; letter-spacing: .09em;
}
td { color: var(--ink-soft); }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .18s var(--ease); }
tbody tr:hover { background: var(--paper); }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2px 22px; margin-bottom: 10px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; font-weight: 600; font-family: var(--font-head);
  font-size: 1.09rem; color: var(--ink); padding: 18px 0; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--ember); font-size: 1.5rem; line-height: 1;
  font-family: var(--font-body); font-weight: 400;
  transition: transform .25s var(--ease); flex: 0 0 auto;
}
.faq details[open] summary::after { content: "\2013"; transform: rotate(180deg); }
.faq details > p { padding-bottom: 20px; margin-bottom: 0; }

/* ---------- CTA band ---------- */
/* deep slate rather than flat brand fill — reads considered, not shouty */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff; text-align: center; padding: 76px 24px;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 130% at 50% 118%, rgba(194,58,17,.42) 0%, rgba(194,58,17,0) 62%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 40%);
}
.cta-band::after {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 76px; height: 3px; background: var(--ember); border-radius: 0 0 3px 3px;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 56ch; margin-inline: auto; }
.cta-band a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.45); }
.cta-band a:not(.btn):hover { text-decoration-color: #fff; }
.cta-band .btn { background: var(--ember); color: #fff; border-color: var(--ember); }
.cta-band .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .muted { color: rgba(255,255,255,.62) !important; }

/* ---------- forms ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-weight: 600; font-size: .82rem; margin-bottom: 7px;
  color: var(--ink); text-transform: uppercase; letter-spacing: .07em;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--paper);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-soft); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--ember); background: var(--surface);
  box-shadow: 0 0 0 3px rgba(194,58,17,.13);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9AA5AF; }

/* ---------- prose (policy & long-form pages) ---------- */
.prose { margin-top: 12px; }
.prose h2 {
  font-size: 1.32rem; margin-top: 2.4em; margin-bottom: .5em;
  padding-top: 1.5em; border-top: 1px solid var(--line);
}
.prose > h2:first-child { margin-top: 1.6em; }
.prose h3 { font-size: 1.08rem; margin-top: 1.8em; }
.prose p { margin-bottom: 1.15rem; }
.prose ul, .prose ol { margin: 0 0 1.3rem 0; padding-left: 1.2rem; }
.prose li { margin-bottom: .6rem; padding-left: .25rem; }
.prose li::marker { color: var(--ember); }
.prose .table-wrap { margin: 28px 0; }
.prose table th:first-child, .prose table td:first-child { width: 34%; }
.stamp {
  display: inline-block; margin-top: 20px;
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-soft);
  border: 1px solid var(--line); background: var(--surface);
  padding: 6px 12px; border-radius: 100px;
}
.wrap--narrow h1 { margin-bottom: .35em; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 72px 0 30px; font-size: .93rem; }
.site-footer h4 {
  color: #fff; margin-bottom: 16px; font-family: var(--font-body);
  font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; font-weight: 600;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 44px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer p { color: rgba(255,255,255,.72); }
.site-footer a { color: rgba(255,255,255,.72); font-size: .92rem; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer li a { position: relative; }
.site-footer li a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: var(--ember); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .22s var(--ease);
}
.site-footer li a:hover::after { transform: scaleX(1); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.13); margin-top: 46px; padding-top: 22px;
  font-size: .84rem; color: rgba(255,255,255,.5);
}
.footer-disclaimer { font-size: .82rem; color: rgba(255,255,255,.5) !important; margin-top: 12px; line-height: 1.55; }

/* phone link — stable hook for WhatConverts dynamic number insertion */
.wc-phone { font-weight: 600; }

/* ---------- scroll reveal (class applied by JS; content visible without JS) ---------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ---------- motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .card:hover, .btn:hover, .linklist a:hover { transform: none; }
}

@media print {
  .site-header, .cta-band, .nav__toggle, .hero__cta { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero { color: #000; background: #fff; }
  .hero::before, .hero::after, .hero__media { display: none; }
  .hero h1, .hero p { color: #000; }
  .site-footer { background: #fff; color: #000; border-top: 1px solid #999; }
  .site-footer a, .site-footer p, .site-footer h4 { color: #000; }
  a { color: #000; text-decoration: underline; }
  .section { padding: 18px 0; }
  .prose h2 { break-after: avoid; }
  .card, .table-wrap { break-inside: avoid; box-shadow: none; }
}
