/* =========================================================
   SLO Power — design system
   Everything below uses these tokens. No one-off values.
   ========================================================= */

:root {
  /* Color: one dark neutral, one light neutral, one accent */
  --ink: #14213d;                        /* dark neutral: text, dark sections */
  --ink-soft: #4f5970;                   /* secondary text (tint of ink, 7:1 on white) */
  --paper: #f6f3ee;                      /* light neutral: alternating sections */
  --white: #ffffff;
  --action: #14213d;                     /* primary buttons: the dark neutral reads calmer than red */
  --action-hover: #22314f;
  --accent: #b4232a;                     /* deep red, used only on the logo and the "Most popular" mark */
  --accent-hover: #93191f;
  --line: rgba(20, 33, 61, 0.12);
  --line-strong: rgba(20, 33, 61, 0.28);
  --on-ink-soft: rgba(255, 255, 255, 0.74);
  --on-ink-line: rgba(255, 255, 255, 0.16);

  /* Type: two fonts, one scale */
  --font-display: "Archivo", "Archivo Fallback", Arial, sans-serif;
  --font-body: "Barlow", "Barlow Fallback", system-ui, sans-serif;
  --text-h1: 3rem;        /* 48 */
  --text-h2: 2rem;        /* 32 */
  --text-h3: 1.5rem;      /* 24 */
  --text-lg: 1.125rem;    /* 18 */
  --text-base: 1rem;      /* 16 */
  --text-sm: 0.875rem;    /* 14 */
  --leading-tight: 1.1;
  --leading-body: 1.6;
  --measure: 29em;        /* about 65 characters of Barlow per line (Barlow runs narrow, so ch overshoots) */

  /* Space: 8px scale (4px only for icon-to-label gaps) */
  --space-1: 0.25rem;     /* 4 */
  --space-2: 0.5rem;      /* 8 */
  --space-3: 1rem;        /* 16 */
  --space-4: 1.5rem;      /* 24 */
  --space-5: 2rem;        /* 32 */
  --space-6: 3rem;        /* 48 */
  --space-7: 4rem;        /* 64 */
  --space-8: 6rem;        /* 96 */

  /* Shape and depth */
  --radius-sm: 8px;       /* buttons, inputs */
  --radius: 12px;         /* cards, photos */
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(20, 33, 61, 0.06), 0 8px 24px rgba(20, 33, 61, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Layout */
  --container: 1200px;
  --gutter: var(--space-3);
  --control: 48px;        /* height of buttons and inputs */
  --bar-h: 72px;          /* sticky phone bar */
}

/* Size-matched fallbacks so text wraps the same before and after the web fonts load (no layout jump).
   size-adjust = measured width of the web font / width of Arial for the same text. */
@font-face { font-family: "Barlow Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"); size-adjust: 95.45%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"); font-weight: 700; size-adjust: 97.64%; }

@media (max-width: 767px) {
  :root {
    --text-h1: 2.25rem;   /* 36 */
    --text-h2: 1.75rem;   /* 28 */
    --text-h3: 1.25rem;   /* 20 */
  }
}
@media (min-width: 768px) { :root { --gutter: var(--space-4); } }
@media (min-width: 1100px) { :root { --gutter: var(--space-5); } }

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

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--space-3); }
html.booking-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); line-height: 1.05; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); letter-spacing: -0.01em; }
p { margin: 0; max-width: var(--measure); text-wrap: pretty; }
p + p { margin-top: var(--space-3); }

a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.icon { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; top: -100px; left: var(--space-3); z-index: 100; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--ink); color: var(--white); font-weight: 600; }
.skip-link:focus { top: var(--space-3); }
.noscript-note { margin-top: var(--space-3); font-weight: 600; }

.inline-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.inline-link:hover { text-decoration-thickness: 2px; }

.text-link { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); font-weight: 600; text-decoration: none; }
.text-link .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- Buttons: one primary, one secondary ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control);
  padding: 0 var(--space-4);
  border: 1px solid var(--action);
  border-radius: var(--radius-sm);
  background: var(--action);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 16px; height: 16px; }

