/* DSP Hub Ops site styles. Palette: blue and coral, chosen by the owners.
   Colours are set by role, so the palette lives in this one block. */

:root {
  --primary: #1C4ED8;         /* cobalt: buttons, links, icons in the logo */
  --primary-hover: #1A41B5;
  --heading: #0C1B3F;         /* ink navy: headings */
  --button: #1C4ED8;          /* filled buttons */
  --button-hover: #1A41B5;
  --button-text: #FFFFFF;
  --deep: #0C1B3F;            /* dark bands: top bar, hero, call to action, footer */
  --deep-rgb: 12, 27, 63;
  --secondary: #4F7DF0;       /* light cobalt: icons, ticks, card rules */
  --secondary-text: #2A5BD7;
  --accent: #FF6B4A;          /* coral: hub ring, underlines, highlights */
  --accent-text: #E5512F;
  --soft: #C8D5F7;            /* text on dark bands */
  --tint: #F1F5FE;            /* light sections */
  --on-dark: #DCE4FA;
  --white: #FFFFFF;
  --text: #141B2E;
  --muted: #4B5470;
  --line: #D8DFF0;
  --field-line: #A8B5D6;
  --footer-line: #263A6E;

  --font-head: 'Public Sans', Arial, sans-serif;
  --font-body: 'Atkinson Hyperlegible Next', Arial, sans-serif;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--heading);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.75rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--tint); }
.section--flush { padding-top: clamp(32px, 5vw, 56px); }
.narrow { max-width: 720px; display: grid; gap: 20px; justify-items: start; }
.section--dark { background: var(--deep); color: var(--tint); }
.section--dark h2 { color: var(--white); }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40em; }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: 40px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--primary); color: var(--white); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--primary); }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo { --mark-a: var(--primary); --mark-b: var(--secondary); --mark-ring: var(--white); }
.site-footer .logo { --mark-a: var(--tint); --mark-b: var(--soft); --mark-ring: var(--deep); }
.mk-line { stroke: var(--accent); }
.mk-a { fill: var(--mark-a); }
.mk-b { fill: var(--mark-b); }
.mk-hub { fill: var(--accent); stroke: var(--mark-ring); }
.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  white-space: nowrap;
}
.wordmark .w { margin-right: -0.2em; }
.wordmark .dot { width: 0.3em; height: 0.3em; border-radius: 50%; background: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  border: 2px solid var(--primary);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.btn--primary { background: var(--button); border-color: var(--button); color: var(--button-text); }
.btn--primary:hover { background: var(--button-hover); border-color: var(--button-hover); color: var(--button-text); }
.btn--secondary { background: transparent; color: var(--primary); }
.btn--secondary:hover { background: var(--primary); color: var(--white); }
.btn--light { background: var(--tint); border-color: var(--tint); color: var(--primary); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-family: var(--font-head); font-weight: 600; text-decoration: none; color: var(--text); }
.nav a:not(.btn):hover, .nav a[aria-current="page"], .nav a.is-section { color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.nav .btn { min-height: 44px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--primary); }
.nav-toggle svg { width: 26px; height: 26px; display: block; }
@media (max-width: 1100px) { .nav { gap: 22px; } }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
  .site-header .wordmark { font-size: 0.92rem; }
}

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } }

/* Top bar */
.topbar { background: var(--deep); color: var(--soft); font-size: 0.92rem; }
.topbar .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: var(--tint); text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
.topbar-info { display: flex; flex-wrap: wrap; gap: 6px 22px; }
@media (max-width: 620px) { .topbar-info span { display: none; } }

/* Hero slider: full-bleed photos with a pine scrim. The first slide works without JavaScript. */
.hero-slider { position: relative; overflow: hidden; background: var(--deep); color: var(--white); min-height: clamp(580px, 82vh, 720px); }
.hslide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s linear 1.1s; }
.hslide.is-on { opacity: 1; visibility: visible; transition: opacity 1.1s ease; z-index: 1; }
.hslide > img, .hslide > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hslide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(var(--deep-rgb), 0.6) 0%, rgba(var(--deep-rgb), 0.4) 34%, rgba(var(--deep-rgb), 0.1) 60%, rgba(var(--deep-rgb), 0) 85%);
}
/* The night photo is far darker than the others (average brightness 52 against 84 to 133),
   so it gets a brightness lift and a lighter overlay to match them. */
