/* On Call Mobile Welding: shared theme. Every page links this file.
   Tokens, type, chrome (header, menu, footer, call bar) and the components:
   hero + fact rail, record cells (trust band, town facts, cost), service cards,
   review cards, steps, FAQ cards, call plate, photo frame, the weld-bead line and reveals.
   Breakpoints: min-width 640 / 768 / 1024 only. */

@font-face {
  font-family: "Archivo OC";
  src: url("/uploads/companies/67866f46-74fa-465d-8e70-a2a3defb7a2a/fonts/archivo-var.woff2") format("woff2");
  font-weight: 600 800;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson OC";
  src: url("/uploads/companies/67866f46-74fa-465d-8e70-a2a3defb7a2a/fonts/atkinson-next-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour (two chromatic colours: navy and copper) */
  --navy: #001D39;
  --navy-lift: #072A4C;
  --copper: #985E23;
  --copper-hover: #84501C;
  --copper-ink: #74431A;
  --copper-lit: #E3A66B;
  --concrete: #EDEEEB;
  --steel: #DDE2E5;
  --white: #FFFFFF;
  --ink: #0B1A2A;
  --ink-2: #3A4652;
  --rule: #C3CAD0;
  --on-navy: #F2F2EF;
  --on-navy-2: #B9C4CF;
  --rule-navy: rgb(255 255 255 / 0.14);
  --focus: var(--navy);

  /* type */
  --display: "Archivo OC", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Atkinson OC", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --h1: clamp(2.25rem, 1.45rem + 3.2vw, 3.75rem);
  --h2: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  --h3: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --lead: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);

  /* layout (one shell, one gutter, one rhythm) */
  --shell: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --rhythm: clamp(72px, 9vw, 132px);
  --header-h: 68px;
  --bar: 68px;

  /* form */
  --r-card: 10px;
  --r-plate: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 1px 2px rgb(0 29 57 / 0.06), 0 12px 28px -16px rgb(0 29 57 / 0.28);
  --shadow-lift: 0 2px 4px rgb(0 29 57 / 0.08), 0 20px 40px -20px rgb(0 29 57 / 0.42);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--navy) var(--steel);
  accent-color: var(--copper);
}
body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  caret-color: var(--copper);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--copper); color: var(--white); }
img { max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 125%;
  color: inherit;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--h1); line-height: 1.02; letter-spacing: -0.012em; }
h2 { font-size: var(--h2); line-height: 1.08; letter-spacing: -0.008em; }
h3 { font-size: var(--h3); line-height: 1.2; font-weight: 750; font-stretch: 112%; }
p { margin: 0; text-wrap: pretty; }
a[href^="tel:"] { text-decoration: none; }
:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
section[id], h2[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  border-radius: 8px;
}
.skip:focus-visible { top: 12px; }

