/* ==========================================================================
   Farnborough Contracting Services
   Design system + components. Mobile first. No framework, no build step.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --ink:        #0b1420;
  --slate-900:  #0f1c29;
  --slate-800:  #17293a;
  --slate-700:  #21384c;
  --slate-600:  #3c5670;
  --slate-400:  #7d90a4;
  --slate-200:  #c9d4de;

  --paper:      #ffffff;
  --paper-2:    #f4f7f9;
  --paper-3:    #e9eef3;
  --line:       #dae2e9;

  --amber:      #ffb703;
  --amber-700:  #d99500;
  --amber-050:  #fff6df;

  --green:      #0d6f56;
  --green-050:  #e6f4ef;
  --red:        #a91f16;
  --red-050:    #fdeceb;

  --text:       #14212e;
  --text-mute:  #4f6274;

  --radius:     3px;
  --radius-lg:  4px;

  --shadow-1: 0 1px 2px rgba(11, 20, 32, .06), 0 2px 8px rgba(11, 20, 32, .05);
  --shadow-2: 0 2px 4px rgba(11, 20, 32, .07), 0 12px 28px rgba(11, 20, 32, .10);

  --wrap: 1140px;
  --gut: 20px;

  --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* height of the fixed mobile call bar, used to pad the page bottom */
  --callbar: 62px;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--callbar);
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 6.2vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 4.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
h4 { font-size: 1.08rem; }
p  { margin: 0 0 1.1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
a { color: #0a5c94; text-underline-offset: 3px; }
a:hover { color: #073f66; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid #1478c8;
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Utilities ---------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--amber); color: var(--ink); font-weight: 600;
  padding: 12px 18px; border-radius: var(--radius); transition: top .15s;
}
.skip:focus { top: 8px; }
.center { text-align: center; }
.mono { font-family: var(--font-mono); font-size: .78em; letter-spacing: .1em; text-transform: uppercase; }
.nowrap { white-space: nowrap; }

section { padding: clamp(2.75rem, 7vw, 5rem) 0; }
.sec-tint { background: var(--paper-2); }
.sec-dark { background: var(--slate-900); color: #e8eef4; }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-dark a { color: var(--amber); }

.eyebrow {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber-700); font-weight: 600;
  margin: 0 0 .8rem;
}
.sec-dark .eyebrow { color: var(--amber); }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--text-mute); max-width: 62ch; }
.sec-dark .lede { color: #b9c8d6; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .75rem 1.4rem;
  font-family: var(--font-body); font-size: 1.02rem; font-weight: 600;
  border: 2px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-call { background: var(--amber); color: var(--ink); border-color: var(--amber); font-weight: 700; }
.btn-call:hover { background: var(--amber-700); border-color: var(--amber-700); color: var(--ink); }
.btn-solid { background: var(--slate-800); color: #fff; border-color: var(--slate-800); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--slate-800); border-color: var(--slate-200); }
.btn-ghost:hover { border-color: var(--slate-700); color: var(--ink); }
.sec-dark .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.sec-dark .btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-wide { width: 100%; }
.btn-lg { min-height: 58px; font-size: 1.1rem; padding: .8rem 1.8rem; }
.btn-sm { min-height: 44px; font-size: .95rem; padding: .5rem 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn-row .btn { flex: 1 1 220px; }
@media (min-width: 640px) { .btn-row .btn { flex: 0 0 auto; } }

/* --- Header ------------------------------------------------------------- */
.topbar {
  background: var(--ink); color: #b9c8d6;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
}
.topbar .wrap { display: flex; align-items: center; justify-content: center; gap: 1.4rem; min-height: 36px; flex-wrap: wrap; }
.topbar b { color: var(--amber); font-weight: 600; }
.topbar-hide { display: none; }
@media (min-width: 700px) { .topbar-hide { display: inline; } }

.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 1rem; min-height: 68px; }

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark {
  width: 40px; height: 40px; flex: 0 0 40px;
  background: var(--slate-800); color: var(--amber);
  display: grid; place-items: center; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em;
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt b { font-family: var(--font-head); font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; }
.brand-txt span { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
@media (min-width: 420px) { .brand-txt b { font-size: 1.4rem; } .brand-txt span { font-size: .64rem; } }

.head-call {
  display: none; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
  color: var(--ink); text-decoration: none; letter-spacing: -.01em;
}
.head-call:hover { color: var(--amber-700); }
.head-call small { display: block; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); font-weight: 500; }
@media (min-width: 900px) { .head-call { display: flex; } }
.head-cta { display: none; }
@media (min-width: 1040px) { .head-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 48px; min-width: 48px; padding: 0 .8rem;
  background: var(--slate-800); color: #fff; border: 0; border-radius: var(--radius);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
@media (min-width: 1040px) { .nav-toggle { display: none; } }

/* Nav */
.main-nav { display: none; }
.main-nav.open {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  max-height: calc(100vh - 104px); overflow-y: auto;
  padding: .5rem var(--gut) 1.25rem;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li { border-bottom: 1px solid var(--paper-3); }
.main-nav a {
  display: block; padding: .85rem .25rem; min-height: 48px;
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--amber-700); }
.main-nav .sub { padding: 0 0 .6rem .9rem; border-left: 2px solid var(--paper-3); margin-left: .25rem; }
.main-nav .sub a { font-family: var(--font-body); font-size: .98rem; font-weight: 500; padding: .55rem .25rem; min-height: 44px; color: var(--text-mute); }
.main-nav .sub a:hover { color: var(--amber-700); }

@media (min-width: 1040px) {
  .main-nav { display: block !important; position: static; padding: 0; box-shadow: none; border: 0; max-height: none; overflow: visible; background: none; }
  .main-nav > ul { display: flex; align-items: center; gap: .15rem; }
  .main-nav > ul > li { border: 0; position: relative; }
  .main-nav > ul > li > a { padding: .55rem .7rem; font-size: 1.02rem; min-height: 40px; display: flex; align-items: center; gap: .3rem; border-radius: var(--radius); }
  .main-nav > ul > li > a:hover { background: var(--paper-2); }
  .main-nav .has-sub > a::after { content: ""; width: 6px; height: 6px; border-right: 2px solid var(--slate-400); border-bottom: 2px solid var(--slate-400); transform: rotate(45deg) translateY(-2px); }
  .main-nav .sub {
    display: none; position: absolute; top: calc(100% + 2px); left: 0;
    min-width: 250px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-2);
    padding: .4rem; margin: 0;
  }
  .main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { display: block; }
  .main-nav .sub a { padding: .5rem .7rem; border-radius: 2px; color: var(--text); font-size: .95rem; }
  .main-nav .sub a:hover { background: var(--paper-2); color: var(--amber-700); }
}

/* --- Sticky mobile call bar -------------------------------------------- */
.callbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 120;
  display: flex; gap: 2px;
  background: var(--ink);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 14px rgba(11, 20, 32, .2);
}
.callbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: var(--callbar); padding: .4rem;
  text-decoration: none; font-weight: 700; font-size: 1.02rem;
}
.callbar a small { font-family: var(--font-mono); font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; opacity: .85; }
.callbar .cb-call { background: var(--amber); color: var(--ink); flex: 1.5; }
.callbar .cb-wa { background: #1f8a4c; color: #fff; }
.callbar .cb-quote { background: var(--slate-700); color: #fff; }
@media (min-width: 900px) { .callbar { display: none; } }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--slate-900);
  color: #e9eff5;
  overflow: hidden;
  padding: clamp(2.25rem, 6vw, 4.5rem) 0 clamp(2.25rem, 5vw, 3.5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 460px at 88% -12%, rgba(255, 183, 3, .17), transparent 62%),
    linear-gradient(168deg, #16283a 0%, #0d1a26 62%, #0b1420 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 11px);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: .55em; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: #bccbd9; max-width: 54ch; margin-bottom: 1.6rem; }
.hero-grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: start; } }

.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.hero-badges li { display: flex; align-items: center; gap: .45rem; font-size: .95rem; color: #cfdbe6; font-weight: 500; }
.hero-badges svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--amber); }

