/* =====================================================================
   RPI Marine & Auto Shine — Design System (v2)
   Dark "showroom" sections for photography, alternating with white and
   light-gray sections for reading. Every component reads its colors from
   context tokens, so the same card works on dark or light backgrounds.
   Brand colors can be overridden from content/site-config.js.
   ===================================================================== */

:root {
  /* Brand */
  --ink: #05080F;
  --navy: #0A1426;
  --navy-raised: #111D35;
  --blue: #1E8CFF;
  --blue-deep: #0B63C9;
  --blue-bright: #62B8FF;
  --blue-glow: rgba(30, 140, 255, 0.38);
  --silver: #C9D2DE;
  --white: #FFFFFF;
  --paper: #F1F4F8;
  --danger: #E5484D;
  --success: #1F9D6B;

  /* Context tokens (dark by default) */
  --t-strong: #F7F9FC;
  --t-body: #C9D2DE;
  --t-muted: #A7B2C3;
  --t-accent: #62B8FF;
  --card: #111D35;
  --card-line: rgba(150, 185, 235, 0.18);
  --ph: #FFD27A;
  --chrome: linear-gradient(180deg, #FFFFFF 0%, #E3E9F1 38%, #9AA6B7 50%, #F2F5F9 62%, #BAC4D2 100%);

  /* Type */
  --font-display: "Saira", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-label: "Michroma", "Eurostile", Arial, sans-serif;
  --fs-lg: 1.1875rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --fs-3xl: clamp(2.5rem, 1.5rem + 4.4vw, 5.25rem);

  /* Layout */
  --wrap: 1240px;
  --radius: 6px;
  --radius-lg: 14px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-soft: 0 1px 2px rgba(11, 19, 36, .06), 0 12px 32px -12px rgba(11, 19, 36, .18);
  color-scheme: dark;
}

/* Light context: white and light-gray sections, light cards and forms */
.on-light, .section--light, .section--paper {
  --t-strong: #0B1324;
  --t-body: #34405A;
  --t-muted: #56627A;
  --t-accent: #0B63C9;
  --card: #FFFFFF;
  --card-line: rgba(11, 19, 36, 0.12);
  --ph: #8A5300;
  --chrome: linear-gradient(180deg, #0B1324 0%, #1D3A66 100%);
  color: var(--t-body);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--t-body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--t-accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--t-strong); line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 3px; }
.on-light :focus-visible, .section--light :focus-visible, .section--paper :focus-visible { outline-color: var(--blue-deep); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 64px);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 900px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t-accent);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.chrome { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.display { font-size: var(--fs-2xl); font-weight: 800; font-style: italic; text-transform: uppercase; }
.lede { font-size: var(--fs-lg); line-height: 1.6; max-width: 60ch; }
.muted { color: var(--t-muted); }
.section-head { display: grid; gap: 16px; max-width: 720px; margin-bottom: clamp(32px, 4.5vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-foot { margin-top: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.section-foot--center { justify-content: center; }

/* Placeholder text: anything typed as [Like This] in the config */
.ph { color: var(--ph); border-bottom: 1px dashed currentColor; font-style: normal; }
.tag-sample {
  font-family: var(--font-label); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 4px; background: rgba(5, 8, 15, 0.82); color: #FFD27A;
  border: 1px solid rgba(255, 210, 122, 0.5); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: var(--radius); border: 1.5px solid transparent;
  background: transparent; color: var(--t-strong);
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s;
  white-space: nowrap; text-decoration: none !important;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 28px -10px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,.25); }
.on-light .btn--primary, .section--light .btn--primary, .section--paper .btn--primary { background: var(--blue-deep); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 36px -12px var(--blue-glow); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { border-color: rgba(230, 238, 250, 0.55); background: rgba(10, 20, 38, 0.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.on-light .btn--ghost, .section--light .btn--ghost, .section--paper .btn--ghost { color: var(--t-strong); border-color: rgba(11,19,36,.3); background: #fff; }
.on-light .btn--ghost:hover, .section--light .btn--ghost:hover, .section--paper .btn--ghost:hover { border-color: var(--t-strong); color: var(--t-strong); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.85rem; }
.btn--block { width: 100%; }
.text-link { font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; display: inline-flex; gap: 8px; align-items: center; color: var(--t-accent); }
.text-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Mockup banner ---------- */
.mock-banner {
  background: #2A1F05; color: #FFE2A3; font-size: .8rem; text-align: center; line-height: 1.4;
  padding-block: 7px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 101; background: var(--ink); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100; transition: background-color .35s, border-color .35s; border-bottom: 1px solid transparent; }
.site-header.is-solid, .site-header:not(.over-hero) {
  background: rgba(5, 8, 15, 0.92); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: rgba(150, 185, 235, 0.14);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex: none; text-decoration: none !important; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand-text { display: grid; line-height: 1; gap: 6px; }
.brand-text strong { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.05rem; letter-spacing: .03em; text-transform: uppercase; color: #fff; }
.brand-text span { font-family: var(--font-label); font-size: .6rem; letter-spacing: .26em; color: var(--blue-bright); text-transform: uppercase; }
@media (max-width: 420px) { .brand-text strong { font-size: .92rem; } .brand img { width: 48px; height: 48px; } }
.nav { margin-left: auto; display: none; }
.nav ul { display: flex; gap: 2px; }
.nav a {
  display: block; padding: 10px 13px; font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
  color: #DCE3EE; position: relative; text-decoration: none;
}
.nav a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: none; }
.burger { margin-left: auto; width: 48px; height: 48px; border: 1px solid rgba(150,185,235,.3); border-radius: var(--radius); background: rgba(10,20,38,.6); display: grid; place-items: center; color: #fff; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .3s var(--ease), background-color .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1100px) { .nav { display: block; } .header-cta { display: inline-flex; } .burger { display: none; } }

.drawer {
  position: fixed; inset: 0; z-index: 99; background: rgba(5, 8, 15, 0.98);
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 32px);
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer nav a {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(150,185,235,.16);
  font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.55rem; text-transform: uppercase; color: #fff; text-decoration: none;
}
.drawer nav a svg { width: 20px; height: 20px; color: var(--blue-bright); }
.drawer nav a[aria-current="page"] { color: var(--blue-bright); }
.drawer-actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-top: auto; }
.drawer-actions .btn--primary { grid-column: 1 / -1; }
body.drawer-open { overflow: hidden; }
@media (min-width: 1100px) { .drawer { display: none; } }

/* ---------- Media + image fallbacks ---------- */
.media { position: relative; overflow: hidden; background: var(--navy-raised); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-fallback {
  position: absolute; inset: 0; display: none; place-items: center; text-align: center;
  background: linear-gradient(120deg, transparent 30%, rgba(98,184,255,.10) 45%, transparent 60%), radial-gradient(120% 90% at 20% 0%, #1A2D52 0%, #0C1730 50%, #070D1B 100%);
  color: #9FB0C8;
}
.media-fallback div { display: grid; gap: 10px; justify-items: center; padding: 16px; }
.media-fallback svg { width: clamp(56px, 26%, 120px); height: auto; color: rgba(150, 190, 240, .55); }
.media-fallback span { font-family: var(--font-label); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }
.media.is-fallback img { visibility: hidden; }
.media.is-fallback .media-fallback { display: grid; }
.hero__pane .media-fallback div, .page-hero__bg .media-fallback div, .cta-band .media-fallback div, .loc-card .media-fallback div { display: none; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); position: relative; }
.section--navy { background: var(--navy); }
.section--light { background: var(--white); }
.section--paper { background: var(--paper); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

/* ---------- Home hero (two columns) ---------- */
.hero { position: relative; margin-top: calc(-1 * var(--header-h)); overflow: hidden; background: var(--ink); isolation: isolate; }
.hero__panes { position: absolute; inset: 0; z-index: -2; }
.hero__pane { position: absolute; inset: 0; }
.hero__pane img { width: 100%; height: 100%; object-fit: cover; }
.hero__pane--auto { clip-path: polygon(0 0, 58% 0, 38% 100%, 0 100%); }
.hero__pane--marine { clip-path: polygon(58% 0, 100% 0, 100% 100%, 38% 100%); }
.hero__pane--auto img { animation: heroDrift 18s var(--ease) both; object-position: 40% 60%; }
.hero__pane--marine img { animation: heroDrift 18s var(--ease) .2s both reverse; }
.hero__seam {
  position: absolute; inset: 0; pointer-events: none;
  clip-path: polygon(57.6% 0, 58.4% 0, 38.4% 100%, 37.6% 100%);
  background: linear-gradient(180deg, rgba(98,184,255,0) 0%, var(--blue-bright) 40%, var(--blue) 100%);
  animation: seamIn 1.4s var(--ease) .3s both;
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5,8,15,.86) 0%, rgba(5,8,15,.62) 45%, rgba(5,8,15,.4) 100%), linear-gradient(180deg, rgba(5,8,15,.6) 0%, transparent 25%, transparent 75%, rgba(5,8,15,.85) 100%);
}
.hero__grid {
  display: grid; gap: 40px; align-items: center;
  padding-top: calc(var(--header-h) + clamp(32px, 5vw, 64px));
  padding-bottom: clamp(48px, 6vw, 80px);
}
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(400px, 470px); gap: clamp(40px, 5vw, 80px); min-height: min(860px, calc(100svh - 30px)); }
}
.hero__copy { min-width: 0; }
.hero__kicker { margin-bottom: 20px; animation: rise .9s var(--ease) .15s both; }
.hero h1 { display: grid; gap: 10px; }
.hero__name { font-family: var(--font-label); font-size: clamp(.85rem, .75rem + .4vw, 1.05rem); letter-spacing: .28em; color: #fff; font-weight: 400; animation: rise .9s var(--ease) .25s both; }
.hero__slogan {
  font-size: var(--fs-3xl); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: .94;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.95) 50%, transparent 60%) no-repeat, var(--chrome);
  background-size: 250% 100%, 100% 100%; background-position: 200% 0, 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1s var(--ease) .35s both, glint 2.4s var(--ease) 1.2s both; padding-right: .08em;
}
.hero__slogan span { display: block; }
.hero__text { margin-top: 24px; max-width: 46ch; font-size: var(--fs-lg); color: #E6ECF4; animation: rise .9s var(--ease) .55s both; }
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; animation: rise .9s var(--ease) .7s both; }
.hero__trust { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; animation: rise .9s var(--ease) .8s both; }
.hero__trust li { display: flex; gap: 8px; align-items: center; font-size: .95rem; color: #E6ECF4; }
.hero__trust svg { width: 18px; height: 18px; color: var(--blue-bright); flex: none; }
.hero__form { animation: rise 1s var(--ease) .45s both; min-width: 0; }
@media (max-width: 760px) {
  .hero__pane--auto { clip-path: polygon(0 0, 100% 0, 100% 22%, 0 36%); }
  .hero__pane--marine { clip-path: polygon(0 36%, 100% 22%, 100% 100%, 0 100%); }
  .hero__seam { clip-path: polygon(0 35.7%, 100% 21.7%, 100% 22.3%, 0 36.3%); }
  .hero__shade { background: linear-gradient(180deg, rgba(5,8,15,.55) 0%, rgba(5,8,15,.8) 40%, rgba(5,8,15,.95) 100%); }
}
@keyframes heroDrift { from { transform: scale(1.1); } to { transform: scale(1.0); } }
@keyframes seamIn { from { opacity: 0; transform: translateY(-30%); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes glint { from { background-position: 200% 0, 0 0; } to { background-position: -100% 0, 0 0; } }

/* ---------- Quote form (light card) ---------- */
.quote-card {
  background: #fff; border-radius: 18px; padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255,255,255,.6);
  position: relative;
}
.quote-card::before { content: ""; position: absolute; inset: 0 24px auto; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); }
.quote-card h2 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.8rem); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 1.05; }
.quote-card .quote-sub { margin-top: 8px; font-size: .97rem; color: var(--t-body); line-height: 1.5; }
.q-grid { display: grid; gap: 14px; margin-top: 20px; grid-template-columns: 1fr 1fr; }
.q-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 480px) { .q-grid { grid-template-columns: 1fr; } }
.quote-card .form-actions { margin-top: 18px; }
.quote-card .form-note { font-size: .8rem; color: var(--t-muted); text-align: center; line-height: 1.45; margin-top: 10px; }
.more-toggle { all: unset; cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--t-accent); display: inline-flex; gap: 6px; align-items: center; }
.more-toggle:hover { text-decoration: underline; }
.more-toggle:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 2px; border-radius: 3px; }

/* Form fields (shared) */
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label, .field legend { font-weight: 700; font-size: .86rem; letter-spacing: .02em; color: var(--t-strong); padding: 0; }
.field .req { color: var(--danger); }
.field .opt { font-weight: 500; color: var(--t-muted); }
.field .hint { font-size: .82rem; color: var(--t-muted); }
.input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 8px;
  background: #F6F8FB; border: 1.5px solid #CBD3DF; color: #0B1324; font: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B63C9' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.input:hover, .field select:hover, .field textarea:hover { border-color: #9FAEC3; }
.input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-deep); background: #fff; box-shadow: 0 0 0 4px rgba(11,99,201,.18); }
.input::placeholder, .field textarea::placeholder { color: #7B879B; }
.field.has-error .input, .field.has-error select, .field.has-error textarea, .field.has-error .seg { border-color: var(--danger); background: #FFF7F7; }
.field .error { color: #C42B30; font-size: .84rem; font-weight: 600; display: none; }
.field.has-error .error { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-radius: 10px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 10px;
  background: #F6F8FB; border: 1.5px solid #CBD3DF; color: #0B1324; font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.seg label:hover { border-color: var(--blue-deep); }
.seg svg { width: 22px; height: 22px; color: var(--blue-deep); }
.seg input:checked + label { background: #EAF3FF; border-color: var(--blue-deep); color: #0B1324; box-shadow: inset 0 0 0 1px var(--blue-deep); }
.seg input:focus-visible + label { outline: 3px solid var(--blue-deep); outline-offset: 2px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: .93rem; display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.form-status svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.form-status strong { display: block; color: #0B1324; }
.form-status--warn { background: #FFF6E0; border: 1px solid #F0C565; color: #5A3D00; }
.form-status--warn svg { color: #B37400; }
.form-status--ok { background: #E8F7F0; border: 1px solid #8FD3B6; color: #0E4B33; }
.form-status--ok svg { color: var(--success); }
.form-status--err { background: #FDECEC; border: 1px solid #F2A6A8; color: #7A1518; }
.form-status--err svg { color: var(--danger); }
.form-status a { color: inherit; font-weight: 700; text-decoration: underline; }
.hp { position: absolute; left: -9999px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; margin-top: calc(-1 * var(--header-h)); padding-block: calc(var(--header-h) + clamp(64px, 9vw, 120px)) clamp(48px, 7vw, 84px); overflow: hidden; isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { animation: heroDrift 14s var(--ease) both; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,8,15,.94) 0%, rgba(5,8,15,.78) 50%, rgba(5,8,15,.45) 100%); }
.page-hero h1 { font-size: var(--fs-3xl); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: .96; margin-top: 16px; animation: rise .9s var(--ease) .1s both; }
.page-hero .lede { margin-top: 20px; color: #E6ECF4; animation: rise .9s var(--ease) .25s both; }
.page-hero .eyebrow { animation: rise .9s var(--ease) both; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; animation: rise .9s var(--ease) .4s both; }
.page-hero--plain::after { background: radial-gradient(70% 90% at 85% 0%, rgba(30,140,255,.25), transparent 60%), var(--ink); }

/* ---------- Intro / acronym ---------- */
.intro-grid { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) { .intro-grid { grid-template-columns: 1.05fr 1fr; } }
.intro-copy { display: grid; gap: 20px; min-width: 0; }
.intro-media { position: relative; min-width: 0; padding: 0 16px 16px 0; }
.intro-media .media { aspect-ratio: 5 / 4; border-radius: var(--radius-lg); max-width: 100%; box-shadow: var(--shadow-soft); }
.intro-media::before { content: ""; position: absolute; inset: 24px 0 0 24px; border: 2px solid var(--blue); border-radius: var(--radius-lg); opacity: .35; z-index: 0; }
.intro-media .media { position: relative; z-index: 1; }
.acronym { display: grid; border-top: 1px solid var(--card-line); }
.acronym li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--card-line); align-items: center; }
.acronym b { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 2.8rem; line-height: .85; color: var(--blue-deep); }
.acronym h3 { font-size: 1.15rem; text-transform: uppercase; font-style: italic; letter-spacing: .04em; }
.acronym p { color: var(--t-muted); margin-top: 2px; font-size: .98rem; }

/* ---------- We come to you ---------- */
.locations { display: grid; gap: 18px; }
@media (min-width: 860px) { .locations { grid-template-columns: 1fr 1fr; } }
.loc-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 360px; display: flex; align-items: flex-end; isolation: isolate; }
.loc-card .media { position: absolute; inset: 0; z-index: -2; }
.loc-card .media img { transition: transform 1.2s var(--ease); }
.loc-card:hover .media img { transform: scale(1.05); }
.loc-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5,8,15,.95) 0%, rgba(5,8,15,.55) 50%, rgba(5,8,15,.1) 100%); }
.loc-card__body { padding: clamp(24px, 4vw, 36px); display: grid; gap: 10px; color: #E6ECF4; }
.loc-card h3 { font-size: var(--fs-xl); font-style: italic; text-transform: uppercase; color: #fff; }
.loc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.loc-chips li { font-size: .85rem; font-weight: 600; padding: 6px 12px; border: 1px solid rgba(230,238,250,.4); border-radius: 999px; color: #fff; background: rgba(5,8,15,.45); }

/* ---------- Service highlight (home) ---------- */
.split-services { display: grid; gap: 22px; }
@media (min-width: 900px) { .split-services { grid-template-columns: 1fr 1fr; } }
.split-card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-rows: auto 1fr; box-shadow: var(--shadow-soft); }
.split-card .media { aspect-ratio: 16 / 9; }
.split-card .media img { transition: transform 1s var(--ease); }
.split-card:hover .media img { transform: scale(1.04); }
.split-card__body { padding: clamp(24px, 3.5vw, 36px); display: grid; gap: 14px; align-content: start; }
.split-card h3 { font-size: var(--fs-xl); font-style: italic; text-transform: uppercase; font-weight: 800; }
.split-card__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-block: 4px 6px; }
.split-card__list li { font-size: .97rem; display: flex; gap: 10px; align-items: baseline; color: var(--t-strong); }
.split-card__list li::before { content: ""; width: 7px; height: 7px; background: var(--blue); transform: rotate(45deg) translateY(-2px); flex: none; }
.split-card__actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 4px; }
@media (max-width: 420px) { .split-card__list { grid-template-columns: 1fr; } }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.svc-card {
  background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius-lg); overflow: hidden;
  display: grid; grid-template-rows: auto 1fr; transition: transform .4s var(--ease), box-shadow .4s; box-shadow: var(--shadow-soft);
}
.svc-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -26px rgba(11,19,36,.4); }
.svc-card .media { aspect-ratio: 16 / 10; }
.svc-card .media img { transition: transform 1s var(--ease); }
.svc-card:hover .media img { transform: scale(1.05); }
.svc-card__tags { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; z-index: 2; }
.svc-card__surface { font-family: var(--font-label); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(5,8,15,.78); padding: 6px 9px; border-radius: 4px; }
.svc-card__body { padding: 22px 24px 24px; display: grid; gap: 12px; grid-template-rows: auto auto 1fr auto; }
.svc-card h3 { font-size: 1.45rem; font-style: italic; text-transform: uppercase; font-weight: 800; }
.svc-card p { font-size: 1rem; }
.benefits { display: grid; gap: 7px; align-content: start; }
.benefits li { display: flex; gap: 10px; font-size: .96rem; color: var(--t-strong); line-height: 1.45; }
.benefits svg { width: 17px; height: 17px; flex: none; color: var(--blue-deep); margin-top: 3px; }
.svc-card .btn { margin-top: 6px; justify-self: start; }

/* ---------- Compare slider ---------- */
.cmp { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy-raised); user-select: none; touch-action: pan-y; --pos: 50%; max-width: 100%; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp__before.is-simulated img { filter: saturate(.25) brightness(.62) contrast(.8) sepia(.25) blur(.6px); }
.cmp__before.is-simulated::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 40%, rgba(200,190,170,.18), transparent 40%), repeating-linear-gradient(115deg, rgba(255,255,255,.04) 0 2px, transparent 2px 7px); }
.cmp__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 14px var(--blue); pointer-events: none; }
.cmp__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat;
  border: 2px solid #fff; box-shadow: 0 0 0 6px rgba(30,140,255,.3);
}
.cmp input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.cmp input[type="range"]:focus-visible + .cmp__handle::after { box-shadow: 0 0 0 4px var(--blue-bright); }
.cmp__label { position: absolute; top: 12px; font-family: var(--font-label); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; background: rgba(5,8,15,.82); color: #fff; padding: 6px 10px; border-radius: 4px; pointer-events: none; }
.cmp__label--b { left: 12px; } .cmp__label--a { right: 12px; }
.cmp__note { position: absolute; left: 12px; right: 12px; bottom: 12px; pointer-events: none; font-size: .8rem; line-height: 1.4; color: #FFE7B3; background: rgba(5,8,15,.85); border: 1px solid rgba(255,210,122,.4); padding: 8px 10px; border-radius: 6px; }
.feature-pair { display: grid; gap: 22px; }
@media (min-width: 900px) { .feature-pair { grid-template-columns: 1fr 1fr; } }
.feature-pair figure { margin: 0; display: grid; gap: 12px; min-width: 0; }
.feature-pair figcaption { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.feature-pair figcaption strong { font-family: var(--font-display); font-style: italic; text-transform: uppercase; color: var(--t-strong); font-size: 1.2rem; }

/* ---------- Why choose ---------- */
.why-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-item { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 32px); display: grid; gap: 12px; align-content: start; position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.why-item::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--blue); transition: width .5s var(--ease); }
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.why-item:hover::before { width: 100%; }
.why-icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: var(--blue-deep); background: #EAF3FF; }
.why-icon svg { width: 24px; height: 24px; }
.why-item h3 { font-size: 1.25rem; text-transform: uppercase; font-style: italic; letter-spacing: .02em; }
.why-item p { font-size: 1rem; }

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 20px; position: relative; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .steps::before { content: ""; position: absolute; top: 62px; left: 14%; right: 14%; height: 2px; background: repeating-linear-gradient(90deg, var(--blue) 0 8px, transparent 8px 16px); opacity: .5; }
}
.step { position: relative; display: grid; gap: 14px; justify-items: start; padding: 28px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--shadow-soft); }
.step__num {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.5rem;
  box-shadow: 0 0 0 8px rgba(30,140,255,.14);
}
.step__num svg { position: absolute; right: -10px; bottom: -6px; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--blue); color: #fff; }
.step h3 { font-size: 1.35rem; text-transform: uppercase; font-style: italic; }
.step:hover .step__num { animation: pulse 1.4s var(--ease); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30,140,255,.5); } 100% { box-shadow: 0 0 0 18px rgba(30,140,255,0); } }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.review { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 16px; grid-template-rows: auto 1fr auto; }
.review__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review__mark { font-family: var(--font-display); font-size: 4rem; line-height: .5; color: var(--blue); height: 26px; }
.review blockquote { margin: 0; font-size: 1.02rem; line-height: 1.65; }
.review footer { display: flex; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--card-line); }
.review__avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #1E8CFF, #0A3E7A); color: #fff; font-family: var(--font-display); font-weight: 800; flex: none; }
.review footer strong { display: block; color: var(--t-strong); }
.review footer span { font-size: .9rem; color: var(--t-muted); }
.stars { display: flex; gap: 2px; color: #FFC94D; }
.stars svg { width: 16px; height: 16px; }
.google-slot { margin-top: 20px; border: 1.5px dashed rgba(98,184,255,.45); border-radius: var(--radius-lg); padding: 22px 26px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.google-slot h3 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; font-style: italic; }
.google-slot p { color: var(--t-muted); font-size: .97rem; margin-top: 4px; }

/* ---------- Service area ---------- */
.area { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .area { grid-template-columns: 1.1fr 1fr; } }
.area-copy { display: grid; gap: 18px; min-width: 0; justify-items: start; }
.area-list { display: flex; flex-wrap: wrap; gap: 10px; }
.area-list li { padding: 9px 14px; border: 1px solid var(--card-line); border-radius: 999px; background: var(--card); font-size: .95rem; display: flex; gap: 8px; align-items: center; color: var(--t-strong); }
.area-list svg { width: 16px; height: 16px; color: var(--blue-deep); }
.radar { position: relative; aspect-ratio: 1 / 1; max-width: 440px; width: 100%; margin-inline: auto; border-radius: 50%; background: radial-gradient(circle, #0E1A31 0%, #070D1B 70%); box-shadow: 0 30px 70px -30px rgba(11,19,36,.55); }
.radar canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.radar__center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
/* Logo keeps its natural proportions (696 × 664) at every size */
.radar__center img { width: 40%; height: auto; max-height: 40%; aspect-ratio: 696 / 664; object-fit: contain; filter: drop-shadow(0 8px 26px rgba(30,140,255,.35)); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(72px, 9vw, 120px); text-align: center; color: #E6ECF4; }
.cta-band .media { position: absolute; inset: 0; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 50% 50%, rgba(5,8,15,.72), rgba(5,8,15,.95)); }
.cta-band h2 { font-size: var(--fs-2xl); font-weight: 800; font-style: italic; text-transform: uppercase; margin-top: 16px; }
.cta-band__text { margin: 18px auto 0; max-width: 54ch; font-size: var(--fs-lg); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* ---------- Quote section (inner pages) ---------- */
.quote-section .grid-2 { align-items: center; }
.quote-points { display: grid; gap: 14px; margin-top: 8px; }
.quote-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; }
.quote-points svg { width: 22px; height: 22px; color: var(--blue-bright); flex: none; margin-top: 2px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--card-line); border-radius: var(--radius-lg); padding: 32px 28px; display: grid; gap: 16px; grid-template-rows: auto auto auto 1fr auto; position: relative; box-shadow: var(--shadow-soft); transition: transform .4s var(--ease), box-shadow .4s; }
.price-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -26px rgba(11,19,36,.4); }
.price-card h3 { font-size: 1.6rem; font-style: italic; text-transform: uppercase; font-weight: 800; }
.price-card--featured { border: 2px solid var(--blue-deep); }
.price-badge { position: absolute; top: -13px; left: 24px; font-family: var(--font-label); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; background: var(--blue-deep); color: #fff; padding: 6px 10px; border-radius: 4px; }
.price-badge .ph { color: #fff; }
.price { display: grid; gap: 2px; padding-block: 14px; border-block: 1px solid var(--card-line); }
.price small { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--t-muted); }
.price strong { font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; line-height: 1.1; color: var(--t-strong); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 8px; }
.price strong em { font-style: normal; font-size: 1rem; font-weight: 600; color: var(--t-muted); }
.price .tbd { font-size: 1rem; font-family: var(--font-label); letter-spacing: .12em; color: var(--ph); border: 1.5px dashed currentColor; padding: 6px 10px; border-radius: 6px; }
.checklist { display: grid; gap: 9px; align-content: start; }
.checklist li { display: flex; gap: 10px; font-size: .97rem; line-height: 1.45; color: var(--t-strong); }
.checklist svg { width: 18px; height: 18px; flex: none; color: var(--blue-deep); margin-top: 1px; }
.pricing-note { margin-top: 28px; font-size: .95rem; display: flex; gap: 12px; align-items: flex-start; max-width: 80ch; }
.pricing-note svg { width: 20px; height: 20px; flex: none; color: var(--blue-deep); margin-top: 2px; }
.pricing-block + .pricing-block { margin-top: clamp(56px, 7vw, 88px); }
.pricing-block__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 30px; }
.pricing-block__head h2 { font-size: var(--fs-2xl); font-style: italic; text-transform: uppercase; font-weight: 800; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--card-line); border-radius: var(--radius-lg); background: var(--card); }
.faq summary { cursor: pointer; padding: 18px 22px; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--t-strong); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--blue-deep); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; }

