/* X8 Property Repair & Maintenance - public site styles (v3). Website by NAVIS. */

:root {
  /* palette sampled from the X8 logo */
  --navy: #041231;        /* ink: dark surfaces, headings, text */
  --navy-mid: #02224e;    /* deep blue */
  --navy-dark: #020f2c;   /* lettering tone: footer, deepest surfaces */
  --royal: #0163ca;       /* primary + CTA, links, accent rule (white text 5.8:1) */
  --royal-dark: #013d88;  /* hover / pressed */
  --royal-on-dark: #6aa8f0; /* royal accent used on navy surfaces (AA on #041231) */
  --silver: #e9e9e9;
  --steel: #a4a4a5;       /* borders and decoration only */
  --steel-dark: #616162;  /* muted text, 6.3:1 on white */
  --offwhite: #f5f6f8;    /* page background */
  --alt: #eceef2;         /* alternate sections */
  --stone: #dfe2e7;       /* hairlines */
  --stone-dark: #c4c8cf;  /* stronger hairlines */
  --field-border: #8b8f96; /* form control boundary, 3:1 on white */
  --white: #ffffff;
  --success: #1e7a4c;
  --error: #b42318;
  --text: #0d1a33;
  --muted: #616162;
  --on-navy: #ffffff;
  --on-navy-muted: rgba(255, 255, 255, 0.78);

  --font-display: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 80px; --s10: 96px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --shadow: 0 1px 2px rgba(4, 18, 49, 0.04), 0 4px 12px rgba(4, 18, 49, 0.06);
  --shadow-up: 0 4px 8px rgba(4, 18, 49, 0.06), 0 12px 24px rgba(4, 18, 49, 0.1);

  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--offwhite);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--royal-dark); }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.015em;
  margin: 0 0 var(--s4);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 2.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 1.875rem); line-height: 1.15; }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.375rem); line-height: 1.25; }
p { margin: 0 0 var(--s4); max-width: 68ch; }
.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem); line-height: 1.5; color: var(--muted); }
.small { font-size: 0.875rem; line-height: 1.45; }
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--s3);
}

.skip-link {
  position: absolute; left: var(--s4); top: -60px; z-index: 300;
  background: var(--royal); color: #fff; font-weight: 600;
  padding: var(--s3) var(--s4); border-radius: var(--r-sm); text-decoration: none;
}
.skip-link:focus { top: var(--s3); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  font-family: var(--font-display); font-size: 0.9375rem; font-weight: 500; line-height: 1;
  border-radius: var(--r-sm); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--royal); color: #fff; }
.btn-primary:hover { background: var(--royal-dark); color: #fff; box-shadow: 0 6px 16px rgba(1, 99, 202, 0.28); }
.btn-primary:active { background: var(--royal-dark); }
.btn-ghost { color: var(--on-navy); border-color: rgba(255, 255, 255, 0.42); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { color: var(--on-navy); border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-outline:focus-visible { outline-color: var(--royal); }
.btn-outline:hover { color: #fff; background: var(--navy); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.text-link {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-display); font-weight: 500; color: var(--navy);
  text-decoration: none; min-height: 44px;
  border-bottom: 1px solid transparent;
}
.text-link:hover { color: var(--navy); }
.text-link .arrow { transition: transform 150ms ease; }
.text-link:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.97);
  color: var(--navy);
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
}
.site-header.is-scrolled { border-bottom-color: var(--stone); box-shadow: 0 1px 2px rgba(4, 18, 49, 0.04), 0 6px 18px rgba(4, 18, 49, 0.06); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.logo { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; flex: none; }
.logo picture, .logo img { display: block; }
.logo img { height: 44px; width: auto; max-width: none; }
.footer-logo { display: inline-flex; background: #fff; padding: 14px 16px; border-radius: var(--r-md); margin-bottom: var(--s5); }
.footer-logo img { height: 48px; width: auto; max-width: none; display: block; }

.nav {
  display: none;
  position: absolute; top: var(--header-h); left: 0; right: 0;
  flex-direction: column; gap: 2px;
  padding: var(--s3) var(--gutter) var(--s5);
  background: #fff;
  border-bottom: 1px solid var(--stone);
  box-shadow: 0 16px 32px rgba(4, 18, 49, 0.12);
}
.nav.open { display: flex; }
.nav a {
  display: flex; align-items: center; min-height: 48px; padding: 0 var(--s3);
  color: var(--navy); text-decoration: none; font-family: var(--font-display); font-weight: 500;
  border-radius: var(--r-sm);
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--offwhite); color: var(--navy); }
.nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--royal); }
.header-actions { display: flex; align-items: center; gap: var(--s2); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: transparent; border: 0; color: var(--navy); cursor: pointer;
}
.icon-btn:hover { background: var(--alt); color: var(--navy); }
.icon-btn svg { width: 22px; height: 22px; }
.desktop-only { display: none; }

