/* Tiki Massage — website-v2
   Palette: deep navy / teal / aqua, with restorative lime and warm coral accents.
   Self-contained: no external fonts, scripts, or trackers. */

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

:root {
  --night: #042536;
  --deep: #0a3a56;
  --deep-2: #0e4a6b;
  --blue: #0b7f9e;
  --aqua: #79d3d8;
  --aqua-soft: #e2f4f4;
  --lime: #bfe57a;
  --coral: #ff7d64;
  --coral-ink: #7a2f22;
  --sand: #fdf5ea;
  --paper: #ffffff;
  --ink: #16303b;
  --muted: #5b7280;
  --muted-light: #cfe0e4;
  --line: rgba(10, 58, 86, .14);
  --line-light: rgba(255, 255, 255, .16);
  --shadow: 0 22px 55px rgba(6, 38, 58, .16);
  --shadow-sm: 0 10px 30px rgba(6, 38, 58, .1);

  /* spacing scale — every gap/padding/margin resolves through these */
  --sp-25: 2px;  --sp-50: 4px;  --sp-75: 8px;  --sp-100: 12px;
  --sp-200: 16px; --sp-300: 24px; --sp-400: 32px; --sp-500: 40px;
  --sp-600: 48px; --sp-700: 64px; --sp-800: 80px; --sp-900: 96px;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* motion: heavy, physical easing — no default ease */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);

  --shell: min(1120px, 100% - 40px);
  --serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.015em;
  color: var(--night);
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }   /* ~text-4xl → text-5xl */
h2 { font-size: clamp(1.875rem, 3.6vw, 2.5rem); } /* ~text-3xl → text-4xl */
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }    /* ~text-xl → text-2xl */
p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.shell { width: var(--shell); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section-sm { padding: clamp(48px, 7vw, 78px) 0; }

/* ---------- Accessibility helpers ---------- */
.sr-only,
.hidden-field {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important; border: 0 !important;
}
.skip-link {
  position: fixed; z-index: 2000; top: 12px; left: 12px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--night); color: #fff; text-decoration: none;
  transform: translateY(-160%); transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

:where(a, button, summary, input, textarea, select):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-75);
  min-height: 52px; padding: var(--sp-100) var(--sp-300);
  border: 1px solid var(--coral); border-radius: var(--radius-pill);
  background: var(--coral); color: #2a1109;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
}
.btn:hover { background: #ff9078; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 125, 100, .34); }
.btn:active { transform: scale(.98); transition-duration: .12s; }
.btn-dark { border-color: var(--deep); background: var(--deep); color: #fff; }
.btn-dark:hover { background: var(--deep-2); box-shadow: 0 14px 30px rgba(10, 58, 86, .28); }
.btn-ghost {
  border-color: currentColor; background: transparent; color: var(--deep);
}
.btn-ghost:hover { background: rgba(11, 127, 158, .08); transform: translateY(-2px); box-shadow: none; }
.btn-sm { min-height: 44px; padding: var(--sp-75) var(--sp-300); font-size: .875rem; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: var(--sp-75);
  color: var(--blue); font-weight: 600; text-decoration: none;
}
.text-link span { transition: transform .4s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

/* ---------- Floating "back to home" button (inner pages) ---------- */
.back-home {
  position: fixed; z-index: 80;
  left: clamp(16px, 4vw, 32px); bottom: clamp(16px, 4vw, 32px);
  display: inline-flex; align-items: center; gap: var(--sp-75);
  min-height: 44px; padding: var(--sp-75) var(--sp-200);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-pill);
  background: var(--deep); color: #fff;
  font-size: .875rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 12px 30px rgba(4, 24, 36, .38);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease), opacity .3s var(--ease);
}
.back-home span { transition: transform .4s var(--ease); }
.back-home:hover {
  background: var(--deep-2); transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(4, 24, 36, .46);
}
.back-home:hover span { transform: translateX(-3px); }
.back-home:active { transform: scale(.97); transition-duration: .12s; }
body.nav-open .back-home { opacity: 0; pointer-events: none; }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  color: var(--blue); font-family: var(--sans);
  font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.on-dark .eyebrow, .eyebrow.light { color: var(--aqua); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled,
.site-header.is-solid {
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(6, 38, 58, .06);
}
/* Transparent state sits over a dark hero: light text */
.site-header:not(.scrolled):not(.is-solid) .brand,
.site-header:not(.scrolled):not(.is-solid) .brand-name,
.site-header:not(.scrolled):not(.is-solid) .site-nav > a:not(.btn) { color: #fff; }
.site-header:not(.scrolled):not(.is-solid) .nav-toggle span:not(.sr-only) { background: #fff; }
body.nav-open .nav-toggle span:not(.sr-only) { background: var(--night); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--night);
}
.brand img { width: 40px; height: 40px; }
.brand-name {
  font-family: var(--serif); font-size: 1.35rem; letter-spacing: -.02em;
}
.brand-name strong { font-weight: 700; }
.brand-name em { font-weight: 400; font-style: normal; opacity: .82; }

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.site-nav a:not(.btn) {
  position: relative; color: var(--night);
  font-size: .92rem; font-weight: 600; text-decoration: none;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--coral);
  transform: scaleX(0); transform-origin: right;
  transition: transform .18s ease;
}
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-nav a[aria-current="page"] { color: var(--blue); }

.nav-toggle {
  display: none; width: 46px; height: 46px;
  border: 0; background: transparent; cursor: pointer;
}
.nav-toggle span:not(.sr-only) {
  display: block; width: 24px; height: 2px; margin: 5px auto;
  background: var(--night); border-radius: 2px; transition: .2s ease;
}

/* ---------- Hero + page hero (shared photo treatment) ---------- */
.hero, .page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: -77px; /* slide up under the transparent sticky header */
  color: #fff;
  background: #04202f;
}
/* photo + legibility scrim (a scrim over an image, not decorative gradient) */
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(100deg, rgba(4, 27, 41, .92) 8%, rgba(4, 27, 41, .45) 82%),
                    url("assets/photos/hero-spa-scene.jpg");
  background-size: cover; background-position: center 62%;
}

