/* ==========================================================================
   KNYSNA ACCOMMODATIONS × HAMMOND PROPERTY SOLUTIONS — Design System
   Palette: lagoon green / cream / sand / brass
   Type: Fraunces (display) + Jost (body)
   ========================================================================== */

:root {
  /* Brand palette */
  --lagoon-950: #081d1a;
  --lagoon-900: #0d2b26;
  --lagoon-800: #123830;
  --lagoon-700: #1b4a3f;
  --lagoon-500: #2e6b58;
  --sea-400: #4f8f7c;
  --cream: #f4eee2;
  --cream-soft: #efe7d6;
  --sand: #e3d5ba;
  --brass: #c19a5b;
  --brass-bright: #d8b478;
  --ink: #141a17;
  --white: #fdfbf6;

  /* Depth parallax factors (epic-design 6-level system) */
  --depth-0-factor: 0.10;
  --depth-1-factor: 0.25;
  --depth-2-factor: 0.50;
  --depth-3-factor: 0.80;
  --depth-4-factor: 1.00;
  --depth-5-factor: 1.20;
  --scroll-y: 0;

  /* Type scale */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;
  --text-hero: clamp(2.6rem, 7.5vw, 6.2rem);
  --text-h2: clamp(2rem, 4.5vw, 3.6rem);
  --text-h3: clamp(1.3rem, 2.2vw, 1.75rem);
  --text-body: clamp(1rem, 1.15vw, 1.125rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 18px 50px rgba(8, 29, 26, 0.16);
  --shadow-card-hover: 0 28px 70px rgba(8, 29, 26, 0.26);
  --radius: 18px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
  color: var(--lagoon-900);
}

p { max-width: 62ch; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

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

::selection { background: var(--brass); color: var(--lagoon-950); }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  background: var(--lagoon-900);
  color: var(--cream);
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 0; }

[id] { scroll-margin-top: 6rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.nav.is-scrolled {
  background: rgba(18, 18, 18, 0.92); /* matt black */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  padding-block: 0.7rem;
}

.nav-logo {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 0.7rem;
  line-height: 1.1;
  color: var(--cream);
}
.nav-logo-mark {
  grid-row: 1 / span 2;
  height: 52px;
  width: auto;
  flex-shrink: 0;
}
.nav-logo strong {
  grid-column: 2;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-logo span {
  grid-column: 2;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass-bright);
}
@media (max-width: 560px) {
  .nav-logo-mark { height: 42px; }
  .nav-logo strong { font-size: 1.05rem; }
}

/* Footer brand mark */
.footer-logo-mark { height: 72px; width: auto; display: block; margin-bottom: 1rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.8rem);
  list-style: none;
}
.nav-links a {
  color: var(--cream);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.15rem;
  position: relative;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--brass-bright);
  transition: right 0.35s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brass-bright); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }

