/* Extract Fan Solutions Bristol. Style: Industrial (Hero D). Every value is a custom property from design.md. */
@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/bigshoulders.woff2") format("woff2"); font-weight: 500 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  /* colours */
  --brand: #F2C230;
  --brand-hover: #FFD45A;
  --bg: #15171A;
  --surface: #22252A;
  --text: #EDEFF1;
  --muted: #A7AEB6;
  --line: #3A3E45;
  --overlay: 21 23 26;
  --overlay-phone: 0.86;
  --overlay-strong: 0.94;
  --overlay-mid: 0.86;
  --overlay-soft: 0.35;
  /* fonts and sizes */
  --font-head: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Archivo", "Segoe UI", sans-serif;
  --fs-h1: clamp(2.75rem, 5vw, 5rem);
  --fs-h1-sub: clamp(1.75rem, 3.6vw, 3.25rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.75rem);
  --fs-h3: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 1.4vw, 1.25rem);
  --fs-small: 0.9375rem;
  --fs-eyebrow: 1rem;
  --fs-brand: 1.05rem;
  --fs-tr19-title: 1.5rem;
  --fs-tr19-label: 1rem;
  --fs-tr19-figure: 1.375rem;
  --fs-step-num: 3rem;
  --fs-page-title: clamp(2.25rem, 4vw, 3.5rem);
  --fs-phone-big: clamp(1.75rem, 4vw, 2.5rem);
  --measure-narrow: 820px;
  --field-h: 48px;
  --lh-body: 1.5;
  --lh-head: 0.95;
  --lh-h2: 1.2;
  --lh-sub: 1.1;
  --ls-head: 0.005em;
  --ls-brand: 0.02em;
  --ls-eyebrow: 0.08em;
  --ls-label: 0.06em;
  --measure: 38ch;
  --measure-text: 62ch;
  /* spacing */
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px; --space-6: 48px; --space-8: 64px; --space-12: 96px;
  --space-half: 12px;
  --max: 1240px;
  --pad: 20px;
  --header-h: 64px;
  --section-pad: 56px;
  --card-pad: var(--space-3);
  /* shape and effects */
  --radius: 0;
  --rule: 4px;
  --bar: 8px;
  --border: 2px;
  --hair: 1px;
  --focus-w: 3px;
  --focus-gap: 3px;
  --tap: 44px;
  --btn-h: 48px;
  --btn-pad: 14px 24px;
  --btn-gap: 10px;
  --menu-w: 220px;
  --icon: 1.15em;
  --speed: 150ms;
  --rise: 12px;
  --rise-time: 400ms;
}
@media (min-width: 768px) { :root { --pad: 40px; --section-pad: 96px; --card-pad: var(--space-4); } }
@media (min-width: 1200px) { :root { --header-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
svg { width: var(--icon); height: var(--icon); flex: none; }
:focus-visible { outline: var(--focus-w) solid var(--brand); outline-offset: var(--focus-gap); }
h1, h2, h3 { font-family: var(--font-head); text-transform: uppercase; margin: 0; }

/* Header */
.site-header { border-top: var(--rule) solid var(--brand); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.bar { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); height: var(--header-h); display: flex; align-items: center; gap: var(--space-2); }
.brand { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: var(--ls-brand); font-size: var(--fs-brand); line-height: 1; text-decoration: none; margin-right: auto; display: flex; flex-direction: column; min-height: var(--tap); justify-content: center; align-items: flex-start; }
.brand span { color: var(--brand); }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-4); }
.nav a { color: var(--muted); text-decoration: none; font-size: var(--fs-small); font-weight: 600; display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); transition: color var(--speed); }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--btn-gap); min-height: var(--btn-h); padding: var(--btn-pad); border-radius: var(--radius); font-family: var(--font-body); font-weight: 700; font-size: var(--fs-body); text-decoration: none; white-space: nowrap; transition: background-color var(--speed), color var(--speed), transform var(--speed); }
.btn:active { transform: translateY(1px); }
.btn-main { background: var(--brand); color: var(--bg); }
.btn-main:hover { background: var(--brand-hover); }
.btn-line { border: var(--border) solid var(--text); color: var(--text); }
.btn-line:hover { background: var(--text); color: var(--bg); }
.call-head { min-height: var(--tap); padding: 10px 14px; }
.call-head .long { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: var(--tap); height: var(--tap); display: grid; place-items: center; border: var(--border) solid var(--surface); }
.menu summary::-webkit-details-marker { display: none; }
.menu ul { position: absolute; right: 0; top: calc(var(--tap) + var(--space-1)); list-style: none; margin: 0; padding: var(--space-1) 0; background: var(--surface); min-width: var(--menu-w); }
.menu a { display: block; padding: var(--space-half) var(--space-2); text-decoration: none; }
@media (min-width: 768px) { .call-head .long { display: inline; } .call-head .short { display: none; } .brand { font-size: 1.25rem; flex-direction: row; align-items: center; gap: 0.3em; } }
@media (min-width: 1200px) { .nav { display: block; } .menu { display: none; } }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: calc(100dvh - var(--header-h) - var(--rule)); display: flex; align-items: center; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(var(--overlay) / var(--overlay-phone)); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--bar); background: var(--brand); }
.hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: var(--space-6) var(--pad) var(--space-8); display: grid; grid-template-columns: 1fr; gap: var(--space-6); align-items: center; }
.eyebrow { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--brand); font-size: var(--fs-eyebrow); margin: 0 0 var(--space-2); }
h1 { font-weight: 800; font-size: var(--fs-h1); line-height: var(--lh-head); letter-spacing: var(--ls-head); }
h1 .sub { display: block; color: var(--brand); font-size: var(--fs-h1-sub); line-height: var(--lh-sub); margin-top: var(--space-2); }
.lead { font-size: var(--fs-lead); color: var(--text); max-width: var(--measure); margin: var(--space-3) 0 var(--space-4); }
.ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ctas .btn { flex: 1 1 auto; }
.proof { font-size: var(--fs-small); color: var(--muted); margin: var(--space-3) 0 0; max-width: var(--measure); }
@media (min-width: 768px) {
  .hero::before { background: linear-gradient(90deg, rgb(var(--overlay) / var(--overlay-strong)) 0%, rgb(var(--overlay) / var(--overlay-mid)) 45%, rgb(var(--overlay) / var(--overlay-soft)) 100%); }
  .ctas .btn { flex: 0 0 auto; }
  .hero-inner { padding-top: var(--space-8); padding-bottom: var(--space-12); }
}

