/* ═══════════════════════════════════════════════════════════════════
   SALT — components v1.0 · uses tokens.css only. No colour literals.
   Sections:  1 base · 2 type · 3 layout · 4 buttons · 5 links
              6 chips & badges · 7 cards · 8 images & rollovers
              9 surfaces & wave dividers · 10 forms · 11 header
              12 hero · 13 video footer · 14 motion & a11y
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. BASE ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-copy);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
::selection { background: var(--color-primary-light); color: var(--color-heading); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── 2. TYPOGRAPHY ───────────────────────────────────────────────── */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-optical-sizing: auto;
  color: var(--color-heading);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  margin: 0 0 var(--space-6);
  text-wrap: balance;
}
.display { font-size: var(--text-hero); line-height: 1.02; }
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); line-height: var(--leading-snug); }
h4 { font-size: var(--text-xl);  line-height: var(--leading-snug); font-weight: var(--weight-display-strong); }
h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  color: var(--color-heading);
  margin: 0 0 var(--space-3);
  line-height: var(--leading-snug);
}
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

/* Emphasis inside a display heading: same light serif, italic, same
   colour. Max one phrase per heading. Never a different colour.       */
:is(h1, h2, h3, .display) em { font-style: italic; font-weight: var(--weight-display); }

p { margin: 0 0 var(--space-5); max-width: var(--measure); text-wrap: pretty; }
strong, b { font-weight: var(--weight-bold); color: var(--color-heading); }
.lead {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-copy);
  max-width: 56ch;
}
small, .small { font-size: var(--text-sm); color: var(--color-copy-muted); }
.caption { font-size: var(--text-xs); color: var(--color-copy-muted); letter-spacing: 0.01em; }

/* The signature: a handwritten eyebrow, like a note on a postcard.
   RULE: one per section opener, never on every heading.               */
.eyebrow {
  display: inline-block;
  font-family: var(--font-script);
  font-size: var(--text-script);
  font-weight: 500;
  line-height: 1;
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
  transform: rotate(-2deg);
  transform-origin: left center;
}
.eyebrow--on-dark { color: var(--color-on-dark-muted); }

/* The quiet label: small caps for meta, card locations, form labels. */
.overline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--color-copy-muted);
  margin: 0 0 var(--space-3);
}
.overline--rule::before {           /* Trek's line + label */
  content: "";
  width: 2.5rem; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

blockquote, .quote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-style: italic;
  font-size: var(--text-2xl);
  line-height: 1.35;
  color: var(--color-heading);
  max-width: 30ch;
}

ul.ticks { list-style: none; padding: 0; margin: 0 0 var(--space-6); }
ul.ticks li {
  position: relative;
  padding-left: var(--space-8);
  margin-bottom: var(--space-3);
}
ul.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 1.1rem; height: 0.55rem;
  border: solid var(--color-primary);
  border-width: 0 0 1.5px 1.5px;
  transform: rotate(-45deg) translateY(-30%);
}
ul.ticks.crosses li::before, ul.ticks.crosses li::after {
  content: ""; position: absolute; left: 0.15rem; top: 0.85em;
  width: 0.9rem; height: 1.5px; border: 0;
  background: var(--color-copy-faint);
  transform: rotate(45deg);
}
ul.ticks.crosses li::after { transform: rotate(-45deg); }

/* ── 3. LAYOUT ───────────────────────────────────────────────────── */
.shell        { width: var(--shell); margin-inline: auto; }
.shell-narrow { width: var(--shell-narrow); margin-inline: auto; }
.section      { padding-block: var(--section-y); }
.section--sm  { padding-block: var(--section-y-sm); }
.stack > * + * { margin-top: var(--space-6); }
.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}
.center { text-align: center; }
.center p, .center .lead { margin-inline: auto; }

/* ── 4. BUTTONS ──────────────────────────────────────────────────────
   One primary per view. Pill shape, quiet weight, a soft sea shadow.
   The "thunk": colour shifts in 140ms, presses 1px — nothing bounces. */
.btn {
  --btn-bg: var(--color-primary);
  --btn-fg: var(--color-on-dark);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 3.25rem;
  padding: 0 var(--space-8);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform var(--dur-base) var(--ease); }