/* ---------- Gallery ---------- */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius-lg); background: #FFF6E0; border: 1px solid #F0C565; color: #4D3500; font-size: .96rem; margin-bottom: 28px; line-height: 1.55; }
.notice svg { width: 20px; height: 20px; flex: none; color: #B37400; margin-top: 2px; }
.notice strong { color: #2E2000; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn { min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(150,185,235,.3); background: var(--navy-raised); color: #E6ECF4; font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .88rem; transition: all .25s; }
.filter-btn:hover { border-color: var(--blue-bright); color: #fff; }
.filter-btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.filter-btn span { opacity: .75; margin-left: 6px; font-variant-numeric: tabular-nums; }
.gallery-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); grid-auto-flow: dense; grid-auto-rows: 250px; }
.g-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-raised); margin: 0; }
.g-item--wide { grid-column: span 2; grid-row: span 2; }
@media (max-width: 640px) { .gallery-grid { grid-auto-rows: 240px; } .g-item--wide { grid-column: auto; grid-row: span 1; } }
.g-item .g-open, .g-item .media, .g-item .cmp { height: 100%; }
.g-item .media, .g-item--wide .cmp { aspect-ratio: auto; border-radius: 0; }
.g-item button.g-open { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; position: relative; }
.g-item button.g-open:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: -3px; }
.g-item .media img { transition: transform .9s var(--ease); }
.g-item:hover .media img { transform: scale(1.06); }
.g-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; background: linear-gradient(0deg, rgba(5,8,15,.92), transparent); pointer-events: none; }
.g-meta strong { display: block; font-family: var(--font-display); font-style: italic; text-transform: uppercase; color: #fff; font-size: 1.05rem; line-height: 1.15; }
.g-meta small { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: #BFE0FF; margin-top: 3px; }
.g-item .tag-sample { position: absolute; top: 10px; left: 10px; z-index: 3; pointer-events: none; }
.g-item[hidden] { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(3,5,10,.96); display: grid; grid-template-rows: auto 1fr auto; padding: calc(12px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; color: #E6ECF4; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: .95rem; padding: 4px 6px 12px; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; }
.lightbox__stage .media { width: min(100%, 1400px); height: 100%; background: transparent; }
.lightbox__stage .media img { object-fit: contain; }
.lightbox__caption { text-align: center; font-size: .95rem; padding-top: 12px; }
.lightbox__caption strong { color: #fff; font-family: var(--font-display); text-transform: uppercase; font-style: italic; margin-right: 8px; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(10,20,38,.8); color: #fff; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.icon-btn:hover { background: var(--blue); border-color: var(--blue); }
.icon-btn svg { width: 20px; height: 20px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lightbox__prev { left: 4px; } .lightbox__next { right: 4px; }

/* ---------- About ---------- */
.owner { display: grid; gap: clamp(32px, 5vw, 60px); align-items: start; }
@media (min-width: 900px) { .owner { grid-template-columns: 360px 1fr; } }
.owner-photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); max-width: 100%; }
.owner-copy { display: grid; gap: 18px; min-width: 0; }
.owner-copy h2 { font-size: var(--fs-2xl); font-style: italic; text-transform: uppercase; font-weight: 800; }
.facts { display: grid; gap: 16px; }
@media (min-width: 700px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { background: var(--paper); border-radius: var(--radius-lg); padding: 22px 24px; display: grid; gap: 8px; align-content: start; }
.fact h3 { font-family: var(--font-label); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--t-accent); font-weight: 400; }
.mission { text-align: center; max-width: 880px; margin-inline: auto; display: grid; gap: 20px; justify-items: center; }
.mission blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.22; color: var(--t-strong); text-wrap: balance; }
.values { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin-top: 48px; }
.value { padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--card-line); display: grid; gap: 8px; align-content: start; }
.value h3 { font-size: 1.2rem; text-transform: uppercase; font-style: italic; }
.certs { display: grid; gap: 12px; }
.certs li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1.5px dashed rgba(150,185,235,.35); border-radius: var(--radius); background: rgba(17,29,53,.6); }
.certs svg { width: 22px; height: 22px; color: var(--blue-bright); flex: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(28px, 4vw, 48px); align-items: start; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1.55fr 1fr; } }
.form-grid { display: grid; gap: 16px; margin-top: 22px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .field--full { grid-column: 1 / -1; } }
.drop { border: 1.5px dashed #9FAEC3; border-radius: 10px; padding: 20px; text-align: center; background: #F6F8FB; display: grid; gap: 4px; justify-items: center; cursor: pointer; transition: border-color .2s, background-color .2s; position: relative; }
.drop:hover, .drop.is-drag { border-color: var(--blue-deep); background: #EAF3FF; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg { width: 26px; height: 26px; color: var(--blue-deep); }
.drop strong { color: #0B1324; font-weight: 700; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.thumbs figure { margin: 0; width: 76px; height: 76px; border-radius: 8px; overflow: hidden; position: relative; border: 1px solid var(--card-line); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(5,8,15,.85); color: #fff; font-size: 15px; line-height: 1; display: grid; place-items: center; }
.contact-side { display: grid; gap: 18px; min-width: 0; }
.contact-card { border: 1px solid var(--card-line); border-radius: var(--radius-lg); padding: 26px; background: var(--card); display: grid; gap: 16px; box-shadow: var(--shadow-soft); }
.contact-card h2 { font-size: 1.25rem; text-transform: uppercase; font-style: italic; }
.contact-line { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; }
.contact-line small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t-muted); }
.contact-line span, .contact-line a { color: var(--t-strong); font-size: 1.05rem; word-break: break-word; font-weight: 600; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-actions .btn { padding: 0 12px; }

/* ---------- Footer ---------- */
.site-footer { background: #03060C; border-top: 1px solid rgba(150,185,235,.14); padding-block: 64px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: .97rem; color: #C9D2DE; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand { display: grid; gap: 16px; justify-items: start; }
.footer-brand img { width: 140px; height: auto; aspect-ratio: 696 / 664; object-fit: contain; }
.footer-brand p { color: #B3BECE; max-width: 36ch; }
.footer-title { font-family: var(--font-label); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-bright); font-weight: 400; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: #DCE3EE; }
.site-footer a:hover { color: #fff; }
.site-footer .ph { color: #FFD27A; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(150,185,235,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; color: #A7B2C3; }
.footer-slogan { font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem; }

/* ---------- Mobile action bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 8px;
  padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  background: rgba(5,8,15,.95); backdrop-filter: blur(12px); border-top: 1px solid rgba(150,185,235,.16);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn { min-height: 48px; padding: 0 10px; font-size: .82rem; letter-spacing: .06em; }
@media (min-width: 1100px) { .mobile-bar { display: none; } }
@media (max-width: 1099px) { .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- Scroll reveal ---------- */
.reveal-pending { opacity: 0; transform: translateY(24px); }
.reveal-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }

/* ---------- Misc layout ---------- */
.grid-2 { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.stack { display: grid; gap: 18px; min-width: 0; }
.jump-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.jump-nav a { font-size: .9rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--card-line); color: var(--t-strong); background: var(--card); text-decoration: none; }
.jump-nav a:hover { border-color: var(--blue-deep); color: var(--blue-deep); }
.spec { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.spec div { background: rgba(17,29,53,.7); border: 1px solid rgba(150,185,235,.16); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 8px; align-content: start; }
.spec b { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.3rem; color: #fff; text-transform: uppercase; }
.spec span { font-size: .98rem; color: #C9D2DE; }
.cross-link { display: grid; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-soft); }
@media (min-width: 760px) { .cross-link { grid-template-columns: 1fr auto; } }
.cross-link h2 { font-size: 1.5rem; font-style: italic; text-transform: uppercase; }
.cross-link p { margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-pending { opacity: 1; transform: none; }
}
.spec li { display: grid; }
.quote-points li { color: var(--t-body); }
.quote-points svg { color: var(--t-accent); }
/* Hero form compaction so the submit button sits above the fold on laptops */
.more-toggle svg { width: 16px; height: 16px; flex: none; }
.more-toggle { min-height: 32px; }
.hero .q-grid { gap: 12px; margin-top: 16px; }
.hero .input { min-height: 46px; padding-block: 10px; }
.hero .seg label { min-height: 48px; }
.hero .quote-card .form-actions { margin-top: 14px; }
.hero .quote-card .form-note { margin-top: 8px; }
@media (min-width: 1000px) {
  .hero__grid { min-height: min(800px, calc(100svh - 30px)); padding-top: calc(var(--header-h) + 28px); padding-bottom: 40px; }
}
@media (max-width: 760px) { .hero__seam { display: none; } }

/* ---------- Clickable "We Come to You" cards ---------- */
a.loc-card { color: inherit; text-decoration: none !important; cursor: pointer; transition: transform .45s var(--ease), box-shadow .45s var(--ease); -webkit-tap-highlight-color: transparent; }
a.loc-card::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(150,185,235,.18); transition: box-shadow .45s var(--ease); pointer-events: none; }
a.loc-card:hover, a.loc-card:focus-visible { transform: translateY(-6px); box-shadow: 0 28px 60px -24px rgba(0,0,0,.75), 0 0 0 1px rgba(98,184,255,.35), 0 18px 50px -20px rgba(30,140,255,.45); }
a.loc-card:hover::before, a.loc-card:focus-visible::before { box-shadow: inset 0 0 0 2px var(--blue-bright); }
a.loc-card:hover .media img, a.loc-card:focus-visible .media img { transform: scale(1.06); }
a.loc-card:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 4px; }
a.loc-card:active { transform: translateY(-2px) scale(.995); }
.loc-card__go { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-bright); }
.loc-card__go svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
a.loc-card:hover .loc-card__go svg, a.loc-card:focus-visible .loc-card__go svg { transform: translateX(5px); }

/* ---------- Service-area towns ---------- */
.area-list--towns { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 8px; width: 100%; }
.area-list--towns li { border-radius: 8px; padding: 10px 12px; font-weight: 600; font-size: .95rem; }
.contact-card .area-list--towns { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }

/* ---------- Quick quote form layout (v3) ---------- */
.q-grid .seg { gap: 6px; }
.q-grid .seg label { min-height: 46px; gap: 6px; font-size: .9rem; padding-inline: 6px; }
.q-grid .seg svg { width: 18px; height: 18px; }
.q-details textarea { min-height: 104px; max-height: 260px; resize: vertical; line-height: 1.5; overflow-y: auto; }
.hero .q-details textarea { min-height: 96px; }
@media (max-width: 380px) { .q-grid .seg label { font-size: .84rem; } .q-grid .seg svg { display: none; } }
.q-grid .field--half-seg .seg label { flex-direction: column; gap: 2px; font-size: .82rem; letter-spacing: 0; line-height: 1.1; padding: 4px; }
.q-grid .field--half-seg .seg svg { width: 18px; height: 18px; display: block; }
@media (max-width: 480px) { .q-grid .field--half-seg .seg label { flex-direction: row; gap: 8px; font-size: .92rem; } }
.hero .q-details textarea { min-height: 78px; height: 78px; }
.hero .quote-card { padding-top: 26px; padding-bottom: 22px; }
.q-grid .field--half-seg .seg label { min-height: 48px; }
#area-title { font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.5rem); }
.area-list--towns li.is-long { grid-column: span 2; }

/* Home hero: no background photos, just the dark backdrop with a soft blue glow */
.hero { background: radial-gradient(55% 70% at 80% 25%, rgba(30,140,255,.16), transparent 65%), radial-gradient(45% 55% at 5% 95%, rgba(30,140,255,.10), transparent 65%), var(--ink); }
.hero__seam { opacity: .55; }

/* ---------- Home hero: dark navy backdrop (the look from before photos were added) ---------- */
.hero {
  background:
    linear-gradient(120deg, transparent 30%, rgba(98,184,255,.08) 45%, transparent 60%),
    radial-gradient(120% 90% at 20% 0%, #1A2D52 0%, #0C1730 50%, #070D1B 100%);
}
.hero__seam { opacity: 1; }

/* ---------- Mobile hero: bring the quote form up ---------- */
@media (max-width: 999px) {
  .hero__grid { gap: 24px; padding-top: calc(var(--header-h) + 20px); padding-bottom: 40px; }
  .hero__kicker { margin-bottom: 14px; }
  .hero__text { margin-top: 16px; }
  .hero__actions { margin-top: 20px; }
  .hero__trust { display: none; }  /* the form's "No obligation" note covers this on phones */
  /* quicker entrance so the space never looks empty while loading */
  .hero__kicker, .hero__name, .hero__slogan, .hero__text, .hero__actions, .hero__form { animation-delay: 0s !important; animation-duration: .5s; }
}
@media (max-width: 999px) and (min-width: 761px) { .hero__actions { justify-content: flex-start; } }

/* ---------- Size-based price tables ---------- */
.price--tiers { gap: 8px; }
.tier-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tier-table th, .tier-table td { padding: 7px 0; border-bottom: 1px solid var(--card-line); font-size: 1rem; }
.tier-table tr:last-child th, .tier-table tr:last-child td { border-bottom: 0; }
.tier-table th { text-align: left; font-weight: 600; color: var(--t-body); }
.tier-table td { text-align: right; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--t-strong); }
.price-grid--four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.price-grid--two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); max-width: 860px; }

/* ---------- Add-on services and coming soon ---------- */
.addons { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.addon { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 20px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--shadow-soft); scroll-margin-top: calc(var(--header-h) + 24px); }
.addon svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: #EAF3FF; color: var(--blue-deep); }
.addon h3 { font-size: 1.1rem; text-transform: uppercase; font-style: italic; }
.addon p { font-size: .96rem; margin-top: 4px; }
.coming-soon { display: flex; flex-wrap: wrap; gap: 10px; }
.coming-soon li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1.5px dashed rgba(98,184,255,.5); color: #E6ECF4; font-weight: 600; }
.coming-soon svg { width: 18px; height: 18px; color: var(--blue-bright); }
.fact-list { display: grid; gap: 12px; }
.fact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: rgba(17,29,53,.6); border: 1px solid rgba(150,185,235,.18); color: #E6ECF4; }
.fact-list svg { width: 22px; height: 22px; color: var(--blue-bright); flex: none; margin-top: 2px; }
.owner-photo--logo { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #13264A, #070D1B 75%); }
.owner-photo--logo img { width: 72%; height: auto; aspect-ratio: 696 / 664; object-fit: contain; }
[hidden] { display: none !important; }

/* ---------- Before / after pairs ---------- */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; height: 100%; background: var(--ink); }
.pair__half { all: unset; position: relative; display: block; cursor: zoom-in; overflow: hidden; min-width: 0; }
.pair__half:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: -3px; }
.pair__half .media { height: 100%; aspect-ratio: auto; }
.pair__half .media img { transition: transform .9s var(--ease); }
.pair__half:hover .media img { transform: scale(1.05); }
.pair__label { position: absolute; top: 10px; left: 10px; font-family: var(--font-label); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; padding: 6px 10px; border-radius: 4px; background: rgba(5,8,15,.82); color: #fff; pointer-events: none; }
.pair__label--a { background: var(--blue); }
.feature-pair .g-item { background: transparent; overflow: visible; display: grid; gap: 12px; margin: 0; }
.feature-pair .pair { aspect-ratio: 8 / 5; border-radius: var(--radius-lg); overflow: hidden; height: auto; }
.g-item--wide .g-meta { pointer-events: none; }
@media (max-width: 640px) { .gallery-grid { grid-auto-rows: 280px; } .gallery-grid .g-item--wide { grid-row: span 1; } }

/* ---------- Gallery sections ---------- */
.g-group + .g-group { margin-top: clamp(48px, 6vw, 80px); }
.g-group__title { font-size: var(--fs-xl); font-style: italic; text-transform: uppercase; font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; gap: 14px; }
.g-group__title::after { content: ""; flex: 1; height: 1px; background: rgba(150,185,235,.2); }
.g-sub + .g-sub { margin-top: 28px; }
.g-sub__title { font-family: var(--font-label); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-bright); font-weight: 400; margin-bottom: 14px; }
.feature-pair .cmp { aspect-ratio: 4 / 5; }
@media (min-width: 900px) { .feature-pair .cmp { aspect-ratio: 4 / 5; max-height: 720px; } }
/* Town grid: even rows (3 columns desktop, 2 on phones); long name takes a double cell */
.area .area-list--towns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-card .area-list--towns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .area .area-list--towns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.area-list--towns li { min-width: 0; }
.contact-card .area-list--towns li.is-long, .area-list--towns li.is-long { grid-column: span 2; }
.area-list--towns li { white-space: nowrap; gap: 6px; padding: 10px; }
@media (max-width: 560px) { .area-list--towns li { font-size: .9rem; } }
/* Never enlarge a photo past its real size in the full-screen viewer */
.lightbox__stage .media img { object-fit: scale-down; }
