/*
 * Nordic Zen — site styles
 * Palette and type follow the brand book (/brandbook), plus one loud accent.
 * Colour split 60 / 30 / 10:
 *   60% main   — Warm White, Linen, Sand grounds
 *   30% second — Ink and Brown: text, the dark booking band and footer
 *   10% loud   — Sea buckthorn (--accent / --accent-fill): actions, links, icons, labels, focus
 *                The orange berry of the Vidzeme dunes. Filled buttons carry ink text,
 *                because white on orange is too faint to read.
 * Serif for emotion and headings, sans-serif for clarity and structure.
 */

/* ==================== RESET ==================== */
/* Tailwind's preflight, copied verbatim so the home page no longer needs the
   Tailwind stylesheet. Kept in the same cascade layers, so every unlayered rule
   below still wins exactly as it did before. */
@layer base, utilities;

@layer base {
  *,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}
  ::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}
  html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}
  hr{height:0;color:inherit;border-top-width:1px}
  abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}
  h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}
  a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}
  b,strong{font-weight:bolder}
  code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}
  small{font-size:80%}
  sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}
  sub{bottom:-.25em}
  sup{top:-.5em}
  table{text-indent:0;border-color:inherit;border-collapse:collapse}
  :-moz-focusring{outline:auto}
  progress{vertical-align:baseline}
  summary{display:list-item}
  ol,ul,menu{list-style:none}
  img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}
  img,video{max-width:100%;height:auto}
  button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}
  ::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}
  :where(select:is([multiple],[size])) optgroup{font-weight:bolder}
  :where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}
  ::file-selector-button{margin-inline-end:4px}
  ::placeholder{opacity:1}
  @supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}
  textarea{resize:vertical}
  ::-webkit-search-decoration{-webkit-appearance:none}
  ::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}
  ::-webkit-datetime-edit{display:inline-flex}
  ::-webkit-datetime-edit-fields-wrapper{padding:0}
  ::-webkit-datetime-edit{padding-block:0}
  ::-webkit-datetime-edit-year-field{padding-block:0}
  ::-webkit-datetime-edit-month-field{padding-block:0}
  ::-webkit-datetime-edit-day-field{padding-block:0}
  ::-webkit-datetime-edit-hour-field{padding-block:0}
  ::-webkit-datetime-edit-minute-field{padding-block:0}
  ::-webkit-datetime-edit-second-field{padding-block:0}
  ::-webkit-datetime-edit-millisecond-field{padding-block:0}
  ::-webkit-datetime-edit-meridiem-field{padding-block:0}
  :-moz-ui-invalid{box-shadow:none}
  button,input:where([type=button],[type=reset],[type=submit]){appearance:button}
  ::file-selector-button{appearance:button}
  ::-webkit-inner-spin-button{height:auto}
  ::-webkit-outer-spin-button{height:auto}
  [hidden]:where(:not([hidden=until-found])){display:none!important}
}

/* The few Tailwind utilities the shared layout still uses */
@layer utilities {
  .flex { display: flex; }
  .flex-col { flex-direction: column; }
  .flex-grow { flex-grow: 1; }
  .h-full { height: 100%; }
  .min-h-screen { min-height: 100vh; }
}

/* ==================== TOKENS ==================== */
:root {
  /* Brand book palette */
  --paper: #FAF8F5;        /* Warm White */
  --linen: #F0EBE3;        /* Linen */
  --sand: #D5CEC4;         /* Sand */
  --line: #E2DACF;         /* hairlines on light grounds */
  --wood: #8B7E6A;         /* Wood — decorative only (stars, rules) */
  --brown: #5D4E37;        /* primary action */
  --ink: #2C2824;          /* text */
  --ink-soft: #5F574E;     /* secondary text — 6:1 on linen */
  --muted: #736756;        /* labels — 4.6:1 on linen */
  --on-dark: #EFE9E1;
  --on-dark-muted: #B8A99A;

  /* Loud accent — the 10%. Only where the eye should land. */
  --accent: #A9520F;                       /* text, icons, links, focus: 5.1:1 on paper, 4.5:1 on linen */
  --accent-fill: #EE8A2E;                  /* button backgrounds */
  --accent-on-fill: #2C2824;               /* ink on the fill: 5.8:1 */
  --accent-fill-hover: #E07A1E;            /* hover / pressed */
  --accent-soft: rgba(238, 138, 46, 0.22); /* focus halo, selection */
  --accent-line: rgba(169, 82, 15, 0.35);  /* link underlines */
  --accent-on-dark: #EE8A2E;               /* 5.8:1 on ink */

  /* Legacy names kept for other pages */
  --color-cream: #F4F1ED;
  --color-cream-dark: #F5F0EB;
  --color-sand: #D4C5B5;
  --color-warm-taupe: #B8A99A;
  --color-brown: var(--brown);
  --color-dark: var(--ink);
  --color-white: #FFFFFF;
  --color-sage: #A8B5A0;

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  --section-padding: var(--section-y);
  --container: 1180px;
  --nav-h: 76px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --shadow-soft: 0 24px 60px -32px rgba(44, 40, 36, 0.28), 0 2px 6px -2px rgba(44, 40, 36, 0.06);
}

