/* Frank Tiling - site styles
   Shape rule: interactive controls (buttons, inputs) use --r-sm, images and panels use --r-md. */

@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Brand */
  --blue: rgb(1 174 240);
  --navy: rgb(8 57 82);
  --navy-deep: rgb(5 40 58);
  --bg: rgb(247 251 252);
  --text: rgb(25 38 46);

  /* Derived */
  --muted: rgb(72 90 101);
  --surface: rgb(255 255 255);
  --tint: rgb(232 244 249);
  --line: rgb(214 228 234);
  --error: rgb(176 32 32);
  --success: rgb(18 110 70);
  --shadow: 0 1px 2px rgb(8 57 82 / 0.06), 0 12px 32px -12px rgb(8 57 82 / 0.18);

  --r-sm: 6px;
  --r-md: 10px;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
  --header-h: 68px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--navy);
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--blue); text-decoration-thickness: 2px; }

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--muted);
  max-width: 58ch;
}

.measure { max-width: 65ch; }

.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 3px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--blue);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .icon { width: 1.15em; height: 1.15em; }

.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); color: #fff; }

.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }

/* On navy backgrounds */
.btn--light { background: var(--blue); color: var(--navy-deep); }
.btn--light:hover { background: #fff; color: var(--navy-deep); }
.btn--ghost-light { border-color: rgb(255 255 255 / 0.7); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }

.btn[disabled] { opacity: 0.65; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}
.text-link .icon { transition: transform 0.2s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(247 251 252 / 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 44px; height: auto; border-radius: 4px; }

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0; padding: 0;
  list-style: none;
}
.site-nav li a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.site-nav li a:hover { color: var(--navy); background: var(--tint); }
.site-nav li a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--blue); border-radius: 0; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.header-actions .btn { min-height: 44px; padding: 10px 18px; }

.icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
}
.icon-btn .icon { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .header-phone, .header-actions .btn { display: none; }
  .icon-btn { display: inline-flex; }
  .site-header .wrap { gap: 10px; }
  .header-actions { margin-left: auto; gap: 8px; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgb(8 57 82 / 0.35);
    padding: 12px var(--gutter) 24px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav:not(.is-open) { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a { padding: 14px 4px; font-size: 1.125rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav li a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--blue); padding-left: 16px; }
  .site-nav .nav-cta { display: grid; gap: 10px; margin-top: 20px; }
}
@media (min-width: 961px) {
  .site-nav .nav-cta { display: none; }
}
@media (max-width: 720px) {
  .header-call { display: none !important; }
}
@media (max-width: 380px) {
  .brand { font-size: 1.0625rem; gap: 8px; }
  .brand img { width: 38px; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(32px, 6vw, 72px) clamp(48px, 7vw, 88px); }

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 { max-width: 15ch; }
.hero .lead { margin-bottom: 28px; }

.hero-media { position: relative; }
.hero-media .main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}
.hero-media .inset { display: none; }

@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.02fr 0.98fr; gap: clamp(40px, 5vw, 72px); }
  .hero-media { padding: 0 0 48px 56px; }
  .hero-media .main { aspect-ratio: 4 / 4.6; max-height: min(640px, calc(100dvh - var(--header-h) - 120px)); }
  .hero-media .inset {
    display: block;
    position: absolute;
    left: 0; bottom: 0;
    width: 38%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 6px solid var(--bg);
    border-radius: var(--r-md);
    box-shadow: var(--shadow);
  }
}

/* ---------- Trust strip ---------- */