.hslide--night > img { filter: brightness(1.55); }
.hslide--night::after { opacity: 0.55; }
/* A soft shadow keeps the white text readable over the lighter overlay. */
.hslide .display, .hslide .lead, .hslide .hero-label { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 18px rgba(0, 0, 0, 0.45); }
.hslide .container { position: relative; z-index: 1; display: grid; gap: 20px; justify-items: start; padding-top: 24px; padding-bottom: 190px; }
.hero-label { font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--soft); margin: 0; }
.display { font-family: var(--font-head); font-weight: 800; color: var(--white); font-size: clamp(2.2rem, 4.9vw, 3.9rem); line-height: 1.04; letter-spacing: -0.02em; margin: 0; }
.display .ln { display: block; overflow: hidden; padding-bottom: 0.06em; }
.display .ln > span { display: block; }
.hslide .lead { color: var(--on-dark); max-width: 36em; }
.btn--outline-light { background: transparent; border-color: var(--tint); color: var(--white); }
.btn--outline-light:hover { background: var(--tint); color: var(--primary); }

.hero-controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 112px; }
.hero-controls .container { display: flex; align-items: center; gap: 10px; }
.hero-dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; transform: translate(-50%, -50%); background: rgba(255, 255, 255, 0.5); border-radius: 50%; transition: background-color 0.3s; }
.hero-dot[aria-current="true"]::before { background: var(--accent); }
.hero-pause { margin-left: 8px; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.5); background: none; color: var(--tint); cursor: pointer; display: grid; place-items: center; }
.hero-pause svg { width: 12px; height: 12px; }