/* ==================== BASE ==================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #C9BFB2 var(--paper);
}

body {
  font-family: var(--font-body);
  background-color: var(--paper);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

input, textarea { caret-color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

a { text-underline-offset: 0.22em; text-decoration-thickness: 1px; }

.icon { flex-shrink: 0; display: block; }

.section {
  padding: var(--section-y) var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto clamp(2.75rem, 6vw, 4.5rem);
}

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.55rem + 2.8vw, 3.6rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.section-title em {
  font-style: italic;
  color: var(--brown);
}

/* Header on the left, content on the right */
.split-layout {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.split-header {
  text-align: left;
  margin: 0;
  position: sticky;
  top: calc(var(--nav-h) + 2.5rem);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 52px;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.16s var(--ease-out);
}

.btn .icon { transition: transform 0.35s var(--ease-out); }
.btn:active { transform: scale(0.98); }

.btn-light {
  background: var(--paper);
  color: var(--ink);
}

.btn-primary {
  background: var(--accent-fill);
  color: var(--accent-on-fill);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover .icon { transform: translateX(4px); }
  .btn-light:hover { background: #FFFFFF; }
  .btn-primary:hover { background: var(--accent-fill-hover); }
}

/* ==================== NAVIGATION ==================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  display: flex;
  align-items: center;
  color: var(--paper);
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

/* Soft shade at the top of the hero keeps the menu readable over video */
nav::before {
  content: '';
  position: absolute;
  inset: 0 0 -56px;
  background: linear-gradient(to bottom, rgba(28, 25, 22, 0.62) 0%, rgba(28, 25, 22, 0.34) 55%, rgba(28, 25, 22, 0));
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: -1;
}

nav.scrolled,
body.menu-open nav {
  background: rgba(250, 248, 245, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

nav.scrolled::before,
body.menu-open nav::before { opacity: 0; }

.nav-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
}

.nav-logo {
  position: relative;
  display: block;
  width: 60px;
  height: 62px;
}

.nav-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.4s ease;
}

.nav-logo .logo-dark { opacity: 0; }
nav.scrolled .nav-logo .logo-dark,
body.menu-open nav .nav-logo .logo-dark { opacity: 1; }
nav.scrolled .nav-logo .logo-light,
body.menu-open nav .nav-logo .logo-light { opacity: 0; }

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
  list-style: none;
}

.nav-center a {
  position: relative;
  display: block;
  padding: 0.5rem 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
}

.nav-center a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .nav-center a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

nav.scrolled .nav-center a::after { background: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
  flex-shrink: 0;
  margin-left: auto;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: inherit;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.nav-phone:hover { opacity: 1; }

/* Language dropdown — opens on hover (mouse) and on focus/tap (touch, keyboard) */
.lang-dropdown { position: relative; }

.lang-current {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.lang-current .icon { transition: transform 0.3s var(--ease-out); }

.lang-options {
  position: absolute;
  top: calc(100% - 2px);
  right: 0;
  min-width: 76px;
  padding: 0.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.22s var(--ease-out), visibility 0s linear 0.22s;
}

.lang-dropdown:focus-within .lang-options {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.18s ease, transform 0.22s var(--ease-out), visibility 0s;
}

.lang-dropdown:focus-within .lang-current .icon { transform: rotate(180deg); }

@media (hover: hover) and (pointer: fine) {
  .lang-dropdown:hover .lang-options {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.18s ease, transform 0.22s var(--ease-out), visibility 0s;
  }
  .lang-dropdown:hover .lang-current .icon { transform: rotate(180deg); }
}

.lang-options a {
  display: block;
  padding: 0.55rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.lang-options a:hover { background: var(--linen); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 1.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-on-fill);
  text-decoration: none;
  background: var(--accent-fill);
  border: 1px solid var(--accent-fill);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.16s var(--ease-out);
}

.nav-cta:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover {
    background: var(--accent-fill-hover);
    border-color: var(--accent-fill-hover);
  }
}

/* Burger */
.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), opacity 0.2s ease;
}