.facts {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.facts ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0; padding: 0;
  list-style: none;
}
.facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 12px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.facts .icon { width: 28px; height: 28px; color: var(--blue); }
@media (min-width: 900px) {
  .facts ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts li { padding: 26px 20px; }
  .facts li + li { border-left: 1px solid var(--line); }
}
@media (max-width: 899px) {
  .facts li:nth-child(odd) { padding-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .facts ul { grid-template-columns: 1fr; }
  .facts li { padding-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
}

/* ---------- Services (home) ---------- */

.service-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 860px) {
  .service-split { grid-template-columns: 1.25fr 1fr; align-items: stretch; }
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover img { transform: scale(1.03); }
.service-card .body { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 1.5rem; }
.service-card p { color: var(--muted); }
.service-card .text-link { margin-top: auto; padding-top: 12px; color: var(--navy); }
@media (min-width: 860px) {
  .service-card--wide img { aspect-ratio: 16 / 9; }
  .service-card--narrow img { aspect-ratio: 4 / 3.15; }
}

.tick-list {
  display: grid;
  gap: 10px;
  margin: 4px 0 20px;
  padding: 0;
  list-style: none;
}
.tick-list li { display: flex; gap: 10px; align-items: flex-start; }
.tick-list .icon { margin-top: 3px; color: var(--navy); }
.tick-list--cols { grid-template-columns: 1fr; }
@media (min-width: 560px) { .tick-list--cols { grid-template-columns: 1fr 1fr; column-gap: 24px; } }

/* ---------- Before / after ---------- */

.ba-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 900px) {
  .ba-layout { grid-template-columns: minmax(0, 520px) 1fr; }
}

.ba {
  --pos: 50%;
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--line);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba .ba-after { clip-path: inset(0 0 0 var(--pos)); }

.ba-label {
  position: absolute;
  top: 14px;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba-label--before { left: 14px; background: rgb(25 38 46 / 0.82); color: #fff; }
.ba-label--after { right: 14px; background: var(--navy); color: #fff; }

.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 0;
  pointer-events: none;
}
.ba-handle::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -1.5px;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(8 57 82 / 0.25);
}
.ba-knob {
  position: absolute;
  top: 50%; left: 0;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 4px 16px rgb(8 57 82 / 0.3);
}
.ba-knob .icon { width: 26px; height: 26px; }

/* The range input is the keyboard / screen reader control. Pointer dragging is handled in main.js. */
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.ba:has(.ba-range:focus-visible) .ba-knob { outline: 3px solid var(--navy); outline-offset: 3px; }

.ba-caption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Work grid (home preview) ---------- */

.work-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.work-bento figure { margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--line); }
.work-bento img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.work-bento .tall { grid-row: span 2; }
.work-bento .tall img { aspect-ratio: auto; }
.work-bento .wide { grid-column: span 2; }
.work-bento .wide img { aspect-ratio: 16 / 9; }
@media (min-width: 860px) {
  .work-bento { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 260px)); gap: 16px; }
  .work-bento img { aspect-ratio: auto; }
  .work-bento .wide { grid-column: span 2; }
  .work-bento .wide img { aspect-ratio: auto; }
}

.section-foot { margin-top: 32px; }

/* ---------- Reviews ---------- */

.reviews {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) {
  .reviews { grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto auto; }
  .review--featured { grid-row: span 3; }
}