.btn:hover { --btn-bg: var(--color-primary-dark); box-shadow: var(--shadow-md); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); box-shadow: var(--shadow-xs); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-glow), var(--shadow-button); }
.btn[disabled], .btn.is-disabled {
  --btn-bg: var(--color-surface-raised);
  --btn-fg: var(--color-copy-faint);
  box-shadow: none; cursor: not-allowed; pointer-events: none;
}

/* Secondary: outline in sea teal — quieter, never competes */
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--color-primary);
  --btn-bd: var(--color-primary-light);
  box-shadow: none;
}
.btn--outline:hover { --btn-bg: var(--color-primary-wash); --btn-bd: var(--color-primary); box-shadow: none; }

/* Soft: white pill floating on mist or photos */
.btn--soft {
  --btn-bg: var(--color-surface);
  --btn-fg: var(--color-heading);
  --btn-bd: var(--color-border-soft);
  box-shadow: var(--shadow-sm);
}
.btn--soft:hover { --btn-bg: var(--color-surface); --btn-fg: var(--color-primary); box-shadow: var(--shadow-md); }

/* On dark / on video: white solid + white ghost */
.btn--light { --btn-bg: var(--color-on-dark); --btn-fg: var(--color-heading); }
.btn--light:hover { --btn-bg: var(--color-primary-wash); --btn-fg: var(--color-heading); }
.btn--ghost-light {
  --btn-bg: transparent; --btn-fg: var(--color-on-dark); --btn-bd: var(--color-on-dark-border);
  box-shadow: none; backdrop-filter: blur(6px);
}
.btn--ghost-light:hover { --btn-bg: hsl(var(--brand-h) 40% 99% / 0.12); --btn-fg: var(--color-on-dark); }

.btn--sm { min-height: 2.5rem; padding: 0 var(--space-5); font-size: var(--text-xs); }
.btn--lg { min-height: 3.75rem; padding: 0 var(--space-10); font-size: var(--text-base); }
.btn--block { width: 100%; }

.btn-icon {
  display: inline-grid; place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-heading);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all var(--dur-base) var(--ease);
}
.btn-icon svg { width: 1.15rem; height: 1.15rem; }
.btn-icon:hover { color: var(--color-primary); border-color: var(--color-primary-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-icon:focus-visible { outline: none; box-shadow: var(--shadow-glow); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }

/* ── 5. LINKS ────────────────────────────────────────────────────── */
a { color: var(--color-primary); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--color-primary-dark); }

/* The tide link: underline washes in from the left, coral like the sun */
.link-tide {
  position: relative;
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--color-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  text-decoration: none;
  padding-bottom: 4px;
}
.link-tide::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--color-secondary);
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-tide);
}
.link-tide:hover { color: var(--color-heading); }
.link-tide:hover::after { transform: scaleX(1); }
.link-tide svg { width: 1em; height: 1em; transition: transform var(--dur-base) var(--ease); }
.link-tide:hover svg { transform: translateX(4px); }

/* ── 6. CHIPS, BADGES, RATINGS ───────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-surface-mist);
  color: var(--color-copy);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  line-height: 1.6;
}
.chip svg { width: 0.95rem; height: 0.95rem; color: var(--color-primary); }
.chip--sand { background: var(--color-surface-sand); }
.chip--line { background: transparent; border: 1px solid var(--color-border); }

.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-secondary-wash);
  color: var(--color-secondary-dark);
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.badge--glass {
  background: hsl(var(--brand-h) 40% 99% / 0.82);
  color: var(--color-heading);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.badge .dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--color-secondary); }

.rating { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-copy-muted); }
.rating .stars { display: inline-flex; gap: 2px; color: var(--color-rating); }
.rating svg { width: 0.95rem; height: 0.95rem; }

/* ── 7. CARDS ────────────────────────────────────────────────────────
   White on salt, hairline border, sea-tinted shadow that deepens on
   hover while the card rises 6px and the photo drifts in slowly.     */
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}
.card--link:hover, .card--link:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-drift) var(--ease-tide); }
.card--link:hover .card__media img { transform: scale(1.06); }
.card__media .badge { position: absolute; top: var(--space-4); left: var(--space-4); }
.card__fav { position: absolute; top: var(--space-3); right: var(--space-3); }
.card__body { padding: var(--space-6) var(--space-6) var(--space-8); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.card__body h3 { font-size: var(--text-xl); margin: 0; }
.card__body p { margin: 0; font-size: var(--text-sm); color: var(--color-copy-muted); }
.card__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-1); }
.card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  margin-top: auto; padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-soft);
}
.card__link::after { content: ""; position: absolute; inset: 0; }   /* whole card clickable */
.card__link { text-decoration: none; color: inherit; }
.card__link:focus-visible { outline: none; }