/* TR19 table card */
.tr19 { background: var(--surface); border-top: var(--rule) solid var(--brand); padding: var(--space-3); }
.tr19-title { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: var(--ls-brand); font-size: var(--fs-tr19-title); line-height: var(--lh-sub); margin: 0 0 var(--space-2); }
.tr19 table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.tr19 th { text-align: left; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-label); font-size: var(--fs-tr19-label); color: var(--muted); padding: var(--space-1) 0; border-bottom: var(--border) solid var(--muted); }
.tr19 td { padding: var(--space-half) 0; border-bottom: var(--hair) solid var(--line); }
.tr19 td:last-child, .tr19 th:last-child { text-align: right; }
.tr19 td:last-child { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-tr19-figure); line-height: 1; color: var(--brand); text-transform: uppercase; }
.tr19 tr:last-child td { border-bottom: 0; }
.source { font-size: var(--fs-small); color: var(--muted); margin: var(--space-2) 0 0; }
@media (min-width: 1200px) {
  .hero-inner { grid-template-columns: 1.6fr 1fr; gap: var(--space-8); }
  .tr19 { padding: var(--space-4); }
}

/* Sections */
.section { padding: var(--section-pad) 0; border-top: var(--hair) solid var(--line); }
.section.alt { background: var(--surface); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
h2 { font-weight: 800; font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-head); margin-bottom: var(--space-3); }
h3 { font-weight: 800; font-size: var(--fs-h3); line-height: var(--lh-h2); letter-spacing: var(--ls-brand); }
.section p { margin: 0 0 var(--space-2); max-width: var(--measure-text); }
.section p a { color: var(--brand); }
.intro { font-size: var(--fs-lead); margin-bottom: var(--space-4) !important; }
.src { display: block; margin-top: 4px; font-size: var(--fs-small); color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 1200px) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; } }

/* Problem */
.list-title { color: var(--muted); font-weight: 700; font-size: var(--fs-tr19-label); letter-spacing: var(--ls-label); margin-bottom: var(--space-2); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.facts li { background: var(--surface); border-left: var(--rule) solid var(--brand); padding: var(--space-2) var(--space-3); }
.facts strong { font-family: var(--font-head); font-size: var(--fs-h3); letter-spacing: var(--ls-brand); text-transform: uppercase; font-weight: 800; }
.mid-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-top: var(--space-4); }
.mid-cta p { margin: 0 !important; }
.mid-cta p a { font-weight: 700; color: var(--text) !important; }
.mid-cta .btn { flex: 1 1 auto; }
@media (min-width: 768px) { .mid-cta .btn { flex: 0 0 auto; } }