.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }

.burger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==================== HERO ==================== */
.hero-section {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: heroSettle 2.8s var(--ease-out) both;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 75% 60% at 50% 50%, rgba(28, 25, 22, 0.5), rgba(28, 25, 22, 0) 72%),
    linear-gradient(to bottom, rgba(28, 25, 22, 0.15) 0%, rgba(28, 25, 22, 0.1) 40%, rgba(28, 25, 22, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: calc(var(--nav-h) * 0.5) var(--gutter) 0;
  text-align: center;
}

/* backwards fill: hidden during the delay, then hands control back to normal styles
   (so :active/:hover transforms on the button still work after the entrance) */
.hero-content > * {
  animation: heroIn 1.2s var(--ease-out) backwards;
}

.hero-content > :nth-child(1) { animation-delay: 0.25s; }
.hero-content > :nth-child(2) { animation-delay: 0.4s; }
.hero-content > :nth-child(3) { animation-delay: 0.6s; }
.hero-content > :nth-child(4) { animation-delay: 0.75s; }
.hero-content > :nth-child(5) { animation-delay: 0.95s; }

.hero-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 1.6rem;
  text-shadow: 0 1px 12px rgba(28, 25, 22, 0.45);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 1.5rem + 8vw, 6rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: 0.06em;
  color: var(--paper);
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 30px rgba(28, 25, 22, 0.25);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  color: #F1EADF;
  margin-bottom: 0.9rem;
}

.hero-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--paper);
  margin-bottom: 2.6rem;
  text-shadow: 0 1px 12px rgba(28, 25, 22, 0.45);
}

.hero-cta { display: inline-flex; }

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes heroSettle {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.scroll-indicator {
  position: absolute;
  bottom: max(1.75rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: fadeIn 1s ease 1.4s both;
}

.scroll-indicator a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 1px 10px rgba(28, 25, 22, 0.5);
  text-decoration: none;
}

.scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: 48px;
  overflow: hidden;
  background: rgba(250, 248, 245, 0.3);
}

.scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: translateY(-100%);
  animation: scrollCue 2.4s var(--ease-in-out) infinite;
}

@keyframes scrollCue {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==================== OUR STORY ==================== */
.our-story { background: var(--paper); }

.story-content {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.story-text { max-width: 31rem; }

.story-text .section-title { margin-bottom: 2rem; }

.story-intro {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.65rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 1.75rem;
  text-wrap: pretty;
}

.story-description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.story-intro em,
.story-description em {
  font-family: var(--font-display);
  font-size: 1.15em;
  font-style: italic;
  color: var(--brown);
}

.our-story-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--linen);
}

.our-story-image .image-container-large,
.our-story-image .image-container-small {
  width: 100%;
  height: 100%;
}

.our-story-image .image-container-small { display: none; }

.our-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==================== FEATURES ==================== */
.features { background: var(--linen); }

.features-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.feature-card {
  background: var(--linen);
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1.25rem, 2.4vw, 2.25rem);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.75rem;
  color: var(--accent);
  border: 1px solid var(--sand);
  border-radius: 50%;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ==================== AMENITIES ==================== */
.amenities { background: var(--paper); }

.amenities-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.amenity-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--accent);
  background: var(--linen);
  border-radius: 50%;
}

.amenity-text {
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--ink);
}

/* ==================== GALLERY ==================== */
.gallery-section { background: var(--linen); }

.gallery-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(4px, 0.6vw, 10px);
}

.gallery-item {
  --photo-cover: 1;
  position: relative;
  display: block;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  background: var(--sand);
  border: 0;
  cursor: zoom-in;
}