.btn-secondary { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { background: var(--paper); border-color: var(--ink); }

/* On navy: the filled button flips to white so it still reads as the primary action */
.cta .btn:not(.btn-secondary), .plan-featured .btn:not(.btn-secondary) { background: var(--white); border-color: var(--white); color: var(--ink); }
.cta .btn:not(.btn-secondary):hover, .plan-featured .btn:not(.btn-secondary):hover { background: var(--paper); border-color: var(--paper); }

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

.site-header { position: relative; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow 0.2s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(20, 33, 61, 0.06); }
.header-inner { display: flex; align-items: center; gap: var(--space-5); min-height: 64px; }

/* Logo: the SLO Power shield badge + wordmark */
.logo { display: inline-flex; align-items: center; gap: var(--space-2); margin-right: auto; text-decoration: none; }
.logo-badge { display: block; flex: none; }
.logo-badge img { width: auto; height: 38px; }
.logo-word { color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; line-height: 1; letter-spacing: 0.16em; white-space: nowrap; }
.logo-slo { color: var(--ink); }
.logo-power { color: var(--accent); }

.nav, .header-actions { display: none; }

/* phone menu */
.menu-toggle { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--control); margin-right: calc(-1 * var(--space-2)); padding: 0 var(--space-2); border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.menu-toggle:hover { background: var(--paper); }
.mobile-menu { border-top: 1px solid var(--line); background: var(--white); }
.mobile-menu .container { display: grid; padding-bottom: var(--space-3); }
.mobile-menu a { display: flex; align-items: center; gap: var(--space-2); min-height: var(--control); border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .icon { width: 16px; height: 16px; }

@media (min-width: 960px) {
  html { scroll-padding-top: calc(72px + var(--space-3)); }
  .site-header { position: sticky; top: 0; }
  .header-inner { min-height: 72px; }
  .site-header .logo { margin-right: var(--space-3); }
  .nav { display: flex; gap: var(--space-5); margin-right: auto; }
  .nav a { position: relative; color: var(--ink-soft); font-weight: 600; text-decoration: none; transition: color 0.2s var(--ease); }
  .nav a::after { content: ""; position: absolute; right: 0; bottom: calc(-1 * var(--space-2)); left: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
  .nav a:hover, .nav a[aria-current="true"] { color: var(--ink); }
  .nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
  .header-actions { display: flex; align-items: center; gap: var(--space-4); }
  .header-phone { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); font-weight: 600; text-decoration: none; }
  .header-phone .icon { width: 16px; height: 16px; }
  .header-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

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

.hero { padding: var(--space-6) 0 var(--space-7); background: var(--paper); }
.hero-grid { display: grid; gap: var(--space-6); }
.hero h1 { max-width: 16ch; }
.hero-sub { margin-top: var(--space-3); color: var(--ink-soft); font-size: var(--text-lg); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-5); }
.hero-note { color: var(--ink-soft); font-size: var(--text-sm); }
.hero-media, .about-media { margin: 0; }
figcaption { margin-top: var(--space-2); color: var(--ink-soft); font-size: var(--text-sm); }

.trust { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); margin: var(--space-4) 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: var(--text-sm); }
.trust li { display: inline-flex; align-items: center; gap: var(--space-3); }
.trust li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.trust a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.trust a:hover { color: var(--ink); text-decoration-color: currentColor; }

.hero-photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
/* Vertical phone video: capped by height so it never fills the whole screen */
.hero-media--video { display: grid; justify-items: center; text-align: center; }
/* contain, not cover: full screen stretches the box to the screen, and cover would crop the tall video to a thin band */
.hero-video { display: block; height: min(70vh, 620px); height: min(calc(100svh - 200px), 620px); min-height: 360px; width: auto; max-width: 100%; aspect-ratio: 320 / 568; object-fit: contain; border-radius: var(--radius); background: var(--ink); }
.hero-video:fullscreen { object-fit: contain; border-radius: 0; background: #000; }
.hero-video:-webkit-full-screen { object-fit: contain; border-radius: 0; background: #000; }

@media (max-width: 599px) {
  .hero-actions .btn { width: 100%; }
  .trust { flex-direction: column; gap: var(--space-1); }
  .trust li + li::before { display: none; }
}
@media (min-width: 960px) {
  .hero { padding: var(--space-8) 0; }
  /* photo column capped near 500px so the 1024px phone photo stays sharp on retina screens */
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--space-7); align-items: center; }
}

/* ---------- Sections ---------- */

.section { padding: var(--space-7) 0; }
.section-alt { background: var(--paper); }
.section-head { margin-bottom: var(--space-5); }
.section-head p { margin-top: var(--space-2); color: var(--ink-soft); font-size: var(--text-lg); }
.section-head-split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3) var(--space-5); }
@media (min-width: 960px) {
  .section { padding: var(--space-8) 0; }
  .section-head { margin-bottom: var(--space-6); }
}

