/* ==========================================================================
   Mend&Move - shared styles
   Mobile-first. Design tokens first, then base, layout, components.
   Shape rule: interactive elements (buttons, inputs) 12px radius,
   containers (panels, images) 20px radius. Used everywhere.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../assets/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../assets/fonts/atkinson-hyperlegible-next-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../assets/fonts/atkinson-hyperlegible-next-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../assets/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  color-scheme: light;

  /* Colour: one accent (sea-teal) on mist neutrals */
  --c-bg: #f5f8f7;
  --c-surface: #ffffff;
  --c-tint: #e4eeec;          /* tinted section band */
  --c-ink: #14262a;           /* body and headings */
  --c-ink-muted: #435659;     /* secondary text, 7:1+ on bg */
  --c-line: #c9d8d5;
  --c-field: #5a6e71;         /* form control borders, 3:1+ against surfaces */
  --c-accent: #0e5e5b;        /* buttons, links, focus */
  --c-accent-hover: #0a4845;
  --c-accent-active: #073836;
  --c-on-accent: #ffffff;
  --c-focus: #0e5e5b;
  --c-error: #a3262a;
  --c-placeholder-bg: #d8e6e3;
  --c-placeholder-ink: #243b3f;
  --c-ph-bg: #fff3c4;
  --c-ph-ink: #4a3b00;

  /* Type */
  --font-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Outfit", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --fs-body: 1.0625rem;       /* 17px */
  --fs-small: 0.9375rem;      /* 15px, used only for secondary notes */
  --fs-h1: clamp(2.25rem, 7vw + 0.5rem, 3.75rem);
  --fs-h2: clamp(1.75rem, 3.5vw + 0.75rem, 2.5rem);
  --fs-h3: 1.25rem;
  --lh-body: 1.6;
  --lh-head: 1.15;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 6rem;
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --gutter: 1.25rem;
  --max: 72rem;
  --measure: 62ch;

  /* Shape */
  --r-ui: 12px;
  --r-box: 20px;

  /* Elevation (tinted, never pure black) */
  --shadow-sm: 0 1px 2px rgb(20 38 42 / 0.08);
  --shadow-md: 0 6px 20px rgb(20 38 42 / 0.1);

  /* Motion */
  --t-fast: 150ms ease;

  /* Layers */
  --z-header: 100;
  --z-sticky-cta: 90;
  --z-skip: 200;

  --header-h: 4.25rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg: #0e1a1c;
    --c-surface: #152427;
    --c-tint: #12292b;
    --c-ink: #e7f0ee;
    --c-ink-muted: #a9bfbc;
    --c-line: #2b4144;
    --c-field: #8ea6a3;
    --c-accent: #7fd1ca;
    --c-accent-hover: #9adcd6;
    --c-accent-active: #b4e6e1;
    --c-on-accent: #08201f;
    --c-focus: #9adcd6;
    --c-error: #ff9d9f;
    --c-placeholder-bg: #1b3336;
    --c-placeholder-ink: #cfe3e0;
    --c-ph-bg: #4a3d0a;
    --c-ph-ink: #ffeaa0;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 6px 20px rgb(0 0 0 / 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --c-bg: #0e1a1c;
    --c-surface: #152427;
    --c-tint: #12292b;
    --c-ink: #e7f0ee;
    --c-ink-muted: #a9bfbc;
    --c-line: #2b4144;
    --c-field: #8ea6a3;
    --c-accent: #7fd1ca;
    --c-accent-hover: #9adcd6;
    --c-accent-active: #b4e6e1;
    --c-on-accent: #08201f;
    --c-focus: #9adcd6;
    --c-error: #ff9d9f;
    --c-placeholder-bg: #1b3336;
    --c-placeholder-ink: #cfe3e0;
    --c-ph-bg: #4a3d0a;
    --c-ph-ink: #ffeaa0;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 6px 20px rgb(0 0 0 / 0.45);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  min-width: 320px;
  /* room for the sticky mobile CTA */
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: var(--lh-head);
  margin: 0 0 var(--s-4);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: 0; }

p { margin: 0 0 var(--s-4); max-width: var(--measure); text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

a {
  color: var(--c-accent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color var(--t-fast);
}
a:hover { color: var(--c-accent-hover); text-decoration-thickness: 2px; }
a:active { color: var(--c-accent-active); }

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

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -4rem;
  z-index: var(--z-skip);
  background: var(--c-accent);
  color: var(--c-on-accent);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-ui);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:hover, .skip-link:active { color: var(--c-on-accent); }
.skip-link:focus { top: var(--s-3); }

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

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tint { background: var(--c-tint); }

/* ---------- Placeholder marker: remove .ph styling before launch ---------- */
.ph {
  background: var(--c-ph-bg);
  color: var(--c-ph-ink);
  padding: 0.05em 0.35em;
  border-radius: 4px;
  font-weight: 600;
  white-space: normal;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--r-ui);
  font: 600 1.0625rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), transform var(--t-fast);
}
.btn--primary {
  background: var(--c-accent);
  color: var(--c-on-accent);
}
.btn--primary:hover { background: var(--c-accent-hover); color: var(--c-on-accent); }
.btn--primary:active { background: var(--c-accent-active); transform: translateY(1px); }