/* small type: nav, buttons, record labels */
.label {
  font-family: var(--display);
  font-weight: 650;
  font-stretch: 112%;
  font-size: 0.75rem;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* running-text links (inside copy only) */
.prose a, a.text-link {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.prose a:hover, .text-link:hover { color: var(--copper-ink); }
.hero .text-link, .call-plate .text-link { color: var(--white); }
.hero .text-link:hover, .call-plate .text-link:hover { color: var(--copper-lit); }
.prose { display: flex; flex-direction: column; gap: 16px; max-width: 66ch; }

/* ---------- buttons (every call to action is copper) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn svg { width: 20px; height: 20px; max-width: 20px; max-height: 20px; flex: none; }
.btn-call {
  background: var(--copper);
  color: var(--white);
  box-shadow: 0 6px 16px -8px rgb(0 29 57 / 0.55);
}
.btn-call:hover { background: var(--copper-hover); transform: translateY(-2px); box-shadow: 0 12px 22px -10px rgb(0 29 57 / 0.6); }
.btn-call:active { transform: translateY(0); }
.btn-lg { min-height: 60px; padding: 16px clamp(20px, 4vw, 32px); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.0625rem); }
.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: none;
}
.btn-line:hover { background: var(--white); box-shadow: none; }

/* on navy grounds: copper-lit focus and a lit edge on hover (keeps the button edge above 3:1) */
.site-header, .hero, .call-plate, .site-footer, .callbar { --focus: var(--copper-lit); }
.site-header .btn-call:hover, .hero .btn-call:hover, .call-plate .btn-call:hover, .callbar .btn-call:hover { border-color: var(--copper-lit); }

/* ---------- live lamp (the line is open 24 hours) ---------- */
.live-dot {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--copper-lit);
  color: var(--copper-lit);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: lamp 2.4s var(--ease) infinite;
}
@keyframes lamp {
  0% { transform: scale(1); opacity: 0.8; }
  70%, 100% { transform: scale(2.8); opacity: 0; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--on-navy);
  border-bottom: 1px solid var(--rule-navy);
}
.hdr {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-height: var(--header-h);
  padding-block: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-right: auto;
  min-height: 44px;
  color: var(--on-navy);
  text-decoration: none;
}
.brand-mark { width: 40px; height: 40px; max-width: 44px; max-height: 44px; flex: none; border-radius: 10px; border: 1px solid rgb(255 255 255 / 0.22); }
.brand-name { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.brand-name b {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-name span {
  font-family: var(--display);
  font-weight: 650;
  font-stretch: 112%;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-lit);
  white-space: nowrap;
}
.hdr-call { order: 2; min-width: 44px; min-height: 44px; padding: 8px 12px; font-size: 0.9375rem; }
.hdr-call-num { display: none; }
.hdr-call-label { display: none; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.nav { order: 3; display: flex; align-items: center; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 11px;
  background: transparent;
  color: var(--on-navy);
  border: 1px solid var(--rule-navy);
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 650;
  font-stretch: 112%;
  font-size: 0.8125rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; max-width: 20px; max-height: 20px; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--on-navy);
  font-family: var(--display);
  font-weight: 650;
  font-stretch: 112%;
  font-size: 0.8125rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  text-decoration-color: var(--copper-lit);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration-line: underline; }
.nav-links .nav-call { display: none; }

/* Services menu: a disclosure button over the service pages and the specialty work (there is no /services/ page) */
.has-sub { position: relative; }
.sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  background: transparent;
  border: 0;
  color: var(--on-navy);
  font-family: var(--display);
  font-weight: 650;
  font-stretch: 112%;
  font-size: 0.8125rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.sub-toggle svg { width: 12px; height: 12px; max-width: 12px; max-height: 12px; transition: transform 0.2s var(--ease); }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub { margin: 0; padding: 0; }
.sub-list, ul.sub { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.sub-head {
  margin: 0;
  padding: 16px 12px 4px;
  color: var(--copper-lit);
  font-family: var(--display);
  font-weight: 650;
  font-stretch: 112%;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-links .sub a { font-family: var(--body); font-weight: 400; font-stretch: 100%; letter-spacing: 0; text-transform: none; }
html.js .sub { display: none; }
html.js .sub.is-open { display: block; }

/* menu on phones and tablets, only when our script runs */
html.js .nav-toggle { display: inline-flex; }
html.js .nav-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  padding: 8px var(--gutter) 24px;
  background: var(--navy);
  border-bottom: 1px solid var(--rule-navy);
  box-shadow: 0 24px 40px -24px rgb(0 0 0 / 0.6);
}
html.js .nav-links.is-open { display: flex; }
html.js .nav-links a { width: 100%; min-height: 52px; font-size: 0.9375rem; border-bottom: 1px solid var(--rule-navy); }
html.js .nav-links .nav-call { display: block; padding-top: 16px; }
html.js .nav-links .nav-call a { justify-content: center; border-bottom: 0; color: var(--white); }
html.js .nav-links .sub-toggle { width: 100%; min-height: 52px; justify-content: space-between; font-size: 0.9375rem; border-bottom: 1px solid var(--rule-navy); }
html.js .sub-list { display: block; }
html.js .nav-links .sub a { min-height: 48px; padding-block: 10px; padding-left: 24px; font-size: 1rem; line-height: 1.35; white-space: normal; }
html.js .nav-links .sub-head { padding-left: 24px; }

/* ---------- section rhythm (two tones only) ---------- */
.section { padding-block: var(--rhythm); }
.section--steel { background: var(--steel); }
.section--rule { border-top: 1px solid var(--rule); }

.sec-head { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 48px); }
.sec-lede { margin-top: 24px; font-size: var(--lead); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.sec-head--center { margin-inline: auto; text-align: center; }

/* ---------- the weld bead (signature edge, drawn from the logo's copper line) ---------- */
.bead {
  display: block;
  width: 120px;
  height: 12px;
  max-width: 120px;
  max-height: 12px;
  margin-top: 16px;
  overflow: visible;
}
.sec-head--center .bead, .call-plate .bead { margin-inline: auto; }
.bead path { fill: none; stroke-linecap: round; }
.bead-line { stroke: var(--copper); stroke-width: 5; }
.bead-spark { stroke: #FFF1D6; stroke-width: 7; opacity: 0; }
.bead--hero { width: 168px; max-width: 168px; height: 14px; max-height: 14px; margin-top: 24px; }

html.js-motion .bead .bead-line { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
html.js-motion .bead .bead-spark { stroke-dasharray: 0.05 2; stroke-dashoffset: 0.05; }
html.js-motion .bead--hero .bead-line,
html.js-motion .is-in .bead-line {
  animation: bead-draw 1.1s cubic-bezier(0.55, 0.05, 0.3, 1) var(--bd, 120ms) forwards,
             bead-cool 1.8s ease-out var(--bd, 120ms) both;
}
html.js-motion .bead--hero .bead-spark,
html.js-motion .is-in .bead-spark {
  animation: bead-arc 1.1s cubic-bezier(0.55, 0.05, 0.3, 1) var(--bd, 120ms) forwards;
}
html.js-motion .bead--hero { --bd: 350ms; }
@keyframes bead-draw { to { stroke-dashoffset: 0; } }
@keyframes bead-cool {
  0% { stroke: #FFC56B; }
  45% { stroke: #E08A3A; }
  100% { stroke: var(--copper); }
}
@keyframes bead-arc {
  0% { stroke-dashoffset: 0.05; opacity: 1; }
  92% { opacity: 1; }
  100% { stroke-dashoffset: -0.95; opacity: 0; }
}

/* ---------- photo frame (every content photo sits in one) ---------- */
.frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: var(--ar, 16 / 10);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  background-color: var(--steel);
  background-image:
    repeating-linear-gradient(45deg, rgb(0 29 57 / 0.05) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(-45deg, rgb(0 29 57 / 0.05) 0 1px, transparent 1px 14px);
}
.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.06) brightness(0.97) saturate(1.04);
  transition: transform 0.7s var(--ease);
}
.frame img[hidden] { display: none; }
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgb(0 29 57 / 0.34), transparent 42%),
    linear-gradient(rgb(152 94 35 / 0.06), rgb(152 94 35 / 0.06));
}
.frame--hero { --ar: 16 / 10; border-color: var(--rule-navy); border-radius: var(--r-plate); box-shadow: 0 24px 48px -28px rgb(0 0 0 / 0.7); }
.frame--card { --ar: 16 / 10; border: 0; border-radius: 0; }
.frame--tall { --ar: 4 / 5; }
.frame--wide { --ar: 16 / 9; }
.frame-cap { position: absolute; left: 16px; bottom: 12px; z-index: 1; color: var(--white); font-size: 0.875rem; line-height: 1.4; }

/* ---------- hero (navy band, painted from the first frame) ---------- */
.hero {
  background: linear-gradient(var(--navy) calc(100% - 56px), var(--concrete) 0);
  background-color: var(--navy);
  color: var(--on-navy);
  padding-top: clamp(32px, 4vw, 56px);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { color: var(--white); max-width: 17ch; }
.hero-lede { margin-top: 24px; font-size: var(--lead); line-height: 1.5; color: var(--on-navy-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.hero-note { display: inline-flex; align-items: flex-start; gap: 12px; color: var(--on-navy); font-size: 0.9375rem; line-height: 1.4; }
.hero-note b { font-weight: 700; }
.hero-note .live-dot { margin-top: 0.36em; }

/* fact rail: three record cells riveted across the hero's lower edge */
.rail-wrap { margin-top: clamp(32px, 4vw, 48px); }
.rail {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.rail-cell { margin: 0; padding: 20px 24px; background: var(--white); color: var(--ink); }
.rail-cell dt { margin-bottom: 4px; }
.rail-cell dd { margin: 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; }
.rail-cell dd b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: 1.1875rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

/* ---------- record cells: trust band, town facts, cost ---------- */
.record {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  overflow: hidden;
}
.record-cell { margin: 0; padding: 24px; background: var(--white); }
.record-cell dt { margin-bottom: 8px; }
.record-cell dd { margin: 0; }
.record-val {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.record-note { display: block; margin-top: 8px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
.record-cell--wide { grid-column: 1 / -1; }
.price-figure {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.town-map { margin-top: 24px; }
.town-map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- card collections (flex grid; the last row fills) ---------- */
.grid { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; padding: 0; list-style: none; }
.grid > * { flex: 1 1 100%; min-width: 0; }

/* service card */
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.svc-card:hover { border-color: var(--copper); box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.svc-card:hover .frame img { transform: scale(1.045); }
.svc-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 24px; }
.svc-body p { color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.svc-link { color: var(--ink); text-decoration: none; }
.svc-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.svc-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--copper-ink);
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 0.8125rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.svc-more svg { width: 16px; height: 16px; max-width: 16px; max-height: 16px; transition: transform 0.25s var(--ease); }
.svc-card:hover .svc-more svg { transform: translateX(4px); }
.svc-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.svc-link:focus-visible { outline: 0; }

/* review card */
.review {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  margin: 0;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
}
.stars { display: flex; gap: 4px; color: var(--copper); }
.stars svg { width: 18px; height: 18px; max-width: 18px; max-height: 18px; }
.review blockquote { margin: 0; }
.review blockquote p { font-size: 1.0625rem; line-height: 1.55; color: var(--ink); }
.review figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rule); }
.review figcaption b { font-family: var(--display); font-weight: 700; font-stretch: 112%; font-size: 0.9375rem; }
.review--lead blockquote p { font-family: var(--display); font-weight: 700; font-stretch: 106%; font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.35; }
.rating-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; color: var(--ink-2); }
.rating-line b { font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: 1.5rem; color: var(--ink); font-variant-numeric: tabular-nums; }

/* steps: stamped numerals from the markup, fixed first column */
.steps { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding-block: 24px;
  border-top: 1px solid var(--rule);
}
.step-num {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: 2.25rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--navy);
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); }

/* split: photo beside content */
.split { display: grid; gap: 40px; align-items: start; }

/* FAQ: every card open, each answer opens with a pill */
.faq-grid { display: grid; gap: 16px; }
.faq-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
}
.faq-card h3 { margin-bottom: 12px; }
.faq-pill {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 16px;
  background: var(--copper);
  color: var(--white);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 106%;
  font-size: 0.875rem;
  line-height: 1.6;
}
.faq-card p { color: var(--ink-2); }

/* call plate: the close (the only centred section) */
.call-plate {
  position: relative;
  padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 64px);
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--r-plate);
  text-align: center;
  box-shadow: var(--shadow-lift);
}
.call-plate h2 { color: var(--white); max-width: 22ch; margin-inline: auto; }
.call-number {
  display: inline-block;
  margin-top: 32px;
  color: var(--white);
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(1.5rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.call-number:hover { color: var(--copper-lit); }
.call-note { margin-top: 20px; color: var(--on-navy-2); text-wrap: balance; }
.call-note .live-dot { margin-right: 12px; vertical-align: 0.06em; }
.call-plate .btn { margin-top: 32px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--on-navy-2);
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom, 0px) + 32px);
  font-size: 0.9375rem;
}
.ftr-grid { display: grid; gap: 48px; }
.ftr-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--on-navy); text-decoration: none; }
.ftr-brand img { width: 56px; height: 56px; max-width: 56px; max-height: 56px; border-radius: 12px; }
.ftr-brand .brand-name b { font-size: 1.25rem; }
.ftr-hours { display: flex; align-items: center; gap: 12px; margin-top: 24px; color: var(--on-navy); }
/* process and code plate: the same record language as the page's record cells, on navy */
.ftr-facts { display: grid; gap: 16px; margin: 24px 0 8px; padding: 16px 0 0; border-top: 1px solid var(--rule-navy); }
.ftr-facts dt { color: var(--copper-lit); margin-bottom: 4px; }
.ftr-facts dd { margin: 0; color: var(--on-navy); line-height: 1.5; }
.ftr-head { margin-bottom: 16px; color: var(--on-navy); }
.ftr-head--next { margin-top: 32px; }