/* ---------- Packages ---------- */

.plan {
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.plan:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.plan-price { margin-top: var(--space-2); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: var(--text-h2); line-height: 1; letter-spacing: -0.02em; }
.plan-desc { margin-top: var(--space-2); color: var(--ink-soft); }

.checklist { display: grid; gap: var(--space-2); margin: var(--space-4) 0 var(--space-5); padding: var(--space-4) 0 0; border-top: 1px solid var(--line); list-style: none; }
.checklist li { display: flex; gap: var(--space-2); }
.checklist .icon { margin-top: 2px; color: var(--ink); }
.plan > .btn { width: 100%; margin-top: auto; }

.badge { display: inline-flex; align-items: center; margin-bottom: var(--space-3); padding: var(--space-1) var(--space-2); border-radius: var(--radius-pill); background: var(--accent); color: var(--white); font-size: var(--text-sm); font-weight: 600; line-height: 1.2; }

.plan-featured { display: grid; background: var(--ink); border-color: var(--ink); color: var(--white); }
.plan-featured:hover { border-color: var(--ink); }
.plan-featured h3, .plan-featured .plan-price { color: var(--white); }
.plan-featured .plan-desc { color: var(--on-ink-soft); }
.plan-featured .checklist { margin-bottom: var(--space-5); border-top-color: var(--on-ink-line); }
.plan-featured .checklist li { color: rgba(255, 255, 255, 0.9); }
.plan-featured .checklist .icon { color: var(--white); }
.plan-featured .plan-cta .btn { width: 100%; }
.plan-featured :focus-visible { outline-color: var(--white); }
.plan-main { display: flex; flex-direction: column; align-items: flex-start; }

.plan-grid { display: grid; gap: var(--space-3); margin-top: var(--space-3); }

/* Three detail levels side by side, with the middle one (Full detail) in dark */
.tier-grid { display: grid; gap: var(--space-3); }
.tier-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-2); }
.tier-head .badge { margin: 0; }
.tier-level { color: var(--ink-soft); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.plan-vary { margin-top: var(--space-1); color: var(--ink-soft); font-size: var(--text-sm); }
.plan-group-title { margin: var(--space-6) 0 0; }
.plan-dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.plan-dark:hover { border-color: var(--ink); }
.plan-dark h3, .plan-dark .plan-price { color: var(--white); }
.plan-dark .plan-desc, .plan-dark .plan-vary, .plan-dark .tier-level { color: var(--on-ink-soft); }
.plan-dark .checklist { border-top-color: var(--on-ink-line); }
.plan-dark .checklist li { color: rgba(255, 255, 255, 0.9); }
.plan-dark .checklist .icon { color: var(--white); }
.plan-dark .btn:not(.btn-secondary) { background: var(--white); border-color: var(--white); color: var(--ink); }
.plan-dark .btn:not(.btn-secondary):hover { background: var(--paper); border-color: var(--paper); }
.plan-dark :focus-visible { outline-color: var(--white); }

@media (min-width: 960px) {
  .plan { padding: var(--space-5); }
  .plan-featured {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "main list" "cta list";
    column-gap: var(--space-6);
    padding: var(--space-6);
  }
  .plan-main { grid-area: main; }
  .plan-cta { grid-area: cta; align-self: end; padding-top: var(--space-5); }
  .plan-featured .plan-cta .btn { width: auto; }
  .plan-featured .checklist { grid-area: list; align-self: center; margin: 0; padding: 0 0 0 var(--space-6); border-top: 0; border-left: 1px solid var(--on-ink-line); }
  .checklist-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-5); }
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-4); }
  .tier-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
}

.addons { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--radius); background: var(--paper); }
.addons-title { font-weight: 600; }
.addon-list { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: 0; padding: 0; list-style: none; color: var(--ink-soft); }
.addon-list span { margin-left: var(--space-1); color: var(--ink); font-weight: 600; }
.addons-note { flex-basis: 100%; max-width: none; color: var(--ink-soft); font-size: var(--text-sm); }

/* ---------- Everything we do ---------- */