.btn--secondary {
  background: transparent;
  color: var(--c-accent);
  border-color: var(--c-accent);
}
.btn--secondary:hover { background: var(--c-tint); color: var(--c-accent-hover); }
.btn--secondary:active { transform: translateY(1px); }

.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--c-line);
  color: var(--c-ink-muted);
  border-color: transparent;
  cursor: not-allowed;
  transform: none;
}

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 1px;
}
.link-arrow:hover { border-bottom-width: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: var(--z-header);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}
/* Toolbar: the five page links stay visible on every page and every screen size.
   Phones: logo and phone number on the first row, links on the second row.
   Wide screens: everything on one row. */
:root { --header-h: 5.85rem; }
@media (min-width: 62rem) { :root { --header-h: 4.25rem; } }

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: var(--s-4);
  row-gap: 0;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--c-ink); }
.wordmark span { color: var(--c-accent); }

.site-header__phone {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  font-weight: 600;
  color: var(--c-ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-header__phone:hover { color: var(--c-accent); }
.site-header__cta { display: none; }

.site-nav {
  order: 3;
  flex: 0 0 100%;
  border-top: 1px solid var(--c-line);
}
.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  overflow-x: auto;
  padding-block: 2px;
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  color: var(--c-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 -3px 0 transparent;
  transition: color var(--t-fast), box-shadow var(--t-fast);
}
.site-nav a:hover { color: var(--c-accent); }
.site-nav a:focus-visible { outline-offset: -3px; }
.site-nav a[aria-current="page"] { color: var(--c-accent); box-shadow: inset 0 -3px 0 var(--c-accent); }

@media (min-width: 62rem) {
  .site-header__bar { flex-wrap: nowrap; height: var(--header-h); column-gap: var(--s-5); }
  .site-nav { order: 0; flex: none; border-top: 0; }
  .site-nav ul { gap: var(--s-5); overflow: visible; padding-block: 0; }
  .site-nav a { font-size: 1rem; min-height: 2.75rem; padding: 0.4rem 0; }
  .site-header__phone { display: none; }
  .site-header__cta { display: inline-flex; min-height: 2.75rem; padding-block: 0.5rem; }
}
/* The phone number returns to the single-row header once there is room for it */
@media (min-width: 75rem) {
  .site-header__phone { display: inline-flex; }
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky-cta);
  display: flex;
  gap: var(--s-3);
  padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  box-shadow: 0 -4px 16px rgb(20 38 42 / 0.08);
}
.sticky-cta .btn--primary { flex: 1; }
@media (min-width: 48rem) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Photo slots (replace with real <img> once supplied) ---------- */
.photo-slot {
  position: relative;
  display: grid;
  place-content: center;
  gap: var(--s-2);
  padding: var(--s-5);
  text-align: center;
  background: var(--c-placeholder-bg);
  color: var(--c-placeholder-ink);
  border: 2px dashed var(--c-accent);
  border-radius: var(--r-box);
  width: 100%;
  overflow: hidden;
}
.photo-slot p { margin: 0 auto; max-width: 34ch; font-size: var(--fs-small); }
.photo-slot strong { font-family: var(--font-head); font-size: 1.125rem; }
.photo-slot--portrait { aspect-ratio: 4 / 5; }
.photo-slot--wide { aspect-ratio: 16 / 9; }
.photo-slot--banner { aspect-ratio: 4 / 3; }
@media (min-width: 48rem) {
  .photo-slot--banner { aspect-ratio: 21 / 8; }
}

/* ---------- Photos (real images in fixed-ratio frames) ---------- */
.photo {
  margin: 0;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-box);
  background: var(--c-placeholder-bg);
}
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo--hero { aspect-ratio: 4 / 3; }
.photo--hero img { object-position: 50% 35%; }
.photo--banner { aspect-ratio: 4 / 3; }
.photo--banner img { object-position: 50% 22%; }
@media (min-width: 48rem) {
  .photo--banner { aspect-ratio: 21 / 9; }
}
@media (min-width: 62rem) {
  .photo--hero { aspect-ratio: 4 / 5; max-height: 34rem; }
  .photo--hero img { object-position: 50% 50%; }
}

/* ---------- Hero ---------- */
.hero { padding-block: var(--s-6) var(--section-y); }
.hero__grid { display: grid; gap: var(--s-6); align-items: center; }
.hero__eyebrow {
  margin: 0 0 var(--s-3);
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.02em;
}
.hero__lead { font-size: 1.1875rem; color: var(--c-ink-muted); max-width: 40ch; margin-bottom: var(--s-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4); align-items: center; }
.hero .photo-slot--portrait { aspect-ratio: 4 / 3; }
/* The sticky mobile bar already carries the Call button */
@media (max-width: 47.99rem) {
  .hero__actions .btn--secondary { display: none; }
}

@media (min-width: 62rem) {
  .hero { padding-block: var(--s-7) var(--section-y); }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-8); }
  .hero .photo-slot--portrait { aspect-ratio: 4 / 5; max-height: 34rem; }
}

/* ---------- How it works: heading column + numbered list ---------- */
.steps-layout { display: grid; gap: var(--s-6); }
.steps { list-style: none; counter-reset: step; display: grid; gap: var(--s-5); }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--c-line);
}
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-content: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-on-accent);
  font: 700 1.25rem/1 var(--font-head);
}
.steps h3 { margin-bottom: var(--s-2); }
.steps p { margin: 0; color: var(--c-ink-muted); }
@media (min-width: 62rem) {
  .steps-layout { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-8); align-items: start; }
  .steps-layout__intro { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
}

