/* =========================================================================
   KAMAZU DIVE CENTRE — design system  (ported from Claude Design)
   Freshwater diving · Cape Maclear · Lake Malawi
   Plain CSS, design tokens. Concept: "the descent" — palette darkens
   with depth, warm amber surfaces against cool water.
   Fonts all loaded via Google Fonts (Nunito CDN replaces the self-hosted TTFs).
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300..800&family=Newsreader:ital,opsz@0,6..72;1,6..72&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

:root {
  /* --- The descent: water column ------------------------------------ */
  --surface:   #eaf6f4;   /* air / 0m  */
  --shallow:   #b9e2dd;   /* 5m        */
  --mid:       #4a9fa8;   /* 12m       */
  --deep:      #1d6577;   /* 20m       */
  --deeper:    #0f4257;   /* 30m       */
  --abyss:     #07222f;   /* 40m       */

  /* --- Warm accent (amber, against the cool) ------------------------ */
  --amber:     #e8915a;
  --amber-bright: #f4a663;
  --amber-deep: #c46f3c;

  /* --- Neutrals ----------------------------------------------------- */
  --sand:      #f3ede1;
  --sand-deep: #e7dcc8;
  --ink:       #0a1f28;
  --ink-soft:  #2e4750;
  --paper:     #fbfaf6;
  --line:      rgba(10,31,40,0.12);
  --line-light: rgba(255,255,255,0.16);

  /* --- Type --------------------------------------------------------- */
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;

  /* --- Spacing / shape ---------------------------------------------- */
  --radius: 4px;
  --radius-lg: 10px;
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --shadow: 0 18px 50px -24px rgba(7,34,47,0.5);
  --shadow-soft: 0 10px 30px -18px rgba(7,34,47,0.4);
}

/* ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

/* overflow-x: clip (not hidden) is a guard so a single over-wide element can never
   make the whole document scroll sideways — which left the sticky header, only
   ever as wide as the viewport, with a gap beside it on phones. `clip` does not
   create a scroll container, so position:sticky on the header still works. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@supports not (overflow: clip) {
  html { overflow-x: hidden; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* --- Type scale ----------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.015em; }
.serif { font-family: var(--font-serif); font-weight: 400; }
.serif-it { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; margin-inline: auto; padding-inline: var(--gutter); }

section { position: relative; }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  /* Deep-ocean header bar. The brand logo is a light, transparent-background
     mark, so a dark bar lets it read clearly — a near-white bar washed it out. */
  background: color-mix(in oklab, var(--abyss) 92%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line-light);
  color: var(--surface);
}
/* Never let a nav item push another past the edge: the brand is the only
   flexible one, the controls keep their size. */
.nav > nav { min-width: 0; }
.brand { min-width: 0; flex: 0 1 auto; overflow: hidden; }
.brand .brand-logo { max-width: 100%; }
.nav-cta, .nav-burger { flex: none; }

.nav.on-dark {
  background: color-mix(in oklab, var(--abyss) 80%, transparent);
  border-bottom-color: var(--line-light);
  color: var(--surface);
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: 19px; }
.brand .brand-logo { height: 56px; width: auto; max-width: 240px; object-fit: contain; display: block; }
/* The footer reuses the header brand mark on the same near-black --abyss, so it
   keeps its natural colours (no invert) and just renders a touch larger. */
.footer .brand .brand-logo { height: 60px; }
.brand .mark {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--amber-bright), var(--amber-deep) 70%);
  position: relative;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
}
.brand .mark::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 200deg, transparent 0 64%, rgba(7,34,47,0.28) 64% 100%);
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; padding: 0; margin: 0; }
.nav-links a { font-size: 15px; font-weight: 500; position: relative; padding: 4px 0; opacity: 0.82; transition: opacity .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current] { opacity: 1; }
.nav-links a[aria-current]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--amber);
}
.nav-cta { white-space: nowrap; }
.nav-burger { display: none; background: none; border: 0; padding: 8px; font-size: 22px; line-height: 1; color: inherit; }