.services-grid { display: grid; gap: var(--space-5); }
.services-grid .section-head { margin-bottom: 0; }
.services-grid .inline-link { color: var(--ink); }
.service-groups { display: grid; gap: var(--space-5); }
.service-groups h3 { margin: 0 0 var(--space-2); color: var(--ink-soft); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4); margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.service-list li { padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) {
  .services-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--space-7); align-items: start; }
  .service-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
  .service-list { grid-template-columns: 1fr; }
}

/* ---------- How it works ---------- */

.steps { display: grid; gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.steps li { padding-top: var(--space-4); border-top: 2px solid var(--ink); }
.step-num { display: block; margin-bottom: var(--space-3); color: var(--ink-soft); font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.08em; }
.steps h3 { margin-bottom: var(--space-2); }
.steps p { color: var(--ink-soft); }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); } }

/* Where we go: service-area map + town list */
.area { display: grid; gap: var(--space-5); margin-top: var(--space-7); padding-top: var(--space-7); border-top: 1px solid var(--line); }
.area-map { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.map-land { fill: var(--paper); }
.map-ocean { fill: rgba(20, 33, 61, 0.07); }
.map-coast { fill: none; stroke: rgba(20, 33, 61, 0.3); stroke-width: 1.5; }
.map-road { fill: none; stroke: rgba(20, 33, 61, 0.16); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.map-radius { fill: rgba(20, 33, 61, 0.04); stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 6; }
.map-town { fill: var(--ink); }
.map-home { fill: var(--accent); stroke: var(--white); stroke-width: 3; }
.map-label { fill: var(--ink); font-family: var(--font-body); font-size: 15px; font-weight: 600; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.map-label-sea { stroke: none; }
.map-label-home { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.map-note { fill: var(--ink-soft); font-family: var(--font-body); font-size: 14px; font-weight: 600; }
.map-ocean-label { font-style: italic; font-weight: 400; letter-spacing: 0.08em; }
.area-copy h3 { margin-bottom: var(--space-2); }
.area-copy > p { color: var(--ink-soft); }
.town-list { columns: 2; column-gap: var(--space-4); margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.town-list li { padding: var(--space-1) 0; break-inside: avoid; }
.nowrap { white-space: nowrap; }
.area-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin: var(--space-4) 0 0; padding: var(--space-4) 0 0; border-top: 1px solid var(--line); }
.area-facts dt { color: var(--ink-soft); font-size: var(--text-sm); font-weight: 600; }
.area-facts dd { margin: var(--space-1) 0 0; font-weight: 600; }
.area-note { margin-top: var(--space-4); color: var(--ink-soft); }
.area-note .inline-link { color: var(--ink); }
@media (min-width: 960px) {
  .area { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); align-items: center; }
}

/* ---------- Before/after sliders ----------
   Not on the page right now. Ready to reuse once there are real before/after photo pairs. */

.gallery { display: grid; gap: var(--space-4); }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.ba { margin: 0; }
.ba-frame {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.ba-frame:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba-frame .ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); pointer-events: none; }
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: var(--control); height: var(--control);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5'/%3E%3Cpath d='m15 7 5 5-5 5'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: var(--shadow);
}
.ba-tag { position: absolute; top: var(--space-3); z-index: 2; padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); background: rgba(20, 33, 61, 0.8); color: var(--white); font-size: var(--text-sm); font-weight: 600; line-height: 1.4; pointer-events: none; }
.ba-tag-before { left: var(--space-3); }
.ba-tag-after { right: var(--space-3); }
.ba-range { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; }

/* ---------- Reviews (hidden until real ones are added) ---------- */

.review-grid { display: grid; gap: var(--space-4); }
@media (min-width: 960px) { .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review { margin: 0; padding: var(--space-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.review blockquote { margin: 0 0 var(--space-3); font-size: var(--text-lg); }
.review figcaption { color: var(--ink-soft); font-size: var(--text-sm); }

/* ---------- About ---------- */

.about-grid { display: grid; gap: var(--space-5); align-items: center; }
.about-photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.about-copy h2 { margin-bottom: var(--space-4); }
.about-copy p { color: var(--ink-soft); font-size: var(--text-lg); }
.about-copy .inline-link { color: var(--ink); }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-5); }

.press-card { display: grid; gap: var(--space-1); max-width: 32rem; margin-top: var(--space-5); padding: var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.press-card:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.press-kicker { color: var(--ink-soft); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.press-title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.press-meta { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-1); color: var(--ink-soft); font-size: var(--text-sm); }
.press-meta .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.press-card:hover .press-meta .icon { transform: translateX(4px); }
@media (min-width: 960px) { .about-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--space-7); } }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; gap: var(--space-5); }
.faq-intro p { margin-top: var(--space-3); color: var(--ink-soft); }
.faq-intro .inline-link { color: var(--ink); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) 0; font-size: var(--text-lg); font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--ink-soft); transition: transform 0.25s var(--ease); }
.faq-item summary:hover .icon { color: var(--ink); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { padding-bottom: var(--space-4); color: var(--ink-soft); }
/* smooth open/close where supported (newer Chrome); elsewhere it simply opens */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size 0.3s var(--ease), content-visibility 0.3s allow-discrete; }
  .faq-item[open]::details-content { block-size: auto; }
}
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-7); align-items: start; } }