/* ---------- Services: typographic panel, two columns, no cards ---------- */
.services-panel {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-box);
  padding: var(--s-5);
}
.service-list { list-style: none; display: grid; gap: 0; }
.service-list li { padding-block: var(--s-4); border-top: 1px solid var(--c-line); }
.service-list li:first-child { border-top: 0; }
.service-list h3 { margin-bottom: var(--s-1); }
.service-list p { margin: 0; color: var(--c-ink-muted); }
.services-more { margin: var(--s-5) 0 0; }
@media (min-width: 48rem) {
  .services-panel { padding: var(--s-7); }
  .service-list { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); }
  .service-list li:nth-child(2) { border-top: 0; }
}

/* ---------- Why home: wide image band, then reasons in a 2x2 text grid ---------- */
.why-intro { margin-bottom: var(--s-6); }
.why-grid { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
.why-grid h3 { margin-bottom: var(--s-2); }
.why-grid p { margin: 0; color: var(--c-ink-muted); }
@media (min-width: 48rem) {
  .why-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-7); }
}

/* ---------- Trust ---------- */
.trust-list { list-style: none; display: grid; gap: var(--s-4); margin: var(--s-5) 0 var(--s-7); }
.trust-list li { border-top: 3px solid var(--c-accent); padding-top: var(--s-3); }
.trust-list strong { display: block; font-family: var(--font-head); font-size: 1.125rem; margin-bottom: var(--s-1); }
.trust-list span { color: var(--c-ink-muted); }
@media (min-width: 48rem) {
  .trust-list { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
}
.reviews-empty {
  background: var(--c-surface);
  border: 2px dashed var(--c-line);
  border-radius: var(--r-box);
  padding: var(--s-5);
}
.reviews-empty h3 { margin-bottom: var(--s-2); }
.reviews-empty p { margin: 0; color: var(--c-ink-muted); }

/* ---------- FAQ accordion (native details) ---------- */
.faq { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq details:first-of-type { border-top: 1px solid var(--c-line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  min-height: 3.5rem;
  padding: var(--s-4) 0;
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 600;
  transition: color var(--t-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.6rem; height: 0.6rem;
  border-right: 3px solid var(--c-accent);
  border-bottom: 3px solid var(--c-accent);
  transform: rotate(45deg);
  transition: transform var(--t-fast);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--c-accent); }
.faq summary:active { color: var(--c-accent-active); }
.faq .faq__answer { padding: 0 0 var(--s-5); }
.faq .faq__answer p:last-child { margin-bottom: 0; }

/* ---------- Final CTA band ---------- */
.cta-band {
  background: var(--c-accent);
  color: var(--c-on-accent);
}
.cta-band .wrap { display: grid; gap: var(--s-5); justify-items: start; }
.cta-band h2 { margin-bottom: 0; }
.cta-band p { margin: 0; max-width: 46ch; }
.cta-band a:not(.btn) { color: inherit; }
.cta-band .btn--primary { background: var(--c-on-accent); color: var(--c-accent); }
.cta-band .btn--primary:hover { background: var(--c-tint); color: var(--c-accent-hover); }
.cta-band .btn--primary:active { background: var(--c-line); }
.cta-band .ph { background: var(--c-ph-bg); color: var(--c-ph-ink); }
@media (min-width: 62rem) {
  .cta-band .wrap { grid-template-columns: 1.3fr auto; align-items: center; justify-items: start; gap: var(--s-8); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  padding-block: var(--s-7) var(--s-6);
  font-size: var(--fs-small);
}
.site-footer__grid { display: grid; gap: var(--s-6); }
.site-footer h2 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: var(--s-3);
}
.site-footer ul { list-style: none; display: grid; gap: var(--s-1); }
.site-footer li a { display: inline-block; padding: 0.3rem 0; }
.site-footer p { margin-bottom: var(--s-3); color: var(--c-ink-muted); }
.site-footer__legal {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-line);
}
.site-footer__legal p { max-width: none; margin-bottom: var(--s-2); }
@media (min-width: 48rem) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-6); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .btn:active, .nav-toggle:active { transform: none; }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* ---------- Page header + breadcrumb ---------- */
.page-head {
  padding-block: var(--s-6) var(--s-7);
  background: var(--c-tint);
  border-bottom: 1px solid var(--c-line);
}
.page-head h1 { font-size: clamp(2rem, 5vw + 0.5rem, 3.25rem); margin-bottom: var(--s-3); }
.page-head p { font-size: 1.1875rem; color: var(--c-ink-muted); margin: 0; max-width: 52ch; }
.breadcrumb { font-size: var(--fs-small); margin-bottom: var(--s-4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); color: var(--c-ink-muted); }

.prose p, .prose ul, .prose ol { max-width: var(--measure); }
.prose ul { padding-left: 1.25rem; display: grid; gap: 0.4rem; margin: 0 0 var(--s-4); }
.prose h2 { font-size: 1.5rem; margin: var(--s-6) 0 var(--s-3); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-5); }

.panel {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-box);
  padding: var(--s-5);
}
.panel h2, .panel h3 { font-size: 1.25rem; margin-bottom: var(--s-3); }
.panel p:last-child { margin-bottom: 0; }