@media (min-width: 900px) {
  .nav {
    display: flex; position: static; flex-direction: row; gap: var(--s1);
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  :root { --header-h: 72px; }
  .logo img { height: 52px; }
  .nav a { min-height: 44px; font-size: 0.9375rem; color: var(--navy); padding: 0 var(--s3); }
  .nav a:hover { color: var(--royal-dark); background: var(--offwhite); }
  .nav a[aria-current="page"] { color: var(--navy); background: none; box-shadow: inset 0 -2px 0 var(--royal); border-radius: 0; }
  .hamburger, .mobile-only { display: none; }
  .desktop-only { display: inline-flex; }
  .header-actions .btn { min-height: 40px; padding: 0 var(--s4); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--on-navy);
  background:
    radial-gradient(1100px 620px at 82% 18%, rgba(1, 99, 202, 0.22), transparent 62%),
    radial-gradient(900px 500px at 0% 100%, rgba(2, 15, 44, 0.9), transparent 70%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy) 40%, var(--navy-mid) 100%);
  padding-block: clamp(64px, 9vw, 128px) clamp(56px, 8vw, 112px);
}
.hero::after {
  /* fine silver horizon line: quiet architectural detail */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 233, 233, 0.25) 20%, rgba(233, 233, 233, 0.25) 80%, transparent);
}
.hero-art {
  position: absolute; z-index: -1; pointer-events: none;
  right: max(-120px, calc((100vw - 1500px) / 2 - 60px));
  bottom: 0; height: 100%; aspect-ratio: 900 / 720; max-width: none;
  opacity: 0.22;
}
.hero-art svg, .hero-art img { width: 100%; height: 100%; max-width: none; }
@media (max-width: 899px) {
  .hero-art { right: -40%; opacity: 0.14; }
}
.hero.has-photo {
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, var(--navy) 0%, rgba(4, 18, 49, 0.92) 38%, rgba(4, 18, 49, 0.35) 75%, rgba(4, 18, 49, 0.1) 100%),
    url("/hero.jpg");
  background-size: cover; background-position: center right;
}
.hero.has-photo .hero-art { display: none; }
@media (max-width: 899px) {
  .hero.has-photo { background-image: linear-gradient(180deg, rgba(4, 18, 49, 0.75), rgba(4, 18, 49, 0.95)), url("/hero.jpg"); }
}
.hero-content { max-width: 720px; position: relative; }
.hero .eyebrow { color: var(--on-navy-muted); display: flex; align-items: center; gap: var(--s3); }
.hero .eyebrow::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--royal-on-dark), var(--silver)); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 1.3rem + 3.8vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: var(--s5);
}
.hero .sub { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem); line-height: 1.5; color: var(--on-navy-muted); max-width: 54ch; margin-bottom: var(--s6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s6); }
.proof-chips { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.proof-chips li {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 36px; padding: 0 var(--s3);
  font-size: 0.875rem; font-weight: 500; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
}
.proof-chips svg { width: 16px; height: 16px; color: var(--royal-on-dark); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  background: radial-gradient(900px 500px at 85% 0%, rgba(1, 99, 202, 0.2), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy) 50%, var(--navy-mid));
  padding-block: clamp(48px, 7vw, 96px);
}
.page-hero .hero-art { opacity: 0.14; }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lead { color: var(--on-navy-muted); margin-bottom: 0; }
.page-hero .eyebrow { color: var(--on-navy-muted); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-alt { background: var(--alt); border-block: 1px solid var(--stone); }
.section-head { position: relative; max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); padding-left: var(--s5); }
.section-head::before {
  /* signature moment 1: thin royal-to-silver vertical rule that draws in beside headings */
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, var(--royal), var(--steel));
  transform-origin: top;
}
.section-head p:last-child { margin-bottom: 0; }