/* Cards (what we clean) */
.cards { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
.card { background: var(--bg); border-top: var(--rule) solid var(--brand); padding: var(--card-pad); display: flex; flex-direction: column; gap: var(--space-1); }
.card p { margin: 0 !important; }
.card h3 { margin-bottom: var(--space-1); }
.more { margin-top: auto; padding-top: var(--space-2); display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--tap); font-weight: 700; color: var(--brand); text-decoration: none; }
.more:hover { text-decoration: underline; }
@media (min-width: 768px) { .cards { grid-template-columns: 1fr 1fr; gap: var(--space-3); } }
@media (min-width: 1200px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.after a { font-weight: 700; display: inline-block; }

/* Why us */
.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--space-4) var(--space-6); }
.why li { border-top: var(--border) solid var(--text); padding-top: var(--space-2); }
.why h3 { margin-bottom: var(--space-1); }
.why p { margin: 0 !important; }
@media (min-width: 768px) { .why { grid-template-columns: 1fr 1fr; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--space-4); counter-reset: step; }
.steps li { counter-increment: step; background: var(--bg); padding: var(--card-pad); border-top: var(--rule) solid var(--brand); }
.steps li::before { content: counter(step); display: block; font-family: var(--font-head); font-weight: 800; font-size: var(--fs-step-num); line-height: 1; color: var(--brand); margin-bottom: var(--space-1); }
.steps h3 { margin-bottom: var(--space-1); }
.steps p { margin: 0 !important; }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); } }

/* Tiles (who, areas) */
.tiles { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--space-1); }
.tiles li { background: var(--surface); border-left: var(--rule) solid var(--brand); padding: var(--space-2) var(--space-3); font-weight: 600; }
.alt .tiles li { background: var(--bg); }
.tiles.areas { display: flex; margin-top: var(--space-2); }
.tiles.areas li { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: var(--fs-h3); letter-spacing: var(--ls-brand); }
@media (min-width: 768px) { .tiles { grid-template-columns: 1fr 1fr; } .tiles.areas { display: flex; } }
.note { color: var(--muted); }

/* FAQ */
.faq-wrap { max-width: calc(var(--max) * 0.8); }
.faq details { border-top: var(--hair) solid var(--line); }
.faq details:last-child { border-bottom: var(--hair) solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); min-height: var(--btn-h); padding: var(--space-2) 0; font-weight: 700; font-size: var(--fs-lead); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-head); font-weight: 800; font-size: var(--fs-h2); line-height: 1; color: var(--brand); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 var(--space-3); max-width: var(--measure-text); }
.faq details a { color: var(--brand); }

/* Final strip */
.final { background: var(--brand); color: var(--bg); padding: var(--section-pad) 0; }
.final-inner { display: grid; gap: var(--space-4); }
.final h2 { margin: 0; max-width: 22ch; }
.btn-dark { background: var(--bg); color: var(--text); }
.btn-dark:hover { background: var(--surface); }
.btn-dark-line { border: var(--border) solid var(--bg); color: var(--bg); }
.btn-dark-line:hover { background: var(--bg); color: var(--text); }
@media (min-width: 1200px) { .final-inner { grid-template-columns: 1fr auto; align-items: center; gap: var(--space-8); } .final .ctas .btn { flex: 0 0 auto; } }

/* Footer */
.site-footer { background: var(--bg); border-top: var(--rule) solid var(--brand); padding: var(--space-8) 0 var(--space-6); font-size: var(--fs-small); }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.site-footer p { margin: 0 0 var(--space-1); }
.foot-name { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: var(--ls-brand); font-size: var(--fs-tr19-title); line-height: 1; }
.foot-name span { color: var(--brand); }
.foot-phone { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; font-size: var(--fs-body); text-decoration: none; color: var(--brand); }
.foot-title { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--muted); font-size: var(--fs-tr19-label); }
.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav a { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
@media (min-width: 768px) { .foot-inner { grid-template-columns: 1.4fr 1fr 1fr; } }

/* Light motion: one fade-up on the hero, off for people who ask for less motion */
@media (prefers-reduced-motion: no-preference) {
  .copy > *, .tr19 { animation: rise var(--rise-time) ease-out both; }
  .copy > *:nth-child(2) { animation-delay: 60ms; }
  .copy > *:nth-child(3) { animation-delay: 120ms; }
  .copy > *:nth-child(4) { animation-delay: 180ms; } .tr19 { animation-delay: 240ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(var(--rise)); } to { opacity: 1; transform: none; } }
}