.hero-call {
  display: flex; align-items: center; gap: .9rem;
  background: var(--amber); color: var(--ink);
  border-radius: var(--radius); padding: .85rem 1.1rem;
  text-decoration: none; min-height: 66px; font-weight: 700;
  box-shadow: 0 4px 0 var(--amber-700);
}
.hero-call:hover { background: #ffc22e; color: var(--ink); }
.hero-call:active { box-shadow: 0 1px 0 var(--amber-700); transform: translateY(3px); }
.hero-call .hc-ico { width: 26px; height: 26px; flex: 0 0 26px; }
.hero-call b { display: block; font-family: var(--font-head); font-size: clamp(1.5rem, 5vw, 1.95rem); line-height: 1; letter-spacing: -.01em; }
.hero-call small { display: block; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-top: 3px; }
.hero-alt { margin-top: .8rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-alt .btn { flex: 1 1 150px; }

.hero-proof {
  margin-top: 1.6rem; padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .12);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
}
.hero-proof .stars { color: var(--amber); letter-spacing: .12em; font-size: 1rem; }
.hero-proof p { font-size: .96rem; color: #cddae6; margin: .35rem 0 0; }
.hero-proof cite { display: block; font-style: normal; font-size: .82rem; color: #91a5b8; margin-top: .5rem; }

/* Hero quote card */
.quick-card {
  background: #fff; color: var(--text);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
  overflow: hidden;
}
.quick-card .qc-head { background: var(--slate-800); color: #fff; padding: .9rem 1.2rem; }
.quick-card .qc-head b { font-family: var(--font-head); font-size: 1.3rem; display: block; }
.quick-card .qc-head span { font-size: .85rem; color: #b9c8d6; }
.quick-card .qc-body { padding: 1.2rem; }

/* --- Stat strip --------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; padding: 1.15rem 1rem; text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1; color: var(--ink); }
.stat span { display: block; font-size: .84rem; color: var(--text-mute); margin-top: .3rem; line-height: 1.35; }

/* --- Cards / grids ----------------------------------------------------- */
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 620px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.25rem; box-shadow: var(--shadow-1);
}
.card h3 { margin-bottom: .35em; }
.card p { font-size: .96rem; color: var(--text-mute); }

.svc-card {
  display: flex; flex-direction: column; gap: .6rem;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--slate-800);
  border-radius: var(--radius-lg); padding: 1.3rem 1.25rem;
  text-decoration: none; color: inherit; box-shadow: var(--shadow-1);
  transition: border-top-color .15s, box-shadow .15s, transform .15s;
}
.svc-card:hover { border-top-color: var(--amber); box-shadow: var(--shadow-2); transform: translateY(-2px); color: inherit; }
.svc-card .svc-ico { width: 34px; height: 34px; color: var(--slate-700); }
.svc-card:hover .svc-ico { color: var(--amber-700); }
.svc-card h3 { font-size: 1.28rem; margin: 0; }
.svc-card p { margin: 0; font-size: .94rem; color: var(--text-mute); flex: 1; }
.svc-card .svc-from { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green); font-weight: 600; }
.svc-card .svc-go { font-weight: 600; font-size: .93rem; color: #0a5c94; }

/* --- Lists -------------------------------------------------------------- */
.ticks { list-style: none; margin: 0 0 1.1em; padding: 0; }
.ticks li { position: relative; padding: 0 0 .55rem 1.75rem; font-size: 1rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 12px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}
.sec-dark .ticks li::before { border-color: var(--amber); }
.crosses { list-style: none; margin: 0 0 1.1em; padding: 0; }
.crosses li { position: relative; padding: 0 0 .55rem 1.75rem; font-size: 1rem; color: var(--text-mute); }
.crosses li::before { content: "\00d7"; position: absolute; left: 2px; top: -.08em; color: var(--red); font-size: 1.35rem; font-weight: 700; }

.num-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 1rem; }
.num-steps li { counter-increment: s; position: relative; padding-left: 3.25rem; }
.num-steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--amber); color: var(--ink); border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
}
.num-steps h3 { font-size: 1.15rem; margin: .35rem 0 .2rem; }
.num-steps p { font-size: .96rem; color: var(--text-mute); margin: 0; }
.sec-dark .num-steps p { color: #b9c8d6; }

/* --- Tables (prices) ---------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.tbl { min-width: 540px; font-size: .97rem; }
.tbl caption { text-align: left; padding: .9rem 1rem; font-weight: 600; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.tbl th, .tbl td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th {
  background: var(--slate-800); color: #fff; font-family: var(--font-mono);
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  border-bottom: 0;
}
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:nth-child(even) { background: #fafcfd; }
.tbl th[scope="row"] { font-weight: 600; }
.tbl .price { font-family: var(--font-head); font-size: 1.18rem; font-weight: 700; white-space: nowrap; }
.tbl .note { display: block; font-size: .84rem; color: var(--text-mute); font-weight: 400; margin-top: .15rem; }

/* --- Callouts ----------------------------------------------------------- */
.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--amber);
  background: var(--amber-050); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; margin: 1.75rem 0;
}
.callout h3, .callout h4 { margin: 0 0 .4rem; }
.callout p { font-size: .97rem; margin-bottom: .6rem; }
.callout.is-info { border-left-color: #1478c8; background: #eef6fc; }
.callout.is-good { border-left-color: var(--green); background: var(--green-050); }
.callout.is-warn { border-left-color: var(--red); background: var(--red-050); }

/* --- Reviews ------------------------------------------------------------ */
.rev-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.2rem; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: .6rem;
}
.rev-card .rv-score { display: flex; align-items: center; gap: .5rem; }
.rev-card .rv-score b { font-family: var(--font-head); font-size: 1.3rem; color: var(--green); }
.rev-card .rv-score span { color: var(--amber-700); letter-spacing: .1em; }
.rev-card blockquote { margin: 0; font-size: 1rem; line-height: 1.6; }
.rev-card footer { font-size: .84rem; color: var(--text-mute); margin-top: auto; padding-top: .3rem; border-top: 1px solid var(--paper-3); }
.rev-card footer b { color: var(--text); }