/* ---------- Trust bar ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--stone); }
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 0; list-style: none; margin: 0 auto; padding-block: var(--s4); }
.trust-item { display: flex; gap: var(--s4); align-items: flex-start; padding: var(--s4) 0; border-bottom: 1px solid var(--stone); }
.trust-item:last-child { border-bottom: 0; }
.trust-item svg { width: 24px; height: 24px; flex: none; color: var(--navy); margin-top: 2px; }
.trust-item strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--navy); line-height: 1.3; }
.trust-item span { display: block; font-size: 0.9375rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }
@media (min-width: 640px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); column-gap: var(--s6); }
  .trust-item:nth-last-child(2) { border-bottom: 0; }
}
@media (min-width: 1080px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); padding-block: var(--s6); }
  .trust-item { border-bottom: 0; padding: 0 var(--s5) 0 0; border-right: 1px solid var(--stone); }
  .trust-item:last-child { border-right: 0; }
}

/* ---------- Service cards ---------- */
.grid { display: grid; gap: var(--s5); }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--r-md);
  padding: var(--s6);
  box-shadow: var(--shadow);
  transition: box-shadow 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.section-alt .card { background: var(--white); }
.service-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; min-height: 100%; }
.service-card:hover { box-shadow: var(--shadow-up); border-color: var(--stone-dark); color: inherit; }
.service-icon {
  width: 48px; height: 48px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--offwhite); border: 1px solid var(--stone); color: var(--navy);
  margin-bottom: var(--s5);
}
.section-alt .service-icon { background: var(--white); }
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: var(--s2); }
.service-card p { color: var(--muted); margin-bottom: 0; }
.service-card .task {
  /* signature moment 2: the typical task line */
  display: flex; gap: var(--s2); align-items: baseline;
  margin-top: var(--s4); padding-top: var(--s4);
  border-top: 1px dashed var(--stone-dark);
  font-size: 0.9375rem; color: var(--text);
}
.service-card .task b { font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); white-space: nowrap; }
.service-card .more { margin-top: auto; padding-top: var(--s4); font-family: var(--font-display); font-weight: 500; font-size: 0.9375rem; color: var(--navy); display: inline-flex; gap: var(--s2); align-items: center; }
@media (hover: hover) and (min-width: 1000px) {
  .service-card .task {
    max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; padding-top: 0; border-top-color: transparent;
    transition: max-height 300ms var(--ease), opacity 200ms ease, margin-top 300ms var(--ease), padding-top 300ms var(--ease), border-color 200ms ease;
  }
  .service-card:hover .task, .service-card:focus-visible .task, .service-card:focus-within .task {
    max-height: 120px; opacity: 1; margin-top: var(--s4); padding-top: var(--s4); border-top-color: var(--stone-dark);
  }
}
.section-foot { margin-top: var(--s6); }

/* ---------- Why / list ---------- */
.why-grid { display: grid; gap: var(--s6); }
@media (min-width: 1000px) { .why-grid { grid-template-columns: 5fr 7fr; gap: var(--s8); align-items: start; } }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.check-list li {
  display: flex; gap: var(--s4); align-items: flex-start;
  padding: var(--s4) 0; border-bottom: 1px solid var(--stone);
  font-size: 1.0625rem;
}
.check-list li:first-child { border-top: 1px solid var(--stone); }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--success); margin-top: 2px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.step {
  position: relative; padding: var(--s6) var(--s5);
  background: var(--white); border: 1px solid var(--stone); border-radius: var(--r-md);
}
.section-alt .step { background: var(--white); }
@media (min-width: 1080px) {
  .step { border-radius: 0; border-right-width: 0; }
  .step:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
  .step:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; border-right-width: 1px; }
}
.step-num {
  font-family: var(--font-display); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.12em;
  color: var(--muted); display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4);
}
.step-num::after { content: ""; flex: 1; height: 1px; background: var(--stone-dark); }
.step h3 { font-size: 1.125rem; margin-bottom: var(--s2); }
.step p { color: var(--muted); font-size: 0.9375rem; margin: 0; }