.gallery-item.is-wide {
  grid-column: span 2;
  aspect-ratio: auto;
}

/* Absolutely positioned so photos never size their tile: wide tiles take the row height */
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: var(--photo-cover);
  transition: transform 0.9s var(--ease-out), opacity 0.4s ease;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 22, 0.12);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:focus-visible { outline-offset: -3px; outline-color: var(--paper); }

@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover img { transform: scale(1.04); }
  .gallery-item:hover::after { opacity: 1; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1A1714;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}

/* Photos sit in a native scroll-snap track: the finger drags them 1:1 and a
   flick carries momentum into the next one. */
.lightbox-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
  touch-action: pan-x;
  transform: scale(0.97);
  transition: transform 0.5s var(--ease-out);
}

.lightbox-track::-webkit-scrollbar { display: none; }

.lightbox.active .lightbox-track { transform: none; }

.lightbox-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 4.5rem clamp(1rem, 8vw, 7rem);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.lightbox-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--paper);
  background: rgba(250, 248, 245, 0.08);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.16s var(--ease-out);
}

.lightbox-close:active,
.lightbox-nav:active { transform: scale(0.94); }

@media (hover: hover) and (pointer: fine) {
  .lightbox-close:hover,
  .lightbox-nav:hover { background: rgba(250, 248, 245, 0.18); }
}

.lightbox-close {
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
}

.lightbox-nav { top: 50%; margin-top: -24px; }
.lightbox-prev { left: max(1rem, env(safe-area-inset-left)); }
.lightbox-next { right: max(1rem, env(safe-area-inset-right)); }

.lightbox-counter {
  position: absolute;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.16em;
  color: var(--on-dark-muted);
}

.lightbox:focus-visible,
.lightbox button:focus-visible { outline-color: var(--paper); }

/* ==================== PRICING ==================== */
.pricing { background: var(--paper); }

.pricing-container {
  max-width: 860px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--linen);
  padding: clamp(1.5rem, 5vw, 3.5rem);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: lining-nums tabular-nums;
}

.pricing-table thead th {
  padding: 0 0 1.25rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  border-bottom: 1px solid var(--sand);
}

.pricing-table thead th:not(:first-child) { text-align: right; padding-left: 1rem; }
.pricing-table .price-cell { padding-left: 1rem; }

.pricing-table tbody th,
.pricing-table tbody td {
  padding: clamp(1.4rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-weight: 400;
}

.pricing-table tbody th { text-align: left; }

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td { border-bottom: 0; }

.season-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  font-style: italic;
  line-height: 1.2;
  color: var(--ink);
}

.season-months {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.price-cell {
  text-align: right;
  white-space: nowrap;
}

.price-cell .amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}

.price-cell .currency {
  margin-left: 0.15rem;
  font-size: 1rem;
  color: var(--muted);
}

.pricing-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.5rem;
  margin-top: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--sand);
}

.pricing-footer-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.pricing-footer-note .icon { color: var(--accent); }
.pricing-footer-note strong { font-weight: 500; color: var(--ink); }

.pricing-info {
  margin-top: 2rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-soft);
  text-wrap: balance;
}

.pricing-info a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  transition: text-decoration-color 0.2s ease;
}

.pricing-info a:hover { text-decoration-color: currentColor; }

/* ==================== REVIEWS ==================== */
.reviews { background: var(--linen); }

.reviews-grid {
  max-width: var(--container);
  margin: 0 auto;
  columns: 3 300px;
  column-gap: clamp(1rem, 2vw, 1.5rem);
}

.review-card {
  position: relative;
  break-inside: avoid;
  margin: 0 0 clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--paper);
}

.review-card::before {
  content: '\201C';
  position: absolute;
  top: 0.9rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--sand);
  pointer-events: none;
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1.25rem;
  color: var(--wood);
}

.review-text {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
  text-wrap: pretty;
}

.review-author {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.reviews-link-container {
  margin-top: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.reviews-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
  transition: border-color 0.25s ease;
}

.reviews-link .icon { transition: transform 0.35s var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .reviews-link:hover { border-color: var(--accent); }
  .reviews-link:hover .icon { transform: translate(2px, -2px); }
}

/* ==================== NEARBY ==================== */
.nearby { background: var(--paper); }

.nearby-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.nearby-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.nearby-name {
  font-size: 1rem;
  color: var(--ink);
}

.nearby-distance {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ==================== LOCATION + CONTACT ==================== */
.location { background: var(--linen); }

.location-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: stretch;
}

.location-info {
  display: flex;
  flex-direction: column;
}

.location-info h3,
.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1rem;
}