/* ---------- Jump chips ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-5) 0 0; }
.chips a {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  background: var(--c-surface);
  color: var(--c-ink);
  border: 2px solid var(--c-line);
  border-radius: var(--r-ui);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.chips a:hover { border-color: var(--c-accent); background: var(--c-tint); color: var(--c-ink); }
.chips a:active { transform: translateY(1px); }

/* ---------- Services page ---------- */
.svc { display: grid; gap: var(--s-5); padding-block: var(--s-7); border-top: 1px solid var(--c-line); }
.svc:first-of-type { border-top: 0; padding-top: var(--s-4); }
.svc__intro h2 { margin-bottom: var(--s-3); }
.svc__intro p { margin: 0; color: var(--c-ink-muted); }
.svc__cols { display: grid; gap: var(--s-5); }
.svc__cols h3 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; margin-bottom: var(--s-2); letter-spacing: 0; }
.svc__cols p { margin: 0; }
@media (min-width: 62rem) {
  .svc { grid-template-columns: 0.85fr 1.15fr; gap: var(--s-8); }
  .svc__cols { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}

/* ---------- Timeline (how it works) ---------- */
.timeline { list-style: none; counter-reset: t; max-width: 44rem; }
.timeline li { counter-increment: t; position: relative; padding: 0 0 var(--s-6) 4.25rem; }
.timeline li::before {
  content: counter(t);
  position: absolute; left: 0; top: 0;
  display: grid; place-content: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--c-accent); color: var(--c-on-accent);
  font: 700 1.25rem/1 var(--font-head);
}
.timeline li::after {
  content: ""; position: absolute; left: 1.4rem; top: 3.3rem; bottom: 0.3rem;
  width: 2px; background: var(--c-line);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline h3 { margin-bottom: var(--s-2); padding-top: 0.5rem; }
.timeline p { margin: 0; color: var(--c-ink-muted); }

.cols-2 { display: grid; gap: var(--s-6); }
.cols-2 h3 { margin-bottom: var(--s-4); }
@media (min-width: 48rem) { .cols-2 { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }

.checklist { list-style: none; display: grid; gap: var(--s-3); }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0.45rem; top: 0.3rem;
  width: 0.5rem; height: 0.9rem;
  border-right: 3px solid var(--c-accent); border-bottom: 3px solid var(--c-accent);
  transform: rotate(45deg);
}

.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--r-box); background: var(--c-surface); }
.visits { width: 100%; min-width: 30rem; border-collapse: collapse; }
.visits caption { text-align: left; padding: var(--s-4) var(--s-5) 0; font-weight: 700; }
.visits th, .visits td { text-align: left; padding: var(--s-4) var(--s-5); vertical-align: top; }
.visits thead th { color: var(--c-ink-muted); font-size: var(--fs-small); border-bottom: 1px solid var(--c-line); }
.visits tbody th { font-weight: 700; }

/* ---------- About ---------- */
.team { display: grid; gap: var(--s-6); margin-top: var(--s-5); }
.team h3 { margin: var(--s-4) 0 var(--s-1); }
.team p { margin: 0 0 var(--s-2); color: var(--c-ink-muted); }
@media (min-width: 48rem) { .team { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }

/* ---------- Areas ---------- */
.areas-layout { display: grid; gap: var(--s-7); }
.area-list { list-style: none; display: grid; gap: var(--s-3); grid-template-columns: 1fr 1fr; margin: var(--s-4) 0 var(--s-5); font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; }
.postcode-check { margin-top: var(--s-6); }
.postcode-check__row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: end; }
.postcode-check__row .field { flex: 1 1 14rem; }
.postcode-check__result { margin: var(--s-4) 0 0; font-weight: 600; }
@media (min-width: 62rem) { .areas-layout { grid-template-columns: 1.4fr 0.6fr; gap: var(--s-8); align-items: start; } }