/* ---------- Stats strip (signature moment 3) ---------- */
.stats { background: var(--navy); color: #fff; padding-block: clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.stats-grid { position: relative; list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s5); }
@media (min-width: 1000px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { border-left: 1px solid rgba(255, 255, 255, 0.18); padding-left: var(--s5); }
.stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); line-height: 1; letter-spacing: -0.03em; color: #fff; margin-bottom: var(--s3); }
.stat b { color: var(--silver); }
.stat b em { font-style: normal; color: var(--royal-on-dark); }
.stat { border-left-color: rgba(106, 168, 240, 0.45); }
.stat span { display: block; font-size: 0.9375rem; line-height: 1.4; color: var(--on-navy-muted); max-width: 22ch; }

/* ---------- Licences ---------- */
.lic-grid { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .lic-grid { grid-template-columns: 3fr 2fr; } }
.lic-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
@media (min-width: 560px) { .lic-list { grid-template-columns: 1fr 1fr; } }
.lic-list li {
  display: flex; align-items: center; gap: var(--s3);
  min-height: 52px; padding: var(--s3) var(--s4);
  background: var(--white); border: 1px solid var(--stone); border-radius: var(--r-sm);
  font-weight: 500;
}
.section-alt .lic-list li { background: var(--offwhite); }
.service-icon, .lic-list svg, .trust-item svg, .contact-card svg { color: var(--royal); }
.lic-list svg { width: 20px; height: 20px; color: var(--navy); flex: none; }
.cover-card, .section-alt .cover-card { background: linear-gradient(160deg, var(--navy), var(--navy-mid)); color: #fff; border-color: var(--navy); } /* NAVIS review: .section-alt .card (white) outranked it: white text on white */
.cover-card h3 { color: #fff; }
.cover-card .figure { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); line-height: 1; letter-spacing: -0.03em; margin: var(--s4) 0 var(--s3); }
.cover-card .figure small { font-size: 0.45em; letter-spacing: 0; color: var(--royal-on-dark); margin-right: 4px; vertical-align: 0.6em; }
.cover-card p { color: var(--on-navy-muted); }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: var(--s5); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; background: var(--white); border: 1px solid var(--stone); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: var(--s4) var(--s5); font-size: 0.9375rem; color: var(--muted); }

/* ---------- About / area ---------- */
.about-grid { display: grid; gap: var(--s6); }
@media (min-width: 1000px) { .about-grid { grid-template-columns: 7fr 5fr; gap: var(--s8); } }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--stone); }
.facts div { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--stone); }
.facts dt { color: var(--muted); font-size: 0.9375rem; }
.facts dd { margin: 0; font-weight: 600; color: var(--navy); text-align: right; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; padding: 0; margin: 0; }
.chips li {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s4);
  border: 1px solid var(--stone-dark); border-radius: var(--r-sm); background: var(--white);
  font-size: 0.9375rem; font-weight: 500; color: var(--navy);
}
.chips li.wide { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--stone); }
.faq details:first-of-type { border-top: 1px solid var(--stone); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: 64px; padding: var(--s4) 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { color: var(--muted); padding-bottom: var(--s5); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(800px 400px at 90% 50%, rgba(1, 99, 202, 0.22), transparent 60%), linear-gradient(120deg, var(--navy), var(--navy) 55%, var(--navy-mid));
  color: #fff; padding-block: clamp(56px, 7vw, 96px);
}
.cta-inner { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; gap: var(--s8); } }
.cta-band h2 { color: #fff; margin-bottom: var(--s2); font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); }
.cta-band p { color: var(--on-navy-muted); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: var(--on-navy-muted); padding-block: var(--s8) calc(var(--s6) + 72px); font-size: 0.9375rem; }
@media (min-width: 900px) { .site-footer { padding-bottom: var(--s6); } }
.footer-grid { display: grid; gap: var(--s6); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--s4); }
.site-footer a { color: #fff; text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer p { margin-bottom: var(--s2); }
.footer-brand .logo { margin-bottom: var(--s4); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3);
  margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

/* ---------- Mobile action bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2);
  padding: var(--s2) var(--s3) calc(var(--s2) + env(safe-area-inset-bottom));
  background: rgba(2, 15, 44, 0.96); border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-bar .btn { min-height: 52px; width: 100%; }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* ---------- Services page ---------- */
.svc-list { display: grid; gap: var(--s4); list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .svc-list { grid-template-columns: repeat(2, 1fr); gap: var(--s5); } }
.svc {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s4) var(--s5);
  padding: var(--s6); background: var(--white); border: 1px solid var(--stone); border-radius: var(--r-md);
  box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 24px);
  transition: box-shadow 150ms ease, border-color 150ms ease;
}
.svc:hover { box-shadow: var(--shadow-up); border-color: var(--stone-dark); }
.svc:target { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(1, 99, 202, 0.2), var(--shadow-up); }
.svc .service-icon { margin: 0; }
.svc h2 { font-size: 1.25rem; margin-bottom: var(--s2); }
.svc p { color: var(--muted); margin-bottom: var(--s3); }
.svc .num { font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); display: block; margin-bottom: var(--s1); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 7fr 4fr; gap: var(--s7); } }
.form-card { background: var(--white); border: 1px solid var(--stone); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: var(--s5); }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-family: var(--font-display); font-weight: 500; font-size: 0.9375rem; color: var(--navy); margin-bottom: var(--s2); }
.field .opt { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: 0.875rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: var(--s3) var(--s4);
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--offwhite); border: 1.5px solid var(--field-border); border-radius: var(--r-sm);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23041231' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel-dark); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(1, 99, 202, 0.3); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { display: block; color: var(--error); font-size: 0.875rem; margin-top: var(--s2); min-height: 0; }
.field-error:empty { display: none; }
.radio-row { display: flex; flex-wrap: wrap; gap: var(--s2); border: 0; padding: 0; margin: 0; }
.radio-row label {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4);
  border: 1.5px solid var(--field-border); border-radius: var(--r-sm); background: var(--offwhite);
  font-family: var(--font-body); font-weight: 500; color: var(--text); cursor: pointer; margin: 0;
}
.radio-row input { width: 18px; height: 18px; min-height: 0; accent-color: var(--royal); margin: 0; }
.radio-row label:has(input:checked) { border-color: var(--royal); background: #fff; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); margin-top: var(--s6); }
.form-note { font-size: 0.875rem; color: var(--muted); margin: 0; }
.form-status { margin-top: var(--s4); padding: var(--s4); border-radius: var(--r-sm); font-weight: 500; }
.form-status:empty { display: none; }
.form-status.error { background: #fdf0ee; color: var(--error); border: 1px solid #f3c7c1; }
.success-panel { text-align: left; padding: var(--s6) 0; }
.success-panel .tick { width: 56px; height: 56px; border-radius: 50%; background: #e7f3ec; color: var(--success); display: flex; align-items: center; justify-content: center; margin-bottom: var(--s5); }
.success-panel .tick svg { width: 28px; height: 28px; }
.success-panel h2 { margin-bottom: var(--s3); }
.contact-side { display: grid; gap: var(--s4); }
.contact-card { display: flex; gap: var(--s4); align-items: flex-start; padding: var(--s5); background: var(--white); border: 1px solid var(--stone); border-radius: var(--r-md); }
.contact-card svg { width: 22px; height: 22px; color: var(--navy); flex: none; margin-top: 3px; }
.contact-card h2 { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s1); }
.contact-card p { margin: 0; }
.contact-card a { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; text-decoration: none; overflow-wrap: anywhere; }
.contact-card.navy { background: var(--navy); border-color: var(--navy); color: var(--on-navy-muted); }
.contact-card.navy h2 { color: #fff; }
.contact-card.navy svg { color: var(--royal-on-dark); }
.contact-card.navy a { color: #fff; font-size: 1rem; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.375rem; margin-top: var(--s7); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--s2); }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
.notfound .code { font-family: var(--font-display); font-weight: 600; font-size: clamp(4rem, 3rem + 6vw, 8rem); line-height: 1; color: rgba(255, 255, 255, 0.12); letter-spacing: -0.04em; margin-bottom: var(--s4); }

/* ---------- Motion: reveal on scroll (only when JS has added .js-motion to <html>) ---------- */
.js-motion .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; transition-delay: var(--d, 0ms); }
.js-motion .reveal.is-in { opacity: 1; transform: none; }
.js-motion .section-head::before { transform: scaleY(0); transition: transform 0.7s var(--ease) 0.15s; }
.js-motion .section-head.is-in::before { transform: scaleY(1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js-motion .reveal { opacity: 1; transform: none; }
  .js-motion .section-head::before { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-bar, .cta-band, .hero-art, .nav { display: none !important; }
  .hero, .page-hero, .stats { background: none !important; color: #000; }
  .hero h1, .page-hero h1, .stat b { color: #000; }
  body { background: #fff; }
}