/* the contact block: name, address, phone, email, then the map directly under it, one plate */
.ftr-contact {
  display: flex;
  flex-direction: column;
  align-self: start;
  background: var(--navy-lift);
  border: 1px solid var(--rule-navy);
  border-top: 3px solid var(--copper);
  border-radius: var(--r-plate);
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgb(0 0 0 / 0.7);
}
.ftr-nap { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0; padding: 24px clamp(16px, 5vw, 28px) 20px; font-style: normal; line-height: 1.5; }
.ftr-name { color: var(--white); font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: 1.1875rem; line-height: 1.2; }
.ftr-addr { margin-top: 4px; color: var(--on-navy-2); }
.ftr-phone, .ftr-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration-line: none;
  text-decoration-color: var(--copper-lit);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: color 0.2s var(--ease);
}
.ftr-phone { color: var(--white); font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.ftr-phone:hover { color: var(--copper-lit); }
.ftr-email { color: var(--on-navy); overflow-wrap: anywhere; }
.ftr-email:hover { color: var(--white); text-decoration-line: underline; }
.ftr-nav { display: grid; gap: 32px; }
.ftr-links { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.ftr-links a, .ftr-gbp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-block: 8px;
  line-height: 1.4;
  color: var(--on-navy);
  text-decoration-line: none;
  text-decoration-color: var(--copper-lit);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.ftr-links a:hover, .ftr-gbp:hover { text-decoration-line: underline; }
.ftr-gbp svg { width: 20px; height: 20px; max-width: 20px; max-height: 20px; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule-navy);
  border-radius: 10px;
  color: var(--on-navy);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.social a:hover { border-color: var(--copper-lit); color: var(--copper-lit); }
.social svg { width: 20px; height: 20px; max-width: 20px; max-height: 20px; }
.ftr-map { aspect-ratio: 4 / 3; border-top: 1px solid var(--rule-navy); background: var(--navy); }
.ftr-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.ftr-map iframe:focus-visible { outline: 3px solid var(--copper-lit); outline-offset: -3px; }
.ftr-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-navy);
}
.legal { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-navy-2); text-decoration-line: none; text-underline-offset: 6px; }
.legal a:hover { color: var(--on-navy); text-decoration-line: underline; }