@keyframes hero-drift {
  from { transform: scale(1.12) translate3d(-1.2%, 0.8%, 0); }
  to { transform: scale(1.02) translate3d(0, 0, 0); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translate3d(0, 20px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes line-up {
  from { transform: translateY(105%); }
  to { transform: translateY(0); }
}
.hslide.is-on > img, .hslide.is-on > picture > img { animation: hero-drift 9s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.hslide.is-on .hero-label { animation: rise-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }
.hslide.is-on .display .ln > span { animation: line-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hslide.is-on .display .ln:nth-child(1) > span { animation-delay: 0.3s; }
.hslide.is-on .display .ln:nth-child(2) > span { animation-delay: 0.42s; }
.hslide.is-on .display .ln:nth-child(3) > span { animation-delay: 0.54s; }
.hslide.is-on .lead { animation: rise-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.75s both; }
.hslide.is-on .btn-row { animation: rise-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.9s both; }
.rise-late { animation: rise-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 1.1s both; }

/* Scroll reveal, only when JavaScript is running */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hslide, .hslide.is-on { transition: none; }
  .hslide.is-on > img, .hslide.is-on > picture > img, .hslide.is-on .hero-label, .hslide.is-on .display .ln > span, .hslide.is-on .lead, .hslide.is-on .btn-row, .rise-late { animation: none; }
  .hslide > img, .hslide > picture > img { transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 720px) {
  .hslide::after { background: linear-gradient(180deg, rgba(var(--deep-rgb), 0.22) 0%, rgba(var(--deep-rgb), 0.42) 45%, rgba(var(--deep-rgb), 0.6) 100%); }
  /* On phones the text starts near the top, so every slide lines up and the photo shows below it. */
  .hero-slider { min-height: 620px; }
  .hslide { align-items: flex-start; }
  .hslide .container { padding-top: 48px; padding-bottom: 104px; height: 100%; align-content: start; grid-template-rows: auto auto auto 1fr; }
  /* The buttons sit at the bottom of the photo, just above the slider dots. */
  .hslide .btn-row { align-self: end; }
  .hero-controls { bottom: 64px; }
}

/* Capability bar that overlaps the hero */
.capabilities { position: relative; z-index: 2; margin-top: -92px; }
.capabilities .grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(var(--deep-rgb), 0.14); overflow: hidden; }
.capability { padding: 26px 24px; display: grid; gap: 8px; align-content: start; text-decoration: none; color: var(--text); border-left: 1px solid var(--line); }
.capability:first-child { border-left: 0; }
.capability:hover { background: var(--tint); color: var(--text); }
.capability svg { width: 30px; height: 30px; color: var(--secondary); }
.capability strong { font-family: var(--font-head); color: var(--primary); font-size: 1.08rem; }
.capability span { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 960px) {
  .capabilities { margin-top: -48px; }
  .capabilities .grid { grid-template-columns: 1fr 1fr; }
  .capability:nth-child(3) { border-left: 0; }
  .capability:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .capabilities .grid { grid-template-columns: 1fr; }
  .capability { border-left: 0; }
  .capability + .capability { border-top: 1px solid var(--line); }
}

/* Segments */
.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .segments { grid-template-columns: 1fr; } }
.segment { background: var(--white); border-radius: var(--radius); border-top: 4px solid var(--secondary); padding: 28px; display: grid; gap: 12px; align-content: start; }
.segment p { color: var(--muted); }
.segment ul { margin: 0; padding-left: 18px; color: var(--text); display: grid; gap: 4px; }
.segment--lead { border-top-color: var(--accent); }

/* Photo band */
.photo-band { position: relative; color: var(--white); overflow: hidden; }
.photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band > img { filter: brightness(1.4); }
.photo-band::before { content: ""; position: absolute; inset: 0; background: rgba(var(--deep-rgb), 0.55); }
.photo-band h2, .photo-band p { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 18px rgba(0, 0, 0, 0.45); }
.photo-band .container { position: relative; padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(72px, 10vw, 128px); display: grid; gap: 22px; justify-items: start; }
.photo-band h2 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 20em; }
.photo-band p { color: var(--on-dark); max-width: 38em; font-size: 1.15rem; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-family: var(--font-head); font-weight: 700; color: var(--primary); font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; line-height: 1; color: var(--secondary); transition: transform 0.2s; }
/* The plus turns into a cross when an answer is open. */
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 46em; }

.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts .container { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 26px 24px 26px 0; display: grid; gap: 4px; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact strong { font-family: var(--font-head); color: var(--primary); font-size: 1.05rem; }
.fact span { color: var(--muted); }
@media (max-width: 720px) {
  .facts .container { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 18px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

/* Service cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card p { color: var(--muted); flex: 1; }
.card a { font-family: var(--font-head); font-weight: 700; text-decoration-color: var(--accent); }
.card-num { font-family: var(--font-head); font-weight: 700; color: var(--secondary-text); font-size: 0.95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; list-style: none; padding: 0; margin: 0; }
.step { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 3px solid var(--primary); }
.step-num { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--accent-text); }
.step p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* Two-column feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-photo { border-radius: var(--radius); overflow: hidden; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.split-copy { display: grid; gap: 18px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--secondary);
  border-bottom: 2.5px solid var(--secondary);
  transform: rotate(-45deg);
}

/* Sample weekly report */
.report {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 18px;
  font-variant-numeric: tabular-nums;
}
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.report-head h3 { font-size: 1.3rem; }
.report-sub { color: var(--muted); font-size: 0.95rem; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 0.85rem; font-weight: 600; background: var(--tint); color: var(--muted); white-space: nowrap; }
.report-total { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.report-total .amount { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1.05; color: var(--primary); }
.report-rows { list-style: none; margin: 0; padding: 0; }
.report-rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.report-rows li:last-child { border-bottom: 0; }
.report-rows .right { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
/* Atkinson slashes its zeros; money reads better in the headline face. */
.report-rows .money { font-family: var(--font-head); font-weight: 600; }
.status { display: inline-block; min-width: 92px; text-align: center; padding: 3px 8px; border-radius: 4px; font-size: 0.82rem; font-weight: 600; }
.status--disputed { background: #F4DED9; color: #8A2D1E; }
.status--recovered { background: #DCEAE5; color: #1B5A4C; }
.status--pending { background: #F2E7D3; color: #6B4E14; }
.report-note { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 520px) {
  .report-rows li { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* CTA band */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta p { color: var(--soft); font-size: 1.15rem; max-width: 36em; margin-top: 10px; }

/* Page header (inner pages) */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); background: var(--tint); }
.page-head .container { display: grid; gap: 16px; }

/* Services page */
.service { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 4vw, 56px); padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.service:first-of-type { border-top: 0; }
.service-intro { display: grid; gap: 12px; align-content: start; }
.service-intro p { color: var(--muted); }
.service-body { display: grid; gap: 22px; }
.service-body h3 { font-size: 1rem; text-transform: none; color: var(--text); }
.keep { background: var(--tint); border-radius: var(--radius); padding: 16px 18px; color: var(--text); }
.keep strong { font-family: var(--font-head); color: var(--primary); }
@media (max-width: 820px) { .service { grid-template-columns: 1fr; } }

.wide-photo { border-radius: var(--radius); overflow: hidden; margin-top: 8px; }
.wide-photo img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }

/* About page */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .values { grid-template-columns: 1fr; } }
.facts-box { background: var(--tint); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
.facts-box h2 { font-size: 1.2rem; }
.facts-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; }
.facts-box dt { font-family: var(--font-head); font-weight: 700; color: var(--primary); }
.facts-box dd { margin: 0; color: var(--muted); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-family: var(--font-head); font-weight: 600; color: var(--text); font-size: 0.98rem; }
.field .hint { color: var(--muted); font-weight: 400; font-family: var(--font-body); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--field-line);
  border-radius: 6px;
  padding: 12px 14px;
  min-height: 48px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--soft); border-color: var(--primary); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 4px; }
@media (max-width: 620px) { .checks { grid-template-columns: 1fr; } }
.checks label { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 400; min-height: 32px; cursor: pointer; }
.checks input { width: 20px; height: 20px; min-height: 0; accent-color: var(--primary); }
.honey { position: absolute; left: -9999px; }
.form-note { color: var(--muted); font-size: 0.92rem; }
.form-status { padding: 16px 18px; border-radius: var(--radius); }
.form-status--ok { background: #DCEAE5; color: #1B4A40; }
.form-status--error { background: #F4DED9; color: #7A2A1C; }
.form-status h2 { font-size: 1.4rem; margin-bottom: 6px; }
.contact-aside { display: grid; gap: 18px; }
.contact-aside .facts-box dl { grid-template-columns: 1fr; gap: 2px; }
.contact-aside .facts-box dd + dt { margin-top: 10px; }
.todo { color: #8A6A2E; font-style: italic; }

/* Footer */
.site-footer { background: var(--deep); color: var(--soft); padding: 56px 0 32px; }
.site-footer a { color: var(--tint); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.1fr 1fr 0.8fr; gap: 32px; }
.footer-grid h2 { font-size: 1rem; color: var(--white); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid ul a { text-decoration: none; }
.footer-grid ul a:hover { text-decoration: underline; color: var(--white); }
.site-footer .logo { color: var(--tint); }
.site-footer .todo { color: var(--soft); }
.footer-tagline { margin-top: 14px; max-width: 26em; }
.footer-contact { margin-top: 18px !important; }
.footer-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--footer-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 0.92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Hero photo focus */
.obj-right { object-position: 70% 50%; }
/* The branded van sits right of the text on desktop. Phones get a tighter crop
   (see the <picture> in the first slide) centred on the decal, below the buttons. */
.obj-van { object-position: 50% 100%; }
@media (max-width: 720px) { .obj-van { object-position: 20% 100%; } }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.95rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--accent); }
.page-head--detail .lead, .page-head--article .lead { max-width: 44em; }
.page-head--detail .btn-row { margin-top: 6px; }
.article-meta { color: var(--muted); font-size: 0.95rem; }

/* Detail pages: main column plus a sticky side card */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: clamp(40px, 6vw, 64px); }
.detail-main { display: grid; gap: clamp(40px, 5vw, 56px); }
.detail-block { display: grid; gap: 18px; }
.detail-block h2, .faq-group h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.detail-aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.aside-card { background: var(--tint); border-radius: var(--radius); border-top: 4px solid var(--accent); padding: 24px; display: grid; gap: 12px; justify-items: start; }
.aside-card h2 { font-size: 1.25rem; }
.aside-card p { color: var(--muted); }
.aside-card--plain { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--secondary); }
.aside-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aside-links a { font-family: var(--font-head); font-weight: 600; text-decoration-color: var(--accent); }
.aside-phone { font-size: 0.95rem; }
@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
}

.dash-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dash-list li { position: relative; padding-left: 26px; }
.dash-list li::before { content: ""; position: absolute; left: 3px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.steps--stack { grid-template-columns: 1fr; gap: 0; }
.steps--stack .step { grid-template-columns: 56px 1fr; column-gap: 18px; row-gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps--stack .step:first-child { border-top: 3px solid var(--primary); }
.steps--stack .step-num { grid-row: span 2; font-size: 2rem; }

/* Articles and legal pages */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 88px); align-items: start; }
.article-wrap--single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) {
  .article-wrap { grid-template-columns: 1fr; }
}
.prose { max-width: 42em; font-size: 1.1rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); margin-top: 1.9em; }
.prose h3 { margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--secondary); }
.prose strong { color: var(--primary); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.98rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-head); color: var(--primary); border-bottom: 2px solid var(--primary); }