.nav-book {
  border: 1px solid var(--brass);
  border-radius: 999px;
  padding: 0.55rem 1.4rem !important;
  color: var(--brass-bright);
}
.nav-book::after { display: none; }
.nav-book:hover { background: var(--brass); color: var(--lagoon-950) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px; height: 44px;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(18, 18, 18, 0.97); /* matt black */
    backdrop-filter: blur(20px);
    transform: translateY(-100%);
    transition: transform 0.45s var(--ease-out);
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a { font-size: 1.15rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-solid {
  background: var(--brass);
  color: var(--lagoon-950);
  box-shadow: 0 10px 30px rgba(193, 154, 91, 0.35);
}
.btn-solid:hover { background: var(--brass-bright); box-shadow: 0 16px 40px rgba(193, 154, 91, 0.45); }

.btn-ghost {
  border-color: rgba(244, 238, 226, 0.5);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--cream); background: rgba(244, 238, 226, 0.1); }

.btn-dark {
  background: var(--lagoon-900);
  color: var(--cream);
}
.btn-dark:hover { background: var(--lagoon-700); }

.btn-outline-dark {
  border-color: var(--lagoon-900);
  color: var(--lagoon-900);
}
.btn-outline-dark:hover { background: var(--lagoon-900); color: var(--cream); }

/* ---------- Layout primitives ---------- */
.container { width: min(1200px, 92vw); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); position: relative; }
.section-dark { background: var(--lagoon-900); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-sand { background: var(--cream-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.2rem;
}
.section-dark .eyebrow { color: var(--brass-bright); }

.h2 { font-size: var(--text-h2); margin-bottom: 1.4rem; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); opacity: 0.85; }

.grid-2 { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: center; }
.grid-3 { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

/* ---------- Depth layer system ---------- */
.scene { position: relative; overflow: clip; }
.layer { position: absolute; inset: 0; pointer-events: none; }
.layer .can-click { pointer-events: auto; }

.depth-0 { z-index: 0; }
.depth-1 { z-index: 1; }
.depth-2 { z-index: 2; }
.depth-3 { z-index: 3; }
.depth-4 { z-index: 4; position: relative; pointer-events: auto; }
.depth-5 { z-index: 5; }

.parallax { will-change: transform; }

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  mix-blend-mode: screen;
  opacity: 0.5;
}

/* Floating loops — nothing at depth 2–5 sits perfectly still */
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes float-drift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  33%  { transform: translate(8px, -12px) rotate(1.5deg); }
  66%  { transform: translate(-6px, -6px) rotate(-1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes float-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
.float-slow { animation: float-y 12s ease-in-out infinite; }
.float-drift { animation: float-drift 9s ease-in-out infinite; }
.float-breathe { animation: float-breathe 14s ease-in-out infinite; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: #081d1a;
  color: var(--cream);
}
.hero-svg {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 100%;
}
.hero-svg svg { width: 100%; height: 100%; }

/* ---------- Video hero background ---------- */
.hero-media { overflow: hidden; }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  background: #081d1a;
}
/* Scrim keeps the headline legible over any frame + blends into the page below */
.hero-video-scrim {
  position: absolute;
  inset: 0;
  background:
    /* soft neutral darkening at the very top (nav legibility); the video stays clean below */
    linear-gradient(180deg,
      rgba(18,24,21,0.42) 0%,
      rgba(18,24,21,0.08) 18%,
      rgba(18,24,21,0) 45%,
      rgba(18,24,21,0) 100%),
    /* gentle neutral vignette to lift the headline off busy footage */
    radial-gradient(120% 72% at 50% 40%, transparent 46%, rgba(18,24,21,0.20) 100%);
}

.hero-content {
  text-align: center;
  padding: 8rem 1.5rem 10rem;
  max-width: 1000px;
  opacity: 1;
}
/* Whole hero typography block fades up slowly as one unit on load.
   `backwards` fill starts it hidden but releases control after, so GSAP
   still owns transform/opacity for the scroll-out. */
.js .hero-content {
  animation: heroRise 2s var(--ease-out) 0.2s backwards;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-title {
  font-size: var(--text-hero);
  color: var(--cream);
  font-weight: 480;
  letter-spacing: -0.015em;
  /* keep light text legible now the scrim is subtle */
  text-shadow: 0 2px 22px rgba(10,18,14,0.45);
}
.hero-title em {
  font-style: italic;
  color: var(--brass-bright);
}
.hero-sub {
  margin: 1.6rem auto 2.6rem;
  font-size: clamp(1.02rem, 1.5vw, 1.3rem);
  color: rgba(244, 238, 226, 0.82);
  max-width: 46ch;
  text-shadow: 0 1px 14px rgba(10,18,14,0.5);
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  color: rgba(244, 238, 226, 0.75);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-shadow: 0 1px 10px rgba(10,18,14,0.45);
}
.hero-scroll-cue::after {
  content: "";
  width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--brass-bright), transparent);
  animation: cue-drop 2.2s ease-in-out infinite;
}
@keyframes cue-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Split-converge text: lines slide in from left/right */
.split-line { display: block; overflow: hidden; }
.split-line > span { display: inline-block; will-change: transform; }

/* Word-lighting paragraphs (dimmed state only when JS is driving it) */
.js .light-words .w {
  color: rgba(20, 26, 23, 0.22);
  transition: color 0.35s ease;
}
.js .section-dark .light-words .w { color: rgba(244, 238, 226, 0.22); }
.js .light-words .w.lit { color: inherit; }

/* ---------- Reveal primitives (JS adds .in) ----------
   Hidden initial states only apply once JS has tagged <html class="js">,
   so content is never lost if scripts fail to load. */
.js .reveal { opacity: 0; transform: translateY(38px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .reveal-left { opacity: 0; transform: translateX(-46px); }
.js .reveal-left.in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .reveal-right { opacity: 0; transform: translateX(46px); }
.js .reveal-right.in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
[data-stagger] > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Property cards ---------- */
.stay-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.stay-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card-hover); }

.stay-media {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: rgba(244, 238, 226, 0.55);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
/* Photo slots. To use a real photo, set --media-bg to a url() on the .stay-media
   element. IMPORTANT: use a root-absolute path (leading slash), because url() in a
   CSS custom property resolves relative to THIS stylesheet, not the HTML file:
   style="--media-bg:url('/assets/media/properties/maritime-21.jpg')"
   The cover/center rules below make any photo fill the slot without distortion. */
.stay-media::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--media-bg, linear-gradient(140deg, #1b4a3f, #2e6b58 55%, #c19a5b 130%));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s var(--ease-out);
}
.stay-card:hover .stay-media::before { transform: scale(1.06); }
.stay-media > span { position: relative; z-index: 1; }
/* Add class "has-photo" alongside a real image to hide the placeholder caption */
.stay-media.has-photo > span, .gallery .ph.has-photo > span { display: none; }

.stay-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.stay-body h3 { font-size: var(--text-h3); }
.stay-loc { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); }
.stay-desc { font-size: 0.95rem; opacity: 0.78; flex: 1; }
.stay-meta { display: flex; gap: 1.1rem; font-size: 0.82rem; opacity: 0.7; font-variant-numeric: tabular-nums; }
.stay-link {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lagoon-700);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.stay-link::after { content: "→"; transition: transform 0.3s var(--ease-out); }
.stay-card:hover .stay-link::after { transform: translateX(5px); }
.stay-card > a.stretched::before { content: ""; position: absolute; inset: 0; z-index: 2; }

/* ---------- Pillar / service cards ---------- */
.pillar {
  background: rgba(244, 238, 226, 0.045);
  border: 1px solid rgba(244, 238, 226, 0.12);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease, background-color 0.4s ease;
}
.pillar:hover { transform: translateY(-6px); border-color: rgba(216, 180, 120, 0.5); background: rgba(244, 238, 226, 0.07); }
.pillar .num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--brass-bright);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 1.1rem;
}
.pillar h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.pillar p { font-size: 0.94rem; opacity: 0.8; }
.pillar ul { list-style: none; margin-top: 1rem; display: grid; gap: 0.45rem; }
.pillar li { font-size: 0.9rem; opacity: 0.85; padding-left: 1.3rem; position: relative; }
.pillar li::before { content: "—"; position: absolute; left: 0; color: var(--brass-bright); }