/* dropdown (menu items with children) */
.nav-links li.has-children { position: relative; }
.nav-links li.has-children > a::after { content: "▾"; margin-left: 5px; font-size: 11px; opacity: 0.6; }
.nav-links .nav-dd {
  position: absolute; top: 100%; left: 0; min-width: 190px;
  list-style: none; margin: 8px 0 0; padding: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-links li.has-children:hover .nav-dd { opacity: 1; visibility: visible; transform: none; }
.nav-links .nav-dd a { display: block; padding: 8px 12px; border-radius: var(--radius); font-size: 14.5px; color: var(--ink); opacity: 0.9; }
.nav-links .nav-dd a:hover { background: var(--sand); opacity: 1; }

/* mobile drawer */
.nav-mobile {
  display: none;
  position: fixed; inset: 0; z-index: 80;
  background: color-mix(in oklab, var(--abyss) 94%, transparent);
  backdrop-filter: blur(8px);
  flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  color: var(--surface);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-family: var(--font-display); font-weight: 700; font-size: 30px; }
.nav-mobile .nav-close { position: absolute; top: 22px; right: 24px; background: none; border: 0; color: var(--surface); font-size: 30px; }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s, box-shadow .2s, color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: #2a1405; box-shadow: 0 10px 24px -12px var(--amber-deep); }
.btn-amber:hover { background: var(--amber-bright); }
.btn-ink { background: var(--ink); color: var(--surface); }
.btn-ink:hover { background: var(--deeper); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: currentColor; }
.btn-ghost.on-light:hover { color: var(--paper); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* =========================================================================
   CARDS / CHIPS
   ========================================================================= */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  padding: 6px 13px; border-radius: 999px;
  background: color-mix(in oklab, var(--mid) 16%, var(--paper));
  color: var(--deeper);
}
.chip.dark { background: rgba(255,255,255,0.12); color: var(--surface); }

/* photo placeholder — duotone water bands, labelled (fallback when no image) */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.05) 0 2px, transparent 2px 11px),
    linear-gradient(180deg, var(--mid), var(--deeper));
  color: rgba(255,255,255,0.82);
  background-size: cover; background-position: center;
}
.ph::after {
  content: attr(data-label);
  position: absolute; left: 14px; bottom: 12px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  opacity: 0.7;
}
.ph.has-img::after { content: none; }
.ph-amber { background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 11px),
    linear-gradient(180deg, var(--amber-bright), var(--amber-deep)); }
.ph-deep { background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 11px),
    linear-gradient(180deg, var(--deep), var(--abyss)); }
/* when a real image is set via inline style, cover it. The `.ph-amber`/`.ph-deep`
   variants use the `background` shorthand, which resets background-size to auto;
   this two-class rule out-specifies them so the image covers instead of showing
   at natural size (which cropped the hero to its top-left corner). */
.ph.has-img { background-blend-mode: normal; background-size: cover; background-position: center; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background: var(--abyss); color: var(--shallow);
  padding: 80px 0 36px;
}
.footer a { opacity: 0.78; transition: opacity .2s; }
.footer a:hover { opacity: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--font-body); font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mid); margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-light);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 13px; opacity: 0.62;
}

/* =========================================================================
   DIVE METER (depth gauge — maps scroll to 0–40m on the right edge)
   ========================================================================= */