/* Price card (the membership packages) */
.card--price { padding: var(--space-10) var(--space-8); gap: var(--space-4); text-align: left; }
.card--price .price {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--text-4xl);
  color: var(--color-heading);
  line-height: 1;
  letter-spacing: -0.03em;
}
.card--price .price small { font-family: var(--font-body); font-size: var(--text-sm); letter-spacing: 0; color: var(--color-copy-muted); }
.card--featured { border-color: var(--color-primary-light); box-shadow: var(--shadow-lg); }
.card--featured::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--color-primary-mid), var(--color-secondary));
}

/* Feature card: icon in a soft sea-glass circle, no border */
.card--feature { background: transparent; border: 0; box-shadow: none; padding: 0; gap: var(--space-3); overflow: visible; }
.icon-glass {
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, var(--color-surface), var(--color-surface-mist) 70%);
  border: 1px solid var(--color-border-soft);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.icon-glass svg { width: 1.5rem; height: 1.5rem; }

/* Postcard: testimonial on sand, slight tilt, stamp corner */
.card--postcard {
  background: var(--color-surface);
  padding: var(--space-10);
  gap: var(--space-6);
  box-shadow: var(--shadow-md);
  transform: rotate(-0.6deg);
}
.card--postcard:nth-child(even) { transform: rotate(0.6deg); }
.card--postcard .quote { font-size: var(--text-xl); max-width: none; }
.card--postcard .who { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); }
.card--postcard .who b { display: block; }

/* Stat */
.stat .num {
  font-family: var(--font-display); font-weight: var(--weight-display);
  font-size: var(--text-4xl); color: var(--color-heading); line-height: 1; letter-spacing: -0.03em;
}
.stat .label { font-size: var(--text-sm); color: var(--color-copy-muted); margin-top: var(--space-2); }

/* ── 8. IMAGES & ROLLOVERS ─────────────────────────────────────────── */
.img { position: relative; overflow: hidden; border-radius: var(--radius); }
.img img { width: 100%; height: 100%; object-fit: cover; }

/* a) Drift — the default rollover: slow swell-like zoom */
.img--drift img { transition: transform var(--dur-drift) var(--ease-tide), filter var(--dur-drift) var(--ease-tide); }
.img--drift:hover img { transform: scale(1.07); filter: saturate(1.08) brightness(1.03); }

/* b) Fade to salt (Trek) — photo dissolves into the page, no hard edge */
.img--fade { border-radius: 0; }
.img--fade img {
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}

/* c) Framed (Trek) — offset sea-mist plate behind, lifts apart on hover */
.img--framed { overflow: visible; isolation: isolate; }
.img--framed::before {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius);
  background: var(--color-surface-mist);
  border: 1px solid var(--color-primary-light);
  transform: translate(18px, 18px);
  z-index: -1;
  transition: transform var(--dur-base) var(--ease-tide);
}
.img--framed img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.img--framed:hover::before { transform: translate(26px, 26px); }