/* Light variant */
.pillar-light {
  background: var(--white);
  border-color: rgba(13, 43, 38, 0.08);
  box-shadow: var(--shadow-card);
}
.pillar-light:hover { border-color: var(--brass); background: var(--white); }
.pillar-light .num { color: var(--brass); }

/* ---------- Split panel (guests / owners) ---------- */
.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); min-height: 72vh; }
.audience-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  min-height: 420px;
  overflow: hidden;
  color: var(--cream);
}
.audience-panel::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--panel-bg);
  transition: transform 0.7s var(--ease-out);
}
.audience-panel:hover::before { transform: scale(1.05); }
/* Optional background video (the ::before gradient stays as a fallback beneath it) */
.audience-panel .panel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  transition: transform 0.7s var(--ease-out);
}
.audience-panel:hover .panel-video { transform: scale(1.05); }
.audience-panel::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 29, 26, 0.15) 0%, rgba(8, 29, 26, 0.55) 55%, rgba(8, 29, 26, 0.9) 100%);
}
.audience-panel > * { position: relative; z-index: 2; }
.audience-panel h3 { color: var(--cream); font-size: clamp(1.7rem, 3vw, 2.6rem); margin-bottom: 0.7rem; }
.audience-panel p { color: rgba(244, 238, 226, 0.85); margin-bottom: 1.6rem; max-width: 44ch; }