.gauge {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%);
  z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  pointer-events: none; transition: opacity .4s; mix-blend-mode: difference;
}
.gauge-num { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: #fff; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.gauge-track { width: 2px; height: 140px; background: rgba(255,255,255,0.35); position: relative; border-radius: 2px; }
.gauge-fill { position: absolute; top: 0; left: 0; width: 100%; background: #fff; height: 0%; border-radius: 2px; }
.gauge-tick { position: absolute; right: 7px; font-size: 9px; color: #fff; font-weight: 600; letter-spacing: 0.1em; transform: translateY(-50%); white-space: nowrap; }
@media (max-width: 900px) { .gauge { display: none; } }

/* =========================================================================
   WHATSAPP FLOAT
   ========================================================================= */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 12px 30px -10px rgba(7,34,47,0.5);
  transition: transform .2s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* =========================================================================
   FLASH MESSAGES
   ========================================================================= */
.flash {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  z-index: 90; max-width: 92vw;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  box-shadow: var(--shadow-soft);
}
.flash-success { background: color-mix(in oklab, var(--amber) 22%, var(--paper)); color: var(--amber-deep); }
.flash-error { background: #fdecea; color: #c0392b; }

/* =========================================================================
   UTILITIES
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.grid { display: grid; gap: 24px; }
.flow > * + * { margin-top: 1em; }
.measure { max-width: 60ch; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  /* The <nav> wrapper is empty once the links are hidden, but it still counts
     as a flex child and eats a 24px gap. */
  .nav > nav { display: none; }
  .nav-burger { display: block; }
  /* At 390px the full-size header didn't fit: logo 240 + CTA 131 + burger 36
     plus gaps came to ~528px, so the burger was pushed past the viewport and
     the page scrolled sideways — which is what left a gap beside the sticky
     header. Shrink the logo, CTA and gaps so the bar fits the narrowest phone. */
  .nav { gap: 12px; }
  .brand .brand-logo { height: 44px; max-width: 150px; }
  .nav-cta { padding: 10px 16px; font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 380px) {
  .brand .brand-logo { max-width: 116px; }
  .nav-cta { padding: 9px 13px; font-size: 13.5px; }
}

/* =========================================================================
   CMS PAGE WIDGETS (rendered from the page builder, Oceanix-styled)
   ========================================================================= */
.kz-section { padding: clamp(48px,7vw,96px) 0; }
.kz-section.sand { background: var(--sand); }
.kz-section.dark { background: linear-gradient(180deg, var(--deep), var(--deeper)); color: var(--surface); }
.kz-section.dark .muted { color: rgba(255,255,255,0.78); }

/* page hero (eyebrow + big title + lead) */
.page-hero { background: linear-gradient(170deg, var(--shallow), var(--mid)); padding: clamp(48px,7vw,100px) 0 clamp(40px,5vw,72px); }
.page-hero.dark { background: linear-gradient(180deg, var(--mid), var(--deep)); color: var(--surface); }
.page-hero h1, .page-hero.dark h1 { font-size: clamp(40px,7vw,92px); }
.page-hero .lead { max-width: 52ch; margin-top: 22px; font-size: 18px; }
.page-hero .lead { color: var(--ink-soft); }
.page-hero.dark .lead { color: rgba(255,255,255,0.85); }

/* story: image + rich text, two columns */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); align-items: center; }
.story-grid .ph, .story-grid img { aspect-ratio: 4/5; border-radius: var(--radius-lg); width: 100%; object-fit: cover; }
.story-grid .body > * + * { margin-top: 1em; }

/* generic widget card grid (values / team / safety / sites / species) */
.kz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.kz-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.kz-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.kz-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.kz-item .ph, .kz-item img.cover { aspect-ratio: 4/3; width: 100%; object-fit: cover; display: block; }
.kz-item .kz-item-body { padding: 22px; }
.kz-item h3 { font-size: 20px; margin-bottom: 8px; }
.kz-section.dark .kz-item { background: rgba(255,255,255,0.06); border-color: var(--line-light); color: var(--surface); }

/* stat band (fun facts) */
.kz-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.kz-stat .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px,5vw,60px); line-height: 1; color: var(--amber); }
.kz-stat .l { margin-top: 8px; font-size: 14.5px; color: color-mix(in oklab, var(--surface) 82%, transparent); }

/* masonry photo gallery */
.kz-mason { columns: 3; column-gap: 16px; }
.kz-mason figure { break-inside: avoid; margin: 0 0 16px; border-radius: var(--radius-lg); overflow: hidden; }
.kz-mason .ph, .kz-mason img { width: 100%; display: block; }
.kz-mason figcaption { font-size: 13px; color: var(--ink-soft); padding: 9px 2px 0; }

/* faq accordion */
.kz-faq-item { border-top: 1px solid var(--line); }
.kz-faq-item:last-child { border-bottom: 1px solid var(--line); }
.kz-faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 22px 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--ink); }
.kz-faq-q .pm { color: var(--amber-deep); font-weight: 800; transition: transform .25s; flex: none; }
.kz-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.kz-faq-a div { padding-bottom: 22px; color: var(--ink-soft); max-width: 62ch; }
.kz-faq-item.open .kz-faq-q .pm { transform: rotate(45deg); }

/* freeform (code editor) */
.kz-rich > * + * { margin-top: 1em; }

/* --- CTA band ------------------------------------------------------ */
.cta-band { background: linear-gradient(160deg, var(--deeper), var(--abyss)); color: var(--surface); border-radius: var(--radius-lg); padding: clamp(40px,6vw,72px); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(232,145,90,0.35), transparent 70%); }
.cta-band .eyebrow { color: var(--amber-bright); }