.location-info > p {
  max-width: 32rem;
  margin-bottom: 1.75rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.location-detail {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.location-detail .icon { color: var(--accent); }

.map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--sand);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.16s var(--ease-out);
}

.map-link:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .map-link:hover {
    background: var(--accent-fill);
    border-color: var(--accent-fill);
    color: var(--accent-on-fill);
  }
}

.map-embed {
  flex-grow: 1;
  width: 100%;
  min-height: 300px;
  border: 0;
  background: var(--sand);
  filter: grayscale(0.35) sepia(0.08);
}

.contact-form-card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.contact-form-subtitle {
  margin-bottom: 2rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.contact-form-inline .form-group { margin-bottom: 1.25rem; }

.contact-form-inline .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form-inline .form-group input,
.contact-form-inline .form-group textarea {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem; /* 16px keeps iOS from zooming the page on focus */
  line-height: 1.5;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--sand);
  border-radius: 0;
  appearance: none;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-inline .form-group input:focus,
.contact-form-inline .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-submit-wrapper { margin-top: 1.75rem; }

.form-submit-btn {
  width: 100%;
  min-height: 54px;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-on-fill);
  background: var(--accent-fill);
  border: 0;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.16s var(--ease-out);
}

.form-submit-btn:active { transform: scale(0.985); }

@media (hover: hover) and (pointer: fine) {
  .form-submit-btn:hover { background: var(--accent-fill-hover); }
}

.contact-alt {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.contact-alt a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
}

.contact-alt a:hover { text-decoration-color: currentColor; }

/* ==================== BOOKING CTA ==================== */
.booking {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(6rem, 14vw, 11rem) var(--gutter);
  text-align: center;
  color: var(--paper);
  background: var(--brown);
}

.booking-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.booking::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(44, 36, 26, 0.72), rgba(58, 47, 33, 0.82));
}

.booking-content {
  max-width: 40rem;
  margin: 0 auto;
}

.booking h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--paper);
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.booking p {
  font-size: 1.05rem;
  color: var(--on-dark);
  margin-bottom: 2.5rem;
  text-wrap: balance;
}

.booking .booking-note {
  margin: 2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--on-dark);
}

.booking-note a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: rgba(250, 248, 245, 0.4);
}

.booking-note a:hover { text-decoration-color: currentColor; }

.booking :focus-visible { outline-color: var(--paper); }

/* IGMS Widget styling */
.igms-direct-booking-widget { margin: 1rem 0; }

/* Already booked dates (tagged by igms_calendar_controller.js) */
.igms-direct-booking-widget .datepicker table tr td.day.disabled.booked,
.igms-direct-booking-widget .datepicker table tr td.day.disabled.booked:hover {
  color: #c62828;
}

/* ==================== CONTACT PAGE (/contact_messages/new) ==================== */
.contact-section {
  padding: var(--section-y) var(--gutter);
  background: var(--ink);
  text-align: center;
}

.contact-section--full {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-header {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.contact-subtitle {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.contact-header h2 {
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--paper);
}

.contact-divider {
  width: 60px;
  height: 1px;
  margin: 0 auto 1.5rem;
  background: var(--on-dark-muted);
}

.contact-response-time {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--on-dark-muted);
}

.contact-card {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-errors {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  text-align: left;
  background: rgba(176, 84, 64, 0.1);
  border: 1px solid rgba(176, 84, 64, 0.3);
}

.contact-errors p {
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  color: #9A3F2C;
}

.contact-section .contact-errors p { color: #E8A0A0; }
.contact-errors p:last-child { margin-bottom: 0; }

.contact-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-field { position: relative; }

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 1.35rem 1rem 0.65rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  outline: none;
  resize: vertical;
  transition: border-color 0.25s ease;
}

.contact-field input:focus,
.contact-field textarea:focus { border-color: rgba(255, 255, 255, 0.5); }

.contact-field label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.9rem;
  color: var(--on-dark-muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.25s var(--ease-out), opacity 0.25s ease;
}

.contact-field input:focus ~ label,
.contact-field textarea:focus ~ label,
.contact-field input.has-value ~ label,
.contact-field textarea.has-value ~ label {
  transform: translateY(-0.6rem) scale(0.75);
  opacity: 0.8;
}

.contact-submit { margin-top: 2rem; }

.contact-submit-btn {
  width: 100%;
  min-height: 54px;
  padding: 1.1rem 3rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.16s var(--ease-out);
}

.contact-submit-btn:hover { background: #FFFFFF; }
.contact-submit-btn:active { transform: scale(0.985); }

.contact-footer-note {
  margin-top: 2rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--on-dark-muted);
}

.contact-footer-note a {
  color: var(--paper);
  text-decoration: none;
}

.contact-footer-note a:hover { text-decoration: underline; }

.contact-tagline {
  margin-top: 3rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.35);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
  opacity: 0;
}

/* ==================== FOOTER ==================== */
footer {
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--on-dark-muted);
}