/* ---------- Closing call to action ---------- */

.cta { padding: var(--space-7) 0; background: var(--ink); color: var(--white); }
.cta h2 { color: var(--white); }
.cta p { margin-top: var(--space-2); color: var(--on-ink-soft); font-size: var(--text-lg); }
.cta-inner { display: grid; gap: var(--space-5); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cta .btn-secondary, .site-footer .btn-secondary { border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.cta .btn-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--white); }
.cta :focus-visible { outline-color: var(--white); }
@media (max-width: 599px) { .cta-actions { display: grid; } }
@media (min-width: 960px) {
  .cta { padding: var(--space-8) 0; }
  .cta-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-6); }
}

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

.site-footer { padding: var(--space-7) 0 calc(var(--space-5) + var(--bar-h) + env(safe-area-inset-bottom)); background: var(--ink); border-top: 1px solid var(--on-ink-line); color: var(--on-ink-soft); font-size: var(--text-base); }
.footer-grid { display: grid; gap: var(--space-5); }
.site-footer .logo-slo, .site-footer .logo-power { color: var(--white); }
.site-footer .logo-badge img { height: 56px; }
.social-note { margin-top: var(--space-2); font-size: var(--text-sm); }
.footer-brand p { margin-top: var(--space-3); }
.site-footer h3 { margin-bottom: var(--space-3); color: var(--white); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-list { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.footer-list a { display: inline-flex; align-items: center; gap: var(--space-2); overflow-wrap: anywhere; }
.footer-list .icon { width: 16px; height: 16px; color: var(--on-ink-soft); }
.social { display: flex; gap: var(--space-4); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer :focus-visible { outline-color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--on-ink-line); font-size: var(--text-sm); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1.35fr 0.9fr 1.35fr; gap: var(--space-6); } }
@media (min-width: 960px) { .site-footer { padding-bottom: var(--space-5); } }

/* ---------- Sticky bar (phones) ---------- */

.action-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; display: flex; gap: var(--space-2); padding: var(--space-2) var(--gutter) calc(var(--space-2) + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }
.action-btn { flex: none; display: grid; place-items: center; align-content: center; gap: var(--space-1); width: 56px; min-height: 56px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink); font-size: var(--text-sm); font-weight: 600; line-height: 1; text-decoration: none; }
.action-book { flex: 1; min-height: 56px; }
@media (min-width: 960px) { .action-bar { display: none; } }

/* ---------- Motion: a gentle fade-up, once ---------- */

