/* Fire Risk Essex: "the survey sheet". Light theme only. */

@font-face { font-family: "Fraunces"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/fraunces-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/figtree-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #FBF9F5;
  --surface: #FFFFFF;
  --ink: #1E2330;
  --slate: #565C6B;
  --rule: #DDD8CE;
  --accent: #0E6074;
  --tint: #E7F1F3;
  --note: #5B3F8C;
  --accent-dark: #0A4757;
  --measure: 720px;
  --wide: 960px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  padding-bottom: 76px;
}
@media (min-width: 768px) { body { padding-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; font-weight: 700; margin: 0; }
h1 { font-size: 2.25rem; letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
ul, ol { padding-left: 1.4rem; margin: 0 0 1rem; }
li { margin-bottom: 0.3rem; }
strong { font-weight: 700; }
em { font-style: italic; }

.es-wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
.es-narrow { max-width: var(--wide); }
.es-hero h1, .es-hero .es-crumbs { max-width: var(--measure); }
.es-readable { max-width: var(--wide); }
.es-slate { color: var(--slate); }

/* header: brand + button on the first row, nav on a second row (desktop) */
.es-header { background: var(--surface); border-bottom: 1px solid var(--rule); }
.es-header-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.es-brand { font: 700 1.35rem/1 var(--serif); color: var(--ink); text-decoration: none; padding: 10px 0; }
.es-brand:hover { color: var(--accent); }
.es-nav { display: none; border-top: 1px solid var(--rule); background: var(--paper); }
.es-nav .es-wrap { display: flex; gap: 4px 28px; flex-wrap: wrap; }
.es-nav a { display: inline-block; padding: 9px 0; min-height: 44px; line-height: 26px; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; }
.es-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.es-nav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 700; }
.es-menu { border-top: 1px solid var(--rule); background: var(--paper); }
.es-menu summary { list-style: none; cursor: pointer; padding: 10px 16px; min-height: 44px; font-weight: 700; color: var(--accent); }
.es-menu summary::-webkit-details-marker { display: none; }
.es-menu summary::after { content: "+"; float: right; font-size: 1.3rem; line-height: 1.2; }
.es-menu[open] summary::after { content: "\2212"; }
.es-menu nav { display: flex; flex-direction: column; padding: 0 16px 8px; }
.es-menu nav a { padding: 10px 0; min-height: 44px; border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
@media (min-width: 768px) {
  .es-nav { display: block; }
  .es-menu { display: none; }
}

/* notice band (not sticky) */
.es-notice { background: var(--tint); border-bottom: 1px solid var(--rule); color: var(--ink); font-size: 0.9rem; line-height: 1.45; }
.es-notice p { margin: 0; padding: 9px 0; }

/* buttons */
.es-btn { display: inline-block; background: var(--accent); color: #fff; font: 700 1rem/1.2 var(--sans); padding: 12px 20px;
  min-height: 44px; border: 0; border-radius: 4px; text-decoration: none; text-align: center; cursor: pointer; }
.es-btn:hover { background: var(--accent-dark); color: #fff; }
.es-btn-sm { padding: 10px 14px; font-size: 0.95rem; }
.es-btn-full { width: 100%; display: block; }
@media (min-width: 768px) { .es-btn-full { width: auto; display: inline-block; min-width: 220px; } }

/* hero */
.es-hero { padding: 22px 0 8px; }
.es-hero h1 { margin-bottom: 12px; }
.es-opening { font-size: 1.125rem; margin-bottom: 14px; max-width: 70ch; }
.es-crumbs { font-size: 0.9rem; color: var(--slate); margin-bottom: 8px; }
.es-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.es-crumbs li { margin: 0; }
.es-crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--slate); }
.es-crumbs a { color: var(--slate); }

.es-trust { list-style: none; display: grid; gap: 6px 22px; margin: 0 0 14px; padding: 0; }
.es-trust li { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink); font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.es-trust svg { flex: none; color: var(--accent); width: 24px; height: 24px; }
@media (min-width: 768px) { .es-trust { grid-template-columns: repeat(3, auto); justify-content: start; } }

/* form card */
.es-formcard { background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--accent); border-radius: 4px;
  padding: 16px 20px 6px; margin: 0 0 28px; scroll-margin-top: 12px; }