/* --- dive hero (split: copy + quick-book form) --------------------- */
.kz-hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--surface) 0%, var(--shallow) 58%, var(--mid) 100%); overflow: hidden; }
.kz-hero .hero-sun { position: absolute; top: -18%; left: 50%; transform: translateX(-50%); width: 120vw; height: 70vh; background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(255,255,255,0.9), transparent 70%); pointer-events: none; }
.kz-hero .rays { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; background: linear-gradient(96deg, transparent 38%, rgba(255,255,255,0.35) 39% 40%, transparent 41%), linear-gradient(88deg, transparent 54%, rgba(255,255,255,0.3) 55% 56%, transparent 57%), linear-gradient(100deg, transparent 68%, rgba(255,255,255,0.28) 69% 70%, transparent 71%); mix-blend-mode: screen; }
.kz-hero .hero-inner { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; width: 100%; max-width: var(--maxw); margin-inline: auto; padding: 40px var(--gutter) 64px; }
.kz-hero h1 { font-size: clamp(48px, 8.2vw, 116px); }
.kz-hero h1 .it { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.kz-hero .hero-lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); max-width: 46ch; margin-top: 24px; }
.kz-hero .hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
/* photo / video background */
.kz-hero.has-media { background-size: cover; background-position: center; }
.kz-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.kz-hero.has-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,34,47,0.42), rgba(7,34,47,0.66)); z-index: 1; }
.kz-hero.has-media .hero-inner { position: relative; z-index: 2; }
.kz-hero.has-media h1, .kz-hero.has-media .hero-lead { color: var(--surface); }
.kz-hero.has-media .eyebrow { color: var(--shallow) !important; }
.quickbook { background: color-mix(in oklab, var(--paper) 90%, transparent); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.6); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px; }
.quickbook h3 { font-size: 21px; }
.qb-field { display: grid; gap: 6px; margin-top: 16px; }
.qb-field label, .qb-field .qb-label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.qb-field select, .qb-field input { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); width: 100%; min-width: 0; max-width: 100%; }
.qb-field select:focus, .qb-field input:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.qb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 900px) { .kz-hero .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 48px; } .quickbook { max-width: 460px; } }

/* --- slider / hero ------------------------------------------------- */
.kz-slider { position: relative; }
.kz-slide {
  position: relative; min-height: clamp(420px, 70vh, 720px);
  display: none; align-items: center;
  background-size: cover; background-position: center;
}
.kz-slide.active { display: flex; }
.kz-slider.single .kz-slide { display: flex; }
.kz-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,34,47,0.25), rgba(7,34,47,0.6)); }
.kz-slide .kz-slide-inner { position: relative; z-index: 2; color: var(--surface); max-width: 640px; }
.kz-slide .eyebrow { color: var(--shallow); }
.kz-slide h1 { font-size: clamp(40px, 6.5vw, 92px); color: var(--surface); margin: 14px 0 16px; }
.kz-slide p { font-size: clamp(16px, 1.6vw, 20px); opacity: 0.9; max-width: 48ch; }
.kz-slide .btn { margin-top: 26px; }
.kz-slide-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.kz-slide-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.45); padding: 0; }
.kz-slide-dots button.active { background: var(--amber); }

/* --- testimonials -------------------------------------------------- */
.kz-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.kz-testi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.kz-testi .stars { color: var(--amber); letter-spacing: 2px; font-size: 14px; }
.kz-testi .quote { font-family: var(--font-serif); font-size: 17px; line-height: 1.5; flex: 1; }
.kz-testi .who { display: flex; align-items: center; gap: 12px; }
.kz-testi .who img, .kz-testi .who .av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: linear-gradient(180deg, var(--mid), var(--deeper)); }
.kz-testi .who h5 { font-size: 15px; }
.kz-testi .who span { font-size: 13px; color: var(--ink-soft); }

/* --- offers -------------------------------------------------------- */
.kz-offer { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; background-size: cover; background-position: center; }
.kz-offer::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(7,34,47,0.78)); }
.kz-offer .kz-offer-body { position: relative; z-index: 2; padding: 22px; color: var(--surface); }
.kz-offer .kz-offer-body span { font-size: 13px; letter-spacing: 0.04em; opacity: 0.9; }
.kz-offer .kz-offer-body h3 { font-size: 26px; margin: 4px 0 10px; color: var(--surface); }
.kz-offer .kz-offer-body a { color: var(--amber-bright); font-weight: 600; }