.reveal-pending { opacity: 0; }
.reveal-in { animation: fade-up 0.6s var(--ease) backwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-pending { opacity: 1; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Simple pages: review, privacy ---------- */

.plain { min-height: 100vh; min-height: 100dvh; padding: var(--space-6) 0 var(--space-7); background: var(--paper); }
.plain-inner { max-width: 40rem; }
.plain h1 { margin-top: var(--space-6); }
.plain-lead { margin-top: var(--space-3); color: var(--ink-soft); font-size: var(--text-lg); }
.plain-form { margin-top: var(--space-5); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.plain-form > .btn { width: 100%; }
.review-done { display: grid; justify-items: start; gap: var(--space-4); margin-top: var(--space-6); }
.review-done h1 { margin-top: 0; }
.review-done .done-icon { margin-bottom: 0; background: var(--white); }
.review-done h1:focus { outline: none; }
.review-done .plain-lead { margin-top: 0; }
.prose h2 { margin-top: var(--space-5); font-size: var(--text-h3); }
.prose p { margin-top: var(--space-2); color: var(--ink-soft); }
.prose .inline-link { color: var(--ink); }
.prose-date { margin-top: var(--space-5) !important; font-size: var(--text-sm); }
.prose .text-link { margin-top: var(--space-4); }
@media (min-width: 700px) { .plain-form { padding: var(--space-5); } }

/* ---------- 404 page ---------- */

.not-found { display: grid; align-items: center; min-height: 100vh; min-height: 100dvh; padding: var(--space-7) 0; background: var(--paper); }
.not-found h1 { margin-top: var(--space-6); }
.not-found p { margin-top: var(--space-3); color: var(--ink-soft); font-size: var(--text-lg); }

/* ---------- Booking form ---------- */

/* Full screen on phones, a centered panel on bigger screens */
.booking { width: 100%; max-width: 100%; height: 100%; height: 100dvh; max-height: 100%; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: var(--white); color: var(--ink); }
.booking[open] { display: flex; flex-direction: column; }
.booking::backdrop { background: rgba(20, 33, 61, 0.6); }
@media (min-width: 700px) {
  .booking { width: min(640px, calc(100% - 2 * var(--space-6))); height: auto; max-height: min(880px, calc(100dvh - 2 * var(--space-6))); margin: auto; border-radius: var(--radius); box-shadow: 0 24px 64px rgba(20, 33, 61, 0.3); }
}
.booking-form { display: flex; flex: 1; flex-direction: column; min-height: 0; }

.bk-head { padding: calc(var(--space-2) + env(safe-area-inset-top)) var(--gutter) 0; border-bottom: 1px solid var(--line); }
.bk-head-row { display: flex; align-items: center; justify-content: space-between; }
.bk-stepcount { color: var(--ink-soft); font-size: var(--text-sm); font-weight: 600; }
.bk-close { display: grid; place-items: center; width: var(--control); height: var(--control); margin-right: calc(-1 * var(--space-2)); padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-soft); cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.bk-close:hover { background: var(--paper); color: var(--ink); }
.bk-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.bk-title { margin: 0 0 var(--space-3); font-size: var(--text-h3); }
.bk-title:focus { outline: none; }
.bk-stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin: 0 0 -1px; padding: 0; list-style: none; }
.bk-stepper li { padding-bottom: var(--space-2); border-bottom: 2px solid var(--line); color: var(--ink-soft); font-size: var(--text-sm); font-weight: 600; transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.bk-stepper li.is-active, .bk-stepper li.is-done { border-bottom-color: var(--ink); color: var(--ink); }
.bk-progress { display: none; }

.bk-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-4) var(--gutter) var(--space-5); }

.bk-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); padding: var(--space-2) var(--gutter) calc(var(--space-2) + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }
.bk-total { display: grid; min-width: 0; line-height: 1.2; }
.bk-total-label { color: var(--ink-soft); font-size: var(--text-sm); }
.bk-total-price { font-family: var(--font-display); font-size: var(--text-h3); font-weight: 700; }
.bk-total-detail { max-width: 12rem; overflow: hidden; color: var(--ink-soft); font-size: var(--text-sm); white-space: nowrap; text-overflow: ellipsis; }
.bk-buttons { display: flex; gap: var(--space-2); margin-left: auto; }
.bk-buttons .btn { padding: 0 var(--space-3); }
.bk-hint { color: var(--ink-soft); font-size: var(--text-sm); }
.bk-privacy { margin: calc(-1 * var(--space-2)) 0 var(--space-4); color: var(--ink-soft); font-size: var(--text-sm); }
@media (max-width: 419px) { .bk-total-detail { max-width: 8rem; } }
@media (min-width: 700px) {
  .bk-head { padding: var(--space-4) var(--space-5) 0; }
  .bk-body { padding: var(--space-5); }
  .bk-foot { padding: var(--space-3) var(--space-5); }
  .bk-total-detail { max-width: 18rem; }
  .bk-buttons .btn { padding: 0 var(--space-4); }
}