/* ---------- sticky call bar (phones and tablets) ---------- */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--navy);
  border-top: 1px solid var(--rule-navy);
  box-shadow: 0 -4px 20px rgb(0 0 0 / 0.25);
}
.callbar .btn { width: 100%; min-height: 52px; padding-inline: 16px; font-size: 1.0625rem; }
.callbar-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1.1; text-align: left; }
.callbar-num { white-space: nowrap; }
.callbar-note { font-family: var(--body); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.8125rem; }

/* ---------- reveals: one observer, per-component expression ---------- */
/* a rise that unmasks top to bottom: the text keeps full ink on every frame, so it never reads faint mid-reveal */
html.js-motion .rv {
  clip-path: inset(-48px -48px 100% -48px);
  transform: translateY(24px);
  transition: clip-path 0.7s var(--ease) var(--d, 0ms), transform 0.7s var(--ease) var(--d, 0ms);
}
html.js-motion .rv.is-in { clip-path: inset(-48px -48px -48px -48px); transform: none; }
/* record cells fill in left to right, like a test record being signed off */
html.js-motion .rv-wipe {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s var(--ease) var(--d, 0ms);
}
html.js-motion .rv-wipe.is-in { clip-path: inset(0 0 0 0); }
/* step numerals are punched in */
html.js-motion .step.rv .step-num { transform: scale(1.3); transition: transform 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) calc(var(--d, 0ms) + 140ms); }
html.js-motion .step.rv.is-in .step-num { transform: none; }
/* stars light one after another on a review card */
html.js-motion .review.rv .stars svg { opacity: 0.18; transition: opacity 0.3s ease-out; }
html.js-motion .review.rv.is-in .stars svg { opacity: 1; transition-delay: calc(var(--d, 0ms) + var(--s, 0ms) + 200ms); }