/* --- contact block ------------------------------------------------- */
.kz-contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px,4vw,56px); align-items: start; }
.kz-contact .info-line { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.kz-contact .info-line:first-child { border-top: 0; }
.kz-contact .info-line .ic { font-size: 18px; color: var(--amber-deep); }
.kz-contact form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: clamp(24px,3vw,36px); }
.kz-contact .fld { display: grid; gap: 7px; margin-bottom: 16px; }
.kz-contact .fld label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.kz-contact .fld input, .kz-contact .fld textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); width: 100%; }
.kz-contact .fld input:focus, .kz-contact .fld textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.kz-contact .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* --- vertical tabs ------------------------------------------------- */
.kz-tabs-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px,4vw,48px); margin-top: 36px; align-items: start; }
.kz-tab-btn { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); margin-bottom: 12px; font-family: var(--font-display); font-weight: 700; font-size: 18px; transition: background .15s, border-color .15s; }
.kz-tab-btn.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.kz-tab-btn img { width: 40px; height: 40px; object-fit: contain; }
.kz-tab-pane { display: none; }
.kz-tab-pane.active { display: block; }
.kz-tab-pane .lbl { color: var(--amber-deep); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; }
.kz-tab-pane h3 { font-size: clamp(24px,3vw,36px); margin: 8px 0 12px; }
.kz-tab-pane ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.kz-tab-pane ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.kz-tab-pane ul li::before { content: "•"; color: var(--amber-deep); }

/* --- booking form block -------------------------------------------- */
.kz-book-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px,4vw,56px); align-items: start; }
.kz-book .form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: clamp(24px,3vw,40px); }
.kz-book .field { display: grid; gap: 7px; margin-bottom: 18px; }
.kz-book .field label, .kz-book .field .field-label { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.kz-book .field input, .kz-book .field select, .kz-book .field textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); width: 100%; min-width: 0; max-width: 100%; }
.kz-book .field input:focus, .kz-book .field select:focus, .kz-book .field textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.kz-book .field.invalid input, .kz-book .field.invalid select { border-color: #c0392b; }
.kz-book .field .err { color: #c0392b; font-size: 12.5px; }
.kz-book .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kz-book fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.kz-book fieldset legend { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 9px; }
.kz-book .level-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.kz-book .level-opts label { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; cursor: pointer; }
.kz-book .level-opts input { accent-color: var(--amber-deep); }
.kz-book .level-opts label:has(input:checked) { background: color-mix(in oklab, var(--amber) 18%, var(--paper)); border-color: var(--amber); }
.kz-book .confirm { text-align: center; padding: 20px 0; }
.kz-book .confirm .tick { width: 74px; height: 74px; border-radius: 50%; background: color-mix(in oklab, var(--amber) 26%, var(--paper)); display: grid; place-items: center; margin: 0 auto 20px; font-size: 34px; color: var(--amber-deep); }
.kz-book .summary { text-align: left; background: var(--sand); border-radius: var(--radius-lg); padding: 22px; margin: 24px auto 0; max-width: 420px; }
.kz-book .summary dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.kz-book .summary dt { color: var(--ink-soft); font-size: 14px; }
.kz-book .summary dd { margin: 0; font-weight: 600; text-align: right; }
.kz-book .info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 18px; }
.kz-book .info-card h3 { font-size: 18px; margin-bottom: 14px; }
.kz-book .info-line { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.kz-book .info-line:first-of-type { border-top: 0; }
.kz-book .map, .kz-book .map iframe { aspect-ratio: 4/3; width: 100%; border-radius: var(--radius-lg); border: 0; display: block; }
@media (max-width: 900px) { .kz-book-grid { grid-template-columns: 1fr; } .kz-book .row2 { grid-template-columns: 1fr; } }

/* --- blog cards ---------------------------------------------------- */
.kz-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.kz-blog-card .ph, .kz-blog-card img { aspect-ratio: 16/10; width: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.kz-blog-card .meta { font-size: 13px; color: var(--ink-soft); margin: 12px 0 6px; }
.kz-blog-card h3 { font-size: 19px; }

@media (max-width: 900px) {
  .kz-testi-grid, .kz-blog-grid { grid-template-columns: 1fr 1fr; }
  .kz-contact-grid, .kz-tabs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .kz-testi-grid, .kz-blog-grid { grid-template-columns: 1fr; }
  .kz-contact .row2 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .kz-grid, .kz-grid.cols-4, .kz-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .kz-stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  .kz-mason { columns: 2; }
}
@media (max-width: 560px) {
  .kz-grid, .kz-grid.cols-4, .kz-grid.cols-2 { grid-template-columns: 1fr; }
  .kz-mason { columns: 1; }
}

/* =========================================================================
   DATE PICKER
   Replaces <input type="date"> so days an experience doesn't run on can be
   shown in red and made unclickable — the native calendar allows neither.
   See public/kamazu/js/datepicker.js + partials/datepicker.blade.php.
   ========================================================================= */
:root {
  --dp-closed:    #c0392b;
  --dp-closed-bg: rgba(192,57,43,0.09);
}

.kz-dp { position: relative; }

.kz-dp-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font: inherit; text-align: left; color: var(--ink-soft);
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); cursor: pointer; transition: border-color .15s;
}
.kz-dp.has-value .kz-dp-trigger { color: var(--ink); }
.kz-dp-trigger:hover { border-color: var(--mid); }
.kz-dp-trigger:focus-visible,
.kz-dp.is-open .kz-dp-trigger { outline: 2px solid var(--amber); outline-offset: 1px; }
.kz-dp-ico { flex: none; display: grid; place-items: center; color: var(--ink-soft); }

/* --- popover --- */
.kz-dp-pop {
  position: absolute; z-index: 80; top: calc(100% + 8px); left: 0;
  width: max(280px, 100%); max-width: min(340px, calc(100vw - 32px));
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: 0 18px 44px -14px rgba(7,34,47,0.34);
  padding: 14px;
}
/* Near the right edge (e.g. the sticky bookcard) flip the anchor. */
@media (max-width: 480px) { .kz-dp-pop { left: 50%; transform: translateX(-50%); } }

.kz-dp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.kz-dp-title { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; }
.kz-dp-nav {
  width: 30px; height: 30px; flex: none; border: 1px solid var(--line); border-radius: 50%;
  background: none; color: var(--ink); font-size: 17px; line-height: 1;
  display: grid; place-items: center; transition: background .15s;
}
.kz-dp-nav:hover:not(:disabled) { background: var(--sand); }
.kz-dp-nav:disabled { opacity: .3; cursor: not-allowed; }

.kz-dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.kz-dp-dow {
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); text-align: center; padding-bottom: 6px;
}
.kz-dp-pad { aspect-ratio: 1; }