.footer-content {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .footer-logo {
  display: inline-block;
  width: auto;
  height: 72px;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--on-dark);
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 1.25rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.footer-links ul {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.footer-links a,
.footer-contact a {
  display: inline-block;
  padding: 0.2rem 0;
  font-size: 0.95rem;
  color: var(--on-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover { color: var(--accent-on-dark); }

.footer-contact p { margin-bottom: 0.35rem; }

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--on-dark);
  border: 1px solid rgba(239, 233, 225, 0.25);
  border-radius: 50%;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.social-links a:hover {
  color: var(--ink);
  background: var(--on-dark);
  border-color: var(--on-dark);
}

footer :focus-visible { outline-color: var(--on-dark); }

.footer-bottom {
  max-width: var(--container);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--on-dark-muted);
  border-top: 1px solid rgba(239, 233, 225, 0.12);
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999; /* sits under the nav, which stays visible with the close button */
  display: flex;
  flex-direction: column;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}

.menu-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + 1.5rem) max(var(--gutter), env(safe-area-inset-left)) max(2rem, env(safe-area-inset-bottom));
  overflow-y: auto;
}

.menu-links {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.menu-links li { border-bottom: 1px solid var(--line); }

.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 0.95rem 0;
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  transition: transform 0.6s var(--ease-out), opacity 0.4s ease;
}

.mobile-menu.active .menu-links a {
  opacity: 1;
  transform: none;
}

.menu-links li:nth-child(1) a { transition-delay: 0.05s; }
.menu-links li:nth-child(2) a { transition-delay: 0.09s; }
.menu-links li:nth-child(3) a { transition-delay: 0.13s; }
.menu-links li:nth-child(4) a { transition-delay: 0.17s; }
.menu-links li:nth-child(5) a { transition-delay: 0.21s; }
.menu-links li:nth-child(6) a { transition-delay: 0.25s; }

.mobile-menu:not(.active) .menu-links a { transition-delay: 0s; }

.menu-number {
  min-width: 1.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.menu-text {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
}

.menu-links li:last-child .menu-text {
  font-style: italic;
  color: var(--accent);
}

.menu-divider { display: none; }

.menu-contact {
  display: grid;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mobile-menu.active .menu-contact {
  opacity: 1;
  transition-delay: 0.3s;
}

.menu-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.menu-contact .icon { color: var(--accent); }

/* ==================== BOOKING MODAL ==================== */
.booking-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 21, 18, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.booking-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}

.booking-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: calc(100% - 2rem);
  max-width: 820px;
  max-height: 90vh;
  max-height: 90dvh;
  background: var(--paper);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.45s var(--ease-drawer), opacity 0.3s ease;
}

.booking-modal-overlay.active .booking-modal {
  opacity: 1;
  transform: none;
}

.booking-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--line);
}

.booking-modal-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.booking-modal-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}

.booking-modal-close {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--linen);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.16s var(--ease-out);
}

.booking-modal-close:hover { background: var(--sand); }
.booking-modal-close:active { transform: scale(0.94); }

.booking-modal-close::before,
.booking-modal-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