.hero {
  padding: clamp(150px, 20vw, 210px) 0 clamp(72px, 11vw, 120px);
}
.hero .shell { max-width: 680px; }          /* B5: hero copy capped at 680px */
.hero .eyebrow { color: var(--lime); }
.hero h1 {
  max-width: 680px;
  margin-bottom: .55em;
  /* B5: gradient runs across the heading text only, never the background */
  color: #fff;
  background: linear-gradient(100deg, #ffffff 0%, #cfd4d6 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 18px rgba(0, 8, 16, .55));
}
.hero p {
  max-width: 680px; color: rgba(255, 255, 255, .92);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  text-shadow: 0 2px 14px rgba(0, 8, 16, .4);
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: var(--sp-200); margin-top: var(--sp-400);
}
.hero .btn-ghost { color: #fff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: var(--sp-75);
  margin: var(--sp-500) 0 0; padding: 0; list-style: none;
}
.hero-facts a {
  display: inline-flex; align-items: center;
  padding: var(--sp-75) 14px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius-pill);
  background: rgba(4, 30, 45, .3);
  color: #fff; text-decoration: none;
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.hero-facts a:hover {
  background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .55);
  transform: translateY(-1px);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: clamp(132px, 17vw, 184px) 0 clamp(52px, 8vw, 78px);
}
/* Per-page hero photo. Site rule: no two pages may share the same page-hero image.
   Override ::before background-image per page with a context-matched photo. */
