/* ==========================================================================
   Genesis and Harryloch — design system
   Brand: Navy #0C2A5A · Gold #F6A71C · Infra Blue #0E67B1 · Grey #A2A8B6 · White
   Typeface: Inter (400/600/700/800)
   Signature element: the "centreline" — a dashed gold stripe, like a road
   marking, reused under headings, in the logo and along the process rail.
   ========================================================================== */

:root {
  --navy: #0C2A5A;
  --navy-deep: #081E42;
  --navy-tint: #EEF2F8;
  --gold: #F6A71C;
  --gold-tint: #FDF2DC;
  --blue: #0E67B1;
  --grey: #A2A8B6;
  --grey-line: #D9DDE4;
  --grey-tint: #F4F5F8;
  --ink: #16233C;
  --white: #FFFFFF;
  --danger: #B3261E;

  /* Image slot aspect ratios — adjust when real assets arrive */
  --ar-hero: 16 / 9;
  --ar-card: 4 / 3;
  --ar-portrait: 4 / 5;
  --ar-square: 1 / 1;

  --wrap: 74rem;
  --wrap-narrow: 46rem;
  --radius-card: 5px; --radius-btn: 4px; --radius-chip: 3px;
  --radius: var(--radius-card);
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --tap: 44px;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 .6em; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 5.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; max-width: 70ch; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
ul, ol { padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--navy-deep); }
[id] { scroll-margin-top: 5rem; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2rem, var(--wrap-narrow)); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: .75rem 1.25rem; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 0; color: var(--white); }

.eyebrow {
  font-weight: 700; font-size: .85rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .75rem;
}
.lede { font-size: 1.15rem; line-height: 1.55; }
.muted { color: #4B5563; }

/* ---------- the signature "centreline" ---------- */
.roadline {
  display: block; height: 4px; width: 72px; margin: .9rem 0 0;
  background: repeating-linear-gradient(90deg, var(--gold) 0 16px, transparent 16px 26px);
}
.roadline-light { background: repeating-linear-gradient(90deg, var(--white) 0 16px, transparent 16px 26px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--tap); padding: .65rem 1.35rem;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius-btn);
  cursor: pointer; text-align: center;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: #E3981A; border-color: #E3981A; color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-onnavy { background: transparent; color: var(--white); border-color: var(--white); }
.btn-onnavy:hover { background: var(--white); color: var(--navy); }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; margin-top: .5rem; }
.btn-danger { background: var(--white); color: var(--danger); border-color: var(--danger); margin-top: 1.5rem; }
.btn-danger:hover { background: var(--danger); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: wait; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }
.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 2rem; height: 2rem; }
.icon-xl { width: 3rem; height: 3rem; }