/* ---------- FAQ page ---------- */
.faq-layout { display: grid; gap: var(--s-6); }
.faq-index h2 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; margin-bottom: var(--s-3); }
.faq-index ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.faq-index a {
  display: inline-block; padding: 0.5rem 0.9rem;
  background: var(--c-surface); border: 2px solid var(--c-line); border-radius: var(--r-ui);
  color: var(--c-ink); font-weight: 600; text-decoration: none;
}
.faq-index a:hover { border-color: var(--c-accent); background: var(--c-tint); color: var(--c-ink); }
.faq-group { margin-bottom: var(--s-7); }
.faq-group:last-child { margin-bottom: 0; }
.faq-group h2 { font-size: 1.625rem; margin-bottom: var(--s-4); }
.faq-layout .faq { max-width: none; }
@media (min-width: 62rem) {
  .faq-layout { grid-template-columns: 15rem 1fr; gap: var(--s-8); align-items: start; }
  .faq-index { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
  .faq-index ul { display: grid; gap: 0; }
  .faq-index a { display: block; border: 0; border-radius: 0; background: none; padding: 0.55rem 0; border-bottom: 1px solid var(--c-line); }
  .faq-index a:hover { background: none; color: var(--c-accent); }
}

/* ---------- Contact + forms ---------- */
.contact-layout { display: grid; gap: var(--s-7); }
.contact-layout aside { display: grid; gap: var(--s-5); align-content: start; }
.next-steps { list-style: none; counter-reset: n; display: grid; gap: var(--s-3); margin: 0 0 var(--s-6); max-width: var(--measure); }
.next-steps li { counter-increment: n; padding-left: 2.25rem; position: relative; }
.next-steps li::before {
  content: counter(n); position: absolute; left: 0; top: 0.1rem;
  display: grid; place-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--c-tint); color: var(--c-ink); font: 700 0.9375rem/1 var(--font-head);
}
.form { display: grid; gap: var(--s-5); max-width: 40rem; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--s-4); }
.form legend { font-weight: 700; padding: 0; margin-bottom: var(--s-2); }
.field { display: grid; gap: var(--s-2); }
.field label { font-weight: 700; }
.field .opt { font-weight: 400; color: var(--c-ink-muted); }
.hint { margin: 0; color: var(--c-ink-muted); font-size: var(--fs-small); }
.input, .select, .textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem;
  background: var(--c-surface); color: var(--c-ink);
  border: 2px solid var(--c-field); border-radius: var(--r-ui);
  font: inherit;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.textarea { min-height: 8.5rem; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--c-ink); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: 3px solid var(--c-focus); outline-offset: 2px; border-color: var(--c-accent);
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--c-error); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--c-tint); color: var(--c-ink-muted); border-color: var(--c-line); cursor: not-allowed; }
.field__error { margin: 0; color: var(--c-error); font-weight: 600; font-size: var(--fs-small); }
.field__error:empty { display: none; }
.check { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: start; }
.check input { width: 1.5rem; height: 1.5rem; margin: 0.15rem 0 0; accent-color: var(--c-accent); }
.check input:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.check label { font-weight: 400; }
.error-summary, .success {
  background: var(--c-surface); border-radius: var(--r-box); padding: var(--s-4) var(--s-5);
  border: 2px solid var(--c-error); max-width: 40rem;
}
.error-summary:focus, .success:focus { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.error-summary h2 { font-size: 1.125rem; color: var(--c-error); margin-bottom: var(--s-2); }
.error-summary ul { padding-left: 1.25rem; display: grid; gap: var(--s-1); }
.error-summary a { color: var(--c-ink); }
.success { border-color: var(--c-accent); }
.success h2 { font-size: 1.5rem; margin-bottom: var(--s-3); }
.success p:last-child { margin-bottom: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn.is-loading { cursor: progress; }

/* ---------- Legal drafts ---------- */
.draft-banner {
  background: var(--c-surface); border: 2px dashed var(--c-accent); border-radius: var(--r-box);
  padding: var(--s-4) var(--s-5); margin-bottom: var(--s-6); max-width: var(--measure);
}
.draft-banner p { margin: 0; }
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.5rem; margin: var(--s-6) 0 var(--s-3); }
.legal ul { padding-left: 1.25rem; display: grid; gap: 0.4rem; margin: 0 0 var(--s-4); }
.legal table { width: 100%; border-collapse: collapse; margin-bottom: var(--s-4); }
.legal th, .legal td { text-align: left; padding: var(--s-3); border: 1px solid var(--c-line); vertical-align: top; }

/* ---------- 404 ---------- */
.notfound { padding-block: var(--section-y); }
.notfound .hero__actions { margin-top: var(--s-5); }

/* ==========================================================================
   Interior pages
   ========================================================================== */

/* ---------- Page intro ---------- */
.page-intro { padding-block: var(--s-6) var(--s-7); border-bottom: 1px solid var(--c-line); }
.breadcrumb { margin: 0 0 var(--s-4); font-size: var(--fs-small); color: var(--c-ink-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); color: var(--c-ink-muted); }
.breadcrumb a { color: var(--c-ink-muted); }
.breadcrumb a:hover { color: var(--c-accent); }
.page-intro h1 { font-size: clamp(2rem, 5vw + 0.5rem, 3.25rem); margin-bottom: var(--s-4); }
.page-intro .lead { font-size: 1.1875rem; color: var(--c-ink-muted); max-width: 52ch; margin-bottom: 0; }
.page-intro .btn { margin-top: var(--s-5); }

/* ---------- Prose ---------- */
.prose { max-width: 44rem; }
.prose h2 { margin-top: var(--s-7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-5); }
.prose ul, .prose ol { margin: 0 0 var(--s-4) 1.25rem; display: grid; gap: var(--s-2); max-width: var(--measure); }
.prose li::marker { color: var(--c-accent); }

/* ---------- Callout ---------- */
.callout {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-box);
  box-shadow: var(--shadow-sm);
  padding: var(--s-5);
  max-width: 44rem;
}
.callout h2, .callout h3 { font-size: 1.25rem; margin-bottom: var(--s-2); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Jump links ---------- */
.jump { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); list-style: none; margin: var(--s-5) 0 0; }
.jump a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--c-line);
  border-radius: var(--r-ui);
  background: var(--c-surface);
  color: var(--c-ink);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.jump a:hover { border-color: var(--c-accent); background: var(--c-tint); color: var(--c-ink); }
.jump a:active { transform: translateY(1px); }