.booking-modal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.booking-modal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.booking-modal-content {
  flex: 1;
  padding: 1.5rem 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.booking-modal-footer {
  padding: 1.25rem 2rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.booking-modal-footer p {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.booking-modal-footer a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
}

.booking-modal-footer a:hover { text-decoration-color: currentColor; }

/* ==================== SCROLL REVEALS ==================== */
/* Hidden states only exist after reveal_controller.js adds .reveal-ready.
   Everything here animates transform/opacity only, so it stays on the compositor. */
.reveal-ready [data-reveal=""],
.reveal-ready [data-reveal="true"] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out);
}

.reveal-ready [data-reveal="stagger"] > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: calc(var(--reveal-index, 0) * 90ms);
}

.reveal-ready [data-reveal="image"] {
  clip-path: inset(12% 12% 12% 12%);
  transition: clip-path 1.6s var(--ease-out);
}

.reveal-ready [data-reveal="image"] img {
  transform: scale(1.25);
  transition: transform 2s var(--ease-out);
}

.reveal-ready [data-reveal].is-revealed,
.reveal-ready [data-reveal="stagger"].is-revealed > * {
  opacity: 1;
  transform: none;
}

.reveal-ready [data-reveal="image"].is-revealed { clip-path: inset(0 0 0 0); }
.reveal-ready [data-reveal="image"].is-revealed img { transform: none; }

/* Gallery: same gentle rise as the review cards, but each tile waits until it
   reaches the viewport, cascading only with the tiles beside it */
.reveal-ready [data-reveal="each"] > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: calc(var(--reveal-index, 0) * 90ms);
}

.reveal-ready [data-reveal="each"] > .is-revealed {
  opacity: 1;
  transform: none;
}

/* Review stars pop in one by one after their card lands */
.reveal-ready .reviews-grid .review-stars svg {
  opacity: 0;
  scale: 0.3;
  transition:
    opacity 0.3s ease calc(var(--reveal-index, 0) * 90ms + 450ms + var(--star, 0) * 80ms),
    scale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--reveal-index, 0) * 90ms + 450ms + var(--star, 0) * 80ms);
}

.review-stars svg:nth-child(2) { --star: 1; }
.review-stars svg:nth-child(3) { --star: 2; }
.review-stars svg:nth-child(4) { --star: 3; }
.review-stars svg:nth-child(5) { --star: 4; }

.reveal-ready .reviews-grid.is-revealed .review-stars svg {
  opacity: 1;
  scale: 1;
}

/* ==================== PARALLAX ==================== */
/* CSS scroll-driven animations: the browser runs them on the compositor, so
   there is no scroll listener and no main-thread work while scrolling.
   Browsers without support (and reduced motion) simply get still photos. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero-section { view-timeline: --hero block; }
    .our-story-image { view-timeline: --story block; }
    .gallery-item { view-timeline: --tile block; --photo-cover: 1.1; }
    .booking { view-timeline: --band block; }

    /* Video drifts slower than the page; the headline lifts away and fades */
    .hero-video {
      animation: heroSettle 2.8s var(--ease-out) both, parallaxHero linear both;
      animation-timeline: auto, --hero;
      animation-range: normal, exit 0% exit 100%;
    }

    .hero-content {
      animation: heroContentOut linear both;
      animation-timeline: --hero;
      animation-range: exit 0% exit 75%;
    }

    .scroll-indicator a {
      animation: heroContentOut linear both;
      animation-timeline: --hero;
      animation-range: exit 0% exit 45%;
    }

    .our-story-image img {
      scale: 1.16;
      animation: parallaxPhoto linear both;
      animation-timeline: --story;
      animation-range: cover 0% cover 100%;
    }

    .gallery-item img {
      animation: parallaxTile linear both;
      animation-timeline: --tile;
      animation-range: cover 0% cover 100%;
    }

    .booking-bg {
      scale: 1.24;
      animation: parallaxBand linear both;
      animation-timeline: --band;
      animation-range: cover 0% cover 100%;
    }
  }
}

@keyframes parallaxHero { to { translate: 0 32%; } }

@keyframes heroContentOut {
  to {
    translate: 0 -16vh;
    opacity: 0;
  }
}

@keyframes parallaxPhoto {
  from { translate: 0 -6%; }
  to { translate: 0 6%; }
}

@keyframes parallaxTile {
  from { translate: 0 -4%; }
  to { translate: 0 4%; }
}

@keyframes parallaxBand {
  from { translate: 0 -9%; }
  to { translate: 0 9%; }
}