/* ================= 640px ================= */
@media (min-width: 640px) {
  .hdr { gap: 12px; }
  .brand { gap: 12px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-name span { letter-spacing: 0.16em; }
  .hdr-call { padding-inline: 16px; }
  .hdr-call-num { display: inline; }
  .nav-toggle { padding-inline: 12px; }
  .nav-toggle .vh { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; }
  .ftr-nav { grid-template-columns: 1.35fr 1fr; gap: 24px; }
  .grid > * { flex: 1 1 calc(50% - 12px); }
  .rail { grid-template-columns: repeat(3, 1fr); }
  .rail--4 { grid-template-columns: repeat(2, 1fr); }
  .record { grid-template-columns: repeat(2, 1fr); }
  .frame--hero { --ar: 4 / 3; }
}

/* ================= 768px ================= */
@media (min-width: 768px) {
  .faq-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .step { grid-template-columns: 64px 1fr; gap: 24px; padding-block: 32px; }
  .step-num { font-size: 2.75rem; }
  .ftr-grid { grid-template-columns: 1fr 1.4fr; }
  .ftr-contact { grid-column: 1 / -1; }
  .ftr-map { aspect-ratio: 16 / 7; }
  .record--4 { grid-template-columns: repeat(4, 1fr); }
  .record--6 { grid-template-columns: repeat(3, 1fr); }
  .faq-grid--one { grid-template-columns: 1fr; max-width: 48rem; }
}

/* ================= 1024px ================= */
@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  .rail--4 { grid-template-columns: repeat(4, 1fr); }
  .callbar { display: none; }
  .site-footer { padding-bottom: 32px; }
  html.js .nav-toggle { display: none; }
  .nav { order: 0; }
  html.js .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  html.js .nav-links a { width: auto; min-height: 44px; font-size: 0.8125rem; border-bottom: 0; }
  html.js .nav-links .nav-call { display: none; }
  html.js .nav-links .sub-toggle { width: auto; min-height: 44px; justify-content: flex-start; font-size: 0.8125rem; border-bottom: 0; }
  html.js .sub {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    width: 34rem;
    padding: 12px;
    background: var(--navy);
    border: 1px solid var(--rule-navy);
    border-radius: var(--r-card);
    box-shadow: 0 24px 40px -16px rgb(0 0 0 / 0.6);
  }
  html.js .sub.is-open { display: block; }
  html.js .sub-list, html.js ul.sub.is-open { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
  html.js .nav-links .sub-head { margin-top: 8px; padding: 16px 12px 4px; border-top: 1px solid var(--rule-navy); }
  html.js .nav-links .sub a { min-height: 44px; padding: 0 12px; font-size: 0.9375rem; border-radius: 8px; }
  html.js .nav-links .sub a:hover { background: var(--navy-lift); }
  .hdr { flex-wrap: nowrap; gap: 12px; }
  html.js .nav-links { gap: 0; }
  .nav-links a, .sub-toggle { padding-inline: 7px; }
  html.js .nav-links > li > a, html.js .nav-links .sub-toggle { letter-spacing: 0.04em; font-stretch: 100%; }
  .hdr-call { order: 0; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .frame--hero { --ar: 5 / 4; }
  .grid--3 > * { flex: 1 1 calc(33.333% - 16px); }
  .split { grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
  .split--flip { grid-template-columns: 1.15fr 0.85fr; }
  .ftr-grid { grid-template-columns: 0.9fr 1.35fr 1.05fr; gap: 48px; }
  .ftr-contact { grid-column: auto; }
  .ftr-map { aspect-ratio: 4 / 3; }
}

/* the Spanish labels run longer: between 1024 and 1180 its header call button shows the phone icon only */
@media (min-width: 1024px) and (max-width: 1179.98px) {
  .site-header[lang="es"] .hdr-call-num { display: none; }
  .site-header[lang="es"] .hdr-call { padding-inline: 12px; }
}

/* ================= 1280px: the desktop header gets its full spacing back ================= */
@media (min-width: 1280px) {
  .hdr { gap: 16px; }
  html.js .nav-links { gap: 4px; }
  .nav-links a, .sub-toggle { padding-inline: 9px; }
}

/* 2026-11-30 helmet logo: full-colour wordmark on a white plate so the navy reads on the navy header and footer; the PNG is square, the box crops to its wide band */
.brand .brand-logo, .ftr-brand .brand-logo { display: block; flex: none; box-sizing: content-box; background: #fff; border: 0; border-radius: 6px; padding: 4px 8px; object-fit: cover; object-position: 50% 50%; max-width: none; max-height: none; }
.brand .brand-logo { width: 118px; height: 50px; }
.ftr-brand .brand-logo { width: 166px; height: 70px; }
.brand .brand-name, .ftr-brand .brand-name { display: none; }
@media (max-width: 380px) { .brand .brand-logo { width: 104px; height: 44px; } }