/* ---------- Service detail ---------- */
.service-detail { padding-block: var(--s-7); border-top: 1px solid var(--c-line); }
.service-detail:first-of-type { border-top: 0; padding-top: 0; }
.service-detail h2 { margin-bottom: var(--s-3); }
.service-detail__lead { font-size: 1.125rem; max-width: 52ch; }
.service-detail__cols { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
.service-detail__cols h3 { font-size: 1.0625rem; font-family: var(--font-body); font-weight: 700; margin-bottom: var(--s-2); }
.service-detail__cols p, .service-detail__cols ul { margin: 0; color: var(--c-ink-muted); }
.service-detail__cols ul { list-style: none; display: grid; gap: var(--s-2); }
.service-detail__cols li { padding-left: 1.25rem; position: relative; }
.service-detail__cols li::before {
  content: ""; position: absolute; left: 0; top: 0.65em;
  width: 0.5rem; height: 0.5rem; border-radius: 2px; background: var(--c-accent);
}
@media (min-width: 48rem) {
  .service-detail__cols { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
}

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0 0 var(--s-4); display: grid; gap: var(--s-3); max-width: var(--measure); }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.3em;
  width: 0.55rem; height: 1rem;
  border-right: 3px solid var(--c-accent); border-bottom: 3px solid var(--c-accent);
  transform: rotate(40deg);
}

/* ---------- Two-column content + aside ---------- */
.content-grid { display: grid; gap: var(--s-7); }
@media (min-width: 62rem) {
  .content-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
  .content-grid__aside { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
}
.aside-box {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-box);
  padding: var(--s-5);
}
.aside-box h2 { font-size: 1.25rem; margin-bottom: var(--s-3); }
.aside-box dl { margin: 0; display: grid; gap: var(--s-4); }
.aside-box dt { font-weight: 700; }
.aside-box dd { margin: 0; color: var(--c-ink-muted); }
.aside-box p:last-child { margin-bottom: 0; }

/* ---------- Price rows ---------- */
.price-rows { margin: 0 0 var(--s-5); display: grid; max-width: 36rem; }
.price-rows > div {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-1) var(--s-4);
  padding-block: var(--s-3);
  border-top: 1px solid var(--c-line);
}
.price-rows > div:last-child { border-bottom: 1px solid var(--c-line); }
.price-rows dt { font-weight: 700; }
.price-rows dd { margin: 0; color: var(--c-ink-muted); }

/* ---------- Team rows ---------- */
.team-list { list-style: none; display: grid; gap: var(--s-6); }
.team-member { display: grid; gap: var(--s-4); align-items: start; }
.team-member .photo-slot { aspect-ratio: 1 / 1; padding: var(--s-3); }
.team-member h3 { margin-bottom: var(--s-1); }
.team-member p { margin-bottom: var(--s-2); }
@media (min-width: 48rem) {
  .team-member { grid-template-columns: 11rem 1fr; gap: var(--s-6); }
}

/* ---------- Area list ---------- */
.area-list { list-style: none; columns: 1; column-gap: var(--s-7); max-width: 44rem; margin-bottom: var(--s-5); }
.area-list li { break-inside: avoid; padding-block: var(--s-2); border-bottom: 1px solid var(--c-line); }
@media (min-width: 36rem) { .area-list { columns: 2; } }
@media (min-width: 62rem) { .area-list { columns: 3; max-width: none; } }