.kz-dp-day {
  aspect-ratio: 1; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: none; color: var(--ink);
  font: inherit; font-size: 14px; font-variant-numeric: tabular-nums;
  cursor: pointer; transition: background .12s, color .12s;
}
.kz-dp-day:hover:not(:disabled) { background: var(--sand-deep); }
.kz-dp-day:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.kz-dp-day.is-today { box-shadow: inset 0 0 0 1px var(--mid); font-weight: 700; }
.kz-dp-day.is-selected,
.kz-dp-day.is-selected:hover { background: var(--amber); color: #fff; font-weight: 700; box-shadow: none; }

/* Closed weekdays: red, struck through, and genuinely unclickable
   (the element is <button disabled>, so pointer and keyboard both skip it). */
.kz-dp-day.is-closed {
  color: var(--dp-closed); background: var(--dp-closed-bg);
  text-decoration: line-through; cursor: not-allowed;
}
.kz-dp-day.is-past { color: var(--ink-soft); opacity: .32; cursor: not-allowed; }
.kz-dp-day:disabled { pointer-events: none; }

.kz-dp-legend {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-soft);
}
.kz-dp-swatch {
  width: 12px; height: 12px; flex: none; border-radius: 3px;
  background: var(--dp-closed-bg); box-shadow: inset 0 0 0 1px var(--dp-closed);
}

@media (prefers-reduced-motion: reduce) {
  .kz-dp-trigger, .kz-dp-day, .kz-dp-nav { transition: none; }
}

/* Empty-but-required state, set by the booking forms on submit. */
.kz-dp.is-invalid .kz-dp-trigger { border-color: var(--dp-closed); }

/* Keep the trigger to one line: in narrow columns (the hero quick-book puts
   Date beside Guests) a wrapped "Choose a date" made the field two rows tall
   and out of step with the select next to it. */
.kz-dp-trigger { min-width: 0; }
.kz-dp-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Match the hero quick-book's own inputs so the two fields line up exactly. */
.qb-field .kz-dp-trigger { padding: 12px 14px; font-size: 15px; }

/* Nothing in the booking UI may exceed its column: Safari's intrinsic <select>
   width is the usual culprit behind a page that scrolls sideways on a phone. */
.bc-field > *, .qb-field > *, .kz-book .field > * { max-width: 100%; min-width: 0; }