/* ---------- Timeline (owners journey) ---------- */
.timeline { display: grid; gap: 0; position: relative; margin-top: 3rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--brass), rgba(193, 154, 91, 0.15));
}
.tl-step { position: relative; padding: 0 0 2.6rem 3rem; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before {
  content: "";
  position: absolute;
  left: 4px; top: 6px;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid var(--brass);
  background: var(--cream);
}
.tl-step h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.tl-step p { font-size: 0.95rem; opacity: 0.8; }
.tl-step .tl-tag { font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass); display: block; margin-bottom: 0.4rem; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem; text-align: center; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--brass-bright);
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.7; }

/* ---------- Testimonial ---------- */
.quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-style: italic;
  line-height: 1.4;
  max-width: 30ch;
  margin-inline: auto;
  text-align: center;
}
.quote-attr { text-align: center; margin-top: 1.6rem; font-size: 0.8rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--brass); }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-avatar {
  width: 132px; height: 132px;
  border-radius: 50%;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cream);
  background: var(--avatar-bg, linear-gradient(140deg, var(--lagoon-700), var(--sea-400)));
  border: 3px solid var(--sand);
  box-shadow: var(--shadow-card);
}
.team-card h3 { font-size: 1.15rem; }
.team-card span { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label { display: block; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.45rem; color: var(--lagoon-700); }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(13, 43, 38, 0.18);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(193, 154, 91, 0.25);
}
.field textarea { min-height: 140px; resize: vertical; }

/* ---------- Detail page ---------- */
.page-hero {
  padding: 11rem 0 5rem;
  background: linear-gradient(180deg, var(--lagoon-950), var(--lagoon-800));
  color: var(--cream);
}
/* Optional photo background: set --hero-img on the .page-hero and add class has-hero.
   A dark scrim keeps the title legible and blends into the section below. */
.page-hero.has-hero {
  background:
    linear-gradient(180deg, rgba(8,29,26,0.66) 0%, rgba(8,29,26,0.48) 45%, rgba(13,43,38,0.92) 100%),
    var(--hero-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero h1 { color: var(--cream); font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
.page-hero .lede { color: rgba(244, 238, 226, 0.8); margin-top: 1.2rem; }
.page-hero.has-hero h1,
.page-hero.has-hero .lede,
.page-hero.has-hero .eyebrow { text-shadow: 0 2px 20px rgba(6,16,12,0.55); }

.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; }
.gallery .ph {
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: rgba(244, 238, 226, 0.6);
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  background: var(--media-bg, linear-gradient(140deg, #1b4a3f, #2e6b58));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.gallery .ph:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.amenities { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9rem; }
.amenities li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.95rem; }
.amenities li::before {
  content: "✦";
  color: var(--brass);
  font-size: 0.8rem;
}

/* ---------- Checklist ---------- */
.checklist { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0.9rem 2rem; }
.checklist li { display: flex; gap: 0.8rem; align-items: baseline; font-size: 0.98rem; }
.checklist li::before { content: "✓"; color: var(--brass); font-weight: 600; }

/* ---------- Hosting option tiers ---------- */
.tiers { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: stretch; }
.tier {
  background: var(--white);
  border: 1px solid rgba(13, 43, 38, 0.1);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s ease;
}
.tier:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.tier.featured { border-color: var(--brass); position: relative; }
.tier.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -0.85rem; left: 50%;
  transform: translateX(-50%);
  background: var(--brass);
  color: var(--lagoon-950);
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
}
.tier h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.tier .tier-tag { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); display: block; margin-bottom: 1rem; }
.tier .tier-fee {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--lagoon-900);
  font-variant-numeric: tabular-nums;
}
.tier .tier-fee small { font-size: 0.85rem; font-family: var(--font-body); opacity: 0.6; letter-spacing: 0.06em; }
.tier ul { list-style: none; display: grid; gap: 0.55rem; margin: 1.4rem 0 1.8rem; flex: 1; }
.tier li { display: flex; gap: 0.7rem; align-items: baseline; font-size: 0.92rem; }
.tier li::before { content: "✓"; color: var(--brass); font-weight: 600; }
.tier li.excl { opacity: 0.5; }
.tier li.excl::before { content: "—"; }
.tier .tier-quote { font-style: italic; font-family: var(--font-display); font-size: 0.98rem; color: var(--lagoon-700); margin-bottom: 1.5rem; }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 0.9rem; max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--white);
  border: 1px solid rgba(13, 43, 38, 0.1);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.2rem 3.2rem 1.2rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--lagoon-900);
  position: relative;
  transition: color 0.25s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.4rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--brass);
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--lagoon-500); }
.faq details > div { padding: 0 1.5rem 1.4rem; font-size: 0.96rem; opacity: 0.85; }