/* ---------- FAQ page groups ---------- */
.faq-group + .faq-group { margin-top: var(--s-7); }
.faq-group h2 { font-size: 1.5rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-5); max-width: 38rem; }
.field { display: grid; gap: var(--s-2); }
.field label, .field legend { font-weight: 700; padding: 0; }
.field .hint { margin: 0; color: var(--c-ink-muted); font-size: var(--fs-small); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  background: var(--c-surface);
  color: var(--c-ink);
  border: 2px solid #5f7478;
  border-radius: var(--r-ui);
  font: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .field input[type="text"],
  :root:not([data-theme="light"]) .field input[type="tel"],
  :root:not([data-theme="light"]) .field input[type="email"],
  :root:not([data-theme="light"]) .field select,
  :root:not([data-theme="light"]) .field textarea { border-color: #7f9a9e; }
}
:root[data-theme="dark"] .field input[type="text"],
:root[data-theme="dark"] .field input[type="tel"],
:root[data-theme="dark"] .field input[type="email"],
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .field textarea { border-color: #7f9a9e; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-accent); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-color: var(--c-accent);
}
.field input:disabled, .field select:disabled, .field textarea:disabled {
  background: var(--c-line); color: var(--c-ink-muted); border-color: var(--c-line); cursor: not-allowed;
}
.field--error input, .field--error select, .field--error textarea { border-color: var(--c-error); }
.field__error { margin: 0; color: var(--c-error); font-weight: 600; font-size: var(--fs-small); }
.field__error[hidden] { display: none; }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: var(--s-3); }
.field--check input { width: 1.5rem; height: 1.5rem; margin: 0.15rem 0 0; accent-color: var(--c-accent); }
.field--check .field__error { grid-column: 2; }
.field-row { display: grid; gap: var(--s-5); }
@media (min-width: 36rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-summary {
  border: 2px solid var(--c-error);
  border-radius: var(--r-box);
  padding: var(--s-4) var(--s-5);
  background: var(--c-surface);
  max-width: 38rem;
}
.form-summary[hidden] { display: none; }
.form-summary h2 { font-size: 1.125rem; color: var(--c-error); margin-bottom: var(--s-2); }
.form-summary ul { margin: 0 0 0 1.25rem; display: grid; gap: var(--s-1); }
.form-summary a { color: var(--c-error); font-weight: 600; }

.form-success {
  border: 2px solid var(--c-accent);
  border-radius: var(--r-box);
  padding: var(--s-5);
  background: var(--c-surface);
  max-width: 38rem;
}
.form-success[hidden] { display: none; }
.form-success h2 { font-size: 1.5rem; margin-bottom: var(--s-3); }
.form-success p:last-child { margin-bottom: 0; }
.btn[aria-busy="true"] { opacity: 0.75; cursor: progress; }

/* ---------- Draft banner (legal pages) ---------- */
.draft-banner {
  max-width: 44rem;
  margin-bottom: var(--s-6);
  padding: var(--s-4) var(--s-5);
  border: 2px dashed var(--c-ink-muted);
  border-radius: var(--r-box);
  background: var(--c-ph-bg);
  color: var(--c-ph-ink);
  font-weight: 600;
}
.draft-banner p { margin: 0; max-width: none; }

/* Team photo slots stay small on phones */
@media (max-width: 47.99rem) {
  .team-member .photo-slot { max-width: 11rem; }
}

/* ---------- Price list ---------- */
.price-list { list-style: none; display: grid; max-width: 48rem; margin: var(--s-5) 0 0; }
.price-list li {
  display: grid;
  gap: var(--s-1) var(--s-4);
  padding-block: var(--s-5);
  border-top: 1px solid var(--c-line);
}
.price-list li:last-child { border-bottom: 1px solid var(--c-line); }
.price-list h3 { margin: 0; }
.price-list .price { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; }
.price-list p { margin: 0; color: var(--c-ink-muted); }
@media (min-width: 48rem) {
  .price-list li { grid-template-columns: 1fr auto; align-items: baseline; }
}

/* Very narrow phones (320px): keep logo and phone number on one row */
@media (max-width: 22.5rem) {
  .wordmark { font-size: 1.25rem; }
  .site-header__phone { font-size: 0.9375rem; }
  .site-header__bar { column-gap: var(--s-2); }
}
.site-nav { min-width: 0; }
@media (max-width: 22.5rem) {
  .site-nav a { font-size: 0.875rem; padding: 0 0.1rem; }
  .site-nav ul { gap: 0.25rem; }
}


/* ==========================================================================
   Finishing touches (CSS only, no scripts)
   Everything here is optional polish. Content is fully visible without it,
   and the motion runs only when the visitor has not asked for reduced motion.
   ========================================================================== */

/* Browser surfaces take the palette */
:root { accent-color: var(--c-accent); caret-color: var(--c-accent); scrollbar-color: var(--c-field) var(--c-bg); }
::selection { background: var(--c-accent); color: var(--c-on-accent); }

@media (prefers-reduced-motion: no-preference) {
  /* Primary buttons lift slightly on hover and settle when pressed */
  .btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
  .btn--primary:active { transform: translateY(1px); box-shadow: none; }

  /* FAQ answers ease in when opened */
  @keyframes answer-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
  .faq details[open] .faq__answer { animation: answer-in 220ms ease-out; }

  /* Scroll-linked touch, only in browsers that support it */
  @supports (animation-timeline: scroll()) {
    /* The header gains a soft shadow once the page has scrolled */
    @keyframes header-lift { from { box-shadow: none; } to { box-shadow: var(--shadow-sm); } }
    .site-header {
      animation: header-lift linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 3rem;
    }
  }
}


/* ==========================================================================
   Life layer: movement, warmth, organic shape.
   One accent added (sun / marigold) next to the sea-teal. Everything here is
   decorative and sits on top of the base styles above. Animations only run
   when the visitor has not asked for reduced motion.
   ========================================================================== */

:root {
  --c-sun: #f2a93b;
  --c-sun-soft: rgb(242 169 59 / 0.22);
  --c-sun-ink: #3a2500;
  --c-aqua: #9fdcd5;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V44C200 4 420 6 660 36S1130 78 1440 18V80Z'/%3E%3C/svg%3E");
  --trace: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 620' preserveAspectRatio='none' fill='none' stroke-linecap='round'%3E%3Cpath d='M-20 540C190 440 250 130 470 230S720 540 880 380 1100 70 1460 170' stroke='%232b9a93' stroke-opacity='.22' stroke-width='3' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M-20 580C210 500 300 220 500 290S760 560 920 430 1160 150 1460 250' stroke='%23f2a93b' stroke-opacity='.55' stroke-width='2' stroke-dasharray='2 12' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}

::selection { background: var(--c-sun); color: var(--c-sun-ink); }

/* ---------- Hero: a movement trace draws itself, photo in an arched frame ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42rem 26rem at 88% 10%, var(--c-sun-soft), transparent 65%),
    radial-gradient(40rem 24rem at 0% 100%, rgb(43 154 147 / 0.16), transparent 65%),
    var(--trace) center / 100% 100% no-repeat;
}
.photo--hero {
  /* Arched window frame with an offset sun outline */
  aspect-ratio: 4 / 5;
  max-width: 26rem;
  max-height: none;
  margin-inline: auto;
  border-radius: 999px 999px var(--r-box) var(--r-box);
  outline: 2px solid var(--c-sun);
  outline-offset: 12px;
  box-shadow: var(--shadow-md);
}
@media (min-width: 62rem) {
  .photo--hero { aspect-ratio: 4 / 5; max-height: 36rem; max-width: 29rem; margin-inline: 0 auto; }
}