.es-formcard h2 { font-size: 1.35rem; margin-bottom: 10px; }
.es-grid { display: grid; gap: 0 20px; }
@media (min-width: 768px) { .es-grid { grid-template-columns: 1fr 1fr; } .es-span { grid-column: 1 / -1; } }
.es-formcard p { margin-bottom: 10px; }
.es-formcard label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 3px; }
.es-formcard input[type=text], .es-formcard input[type=email], .es-formcard input[type=tel], .es-formcard select, .es-formcard textarea {
  width: 100%; font: 400 1rem/1.3 var(--sans); padding: 10px 12px; min-height: 44px; border: 1px solid #8A8F9B; border-radius: 3px;
  background: #fff; color: var(--ink); }
.es-formcard textarea { min-height: 96px; }
.es-more summary { cursor: pointer; font-weight: 700; color: var(--accent); min-height: 44px; display: flex; align-items: center; }
.es-consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.es-consent input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--accent); }
.es-consent label { font-weight: 400 !important; font-size: 0.95rem !important; }
.es-note { color: var(--slate); font-size: 0.95rem; }

/* body */
.es-body { padding-top: 12px; }
.es-sec { margin: 0 auto 36px; max-width: var(--wide); }
.es-sec > h2, .es-sec > p, .es-sec > ul, .es-sec > ol, .es-sec > dl, .es-sec > .es-faq { max-width: var(--measure); }
.es-sec > h2 { margin-bottom: 10px; }
.es-dab { font-size: 1.0625rem; background: var(--tint); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 0 4px 4px 0; }
.es-steps { list-style: none; counter-reset: s; padding: 0; }
.es-steps li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 10px; }
.es-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; text-align: center; line-height: 28px; font-size: 0.95rem; }
.es-types dt { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; margin-top: 12px; }
.es-types dd { margin: 0 0 6px; }

/* cta band */
.es-cta { background: var(--tint); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 8px 0 36px; }
.es-cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-top: 14px; padding-bottom: 14px; }
.es-cta p { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
@media (max-width: 520px) { .es-cta .es-btn { width: 100%; } }

/* evidence tables */
.es-evidence { margin: 18px 0 24px; max-width: var(--wide); }
.es-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--accent); }
.es-evidence table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.4; min-width: 460px; }
.es-evidence th, .es-evidence td { padding: 9px 12px; text-align: left; vertical-align: top; }
.es-evidence thead th { background: var(--surface); border-bottom: 2px solid var(--rule); font-weight: 700; }
.es-evidence tbody tr:nth-child(even) { background: var(--tint); }
.es-evidence tbody th { font-weight: 400; }
.es-evidence .es-num { text-align: right; font-variant-numeric: tabular-nums; }
.es-evidence tr.es-total th, .es-evidence tr.es-total td { font-weight: 700; border-top: 2px solid var(--rule); }
.es-evidence figcaption { color: var(--slate); font-size: 0.9rem; line-height: 1.5; padding-top: 8px; max-width: var(--measure); }

/* FAQ */
.es-faq details { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; margin-bottom: 8px; }
.es-faq summary { cursor: pointer; padding: 12px 16px; min-height: 44px; font-weight: 700; list-style: none; position: relative; padding-right: 44px; }
.es-faq summary::-webkit-details-marker { display: none; }
.es-faq summary::after { content: "+"; position: absolute; right: 16px; top: 8px; font-size: 1.4rem; color: var(--accent); }
.es-faq details[open] summary::after { content: "\2212"; }
.es-faq details p { padding: 0 16px; margin: 0 0 14px; }

/* footer */
.es-footer { background: var(--surface); border-top: 1px solid var(--rule); padding: 24px 0 28px; font-size: 0.95rem; }
.es-footer p { max-width: var(--measure); }
.es-footlinks a { margin-right: 18px; }

/* sticky mobile CTA */
.es-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--rule); padding: 10px 16px; }
@media (min-width: 768px) { .es-sticky { display: none; } }

@media (max-width: 767px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }
  .es-formcard { padding: 14px 14px 4px; }
}