.page-hero.hero-homecare::before {
  background-image:
    linear-gradient(100deg, rgba(4, 27, 41, .90) 8%, rgba(4, 27, 41, .52) 82%),
    url("assets/photos/homecare-hero.jpg");
  background-position: center 45%;
}
.page-hero.hero-services::before {
  background-image:
    linear-gradient(100deg, rgba(4, 27, 41, .90) 8%, rgba(4, 27, 41, .5) 82%),
    url("assets/photos/hero-services.jpg");
  background-position: center 58%;
}
.page-hero.hero-first-visit::before {
  background-image:
    linear-gradient(100deg, rgba(4, 27, 41, .9) 8%, rgba(4, 27, 41, .5) 82%),
    url("assets/photos/hero-first-visit.jpg");
  background-position: center 62%;
}
.page-hero.hero-book::before {
  background-image:
    linear-gradient(100deg, rgba(4, 27, 41, .88) 8%, rgba(4, 27, 41, .58) 82%),
    url("assets/photos/hero-book.jpg");
  background-position: center 55%;
}
.page-hero.hero-kobido::before {
  background-image:
    linear-gradient(100deg, rgba(4, 27, 41, .9) 8%, rgba(4, 27, 41, .5) 82%),
    url("assets/photos/hero-kobido.jpg");
  background-position: center 60%;
}
.page-hero.hero-privacy::before {
  background-image:
    linear-gradient(100deg, rgba(4, 27, 41, .9) 8%, rgba(4, 27, 41, .6) 82%),
    url("assets/photos/hero-privacy.jpg");
  background-position: center 62%;
}
.page-hero.hero-privacy-policy::before {
  background-image:
    linear-gradient(100deg, rgba(4, 27, 41, .9) 8%, rgba(4, 27, 41, .6) 82%),
    url("assets/photos/hero-privacy-policy.jpg");
  background-position: center 55%;
}
.page-hero .shell { max-width: 680px; }
.page-hero h1 {
  color: #fff;
  background: linear-gradient(100deg, #ffffff 0%, #cfd4d6 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 18px rgba(0, 8, 16, .55));
}
.page-hero p {
  max-width: 620px; color: rgba(255, 255, 255, .92); font-size: 1.125rem; margin-bottom: 0;
  text-shadow: 0 2px 14px rgba(0, 8, 16, .4);
}
.crumbs {
  margin-bottom: var(--sp-200); font-size: .82rem; color: #dbe7ea;
  text-shadow: 0 1px 10px rgba(0, 8, 16, .45);
}
.crumbs a { color: var(--aqua); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Section framing ---------- */
.band-teal { background: var(--deep); color: #fff; }
.band-teal h2, .band-teal h3 { color: #fff; }
.band-sand { background: var(--sand); }
.band-aqua { background: var(--aqua-soft); }

/* Site rule: a full-width card grid must never sit on a flat colour slab.
   Put it on .band-photo with a page-matched photo washed by the band colour. */
.band-photo { position: relative; isolation: isolate; overflow: hidden; }
.band-photo > * { position: relative; z-index: 1; }
.band-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hc-band-warm::before {
  background-image:
    linear-gradient(180deg, rgba(253, 245, 234, .92), rgba(253, 245, 234, .85)),
    url("assets/photos/homecare-band-warm.jpg");
}
.hc-band-dew::before {
  background-image:
    linear-gradient(180deg, rgba(226, 244, 244, .93), rgba(230, 246, 246, .86)),
    url("assets/photos/homecare-band-dew.jpg");
}

.on-dark { color: #fff; }
.on-dark h2, .on-dark h3 { color: #fff; }
.on-dark p { color: rgba(255, 255, 255, .88); }

.lede {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.34;
  color: var(--deep);
}
.on-dark .lede { color: #fff; }

.section-head { max-width: 640px; margin-bottom: clamp(34px, 5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.flush { margin-bottom: 0; }

/* small spacing utilities (kept so no inline styles are needed under CSP) */
.mt-s { margin-top: 1.4rem; }
.mt-m { margin-top: 2.6rem; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }

/* ---------- Grid utilities ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px); align-items: center;
}
.split.narrow-media { grid-template-columns: 1.1fr .9fr; }
.split.top { align-items: start; }
/* .even: the image column matches the text column's height, so neither side
   is left with a tall empty gap. The image is absolutely positioned so it never
   forces the row taller than the text. */
.split.even { align-items: stretch; }
.split.even > .media-frame { position: relative; align-self: stretch; min-height: 340px; }
.split.even > .media-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  aspect-ratio: auto; object-fit: cover;
}
.faq-media { max-width: 440px; margin-top: var(--sp-400); }

/* new-client intake callout (first-visit page) */
.intake { max-width: 700px; }
.intake h2 { margin-bottom: .35em; }
.intake .btn { margin-top: var(--sp-200); }
.intake-note { margin-top: var(--sp-200); font-size: .84rem; color: var(--muted); }
.on-dark .intake-note { color: rgba(255, 255, 255, .72); }
.review-nudge { margin-top: var(--sp-300); font-size: .88rem; color: var(--muted); }
.page-hero-note { margin-top: var(--sp-200); font-size: .92rem; color: rgba(255, 255, 255, .74); }
.cred-verify { margin-top: var(--sp-200); font-size: .85rem; }
.cred-verify a { color: var(--aqua); }

/* credentials strip under the hero */
.credbar { background: var(--night); color: #fff; padding: var(--sp-100) 0; }
.credbar ul {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--sp-100) var(--sp-400);
  margin: 0; padding: 0; list-style: none;
  font-size: .82rem; font-weight: 600; letter-spacing: .01em;
  text-align: center;
}
.credbar li { position: relative; }
.credbar li + li::before {
  content: ""; position: absolute; left: calc(var(--sp-400) / -2); top: 50%;
  width: 4px; height: 4px; margin-top: -2px; border-radius: 50%;
  background: var(--aqua);
}
.credbar a { color: var(--aqua); text-decoration: none; }
.credbar a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .credbar ul { flex-direction: column; gap: var(--sp-75); }
  .credbar li + li::before { display: none; }
}

/* plain text cards (no photo background) — home-care page */
.card.card--plain {
  min-height: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.card.card--plain::after { content: none; }
.card.card--plain .kicker {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  letter-spacing: 0; color: var(--blue); text-transform: none;
}
.card.card--plain h3 { color: var(--night); }
.card.card--plain p { color: var(--muted); }

/* accordion on a dark band */
.accordion--on-dark details { border-color: rgba(255, 255, 255, .18); }
.accordion--on-dark summary { color: #fff; }
.accordion--on-dark summary::after { border-color: rgba(255, 255, 255, .32); color: #fff; }
.accordion--on-dark details p { color: rgba(255, 255, 255, .82); }
.media-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 6px solid #fff;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame.tall img { aspect-ratio: 4 / 5; }
.media-frame.wide img { aspect-ratio: 3 / 2; }
.media-frame.focus-bottom img { object-position: center bottom; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.card {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 340px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card > * { position: relative; z-index: 1; }
/* photo layer + dark scrim (stronger at the bottom where the text sits) */
.card::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(4, 27, 41, .38) 0%, rgba(4, 27, 41, .68) 42%, rgba(4, 27, 41, .93) 100%),
    var(--card-img, none);
  background-size: cover; background-position: center;
  transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(4, 24, 36, .3); }
.card:hover::after { transform: scale(1.05); }
/* thin colour accent along the top edge */
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 5px; z-index: 2;
  background: var(--aqua);
}
.card:nth-child(1) { --card-img: url("assets/photos/svc-deep-tissue.jpg"); }
.card:nth-child(2) { --card-img: url("assets/photos/svc-relaxation.jpg"); }
.card:nth-child(3) { --card-img: url("assets/photos/svc-therapeutic.jpg"); }
.card:nth-child(4) { --card-img: url("assets/photos/svc-kobido.jpg"); }
.card:nth-child(1)::before { background: var(--blue); }
.card:nth-child(2)::before { background: var(--aqua); }
.card:nth-child(3)::before { background: var(--lime); }
.card:nth-child(4)::before { background: var(--coral); }
.card .kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .01em;
  color: rgba(255, 255, 255, .78); margin-bottom: 12px;
}
.card h3 { margin-bottom: .35em; color: #fff; }
.card p { color: rgba(255, 255, 255, .84); font-size: .96rem; }
.card .text-link { margin-top: auto; padding-top: 16px; color: #fff; }

/* ---------- Check list ---------- */
.check {
  margin: 18px 0 22px; padding: 0; list-style: none;
  display: grid; gap: 9px;
}
.check li { position: relative; padding-left: 26px; color: var(--muted); font-size: .95rem; }
.check li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 12px; height: 2px; border-radius: 2px; background: var(--coral);
}
.on-dark .check li { color: rgba(255, 255, 255, .85); }
.on-dark .check li::before { background: var(--aqua); }

/* ---------- Steps ---------- */
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.steps li {
  display: grid; grid-template-columns: 52px 1fr; gap: 20px;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .num {
  font-family: var(--serif); font-size: 1.15rem; color: var(--blue);
}
.steps h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 800; margin-bottom: .3em; letter-spacing: 0; }
.steps p { margin: 0; color: var(--muted); font-size: .96rem; }
.on-dark .steps li { border-color: rgba(255, 255, 255, .16); }
.on-dark .steps .num { color: var(--aqua); }
.on-dark .steps h3 { color: #fff; }
.on-dark .steps p { color: rgba(255, 255, 255, .82); }

/* ---------- Service detail blocks ---------- */
.service {
  padding: clamp(34px, 5vw, 52px) 0; border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: 0; }
.service-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 60px); }

/* image + copy, side by side, image side alternating down the page */
.service.split { grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 60px); }
.service.split:nth-of-type(even) .svc-media { order: 2; }
.service .svc-media { position: relative; align-self: stretch; min-height: 300px; }
.service .svc-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.service .svc-body > :first-child { margin-top: 0; }

.service .meta {
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.service h2 { margin-top: 6px; }
.tag {
  display: inline-block; margin-bottom: 14px; padding: 5px 13px;
  border: 1px solid rgba(11, 127, 158, .3); border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue);
}
.tag.coral { border-color: rgba(255, 125, 100, .45); color: var(--coral-ink); background: var(--coral-soft); }

/* ---------- Duration table ---------- */
.duration-table {
  width: 100%; border-collapse: collapse; margin: 8px 0 0;
  font-size: .96rem;
}
.duration-table th, .duration-table td {
  text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line);
}
.duration-table th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.duration-table td:last-child, .duration-table th:last-child { text-align: right; white-space: nowrap; }

/* ---------- Note / callout ---------- */
.note {
  padding: 20px 22px; border-radius: 16px;
  background: var(--aqua-soft); border: 1px solid rgba(11, 127, 158, .18);
  font-size: .92rem; color: #234b57;
}
.note strong { color: var(--night); }
.note.warm { background: var(--coral-soft); border-color: rgba(255, 125, 100, .28); color: #5f2a1f; }
.note.warm strong { color: var(--coral-ink); }

/* ---------- Accordion ---------- */
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 46px 22px 0; font-weight: 700; font-size: 1.02rem; color: var(--night);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; position: absolute; right: 2px; top: 18px;
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 1px solid var(--line); border-radius: 50%;
  font-size: 1.1rem; font-weight: 400; transition: transform .2s ease;
}
.accordion details[open] summary::after { content: "\2212"; transform: rotate(180deg); }
.accordion details p { margin: 0 0 22px; padding-right: 30px; color: var(--muted); }

/* ---------- Contact / booking ---------- */
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-info { position: sticky; top: 100px; }
.contact-info .meta-list { display: grid; gap: 8px; margin-top: 24px; }
.contact-info .meta-list a,
.contact-info .meta-list span {
  display: inline-flex; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-light); background: rgba(255, 255, 255, .06);
  color: #e4eef1; font-size: .8rem; font-weight: 600; text-decoration: none;
}
.contact-info .meta-list a:hover { background: rgba(255, 255, 255, .12); }

.booking-panel {
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line-light);
}
.booking-panel h2 { color: #fff; }
.booking-panel > p:not(.eyebrow) { color: rgba(255, 255, 255, .84); }
.booking-panel .btn { margin-top: var(--sp-150); }
.booking-panel .booking-note { margin: 18px 0 0; font-size: .8rem; }
.booking-panel .booking-note a { color: var(--aqua); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  text-align: center;
  background: #04202f;
  color: #fff;
}
/* photo + legibility scrim (a scrim over an image, not a decorative gradient) */
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(4, 27, 41, .62) 0%, rgba(4, 27, 41, .74) 55%, rgba(4, 27, 41, .82) 100%),
    url("assets/photos/cta-bg.jpg");
  background-size: cover; background-position: center 60%;
}
.cta h2 { color: #fff; }
.cta p { max-width: 520px; margin-inline: auto; color: rgba(255, 255, 255, .92); }
.cta .btn { margin-top: var(--sp-300); }
.cta .btn { border-color: #fff; background: #fff; color: var(--deep); }
.cta .btn:hover { background: #f2fbfc; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 40px; background: var(--night); color: rgba(255, 255, 255, .8);
  font-size: .9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
}
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-name { color: #fff; }
.site-footer h4 {
  color: #fff; font-family: var(--sans); font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px;
}
.site-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 9px; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: .82rem; color: rgba(255, 255, 255, .6);
}
.footer-bottom.bare { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- Simple content pages (privacy / thanks / 404) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose p, .prose li { color: #3f5762; }
.centered-card {
  min-height: 78vh; display: grid; place-items: center; padding: 80px 0;
  background: var(--aqua-soft);
  text-align: center;
}
.centered-card .inner {
  max-width: 620px; padding: clamp(36px, 7vw, 66px);
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.centered-card img { width: 62px; height: 62px; margin: 0 auto 22px; }

/* ---------- Tagline reveal (skill B11) ---------- */
.tagline { padding: clamp(64px, 11vw, 128px) 0; }
.tagline .eyebrow { margin-bottom: var(--sp-300); }
.tagline-text {
  max-width: 680px; margin: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 3rem); /* text-4xl -> text-5xl */
  line-height: 1.24; letter-spacing: -.015em;
  text-wrap: balance;
}
.tagline-text .w {
  color: rgba(255, 255, 255, .28);
  transition: color .5s var(--ease);
}
.tagline-text .w.on { color: #fff; }

/* ---------- Scroll reveal (skill B7) ---------- */
html.js .reveal {
  opacity: 0; transform: translateY(22px); filter: blur(6px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease);
  will-change: opacity, transform;
}
html.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  :root { --shell: min(100% - 32px, 640px); }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 76px 0 0; z-index: 90;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 24px clamp(20px, 6vw, 32px); background: var(--paper);
    transform: translateX(100%); transition: transform .25s ease;
    overflow-y: auto;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a:not(.btn) {
    padding: 18px 4px; border-bottom: 1px solid var(--line);
    font-family: var(--serif); font-size: 1.4rem; font-weight: 500;
  }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 22px; }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }

  .split, .split.narrow-media,
  .service-grid, .contact-grid { grid-template-columns: 1fr; }
  /* only the "media beside text-heavy copy" layouts lead with the image on mobile */
  .split.narrow-media .media-frame { order: -1; }
  .split.even > .media-frame { min-height: 0; aspect-ratio: 16 / 10; }
  .split.even > .media-frame img { aspect-ratio: auto; }
  .service.split .svc-media,
  .service.split:nth-of-type(even) .svc-media { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .faq-media { max-width: 100%; }
  .contact-info { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 38px 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  /* never leave revealed content hidden when motion is off */
  html.js .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .tagline-text .w { color: #fff !important; }
}