/* Resource cards */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.res-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.res-card:hover { color: var(--text); border-color: var(--secondary); box-shadow: 0 12px 28px rgba(var(--deep-rgb), 0.1); transform: translateY(-2px); }
.res-card h3 { font-size: 1.2rem; }
.res-card p { color: var(--muted); flex: 1; }
.res-cat { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--secondary-text); }
.res-meta { font-size: 0.9rem; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .res-card, .res-card:hover { transition: none; transform: none; } }

/* Who we serve hub */
.seg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .seg-grid { grid-template-columns: 1fr; } }
.seg-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: var(--text); background: var(--white); transition: box-shadow 0.2s; }
.seg-card:hover { color: var(--text); box-shadow: 0 14px 32px rgba(var(--deep-rgb), 0.12); }
.seg-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.seg-card-body { padding: 24px; display: grid; gap: 10px; flex: 1; align-content: start; }
.seg-card-body h2 { font-size: 1.4rem; }
.seg-card-body p { color: var(--muted); }
.more-link { font-family: var(--font-head); font-weight: 700; color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* FAQ page and careers */
.faq-groups { display: grid; gap: clamp(40px, 5vw, 64px); }
.faq-group { display: grid; gap: 14px; }
.role-fit { font-size: 0.95rem; flex: none !important; }
.role-fit strong { font-family: var(--font-head); color: var(--primary); }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }
.section-head--row > div { display: grid; gap: 14px; max-width: 46rem; }
.faq-more { margin-top: 24px; }
.service-intro .more-link { justify-self: start; }
.segment .more-link { margin-top: 6px; }

/* Grids that should land in even rows of three */
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .card-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .card-grid--3 { grid-template-columns: 1fr; } }
.card--more { background: var(--tint); border-style: dashed; border-color: var(--field-line); }
.res-card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 48px; row-gap: 10px; padding: 32px; border-top: 4px solid var(--accent); }
.res-card--feature .res-cat, .res-card--feature h3 { grid-column: 1; }
.res-card--feature h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.res-card--feature p { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 1.1rem; }
.res-card--feature .res-meta { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .res-card--feature { grid-template-columns: 1fr; }
  .res-card--feature p, .res-card--feature .res-cat, .res-card--feature h3 { grid-column: 1; grid-row: auto; }
}