/* Inner pages: guides, contact, privacy, 404 */
.page-head { background: var(--surface); border-bottom: var(--hair) solid var(--line); padding: var(--space-4) 0 var(--space-6); }
.crumbs ol { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: flex; flex-wrap: wrap; font-size: var(--fs-small); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 var(--space-1); }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); }
.crumbs a:hover { color: var(--text); }
.crumbs li { display: inline-flex; align-items: center; }
.page-title { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: var(--fs-page-title); line-height: var(--lh-head); letter-spacing: var(--ls-head); margin: 0; max-width: 24ch; }
.page-lead { font-size: var(--fs-lead); max-width: var(--measure-text); margin: var(--space-3) 0 0; }
.updated { color: var(--muted); font-size: var(--fs-small); margin: var(--space-3) 0 0; }
.narrow > * { max-width: var(--measure-narrow); }
.prose h2 { margin-top: var(--space-8); }
.prose h2:first-of-type { margin-top: var(--space-6); }
.prose p, .prose li { max-width: var(--measure-text); }
.prose ul, .prose ol { margin: 0 0 var(--space-3); padding-left: var(--space-3); }
.prose li { margin-bottom: var(--space-1); }
.prose a { color: var(--brand); }
.prose .answer { font-size: var(--fs-lead); background: var(--surface); border-left: var(--rule) solid var(--brand); padding: var(--space-3); max-width: none; margin: 0 0 var(--space-4); }
.table-wrap { overflow-x: auto; margin: 0 0 var(--space-2); }
.data { width: 100%; border-collapse: collapse; background: var(--surface); }
.data th, .data td { text-align: left; vertical-align: top; padding: var(--space-half) var(--space-2); border-bottom: var(--hair) solid var(--line); }
.data thead th { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-label); font-size: var(--fs-tr19-label); color: var(--muted); border-bottom: var(--border) solid var(--muted); }
.data tbody th { font-weight: 700; }
.source-line, .note-small { font-size: var(--fs-small); color: var(--muted); }
.related { margin-top: var(--space-4) !important; }
.guide-cta { margin-top: var(--space-8); background: var(--surface); border-top: var(--rule) solid var(--brand); padding: var(--card-pad); }
.guide-cta h2 { margin-top: 0 !important; }
.guide-cta .btn { color: var(--bg); text-decoration: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 1200px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: var(--space-8); align-items: start; } }
.info-label { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--muted); font-size: var(--fs-tr19-label); margin: 0 0 var(--space-1); }
.contact-info p { margin: 0 0 var(--space-3); }
.big-phone { display: inline-flex; align-items: center; gap: var(--btn-gap); min-height: var(--tap); font-family: var(--font-head); font-weight: 800; font-size: var(--fs-phone-big); letter-spacing: var(--ls-brand); color: var(--brand); text-decoration: none; }
.big-phone.inline { display: inline; font-size: inherit; font-family: var(--font-body); font-weight: 700; text-decoration: underline; }
.next-box { background: var(--surface); border-left: var(--rule) solid var(--brand); padding: var(--space-3); margin-top: var(--space-4); }
.next-box h2 { font-size: var(--fs-h3); margin-bottom: var(--space-1); }
.next-box p { margin: 0; }
.quote-form { background: var(--surface); border-top: var(--rule) solid var(--brand); padding: var(--card-pad); display: grid; gap: var(--space-3); }
.field { display: grid; gap: var(--space-1); }
.field label { font-weight: 700; }
.field input, .field textarea { font: inherit; color: var(--text); background: var(--bg); border: var(--border) solid var(--muted); border-radius: var(--radius); min-height: var(--field-h); padding: var(--space-half) var(--space-2); width: 100%; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.quote-form .btn { justify-self: start; border: 0; cursor: pointer; }
.form-note { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.form-note a { color: var(--text); }
@media (max-width: 767px) { .quote-form .btn { justify-self: stretch; } }

/* 404 */
.notfound .tiles { grid-template-columns: 1fr; margin-top: var(--space-4); }
.notfound .tiles a { display: block; text-decoration: none; font-weight: 700; padding: var(--space-half) 0; }
.notfound .tiles a:hover { text-decoration: underline; color: var(--brand); }
.section p.page-lead { margin-top: var(--space-3); }
@media (max-width: 767px) {
  .data.stack thead { position: absolute; left: -10000px; }
  .data.stack tr { display: block; padding: var(--space-1) 0; border-bottom: var(--hair) solid var(--line); }
  .data.stack th, .data.stack td { display: block; border: 0; padding: 4px var(--space-2); }
}
.field .opt { font-weight: 400; color: var(--muted); }
.form-status { margin: 0; padding: var(--space-2); border-left: var(--rule) solid var(--brand); background: var(--bg); }
.form-status[hidden] { display: none; }
.form-status.is-error { border-left-color: var(--text); }
.form-status a { color: var(--brand); font-weight: 700; }
.quote-form .btn[disabled] { opacity: 0.6; cursor: wait; }