/* ---------- image slots ---------- */
.img-slot {
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: var(--ar, var(--ar-card));
  background: var(--grey-tint);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-card);
}
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
.img-slot.is-empty { display: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--grey-line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; padding: .6rem 0; }
.logo-link { text-decoration: none; display: inline-flex; }
.logo { display: inline-flex; align-items: center; }
.brand-logo { display: block; height: 44px; width: auto; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .65rem .9rem; min-height: 44px;
  color: var(--navy); font-weight: 600; text-decoration: none;
  border-radius: var(--radius-btn);
}
.main-nav a:hover { background: var(--navy-tint); }
.main-nav a.is-active { color: var(--blue); box-shadow: inset 0 -3px 0 var(--gold); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.header-phone { display: none; align-items: center; gap: .4rem; color: var(--navy); font-weight: 700; text-decoration: none; padding: .5rem; }
.header-actions .btn { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 2px solid var(--navy); border-radius: var(--radius-btn);
  background: var(--white); color: var(--navy); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon:not(.icon-close) { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

body.nav-open .main-nav {
  display: block; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--grey-line);
  padding: .5rem 1rem 1rem;
}
body.nav-open .main-nav ul { flex-direction: column; gap: 0; }
body.nav-open .main-nav a { border-radius: 0; border-bottom: 1px solid var(--grey-line); }
body.nav-open .main-nav li:last-child a { border-bottom: 0; }

/* ---------- breadcrumbs ---------- */
.crumbs { padding-top: 1rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: var(--grey); }
.crumbs [aria-current] { color: var(--navy); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: var(--space) 0; }
.section-flush { padding-top: 0; }
.section-tint { background: var(--navy-tint); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2 { color: var(--white); }
.section-navy .section-sub { color: #C7D2E6; }
.section-head { margin-bottom: 1.75rem; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-sub { color: #4B5563; margin: 0; }

/* ---------- page hero (photo + solid scrim) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--navy);
}
.page-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero-img.is-missing { display: none; }
.page-hero-scrim { position: absolute; inset: 0; background: rgba(12, 42, 90, 0.78); }
.page-hero-inner {
  position: relative; z-index: 1;
  padding: calc(var(--space) * 1.1) 0 var(--space);
  color: var(--white);
  min-height: 15rem;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.page-hero-tall .page-hero-inner { min-height: clamp(22rem, 52vh, 32rem); }
.page-hero h1 { color: var(--white); margin-bottom: 0; max-width: 18ch; }
.page-hero .lede { color: #D7E1F0; margin-top: .9rem; max-width: 62ch; }
.crumbs-hero { padding: 0 0 .5rem; }
.crumbs-hero a, .crumbs-hero [aria-current] { color: #D7E1F0; }
.crumbs-hero li:not(:last-child)::after { color: var(--grey); }
.eyebrow-hero { color: var(--gold); margin-bottom: .4rem; }
.page-hero .hero-actions { margin: 1.1rem 0 .9rem; }
.page-hero .hero-points { color: var(--white); }
.page-hero .btn-outline { color: var(--white); border-color: var(--white); }
.page-hero .btn-outline:hover { background: var(--white); color: var(--navy); }

/* ---------- photo strip ---------- */
.photo-strip { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
.photo-strip .img-slot { border: 0; }
.photo-strip .img-slot:nth-child(3) { grid-column: 1 / -1; }

/* ---------- split band (image + navy panel) ---------- */
.split-band { display: grid; }
.split-band .img-slot { border: 0; border-radius: 0; }
.split-band-copy {
  background: var(--navy); color: var(--white);
  padding: var(--space); display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start; gap: .75rem;
}
.split-band-copy h2, .split-band-copy h3 { color: var(--white); }
.split-band-copy p { color: #C7D2E6; margin: 0; }

/* ---------- sector list ---------- */
.sector-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.sector-list li {
  padding: .8rem 0; border-bottom: 1px solid var(--grey-line);
  display: flex; gap: .8rem; align-items: baseline;
}
.sector-list li:last-child { border-bottom: 0; }
.sector-list .icon { color: var(--gold); background: var(--navy); border-radius: 50%; padding: .15rem; align-self: center; }
.sector-list strong { color: var(--navy); }
.sector-list span { color: #4B5563; }

/* ---------- hero ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; font-weight: 600; color: var(--navy); }
.hero-points .icon { color: var(--gold); background: var(--navy); border-radius: 50%; padding: .2rem; }

/* ---------- service tiles & blocks ---------- */
.service-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.service-tile {
  display: grid; gap: .35rem; padding: 1.25rem;
  border: 1px solid var(--grey-line); border-radius: var(--radius-card);
  text-decoration: none; color: var(--ink); background: var(--white);
}
.service-tile:hover { border-color: var(--navy); background: var(--grey-tint); }
.service-icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: var(--gold); border-radius: var(--radius-chip); }
.service-icon .icon { width: 1.6em; height: 1.6em; }
.service-name { font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.service-short { color: #4B5563; font-size: .98rem; }
.service-link { font-weight: 700; color: var(--blue); font-size: .95rem; margin-top: .35rem; }

.service-list { display: grid; gap: 2.5rem; }
.service-block { display: grid; gap: 1.25rem; }
.service-block-copy p { max-width: 60ch; }
.who-for { color: #4B5563; font-size: .95rem; }

.service-detail-grid { display: grid; gap: 2rem; }
.service-main h2 { margin-top: 1.75rem; font-size: 1.3rem; }
.service-main h2:first-child { margin-top: 0; }
.check-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.check-list .icon { color: var(--gold); background: var(--navy); border-radius: 50%; padding: .15rem; margin-right: .35rem; }
.related-list a { font-weight: 600; }

.aside-box { border: 1px solid var(--grey-line); border-radius: var(--radius-card); padding: 1.25rem; margin-bottom: 1.25rem; background: var(--white); }
.aside-box h2 { font-size: 1.15rem; }
.aside-note { font-size: .9rem; color: #4B5563; margin-top: .75rem; }

/* ---------- why us ---------- */
.why-grid { display: grid; gap: 2rem; align-items: start; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.why-list li { display: flex; gap: .9rem; align-items: flex-start; }
.why-check { flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: var(--navy); border-radius: 50%; }
.why-list p { margin: .15rem 0 0; color: #4B5563; }
.why-list strong { color: var(--navy); font-size: 1.05rem; }

/* ---------- projects ---------- */
.project-rows { display: grid; gap: 1.5rem; }
.project-row { display: grid; gap: 1rem; text-decoration: none; color: var(--ink); }
.project-meta { display: grid; gap: .35rem; align-content: start; }
.project-name { font-weight: 800; font-size: 1.2rem; color: var(--navy); }
.project-summary { color: #4B5563; }
.project-row:hover .project-name { color: var(--blue); }

.project-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
.project-card {
  border: 1px solid var(--grey-line); border-radius: var(--radius-card); overflow: hidden;
  text-decoration: none; color: var(--ink); background: var(--white);
}
.project-card .img-slot { border: 0; border-radius: 0; }
.project-card-body { display: grid; gap: .4rem; padding: 1rem 1.1rem 1.2rem; }
.project-card:hover .project-name { color: var(--blue); }

.tag {
  display: inline-block; padding: .15rem .6rem; font-size: .78rem; font-weight: 700;
  border-radius: var(--radius-chip); background: var(--navy-tint); color: var(--navy);
  text-transform: uppercase; letter-spacing: .04em;
}
.tag-status-completed { background: var(--navy); color: var(--white); }
.tag-status-ongoing { background: var(--gold); color: var(--navy); }
.tag-link { text-decoration: none; }
.project-tags { display: flex; flex-wrap: wrap; gap: .4rem; }

.project-head { display: grid; gap: 1.5rem; }
.project-facts { margin: 0; border: 1px solid var(--grey-line); border-radius: var(--radius-card); padding: 1rem 1.25rem; display: grid; gap: .6rem; align-content: start; background: var(--white); }
.project-facts div { display: flex; justify-content: space-between; gap: 1rem; }
.project-facts dt { font-weight: 600; color: #4B5563; font-size: .85rem; }
.project-facts dd { margin: 0; font-weight: 700; color: var(--navy); text-align: right; }
@media (min-width: 40rem) {
  .project-facts { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; }
  .project-facts div { flex-direction: column; gap: .15rem; }
  .project-facts dd { text-align: left; }
}
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.project-body { margin-top: 2rem; }
.project-body h2 { font-size: 1.3rem; margin-top: 1.75rem; }

/* ---------- filters ---------- */
.filter-bar { display: grid; gap: 1rem; padding: 1.1rem; background: var(--navy-tint); border-radius: var(--radius-card); border: 1px solid var(--grey-line); align-items: end; }
.filter-fields { display: grid; gap: .9rem; grid-template-columns: 1fr; }
.filter-bar label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; color: var(--navy); }
.filter-clear { font-weight: 600; white-space: nowrap; }

/* ---------- process rail ---------- */
.process-rail { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: step; }
.process-rail li { position: relative; padding-left: 1.75rem; }
.process-rail li::before {
  content: ""; position: absolute; left: 0; top: .35rem; bottom: -1.5rem;
  width: 3px;
  background: repeating-linear-gradient(180deg, var(--gold) 0 10px, transparent 10px 18px);
}
.process-rail li:last-child::before { display: none; }
.process-rail strong { color: var(--gold); font-size: 1.1rem; display: block; }
.process-rail p { color: #C7D2E6; margin: .2rem 0 0; }

/* ---------- testimonials ---------- */
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 60s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 1.25rem; padding-right: 1.25rem; }
.quote-card { flex: 0 0 min(17.5rem, 78vw); margin: 0; padding: 1.25rem 1.5rem; background: var(--white); border: 1px solid var(--grey-line); border-radius: var(--radius-card); }
.quote-card p { font-size: 1.05rem; }
.quote-card footer { display: grid; font-size: .9rem; }
.quote-card footer strong { color: var(--navy); }
.quote-card footer span { color: #4B5563; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ---------- faq ---------- */
.faq-list { display: grid; gap: .6rem; }
.faq-item { background: var(--white); border: 1px solid var(--grey-line); border-radius: var(--radius-card); }
.faq-item summary {
  padding: 1rem 1.25rem; min-height: 44px; cursor: pointer;
  font-weight: 700; color: var(--navy); list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; font-weight: 800; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 1.25rem 1rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--white); }
.cta-inner { display: grid; gap: 1.25rem; align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: .35rem; }
.cta-band p { color: #C7D2E6; margin: 0; }
.cta-actions { display: grid; gap: .75rem; }

/* ---------- forms ---------- */
.stacked-form { display: grid; gap: 1.1rem; }
.stacked-form label { display: grid; gap: .35rem; font-weight: 600; color: var(--navy); font-size: .95rem; }
.stacked-form input, .stacked-form select, .stacked-form textarea,
.filter-bar select, .filter-bar input {
  font: inherit; font-size: 1rem; padding: .7rem .85rem; min-height: var(--tap);
  border: 1.5px solid var(--grey); border-radius: var(--radius-btn);
  background: var(--white); color: var(--ink); width: 100%;
}
.stacked-form textarea { resize: vertical; min-height: 7rem; }
.stacked-form select, .filter-bar select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230C2A5A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center;
  background-size: 18px; padding-right: 2.4rem;
}
.stacked-form input[type="file"] {
  border-style: dashed; background: var(--navy-tint); padding: .8rem .85rem;
}
.stacked-form input[type="checkbox"], .stacked-form input[type="radio"] {
  width: 1.15rem; height: 1.15rem; min-height: 0; accent-color: var(--navy);
  flex: none;
}
.stacked-form input:focus, .stacked-form select:focus, .stacked-form textarea:focus,
.filter-bar select:focus {
  outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--navy);
}
.stacked-form [aria-invalid="true"] { border-color: var(--danger); }
.form-pair { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.field-error { color: var(--danger); font-size: .88rem; font-weight: 600; }
.field-hint { color: #4B5563; font-size: .85rem; font-weight: 400; }
.form-error { background: #FDECEA; border: 1px solid var(--danger); border-radius: var(--radius-card); padding: .85rem 1rem; color: var(--danger); font-weight: 600; }
.consent-line { font-size: .85rem; color: #4B5563; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.radio-set { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.radio-set legend { font-weight: 700; color: var(--navy); padding: 0; margin-bottom: .35rem; grid-column: 1 / -1; }
.radio-set label {
  display: flex; align-items: center; gap: .55rem; justify-content: center;
  font-weight: 600; min-height: var(--tap); padding: .5rem .9rem;
  border: 1.5px solid var(--grey); border-radius: var(--radius-btn);
  cursor: pointer; background: var(--white);
}
.radio-set label:has(input:checked) { border-color: var(--navy); background: var(--navy-tint); }
.check-line { display: flex !important; align-items: center; gap: .55rem; }
.check-line input { width: auto; }
.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 2rem; }
.contact-methods { display: grid; gap: .9rem; align-content: start; }
.contact-method {
  display: flex; gap: 1rem; align-items: center; min-height: 44px;
  padding: .9rem 1.1rem; border: 1px solid var(--grey-line); border-radius: var(--radius-card);
  text-decoration: none; color: var(--ink);
}
.contact-method:hover { border-color: var(--navy); }
.contact-method .icon { width: 1.6em; height: 1.6em; color: var(--blue); flex: none; }
.contact-method > span { display: grid; }
.contact-method strong { color: var(--navy); }
.contact-method-static { border-style: dashed; }
.quote-layout { display: grid; gap: 2rem; align-items: start; }

/* ---------- docs ---------- */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.doc-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.25rem; border: 1px solid var(--grey-line); border-radius: var(--radius-card); align-items: center; }
.doc-icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--navy-tint); color: var(--navy); border-radius: var(--radius-chip); }
.doc-body h2 { font-size: 1.15rem; margin-bottom: .2rem; }
.doc-body p { margin: 0; color: #4B5563; font-size: .95rem; }
.doc-action { grid-column: 1 / -1; }
.doc-note { margin-top: 1.75rem; padding: 1.25rem; background: var(--gold-tint); border-radius: var(--radius-card); }
.doc-note p { margin: 0 0 .5rem; }
.doc-note p:last-child { margin: 0; }

/* ---------- team ---------- */
.team-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.team-card { border: 1px solid var(--grey-line); border-radius: var(--radius-card); padding: 1.25rem; }
.team-card .img-slot { margin-bottom: 1rem; }
.team-role { color: var(--blue); font-weight: 700; margin-bottom: .25rem; }
.team-reg { font-size: .85rem; color: #4B5563; }

/* ---------- misc ---------- */
.empty-state { text-align: center; padding: 3rem 1rem; border: 2px dashed var(--grey-line); border-radius: var(--radius-card); color: #4B5563; grid-column: 1 / -1; }
.empty-state .icon-lg { color: var(--grey); margin: 0 auto .5rem; }
.empty-state h2 { color: var(--navy); }
.empty-note { color: #4B5563; }
.thanks-wrap { text-align: center; }
.thanks-wrap p { margin-inline: auto; }
.thanks-wrap .hero-actions { justify-content: center; }
.thanks-icon { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; background: var(--gold); color: var(--navy); border-radius: 50%; margin-bottom: 1rem; }
.ref-number { font-size: 1.15em; background: var(--gold-tint); padding: .1rem .5rem; border-radius: var(--radius-chip); }
.lost-links { list-style: none; padding: 0; display: grid; gap: .6rem; }
.lost-links a { font-weight: 700; font-size: 1.05rem; }
/* ---------- blog ----------------------------------------------------------- */
.cat-pills { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.cat-pill {
  text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--navy);
  background: var(--white); border: 1px solid var(--grey-line);
  padding: .4rem .9rem; border-radius: var(--radius-chip);
}
.cat-pill:hover { border-color: var(--navy); }
.cat-pill.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.cat-pill .count { opacity: .65; margin-left: .25rem; }
.article-meta { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.prose { max-width: 46rem; }
.prose h2 { margin: 2rem 0 .6rem; font-size: 1.35rem; }
.prose h3 { margin: 1.6rem 0 .5rem; font-size: 1.15rem; }
.prose h4 { margin: 1.4rem 0 .4rem; font-size: 1rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.4em; display: grid; gap: .35rem; }
.prose blockquote {
  margin: 1.4rem 0; padding: .6rem 0 .6rem 1.1rem;
  border-left: 3px solid var(--gold);
  color: #4B5563; font-size: 1.05rem;
}
.prose a { color: var(--blue); }
.prose img { border-radius: var(--radius-card); }
.prose pre, .prose code { font-size: .92em; background: #F3F5F8; padding: .1rem .35rem; border-radius: 3px; }
.prose pre { padding: .8rem 1rem; overflow-x: auto; }
.prose-note { font-size: .85rem; color: #4B5563; border-top: 1px solid var(--grey-line); padding-top: 1rem; }
.next-steps { margin: 0; padding-left: 1.2em; display: grid; gap: .5rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #C7D2E6; margin-top: var(--space); }
.footer-grid { display: grid; gap: 2rem; padding: 2.5rem 0 1.5rem; }
.footer-brand p { font-size: .95rem; margin-top: 1rem; }
.footer-brand .brand-logo { height: 54px; width: auto; background: var(--white); padding: .5rem .8rem; border-radius: var(--radius-card); }
.footer-heading { color: var(--gold); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.footer-col a { color: #C7D2E6; text-decoration: none; display: inline-block; padding: .35rem 0; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-contact a { display: inline-flex; align-items: center; gap: .5rem; min-height: 32px; }
.footer-base { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; border-top: 1px solid #24457E; padding: 1.25rem 0; font-size: .88rem; }
.footer-base p { margin: 0; }
.footer-base ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
.footer-base a { color: #C7D2E6; }

/* ---------- floating contact ---------- */
.float-contact { display: grid; gap: .6rem; position: fixed; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom)); z-index: 150; }
.float-btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; }
.float-btn .icon { width: 1.5em; height: 1.5em; }
.float-wa { background: #25D366; color: #fff; }
.float-wa:hover { background: #1EBE5B; }
.float-call { background: var(--gold); color: var(--navy); }
.float-call:hover { background: #E3981A; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (min-width: 40rem) { /* 640px */
  .split-band { grid-template-columns: 1fr 1.1fr; }
  .form-pair { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .filter-fields { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1.4fr 1fr; }
  .cta-actions { justify-items: end; }
  .doc-item { grid-template-columns: auto 1fr auto; }
  .doc-action { grid-column: auto; }
}

@media (min-width: 48rem) { /* 768px — tablet */
  :root { --radius-card: 8px; --radius-btn: 6px; }
  .header-actions .btn { display: inline-flex; }
  .header-phone { display: inline-flex; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

@media (min-width: 64rem) { /* 1024px — laptop */
  .nav-toggle { display: none; }
  .main-nav { display: block; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-block { grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; }
  .service-block-rev figure { order: 2; }
  .service-detail-grid { grid-template-columns: 1.6fr 1fr; }
  .service-aside { position: sticky; top: 6rem; align-self: start; }
  .why-grid { grid-template-columns: 1fr 1.3fr; }
  .project-row { grid-template-columns: 300px 1fr; align-items: center; }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .project-head { grid-template-columns: 1.5fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.4fr; }
  .quote-layout { grid-template-columns: 1.6fr 1fr; }
  .filter-bar { display: flex; flex-wrap: wrap; }
  .filter-fields { display: contents; }
  .filter-bar label { min-width: 11rem; flex: 1; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-strip { grid-template-columns: 1fr 1fr 1.4fr; }
  .photo-strip .img-slot:nth-child(3) { grid-column: auto; }
}

@media (min-width: 80rem) { /* 1280px — desktop */
  :root { --space: 3.5rem; }
  body { font-size: 1.125rem; }
}

@media (min-width: 110rem) { /* 1760px+ — wide */
  :root { --wrap: 78rem; }
}

/* ==========================================================================
   Phones (<640px) — compact card grids & tight spacing
   ========================================================================== */
@media (max-width: 39.99rem) {

  /* Page container: 6px from screen edge to content */
  .wrap { width: min(100% - 12px, var(--wrap)); }
  .wrap-narrow { width: min(100% - 12px, var(--wrap-narrow)); }

  /* More breathing room between sections on small screens */
  :root { --space: 2.1rem; }

  /* Card grids: two per line, 6px gap, 6px card padding */
  .service-grid, .project-grid, .gallery-grid, .team-grid, .photo-strip { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .service-tile { padding: 6px; gap: 4px; }
  .service-icon { width: 36px; height: 36px; }
  .service-name { font-size: 1rem; }
  .service-short { font-size: .88rem; }
  .service-link { font-size: .85rem; }
  .project-card-body { padding: 6px; gap: 3px; }
  .team-card { padding: 6px; }
  .team-card .img-slot { margin-bottom: 6px; }
  .marquee-group { gap: 6px; padding-right: 6px; }

  /* Single-column card stacks: 8px from screen edge to card */
  .doc-list, .faq-list, .project-rows, .service-list,
  .service-aside, .contact-grid, .quote-layout { padding-inline: 2px; }
  .doc-note, .empty-state { margin-inline: 2px; }

  /* Two-button rows stay on one line — compact but still 44px tall */
  .hero-actions, .cta-actions, .btn-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
  .hero-actions .btn, .cta-actions .btn, .btn-pair .btn {
    min-height: var(--tap); padding: .55rem .45rem; font-size: .92rem;
    gap: .35rem; white-space: nowrap; letter-spacing: -.01em; overflow: hidden;
  }
  .btn-pair .btn-block { margin-top: 0; }

  /* Standalone form/filter buttons take the full width — easier to hit */
  .filter-bar > .btn, .form-actions .btn { width: 100%; }

  /* Floats sit tighter to the corner on phones */
  .float-contact { right: .9rem; bottom: calc(.9rem + env(safe-area-inset-bottom)); }
}