/* d) Polaroid — white salt border, a holiday snapshot */
.img--polaroid {
  background: var(--color-surface);
  padding: var(--space-3) var(--space-3) var(--space-12);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  overflow: visible;
  transform: rotate(-2.5deg);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.img--polaroid.tilt-r { transform: rotate(2deg); }
.img--polaroid img { border-radius: 4px; aspect-ratio: 1; }
.img--polaroid figcaption {
  position: absolute; left: 0; right: 0; bottom: var(--space-3);
  text-align: center; font-family: var(--font-script); font-size: var(--text-script); color: var(--color-copy);
}
.img--polaroid:hover { transform: rotate(0) translateY(-6px); box-shadow: var(--shadow-xl); }

/* e) Cabana arch — rounded top like a beach doorway */
.img--arch { border-radius: var(--radius-arch); }

/* f) Wave edge — photo ends in a gentle wave instead of a straight line */
.img--wave img {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1200v540c-120 30-230 52-360 34S600 520 470 530 220 590 0 556z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1200v540c-120 30-230 52-360 34S600 520 470 530 220 590 0 556z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* g) Caption reveal — label slides up over a soft sea gradient */
.img--reveal figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: var(--space-12) var(--space-6) var(--space-5);
  background: linear-gradient(to top, hsl(var(--ink-h) 60% 12% / 0.62), transparent);
  color: var(--color-on-dark);
  transform: translateY(35%);
  opacity: 0.0;
  transition: transform var(--dur-base) var(--ease-tide), opacity var(--dur-base) var(--ease);
}
.img--reveal figcaption .overline { color: var(--color-on-dark-muted); margin: 0; }
.img--reveal figcaption b { display: block; font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-xl); color: var(--color-on-dark); }
.img--reveal:hover figcaption, .img--reveal:focus-within figcaption { transform: none; opacity: 1; }

/* h) Sun glint — a light sweep across the photo on hover */
.img--glint::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, hsl(var(--sand-h) 80% 98% / 0.45) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.img--glint:hover::after { transform: translateX(120%); transition: transform 1100ms var(--ease-tide); }

/* Image shadows: pick one per context */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Overlapping pair (Trek's layered photos) */
.img-stack { position: relative; padding: 0 12% 18% 0; }
.img-stack .img:first-child { aspect-ratio: 4 / 5; }
.img-stack .img:last-child {
  position: absolute; right: 0; bottom: 0; width: 52%;
  aspect-ratio: 1; border: 8px solid var(--color-surface); box-shadow: var(--shadow-xl);
}

/* ── 9. SURFACES & WAVE DIVIDERS ───────────────────────────────────── */
.surface-salt { background: var(--color-background); }
.surface-white { background: var(--color-surface); }
.surface-mist { background: var(--color-surface-mist); }
.surface-sand { background: var(--color-surface-sand); }
.surface-sky  { background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom)); }

.wave-divider { display: block; width: 100%; height: clamp(40px, 6vw, 90px); color: var(--color-surface-mist); }
.wave-divider path { fill: currentColor; }
.wave-divider--sand { color: var(--color-surface-sand); }
.wave-divider--flip { transform: scaleY(-1); }

/* Fine sand grain on sand surfaces — texture you feel, not see */
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.35; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── 10. FORMS (house pattern: label inside the field) ───────────── */
.field { position: relative; }
.input, .select, .textarea {
  width: 100%;
  min-height: 3.4rem;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-heading);
  font: inherit;
  font-size: var(--text-base);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.textarea { min-height: 8rem; resize: vertical; }
.input::placeholder, .textarea::placeholder {
  color: var(--color-copy-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}
.input:hover, .textarea:hover, .select:hover { border-color: var(--color-primary-light); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--color-primary); box-shadow: var(--shadow-glow); }
.form-row { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); color: var(--color-copy-muted); }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--color-primary); }
.form-error { color: var(--color-error); font-size: var(--text-sm); }

/* Search pill (date + guests) — the booking bar */
.booking-bar {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; align-items: center;
  gap: 0; padding: var(--space-2);
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-soft);
}
.booking-bar .seg { padding: var(--space-2) var(--space-6); border-right: 1px solid var(--color-border-soft); }
.booking-bar .seg:nth-last-child(2) { border-right: 0; }
.booking-bar .seg span { display: block; font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--color-copy-muted); font-weight: var(--weight-bold); }
.booking-bar .seg b { white-space: nowrap; font-weight: var(--weight-medium); font-size: var(--text-sm); }
@media (max-width: 720px) {
  .booking-bar { grid-template-columns: 1fr; border-radius: var(--radius); }
  .booking-bar .seg { border-right: 0; border-bottom: 1px solid var(--color-border-soft); padding: var(--space-3) var(--space-4); }
  .booking-bar .btn { margin-top: var(--space-2); }
}