/* fields */
.field { min-width: 0; margin: 0 0 var(--space-4); padding: 0; border: 0; }
.field-tight { margin-top: calc(-1 * var(--space-3)); }
.field-label { display: block; margin: 0 0 var(--space-2); padding: 0; color: var(--ink); font-weight: 600; }
.optional { margin-left: var(--space-1); color: var(--ink-soft); font-size: var(--text-sm); font-weight: 400; }
.input { width: 100%; min-height: var(--control); padding: var(--space-2) var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: inherit; font-size: 1.0625rem; /* 17px keeps iPhones from zooming in */ transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
textarea.input { min-height: 96px; resize: vertical; }
.input::placeholder { color: #6b7389; }
.input:hover { border-color: var(--ink); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 33, 61, 0.16); }
.input[aria-invalid="true"] { border-color: var(--accent-hover); box-shadow: 0 0 0 3px rgba(180, 35, 42, 0.14); }
.field-hint { margin-top: var(--space-1); color: var(--ink-soft); font-size: var(--text-sm); }
.field-error { margin-top: var(--space-2); color: var(--accent-hover); font-size: var(--text-sm); font-weight: 600; }

/* option cards (radios and checkboxes) */
.opt-list { display: grid; gap: var(--space-2); }
.opt { position: relative; display: block; cursor: pointer; }
.opt input, .chip input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.opt-box { display: block; padding: var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.opt:hover .opt-box { border-color: var(--ink); }
.opt input:checked + .opt-box { border-color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.opt input:focus-visible + .opt-box { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt:has(input:disabled) { cursor: not-allowed; }
.opt input:disabled + .opt-box { opacity: 0.45; border-color: var(--line-strong); }
.opt-line { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.opt-main { display: flex; align-items: center; gap: var(--space-3); }
.opt-name { font-weight: 600; }
.opt-price { font-weight: 600; white-space: nowrap; }
.opt-desc { display: block; margin-top: var(--space-1); padding-left: calc(20px + var(--space-3)); color: var(--ink-soft); font-size: var(--text-sm); }
.dot, .tick { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border: 2px solid var(--line-strong); background: var(--white); }
.dot { border-radius: 50%; }
.tick { border-radius: 4px; }
.dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--white); opacity: 0; }
.tick::after { content: ""; width: 10px; height: 6px; border-bottom: 2px solid var(--white); border-left: 2px solid var(--white); transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.opt input:checked + .opt-box .dot, .opt input:checked + .opt-box .tick { border-color: var(--ink); background: var(--ink); }
.opt input:checked + .opt-box .dot::after, .opt input:checked + .opt-box .tick::after { opacity: 1; }

.vehicle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
@media (min-width: 520px) { .vehicle-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.opt-vehicle .opt-box { padding: var(--space-3) var(--space-2); text-align: center; }
.opt-vehicle svg { width: 64px; height: 32px; margin: 0 auto var(--space-2); fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.opt-vehicle .opt-name { display: block; }
.opt-vehicle .opt-desc { padding-left: 0; }

/* day and time chips */
.chip-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { position: relative; }
.chip span { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--control); padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--white); color: var(--ink); white-space: nowrap; cursor: pointer; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease); }
.chip span:hover { border-color: var(--ink); }
.chip b { font-weight: 600; }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip input[aria-invalid="true"] + span { border-color: var(--accent-hover); }

.link-button { min-height: var(--control); padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; text-align: left; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.custom-time { margin-top: var(--space-2); }

.check { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-sm); background: var(--paper); font-weight: 600; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.check input[aria-invalid="true"] { outline: 2px solid var(--accent-hover); outline-offset: 2px; }
.check-sub { display: block; color: var(--ink-soft); font-size: var(--text-sm); font-weight: 400; }

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

.photo-tip { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-sm); background: var(--paper); }
.photo-tip-stack { flex-direction: column; }

.send-error { margin-top: var(--space-2); padding: var(--space-3); border: 1px solid var(--accent-hover); border-radius: var(--radius-sm); }
.send-error p { margin-bottom: var(--space-3); }
/* same panel, but as a normal "send it over" prompt rather than an error */
.send-error.is-prompt { border-color: var(--line-strong); background: var(--paper); }
.send-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.send-actions .btn { flex: 1 1 12rem; }

/* confirmation */
.done-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--space-4); border-radius: 50%; background: var(--paper); color: var(--ink); }
.done-icon .icon { width: 32px; height: 32px; }
.done-lead { margin-bottom: var(--space-2); font-family: var(--font-display); font-size: var(--text-h3); font-weight: 700; }
.done-text { color: var(--ink-soft); }
.summary { margin: var(--space-4) 0; padding: 0 var(--space-3); border-radius: var(--radius-sm); background: var(--paper); }
.summary div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.summary div:last-child { border-bottom: 0; }
.summary dt { color: var(--ink-soft); font-weight: 600; }
.summary dd { margin: 0; overflow-wrap: anywhere; }
.done-follow { margin: var(--space-4) 0; }