/* ==================== UTILITY CLASSES ==================== */
.bg-cream { background-color: var(--paper); }
.bg-sand { background-color: var(--color-sand); }
.bg-warm-taupe { background-color: var(--color-warm-taupe); }
.bg-brown { background-color: var(--brown); }
.bg-dark { background-color: var(--ink); }
.bg-white { background-color: var(--color-white); }
.bg-sage { background-color: var(--color-sage); }

.text-cream { color: var(--color-cream); }
.text-sand { color: var(--color-sand); }
.text-warm-taupe { color: var(--color-warm-taupe); }
.text-brown { color: var(--brown); }
.text-dark { color: var(--ink); }
.text-sage { color: var(--color-sage); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
  .nav-center,
  .nav-phone { display: none; }

  .burger { display: block; }

  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }

  .nav-logo { width: 48px; height: 50px; }

  .story-content,
  .location-grid,
  .split-layout { grid-template-columns: minmax(0, 1fr); }

  .story-text { max-width: 36rem; }

  .our-story-image {
    order: -1;
    aspect-ratio: 3 / 2;
  }

  .our-story-image .image-container-large { display: none; }
  .our-story-image .image-container-small { display: block; }

  .split-header {
    position: static;
    text-align: center;
    margin: 0 auto;
  }

  .split-layout { gap: clamp(2rem, 6vw, 3rem); }

  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-item.is-wide { aspect-ratio: 2 / 1; }

  .map-embed { min-height: 260px; }

  .footer-content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-brand { grid-column: 1 / -1; }

  .lightbox-slide { padding: 4.5rem 0.5rem 6rem; }

  .lightbox-nav {
    top: auto;
    bottom: max(1rem, env(safe-area-inset-bottom));
    margin-top: 0;
  }

  .lightbox-counter { bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 15px); }
}

@media (max-width: 720px) {
  /* Reviews become a swipeable row */
  .reviews-grid {
    display: flex;
    gap: 0.75rem;
    columns: auto;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .reviews-grid::-webkit-scrollbar { display: none; }

  .review-card {
    flex: 0 0 min(84%, 22rem);
    margin: 0;
    scroll-snap-align: start;
  }

  .nearby-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .nav-right { gap: 0.25rem; }

  .nav-cta {
    min-height: 38px;
    padding: 0 0.85rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .hero-tagline { letter-spacing: 0.26em; font-size: 0.7rem; }
  .hero-title { letter-spacing: 0.03em; }

  .hero-cta,
  .booking-cta { width: 100%; max-width: 20rem; }

  .features-grid { grid-template-columns: minmax(0, 1fr); }

  .feature-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 1.25rem;
    padding: 1.75rem 0.25rem;
  }

  .feature-icon {
    grid-row: span 2;
    width: 48px;
    height: 48px;
    margin: 0;
  }

  .feature-title { font-size: 1.45rem; margin-bottom: 0.35rem; }

  .amenities-grid { column-gap: 1rem; }

  .amenity-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 1rem 0;
  }

  .amenity-text { font-size: 0.92rem; }

  .pricing-table thead th { font-size: 0.7rem; letter-spacing: 0.08em; }
  .season-months { font-size: 0.8rem; }

  .pricing-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .nearby-item { padding: 1rem 0; }
  .nearby-name { font-size: 0.95rem; }

  .footer-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .booking-modal-overlay { align-items: flex-end; }

  .booking-modal {
    width: 100%;
    max-width: 100%;
    height: calc(100% - 2.5rem);
    max-height: none;
    opacity: 1;
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-drawer);
  }

  .booking-modal-header { padding: 1.1rem 1.25rem; }
  .booking-modal-content { padding: 1rem 1.25rem; }
  .booking-modal-footer { padding: 1rem 1.25rem max(1rem, env(safe-area-inset-bottom)); }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-video { animation: none; }

  .hero-content > *,
  .scroll-indicator { animation: fadeIn 0.6s ease both; }

  .scroll-line::after { animation: none; transform: none; opacity: 0.6; }

  .gallery-item img,
  .btn .icon,
  .menu-links a { transition: none; transform: none; }

  .booking-modal,
  .booking-modal-overlay.active .booking-modal,
  .lightbox-track {
    transform: none !important;
    transition: opacity 0.2s ease;
  }
}