/* ── 11. HEADER — Makai's thin-line frame, transparent over the sky ─ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.site-header.is-scrolled {
  background: hsl(var(--brand-h) 30% 99% / 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--color-border-soft);
}
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: var(--space-6); min-height: 5.25rem;
}
.nav__logo img { height: 2.75rem; width: auto; }
.nav__menu { display: flex; gap: var(--space-8); list-style: none; margin: 0; padding: 0; }
.nav__menu a {
  position: relative;
  color: var(--color-heading); text-decoration: none;
  font-size: var(--text-sm); font-weight: var(--weight-medium); letter-spacing: 0.02em;
}
.nav__menu a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -6px; height: 1.5px;
  background: var(--color-secondary);
  transition: left var(--dur-base) var(--ease-tide), right var(--dur-base) var(--ease-tide);
}
.nav__menu a:hover::after, .nav__menu a[aria-current]::after { left: 0; right: 0; }
.nav__end { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-3); }
.phone-pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 3.25rem; padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-heading); text-decoration: none;
  font-size: var(--text-sm); font-weight: var(--weight-bold);
}
.phone-pill { white-space: nowrap; }
.phone-pill svg { width: 1rem; height: 1rem; color: var(--color-secondary); }
.phone-pill:hover { border-color: var(--color-primary-light); color: var(--color-heading); }
@media (max-width: 960px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__menu { display: none; }
}
/* Phones: logo on top, phone pill + main button share the second row,
   same height and width (house header rule). */
@media (max-width: 640px) {
  .nav { grid-template-columns: 1fr; gap: var(--space-3); padding-block: var(--space-3); min-height: 0; }
  .nav__logo img { height: 2.25rem; }
  .nav__end { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
  .nav__end > * { min-height: 2.9rem; padding-inline: var(--space-3); font-size: var(--text-xs); justify-content: center; }
}

/* ── 12. HERO — light sky, video below, photo fades into salt ─────── */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: grid; align-items: start;
  overflow: hidden;
  background: var(--sky-top);
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}
.hero::after {   /* sky veil so navy text reads on the upper third */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, hsl(var(--brand-h) 50% 97% / 0.62) 0%, hsl(var(--brand-h) 50% 97% / 0.5) 46%, transparent 66%, transparent 80%, var(--color-background) 100%);
}
.hero__content { position: relative; z-index: 1; padding-top: clamp(7rem, 16vh, 11rem); text-align: center; }
.hero__content .lead { margin-inline: auto; color: var(--color-heading); text-shadow: 0 0 22px hsl(var(--brand-h) 50% 97% / 0.95), 0 0 8px hsl(var(--brand-h) 50% 97% / 0.8); }

/* ── 13. FOOTER — the rolling waves, deep sea veil ─────────────────── */
.site-footer {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--color-on-dark-muted);
  padding: calc(var(--space-32) + var(--space-8)) 0 var(--space-10);
}
.site-footer__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
              var(--color-background) 0%,
              hsl(var(--ink-h) 55% 14% / 0.30) 9%,
              hsl(var(--ink-h) 60% 12% / 0.66) 26%,
              hsl(var(--ink-h) 65% 9% / 0.92) 100%);
}
.site-footer h2, .site-footer h3, .site-footer h4 { color: var(--color-on-dark); }
.site-footer a:not(.btn) { color: var(--color-on-dark-muted); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--color-on-dark); }
.footer-grid { display: grid; gap: var(--space-10); grid-template-columns: 2fr repeat(3, 1fr); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); font-size: var(--text-sm); }
.footer-grid h6 { color: var(--color-on-dark); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); margin-bottom: var(--space-5); }
.footer-base {
  margin-top: var(--space-16); padding-top: var(--space-6);
  border-top: 1px solid var(--color-on-dark-border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4);
  font-size: var(--text-xs); color: var(--color-on-dark-faint);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── 14. MOTION & ACCESSIBILITY ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease-tide), transform var(--dur-slow) var(--ease-tide); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 90ms; } .reveal-d2 { transition-delay: 180ms; } .reveal-d3 { transition-delay: 270ms; }

:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__video, .site-footer__video { display: none; }
  .hero { background: var(--sky-top) url("../media/waves-poster.jpg") center / cover; }
}