/* ---------- Soft wave where a tinted band begins ---------- */
.section--tint { position: relative; }
.section--tint::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--c-tint);
  -webkit-mask: var(--wave) bottom / 100% 100% no-repeat;
  mask: var(--wave) bottom / 100% 100% no-repeat;
  pointer-events: none;
}

/* ---------- Page headers: aurora wash instead of a flat strip ---------- */
.page-intro {
  background:
    radial-gradient(46rem 20rem at 92% -30%, var(--c-sun-soft), transparent 62%),
    radial-gradient(40rem 18rem at 0% 0%, rgb(43 154 147 / 0.15), transparent 62%);
}

/* ---------- Buttons: light sweeps across on hover ---------- */
.btn--primary {
  background-image: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / 0.28) 50%, transparent 65%);
  background-size: 250% 100%;
  background-position: 130% 0;
  background-repeat: no-repeat;
  transition: background-position 0.7s ease, background-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn--primary:hover {
  background-image: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / 0.28) 50%, transparent 65%);
  background-size: 250% 100%;
  background-position: -30% 0;
  background-repeat: no-repeat;
  box-shadow: 0 8px 22px rgb(14 94 91 / 0.28);
}
.wordmark span { display: inline-block; transition: transform 0.3s cubic-bezier(.3, 1.6, .5, 1); }
.wordmark:hover span { transform: rotate(-14deg) scale(1.2); }

/* ---------- Prices: bigger numbers with a sun underline, rows that respond ---------- */
.price-list li { transition: background-color var(--t-fast), padding var(--t-fast); border-radius: var(--r-ui); }
.price-list li:hover { background: var(--c-sun-soft); padding-inline: var(--s-4); }
.price-list .price {
  font-size: clamp(1.75rem, 3vw + 1rem, 2.25rem);
  font-weight: 700;
  color: var(--c-accent);
  background: linear-gradient(var(--c-sun), var(--c-sun)) 0 92% / 100% 0.28em no-repeat;
  padding-inline: 0.15em;
  justify-self: start;
  line-height: 1.2;
}
@media (min-width: 40rem) { .price-list .price { justify-self: end; } }

/* ---------- Package table ---------- */
.visits tbody tr { transition: background-color var(--t-fast); }
.visits tbody tr:hover { background: var(--c-sun-soft); }
.visits tr.is-featured { background: linear-gradient(90deg, var(--c-sun-soft), transparent 85%); }
.badge {
  display: inline-block;
  margin-top: var(--s-2);
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--c-sun);
  color: var(--c-sun-ink);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- Referral: a ticket you would actually want to keep ---------- */
.callout--gift {
  position: relative;
  max-width: 52rem;
  border: 2px dashed var(--c-sun);
  background:
    radial-gradient(22rem 14rem at 100% 0%, var(--c-sun-soft), transparent 70%),
    var(--c-surface);
  overflow: hidden;
}
.callout--gift::after {
  content: "\00a3 15";
  position: absolute;
  right: -0.4rem;
  bottom: -1.6rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(5rem, 14vw, 9rem);
  line-height: 1;
  color: var(--c-sun);
  opacity: 0.12;
  z-index: 0;
  transform: rotate(-8deg);
  pointer-events: none;
}

/* ---------- Closing band: slow drifting light ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band::before, .cta-band::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}
.cta-band::before { width: 22rem; height: 22rem; right: -6rem; top: -9rem; background: radial-gradient(circle, rgb(242 169 59 / 0.55), transparent 68%); }
.cta-band::after { width: 26rem; height: 26rem; left: -8rem; bottom: -14rem; background: radial-gradient(circle, rgb(159 220 213 / 0.4), transparent 68%); }

/* ---------- Motion (skipped entirely for reduced-motion visitors) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: trace-draw 2.8s cubic-bezier(.4, 0, .2, 1) 0.2s both; }
  @keyframes trace-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }


  .cta-band::before { animation: drift-a 14s ease-in-out infinite alternate; }
  .cta-band::after { animation: drift-b 18s ease-in-out infinite alternate; }
  @keyframes drift-a { to { transform: translate(-4rem, 3rem) scale(1.15); } }
  @keyframes drift-b { to { transform: translate(5rem, -2rem) scale(1.1); } }

  .callout--gift::after { animation: tilt 6s ease-in-out infinite alternate; }
  @keyframes tilt { to { transform: rotate(-3deg) scale(1.06); } }
}

/* ==========================================================================
   Smooth scroll (Lenis) and scroll-linked motion. Driven by js/motion.js.
   Lenis base rules come from its own stylesheet, copied here.
   ========================================================================== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: calc(var(--z-header) + 1);
  background: linear-gradient(90deg, var(--c-accent), var(--c-sun));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}
.site-header { transition: box-shadow 0.25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgb(20 38 42 / 0.12); }

/* Parallax: --py is the scroll position in px, set by motion.js */
@media (prefers-reduced-motion: no-preference) {
  .hero::before { transform: translateY(calc(var(--py, 0) * -0.12px)); }
  .photo--hero { translate: 0 calc(var(--py, 0) * 0.05px); }
  .cta-band .wrap { translate: 0 0; }

  .will-reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .7, .2, 1), background-color var(--t-fast), padding var(--t-fast);
  }
  .will-reveal.is-revealed { opacity: 1; transform: none; }
  .visits tbody tr.will-reveal { transform: none; }
}