.score-badge {
  display: inline-flex; align-items: center; gap: .8rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: .8rem 1.1rem; text-decoration: none; color: inherit; box-shadow: var(--shadow-1);
}
.score-badge b { font-family: var(--font-head); font-size: 2rem; line-height: 1; color: var(--green); }
.score-badge span { font-size: .88rem; color: var(--text-mute); line-height: 1.3; }
.score-badge span em { display: block; font-style: normal; font-weight: 600; color: var(--text); }

/* --- Forms -------------------------------------------------------------- */
.form-grid { display: grid; gap: 1.1rem; }
.field label, .fieldset-lbl {
  display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem;
}
.field .hint { display: block; font-weight: 400; font-size: .85rem; color: var(--text-mute); margin-top: -.25rem; margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .7rem .85rem;
  font-family: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1.5px solid var(--slate-200); border-radius: var(--radius);
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #1478c8; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); background: #fffafa; }
.req { color: var(--red); }

fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
@media (min-width: 560px) { .chips { grid-template-columns: repeat(3, 1fr); } }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: .5rem .6rem;
  border: 1.5px solid var(--slate-200); border-radius: var(--radius);
  background: #fff; font-size: .93rem; font-weight: 500; line-height: 1.25;
}
.chip input:checked + span { border-color: var(--slate-800); background: var(--slate-800); color: #fff; font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid #1478c8; outline-offset: 2px; }
.chip span:hover { border-color: var(--slate-600); }

.form-note { font-size: .85rem; color: var(--text-mute); }
.form-msg { padding: .9rem 1rem; border-radius: var(--radius); font-size: .96rem; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: var(--green-050); border: 1px solid #9ecfc0; color: #08533f; }
.form-msg.err { background: var(--red-050); border: 1px solid #e8a9a4; color: #8b1a12; }

/* --- Tool: is it my drain? --------------------------------------------- */
.tool { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.tool-head { background: var(--slate-800); color: #fff; padding: 1rem 1.2rem; }
.tool-head b { font-family: var(--font-head); font-size: 1.35rem; display: block; }
.tool-head span { font-size: .88rem; color: #b9c8d6; }
.tool-body { padding: 1.2rem; }
.tool-q { font-weight: 600; font-size: 1.08rem; margin: 0 0 .8rem; }
.tool-opts { display: grid; gap: .5rem; }
.tool-opts button {
  text-align: left; min-height: 52px; padding: .7rem .9rem;
  background: #fff; border: 1.5px solid var(--slate-200); border-radius: var(--radius);
  font: inherit; font-weight: 500; cursor: pointer; color: var(--text);
}
.tool-opts button:hover { border-color: var(--slate-700); background: var(--paper-2); }
.tool-progress { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); margin-bottom: .7rem; }
.tool-result h3 { font-size: 1.3rem; }
.tool-reset { margin-top: 1rem; }

/* --- Calculator --------------------------------------------------------- */
.calc-out {
  margin-top: 1.1rem; padding: 1.1rem 1.2rem; background: var(--slate-900); color: #fff;
  border-radius: var(--radius);
}
.calc-out b { display: block; font-family: var(--font-head); font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1; color: var(--amber); }
.calc-out span { display: block; font-size: .9rem; color: #b9c8d6; margin-top: .4rem; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; gap: .8rem; cursor: pointer;
  padding: 1.05rem .25rem; min-height: 48px;
  font-family: var(--font-head); font-size: 1.18rem; font-weight: 600; color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; flex: 0 0 12px; width: 12px; height: 12px; margin-top: .35em;
  border-right: 2.5px solid var(--slate-600); border-bottom: 2.5px solid var(--slate-600);
  transform: rotate(45deg); transition: transform .18s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--amber-700); }
.faq .faq-a { padding: 0 .25rem 1.15rem; font-size: 1rem; color: var(--text-mute); }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* --- Projects ----------------------------------------------------------- */
.proj-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .proj-grid { grid-template-columns: repeat(3, 1fr); } }
.proj {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column;
}
.proj-media { position: relative; aspect-ratio: 4 / 3; background: var(--paper-3); }
.proj-media img { width: 100%; height: 100%; object-fit: cover; }
.proj-media .ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: linear-gradient(150deg, #2a4056, #16283a);
  color: #7f98b0; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; padding: 1rem;
}
.proj-tag {
  position: absolute; top: .6rem; left: .6rem; z-index: 2;
  background: var(--amber); color: var(--ink);
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .09em; text-transform: uppercase;
  font-weight: 600; padding: .3rem .5rem; border-radius: 2px;
}
.proj-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.proj-body h3 { font-size: 1.18rem; margin: 0; }
.proj-body p { font-size: .93rem; color: var(--text-mute); margin: 0; }
.proj-meta { margin-top: auto; padding-top: .6rem; display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .82rem; color: var(--text-mute); border-top: 1px solid var(--paper-3); }
.proj-meta b { color: var(--text); font-weight: 600; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filters button {
  min-height: 44px; padding: .45rem 1rem;
  background: #fff; border: 1.5px solid var(--slate-200); border-radius: var(--radius);
  font: inherit; font-size: .93rem; font-weight: 500; cursor: pointer; color: var(--text);
}
.filters button[aria-pressed="true"] { background: var(--slate-800); border-color: var(--slate-800); color: #fff; font-weight: 600; }

/* --- Areas -------------------------------------------------------------- */
.area-grid { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .area-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .area-grid { grid-template-columns: repeat(4, 1fr); } }
.area-link {
  display: flex; flex-direction: column; gap: .1rem;
  min-height: 62px; padding: .75rem .9rem;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--amber);
  border-radius: var(--radius); text-decoration: none; color: var(--ink);
  transition: box-shadow .15s, transform .15s;
}
.area-link:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); color: var(--ink); }
.area-link b { font-family: var(--font-head); font-size: 1.15rem; }
.area-link span { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .09em; text-transform: uppercase; color: var(--text-mute); }
.pc-list { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.pc-list li { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; background: var(--paper-3); border-radius: 2px; padding: .25rem .5rem; }

/* --- Breadcrumbs -------------------------------------------------------- */
.crumbs { background: var(--paper-2); border-bottom: 1px solid var(--line); font-size: .85rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0; padding: .7rem 0; }
.crumbs li { display: flex; align-items: center; gap: .45rem; color: var(--text-mute); }
.crumbs li + li::before { content: "/"; color: var(--slate-400); }
.crumbs a { color: var(--text-mute); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* --- Page head ---------------------------------------------------------- */
.page-head { background: var(--slate-900); color: #e9eff5; padding: clamp(2rem, 5vw, 3.25rem) 0; position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 340px at 92% -20%, rgba(255, 183, 3, .15), transparent 60%);
}
.page-head > .wrap { position: relative; }
.page-head h1 { color: #fff; margin-bottom: .4em; }
.page-head .lede { color: #bccbd9; }
.page-head .btn-row { margin-top: 1.6rem; }

/* --- Prose (guides) ----------------------------------------------------- */
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 2px solid var(--paper-3); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose .table-scroll { margin: 1.6rem 0; }
.toc { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; margin-bottom: 2rem; }
.toc b { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); display: block; margin-bottom: .6rem; }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: .97rem; }
.toc li { margin-bottom: .35rem; }
.byline { display: flex; align-items: center; gap: .8rem; font-size: .88rem; color: var(--text-mute); border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; margin-bottom: 1.8rem; }
.byline .av { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: var(--slate-800); color: var(--amber); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }

/* --- CTA band ----------------------------------------------------------- */
.cta-band { background: var(--slate-800); color: #fff; }
.cta-band .cta-in { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 860px) { .cta-band .cta-in { grid-template-columns: 1.3fr .7fr; } }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #bccbd9; margin: 0; }

/* --- Footer ------------------------------------------------------------- */
.site-foot { background: var(--ink); color: #9fb1c2; font-size: .93rem; padding: clamp(2.5rem, 6vw, 3.5rem) 0 1.5rem; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }
.site-foot h2 { font-size: 1rem; font-family: var(--font-mono); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: .9rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .5rem; }
.site-foot a { color: #9fb1c2; text-decoration: none; }
.site-foot a:hover { color: var(--amber); text-decoration: underline; }
.site-foot .foot-brand b { font-family: var(--font-head); font-size: 1.5rem; color: #fff; display: block; }
.site-foot address { font-style: normal; margin: .8rem 0; line-height: 1.7; }
.site-foot .foot-tel { font-family: var(--font-head); font-size: 1.6rem; color: var(--amber); text-decoration: none; display: inline-block; }
.foot-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; list-style: none; padding: 0; }
.foot-badges li {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid #2c3f52; border-radius: 2px; padding: .35rem .55rem; color: #b9c8d6;
}
.foot-base { border-top: 1px solid #1c2b3a; margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: .82rem; }
.foot-base p { margin: 0; }
.foot-base nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* --- Print -------------------------------------------------------------- */
@media print {
  .site-head, .callbar, .topbar, .cta-band, .nav-toggle { display: none !important; }
  body { padding-bottom: 0; font-size: 12pt; }
  .hero, .page-head, .sec-dark { background: #fff !important; color: #000 !important; }
  .hero h1, .page-head h1 { color: #000 !important; }
}

/* ==========================================================================
   Fixes verified against a real 390px viewport
   ========================================================================== */

/* Grid and flex children default to min-width:auto, which lets a long
   unbreakable string or a wide table push the whole track past the
   viewport. Confirmed on the area, guide and contact pages at 390px. */
.grid > *,
.hero-grid > *,
.cta-in > *,
.foot-grid > * { min-width: 0; }

.table-scroll { max-width: 100%; }

/* Long email addresses and URLs inside buttons and prose */
.btn { overflow-wrap: anywhere; }
.prose a, .site-foot a, address a { overflow-wrap: break-word; }

/* [hidden] must beat the component's own display value, or the project
   filter appears to do nothing. */
[hidden] { display: none !important; }

/* WCAG 2.2 SC 2.5.8: 24px minimum on controls that are not inline in
   sentence text. The footer contact and legal links needed padding. */
.site-foot address a,
.foot-base nav a {
  display: inline-block;
  padding: 4px 0;
  min-height: 24px;
}
.foot-base nav a { padding: 4px 2px; }

/* --- Header layout fix -------------------------------------------------
   Nine top-level nav items plus the brand, the phone number and a call to
   action do not fit on one row at 1440px: the button was compressing to one
   letter per line. Row one carries identity and contact, row two carries
   the nav, from 1040px up.
   ---------------------------------------------------------------------- */
.head-in { flex-wrap: wrap; }
.brand { flex: 1 1 auto; min-width: 0; }
.head-call,
.head-cta,
.nav-toggle { flex: 0 0 auto; white-space: nowrap; }
.head-call { padding-left: .25rem; }

@media (min-width: 1040px) {
  .main-nav {
    flex: 1 0 100%;
    order: 10;
    margin: 0 calc(var(--gut) * -1);
    padding: 0 var(--gut);
    border-top: 1px solid var(--line);
  }
  .main-nav > ul { gap: .1rem; min-height: 50px; }
  .main-nav > ul > li > a { white-space: nowrap; padding: .5rem .75rem; }
  .main-nav .sub { top: calc(100% - 4px); }
  .head-in { min-height: 0; padding-top: .5rem; }
  .brand { padding-bottom: .5rem; }
  .head-call, .head-cta { margin-bottom: .5rem; }
}

/* --- Inline icon sizing ------------------------------------------------
   An unclassed inline SVG inherits max-width:100% and height:auto from the
   media reset, which made the phone icon fill the whole button on the
   prices page. Give every inline icon an explicit em-based box.
   ---------------------------------------------------------------------- */
svg { flex: 0 0 auto; }
.btn svg,
.callbar svg,
.proj-meta svg,
.foot-badges svg,
.rev-card svg,
.stat svg {
  width: 1.15em;
  height: 1.15em;
}
.btn-lg svg { width: 1.25em; height: 1.25em; }

/* Hero secondary actions: two side by side is too narrow at 390px */
.hero-alt .btn { flex: 1 1 100%; }
@media (min-width: 480px) { .hero-alt .btn { flex: 1 1 170px; } }

/* --- Ghost buttons on dark backgrounds --------------------------------
   .sec-dark carried the light variant, but .hero, .page-head and
   .cta-band are dark without that class, so the label was rendering
   near-black on near-black and reading as an empty box.
   ---------------------------------------------------------------------- */
.hero .btn-ghost,
.page-head .btn-ghost,
.cta-band .btn-ghost,
.hero-alt .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .04);
}
.hero .btn-ghost:hover,
.page-head .btn-ghost:hover,
.cta-band .btn-ghost:hover,
.hero-alt .btn-ghost:hover {
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}

/* --- Header row one must not wrap below the desktop breakpoint --------
   The wrap needed for the two-row desktop nav was pushing the Menu
   button onto its own line at 390px.
   ---------------------------------------------------------------------- */
@media (max-width: 1039px) {
  .head-in { flex-wrap: nowrap; }
  .brand { flex: 1 1 0; min-width: 0; }
  .brand-txt { min-width: 0; }
  .brand-txt b { font-size: clamp(1.05rem, 4.6vw, 1.4rem); }
}

/* WhatsApp green measured at 4.38:1 against white bold 16px, just under the
   4.5:1 AA threshold for normal-size text. Darkened. */
.callbar .cb-wa { background: #16713d; }

/* --- Accent text on light backgrounds ---------------------------------
   --amber-700 (#d99500) measures 2.55:1 on white, which fails WCAG AA for
   the small uppercase eyebrow labels, nav hover states and review stars.
   --amber-ink is the same hue darkened to 4.9:1 on white and 4.6:1 on the
   tint, and is used wherever the accent is TEXT rather than a fill.
   ---------------------------------------------------------------------- */
:root { --amber-ink: #9a6600; }

.eyebrow { color: var(--amber-ink); }
.sec-dark .eyebrow,
.page-head .eyebrow,
.hero .eyebrow { color: var(--amber); }

.head-call:hover { color: var(--amber-ink); }
.main-nav a:hover,
.main-nav a[aria-current="page"],
.main-nav .sub a:hover,
.svc-card .svc-go,
.faq summary:hover { color: var(--amber-ink); }
.svc-card:hover .svc-ico { color: var(--amber-ink); }
.rev-card .rv-score span { color: var(--amber-ink); }
.hero-proof .stars { color: var(--amber); }

/* --- Two last contrast fixes ------------------------------------------
   1. `.sec-dark a` (0,1,1) outranked `.btn-call` (0,1,0), so the call
      button inside a dark section rendered amber text on amber fill:
      1.00:1, completely unreadable. Exclude buttons from that rule.
   2. The project placeholder caption was too faint against its gradient.
   ---------------------------------------------------------------------- */
.sec-dark a { color: inherit; }
.sec-dark a:not(.btn):not(.svc-card):not(.area-link):not(.score-badge) { color: var(--amber); }
.sec-dark .btn-call { color: var(--ink); }
.sec-dark .btn-solid { color: #fff; }

.proj-media .ph { color: #b7c9d8; }

/* --- Work cards with no photograph yet --------------------------------
   The gallery went live before any job photographs existed. A grid of
   "photograph to follow" boxes reads as an unfinished site, so a card
   without an image drops the media box entirely and presents as a short
   case note: category chip, what was wrong, where, how long.
   ---------------------------------------------------------------------- */
.proj-text { border-top: 3px solid var(--amber); }
.proj-text .proj-body { padding: 1.15rem 1.25rem 1.2rem; gap: .55rem; }
.proj-cat {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 600;
  color: var(--slate-800); background: var(--paper-3);
  border-radius: 2px; padding: .3rem .55rem;
}
.proj-text h3 { font-size: 1.24rem; }
.proj-text p { font-size: .96rem; }