/* ---------- Footer ---------- */
.footer {
  background: var(--lagoon-950);
  color: rgba(244, 238, 226, 0.75);
  padding: 4.5rem 0 2.5rem;
  font-size: 0.92rem;
}
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-bottom: 3rem; }
.footer h3 { color: var(--cream); font-size: 1.05rem; margin-bottom: 1rem; }
.footer ul { list-style: none; display: grid; gap: 0.5rem; }
.footer a { transition: color 0.25s ease; }
.footer a:hover { color: var(--brass-bright); }
.footer-bar {
  border-top: 1px solid rgba(244, 238, 226, 0.12);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  opacity: 0.65;
}
.footer-brand strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--cream); display: block; }
.footer-brand em { font-style: normal; font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass-bright); }

/* ---------- Marquee strip ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 1.1rem;
  background: #141414; /* matt black */
  color: #ffffff;
  white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 3rem; animation: marquee 30s linear infinite; will-change: transform; }
.marquee-track span { font-size: 0.8rem; letter-spacing: 0.34em; text-transform: uppercase; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Welcome / audience modal ---------- */
.welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.welcome-modal[hidden] { display: none; }
.welcome-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 29, 26, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.welcome-dialog {
  position: relative;
  z-index: 1;
  width: min(700px, 100%);
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  background: var(--cream);
  border-radius: 22px;
  padding: clamp(2rem, 4vw, 3.4rem) clamp(1.6rem, 4vw, 3.4rem) clamp(1.8rem, 3vw, 2.6rem);
  box-shadow: 0 40px 110px rgba(8, 29, 26, 0.55);
  text-align: center;
  /* transform-only entrance — opacity stays 1 so the dialog is always visible
     even if the compositor throttles the animation (never hide behind opacity). */
  animation: welcome-rise 0.5s var(--ease-out);
}
@keyframes welcome-rise { from { transform: translateY(24px) scale(0.98); } }

.welcome-dialog .eyebrow { margin-bottom: 0.8rem; }
.welcome-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.1;
  color: var(--lagoon-900);
  margin-bottom: 0.7rem;
}
.welcome-title em { font-style: italic; color: var(--brass); }
.welcome-sub { font-size: 1rem; opacity: 0.8; max-width: 46ch; margin: 0 auto 2rem; }

.welcome-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
@media (max-width: 560px) { .welcome-choices { grid-template-columns: 1fr; } }

.welcome-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.9rem 1.3rem;
  border-radius: 16px;
  border: 1px solid rgba(13, 43, 38, 0.14);
  background: var(--white);
  cursor: pointer;
  text-align: center;
  color: var(--lagoon-900);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.welcome-choice:hover, .welcome-choice:focus-visible {
  transform: translateY(-4px);
  border-color: var(--brass);
  box-shadow: var(--shadow-card);
  outline: none;
}
.welcome-choice svg { width: 40px; height: 40px; color: var(--brass); margin-bottom: 0.3rem; }
.welcome-choice strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.welcome-choice span { font-size: 0.9rem; opacity: 0.72; }
.welcome-choice .go {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.welcome-choice .go::after { content: "→"; transition: transform 0.3s var(--ease-out); }
.welcome-choice:hover .go::after, .welcome-choice:focus-visible .go::after { transform: translateX(4px); }

.welcome-dismiss {
  margin-top: 1.6rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--lagoon-700);
  opacity: 0.7;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.welcome-dismiss:hover { opacity: 1; }

.welcome-close {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(13, 43, 38, 0.06);
  color: var(--lagoon-900);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s ease;
}
.welcome-close:hover { background: rgba(13, 43, 38, 0.14); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.center p { margin-inline: auto; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ---------- Reduced motion (MANDATORY) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; }
  .light-words .w { color: inherit !important; }
}