.review {
  margin: 0;
  padding: clamp(22px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.review blockquote { margin: 0 0 16px; }
.review blockquote p { font-size: 1.0625rem; }
.review figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review cite { font-style: normal; font-weight: 700; color: var(--navy); }
.review .source { color: var(--muted); font-size: 0.875rem; }
.stars { display: inline-flex; gap: 2px; color: var(--navy); margin-bottom: 12px; }
.stars .icon { width: 18px; height: 18px; }

.review--featured {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.review--featured blockquote p { font-size: clamp(1.1875rem, 1rem + 0.7vw, 1.5rem); line-height: 1.45; font-weight: 500; }
.review--featured cite, .review--featured .stars { color: #fff; }
.review--featured .stars { color: var(--blue); }
.review--featured .source { color: rgb(255 255 255 / 0.8); }

/* ---------- Process ---------- */

.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0; padding: 0;
  list-style: none;
  counter-reset: step;
}
.process li {
  position: relative;
  padding: 24px 0 24px 64px;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.process li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 22px;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--navy);
  font-weight: 800;
}
.process h3 { margin-bottom: 6px; }
.process p { color: var(--muted); }
@media (min-width: 860px) {
  .process { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .process li { padding: 72px 0 0; border-top: 3px solid var(--navy); }
  .process li::before { top: 20px; }
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  background-color: var(--navy);
  /* Grout-line grid, echoing the tiles in the logo */
  background-image:
    linear-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  color: #fff;
}
.cta-band .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: rgb(255 255 255 / 0.86); max-width: 52ch; }
.cta-band .meta { display: grid; gap: 10px; margin-top: 20px; color: rgb(255 255 255 / 0.9); font-size: 0.9375rem; }
.cta-band .meta span { display: inline-flex; align-items: center; gap: 10px; }
.cta-band .meta .icon { color: var(--blue); }
@media (min-width: 900px) {
  .cta-band .wrap { grid-template-columns: 1.3fr auto; gap: 48px; }
  .cta-band .btn-row { flex-direction: column; align-items: stretch; }
}

/* ---------- Page header (inner pages) ---------- */

.page-hero { padding-block: clamp(40px, 7vw, 80px) clamp(32px, 5vw, 56px); }
.page-hero h1 { max-width: 20ch; }

.breadcrumb { margin-bottom: 18px; font-size: 0.9375rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumb a { color: var(--muted); }

/* ---------- Service detail ---------- */

.detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.detail h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-top: 1.4em; }
.detail h2:first-child { margin-top: 0; }
.detail-media { display: grid; gap: 16px; }
.detail-media img { width: 100%; border-radius: var(--r-md); object-fit: cover; }
@media (min-width: 960px) {
  .detail { grid-template-columns: 1.1fr 0.9fr; }
  .detail-media { position: sticky; top: calc(var(--header-h) + 24px); grid-template-columns: 1fr 1fr; }
  .detail-media img:first-child { grid-column: span 2; aspect-ratio: 4 / 3; }
  .detail-media img:not(:first-child) { aspect-ratio: 3 / 4; }
}

.feature-list { display: grid; gap: 20px; margin: 8px 0 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.feature-list .icon { width: 28px; height: 28px; color: var(--blue); margin-top: 2px; }
.feature-list h3 { font-size: 1.125rem; margin-bottom: 4px; }
.feature-list p { color: var(--muted); }

.callout {
  margin-top: 32px;
  padding: 24px;
  border-left: 4px solid var(--blue);
  background: var(--tint);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.callout p { margin-bottom: 16px; }

/* Services overview */
.overview-list { display: grid; gap: 24px; }
@media (min-width: 860px) { .overview-list { grid-template-columns: 1fr 1fr; } }

/* ---------- Gallery ---------- */

.gallery {
  columns: 1;
  column-gap: 16px;
}
@media (min-width: 560px) { .gallery { columns: 2; } }
@media (min-width: 960px) { .gallery { columns: 3; } }

.gallery figure { margin: 0 0 16px; break-inside: avoid; }
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--line);
  cursor: zoom-in;
}
.gallery img { width: 100%; transition: transform 0.5s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 10px 2px 0; font-size: 0.9375rem; color: var(--muted); }

.lightbox {
  width: min(96vw, 1100px);
  max-height: 94dvh;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: var(--text);
  color: #fff;
  overflow: hidden;
}
.lightbox::backdrop { background: rgb(10 22 30 / 0.88); }
.lightbox figure { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; max-height: 94dvh; }
.lightbox img { width: 100%; height: 100%; max-height: calc(94dvh - 64px); object-fit: contain; background: rgb(10 22 30); }
.lightbox figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; font-size: 0.9375rem; }
.lightbox .lb-controls { display: flex; gap: 8px; }
.lightbox .icon-btn { display: inline-flex; background: transparent; border-color: rgb(255 255 255 / 0.3); color: #fff; }
.lightbox .icon-btn:hover { background: rgb(255 255 255 / 0.12); }
.lightbox .icon-btn:focus-visible { outline-color: var(--blue); }

/* ---------- Forms ---------- */

.form-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
@media (min-width: 960px) { .form-layout { grid-template-columns: 1.5fr 1fr; } }

.form-card {
  padding: clamp(20px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.form-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}

.field { display: grid; gap: 8px; align-content: start; }
.field label, .field legend { font-weight: 700; color: var(--text); padding: 0; }
.field .opt { font-weight: 500; color: var(--muted); }
.field .hint { margin: -2px 0 0; font-size: 0.9375rem; color: var(--muted); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid rgb(122 145 158);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* 16px keeps iOS from zooming */
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgb(1 174 240 / 0.45);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.choice:has(input[aria-invalid="true"]) { border-color: var(--error); }
.field-error {
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 600;
}
.field-error.is-visible { display: flex; }
.field-error::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--error); color: #fff; font-size: 0.75rem; font-weight: 800; flex: none; }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1.5px solid rgb(122 145 158);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
}
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); }
.choice:has(input:checked) { border-color: var(--navy); background: var(--tint); }
.choice:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; }

.reveal-field[hidden] { display: none; }

.file-input input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1.5px dashed rgb(122 145 158);
  border-radius: var(--r-sm);
  background: var(--bg);
  font: inherit;
  font-size: 0.9375rem;
}
.file-input input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-footer { display: grid; gap: 14px; margin-top: 28px; }
.form-footer .btn { width: 100%; }
@media (min-width: 640px) { .form-footer .btn { width: auto; justify-self: start; } }
.form-note { font-size: 0.9375rem; color: var(--muted); }

.form-alert {
  display: none;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--error);
  background: rgb(176 32 32 / 0.06);
  color: var(--error);
  font-weight: 600;
}
.form-alert.is-visible { display: block; }

.aside-panel { display: grid; gap: 20px; }
.aside-panel .panel {
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--tint);
}
.aside-panel h2 { font-size: 1.25rem; margin-bottom: 12px; }

.contact-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.contact-list .icon { width: 24px; height: 24px; color: var(--navy); margin-top: 2px; }
.contact-list .label { display: block; font-size: 0.875rem; color: var(--muted); }
.contact-list a { font-weight: 700; word-break: break-word; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 48px; } }
.contact-card { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.contact-card + .contact-card { margin-top: 20px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }

.h3-size { font-size: 1.5rem; }
.detail .review { margin-top: 32px; }
.form-card > .h3-size { margin-bottom: 8px; }
.form-card > .form-note { margin-bottom: 24px; }
.next-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }

/* ---------- Simple pages ---------- */

.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose h3 { margin-top: 1.6em; }
.table-scroll { overflow-x: auto; margin: 0 0 1em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose caption { text-align: left; font-weight: 700; padding-bottom: 8px; color: var(--navy); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--tint); color: var(--navy); }
.prose code { font-size: 0.875em; }
.todo-note {
  margin: 0 0 32px;
  padding: 16px 18px;
  border: 2px dashed rgb(176 110 0);
  border-radius: var(--r-sm);
  background: rgb(255 244 214);
  color: rgb(90 56 0);
}

.center-page {
  min-height: calc(70dvh - var(--header-h));
  display: grid;
  align-items: center;
  padding-block: var(--section);
}
.center-page .lead { margin-bottom: 28px; }
.status-icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--navy);
}
.status-icon .icon { width: 34px; height: 34px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgb(255 255 255 / 0.86);
  padding-block: clamp(48px, 7vw, 72px) 28px;
  font-size: 0.9375rem;
}
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: 0; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.site-footer .contact-list .icon { color: var(--blue); }
.site-footer .contact-list .label { color: rgb(255 255 255 / 0.72); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: var(--r-sm);
}
.footer-social a:hover { background: rgb(255 255 255 / 0.1); }
.footer-social .icon { width: 22px; height: 22px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.15);
  color: rgb(255 255 255 / 0.72);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
.link-btn { padding: 0; border: 0; background: none; color: #fff; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.site-footer :focus-visible { outline-color: var(--blue); }

/* ---------- Mobile action bar ---------- */

.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgb(247 251 252 / 0.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgb(8 57 82 / 0.25);
  }
  .mobile-bar .btn { min-height: 48px; padding: 10px 8px; font-size: 0.9375rem; gap: 6px; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* ---------- Cookie consent ---------- */

.consent {
  position: fixed;
  z-index: 60;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 520px;
  padding: 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px -12px rgb(8 57 82 / 0.4);
}
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.125rem; margin-bottom: 8px; }
.consent p { font-size: 0.9375rem; color: var(--muted); margin-bottom: 16px; }
.consent .btn-row .btn { flex: 1 1 140px; min-height: 46px; }
@media (max-width: 720px) {
  .consent { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal-pending { opacity: 0; transform: translateY(18px); }
  .reveal-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

  .hero-copy > * { animation: rise 0.8s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
  .hero-media { animation: rise 1s 0.1s var(--ease) both; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
