/* =====================================================
   Boutique template — base
   Stack-cards pattern, scroll-driven motion, zero deps.
   Mobile-first. Designed to be reused across Boutique
   hotel projects via theme tokens (palette + type).
   ===================================================== */

:root {
  /* ----- Brand tokens (swap per project via hotel-config.json) ----- */
  --sand:        #EDE3D2;
  --sand-light:  #F5EFE2;
  --paper:       #FAF6EC;
  --green:       #2E4A3A;
  --green-deep:  #1F3328;
  --green-soft:  #3F5E4D;
  --blue:        #3A6B82;
  --blue-deep:   #25455A;
  --terracotta:  #B7693A;
  --ink:         #2A2118;
  --ink-soft:    #5C544A;

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

  /* ----- Layout ----- */
  --container: 1320px;
  --gutter: clamp(1.25rem, 3vw, 2rem);
  --header-h: 78px;
  --card-radius: clamp(20px, 3vw, 36px);
  --card-overlap: 28px;

  /* ----- Motion ----- */
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-duration: 1100ms;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--green-deep);   /* visible behind cards */
  /* Mata o overscroll do mobile (bounce do iOS / stretch do Android): no fim
     da página o conteúdo deslizava e o hero fixo aparecia por baixo do rodapé.
     Também desliga o pull-to-refresh no topo. */
  overscroll-behavior-y: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--green-deep);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* fallback */
  overflow-x: clip;   /* não cria scroll-container — preserva sticky descendente */
}

img, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--green); color: var(--sand); }

section[id] { scroll-margin-top: var(--header-h); }

/* ===== Layout primitives ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===== Type scale ===== */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--green);
}
h1.display { font-size: clamp(3rem, 9vw, 7rem); }
h2.display { font-size: clamp(2.5rem, 6vw, 5rem); }
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  line-height: 1.2;
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
}
.lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background-color: transparent;
  padding: 1.25rem 0;
  transition: background-color 400ms var(--ease), backdrop-filter 400ms, box-shadow 400ms var(--ease);
  color: var(--sand);
  box-shadow: none;
}
.header.is-scrolled {
  background-color: rgba(31, 51, 40, 0.95);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  color: var(--sand);
}
.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  color: inherit;
}
.logo__mark {
  font-size: 1.5rem;
  line-height: 1;
  transform: translateY(-1px);
  font-style: italic;
  font-weight: 300;
}
.logo__text {
  font-size: 1.0625rem;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.logo__img {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
  /* Logo colorida vira branca mantendo a transparência */
  filter: brightness(0) invert(1);
}
.logo--footer .logo__img { height: 56px; }

.nav { display: flex; gap: 2rem; }
.nav a {
  font-size: 0.8125rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  letter-spacing: 0.04em;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 420ms var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__cta { display: flex; align-items: center; gap: 1rem; }
.lang {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  padding: 0.3rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: 0.7;
  transition: opacity 200ms;
}
.lang:hover { opacity: 1; }

@media (max-width: 900px) {
  .nav { display: none; }
}

/* ===== Menu toggle (hamburger) ===== */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle__bar {
  display: block;
  width: 100%; height: 2px;
  background: var(--sand);
  border-radius: 1px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.menu-toggle.is-open .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Menu overlay ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--green-deep);
  color: var(--sand);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.menu-overlay__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.menu-overlay__nav a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 400;
  color: var(--sand);
  text-decoration: none;
  line-height: 1.15;
  padding: 0.35em 0;
  opacity: 0.75;
  transition: opacity 0.3s var(--ease);
}
.menu-overlay__nav a:hover {
  opacity: 1;
}
.menu-overlay__social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.menu-overlay__social a {
  color: var(--sand);
  opacity: 0.5;
  transition: opacity 0.3s var(--ease);
}
.menu-overlay__social a:hover {
  opacity: 1;
}
.menu-overlay__footer {
  margin-top: 1rem;
}
@media (max-width: 600px) {
  .menu-overlay {
    padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
    justify-content: flex-start;
    gap: 2rem;
  }
  .menu-overlay__nav a {
    font-size: 1.35rem;
    padding: 0.45em 0;
  }
  .menu-overlay__social { gap: 1.25rem; }
  .menu-overlay__social svg { width: 20px; height: 20px; }
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.85rem;
  background: var(--green);
  color: var(--sand);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  border-radius: 2px;
  transition: background-color 320ms var(--ease), transform 320ms var(--ease), box-shadow 320ms var(--ease);
}
.btn-primary:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(31, 51, 40, 0.28);
}
.btn-primary.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.7rem; }
.btn-block { width: 100%; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.85rem;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  border-radius: 2px;
  transition: background-color 320ms var(--ease), color 320ms var(--ease);
}
.btn-secondary:hover { background: var(--green); color: var(--sand); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  color: currentColor;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  letter-spacing: 0.04em;
  transition: gap 320ms var(--ease);
}
.link-arrow::after {
  content: '→';
  transition: transform 320ms var(--ease);
}
.link-arrow:hover { gap: 0.85rem; }
.link-arrow:hover::after { transform: translateX(3px); }

/* =====================================================
   STACK-CARDS PATTERN — the boutique signature
   ===================================================== */

.stack {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

/* Only when the page has a fixed hero (home), reserve 100vh at the top of
   <main> so cards slide UP over the hero on scroll. Pointer-events: none in
   the empty area so clicks (e.g. hero scroll-cue) reach the hero behind. */
body:has(> .hero) .stack {
  padding-top: 100vh;
  pointer-events: none;
}
body:has(> .hero) .stack > * { pointer-events: auto; }

.card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  margin-top: calc(var(--card-overlap) * -1);
  box-shadow:
    0 -2px 0 rgba(255, 255, 255, 0.04),
    0 -18px 40px -8px rgba(0, 0, 0, 0.18);
  overflow: hidden; /* fallback */
  overflow: clip;   /* clipa cantos arredondados sem quebrar position:sticky de descendentes (vila__media, bangalos__pin) */
  isolation: isolate;
  transition: transform 600ms var(--ease), opacity 600ms var(--ease);
  /* JS adds inline transform for the iOS-stack scale-down effect */
}
/* First card in the stack: no negative margin (so it lands exactly at the
   hero's bottom edge — no peek before scroll), but keeps rounded top + shadow
   so it visually slides UP over the fixed hero. */
.stack > .card:first-child {
  margin-top: 0;
}

/* Card variants by background — each section sets its own atmosphere */
.card--paper       { background: var(--paper); }
.card--sand        { background: var(--sand-light); }
.card--green       { background: var(--green-deep); color: var(--sand); }
.card--green-soft  { background: var(--green); color: var(--sand); }
.card--ink         { background: var(--ink); color: var(--sand); }
.card--blue        { background: var(--blue-deep); color: var(--sand); }

.card--green em, .card--green-soft em, .card--ink em, .card--blue em {
  color: rgba(237, 227, 210, 0.82);
}

.card-section { padding: clamp(5rem, 10vw, 8rem) 0; }

/* =====================================================
   1. HERO — A travessia
   Animated water (CSS gradients + ripples), title clip-path reveal,
   scroll-driven dissolve.
   ===================================================== */

.hero {
  /* Fixed behind <main>. Stays still; the rest of the site slides up over it. */
  position: fixed;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  color: var(--sand);
  isolation: isolate;
}
/* Quando o primeiro card já cobre o hero por inteiro, tira o hero fixo da
   pintura. Evita que ele apareça por baixo do rodapé em qualquer resquício de
   overscroll (iOS antigo, redimensionamento da barra de endereço) e poupa a
   composição de um vídeo invisível. Classe posta pelo initHeroCover da home. */
.hero.is-covered { visibility: hidden; }

.hero__placeholder-hint {
  position: absolute;
  left: 50%;
  /* sit just below the fixed header, never collide with the logo */
  top: calc(var(--header-h) + 0.5rem);
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(237, 227, 210, 0.4);
  pointer-events: none;
  text-align: center;
  max-width: calc(100% - 2rem);
}
@media (max-width: 700px) {
  .hero__placeholder-hint { display: none; }
}

.hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
}
.hero-media--img {
  display: block;
}
.hero-media--video {
  display: none;
}
@media (max-width: 768px) {
  .hero-media--img { display: none; }
  .hero-media--video { display: block; }
}

.hero-water {
  position: absolute; inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(58, 107, 130, 0.45), transparent 70%),
    radial-gradient(ellipse 100% 70% at 50% 90%, rgba(31, 51, 40, 0.65), transparent 60%),
    linear-gradient(180deg, var(--green-deep) 0%, var(--blue-deep) 50%, var(--green-deep) 100%);
}
.hero-water::before,
.hero-water::after {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 30% 35%, rgba(255,255,255,0.04), transparent 35%),
    radial-gradient(circle at 70% 65%, rgba(58, 107, 130, 0.5), transparent 55%);
  animation: water-drift 22s ease-in-out infinite;
}
.hero-water::after {
  background:
    radial-gradient(circle at 60% 30%, rgba(255,255,255,0.06), transparent 40%),
    radial-gradient(circle at 25% 80%, rgba(46, 74, 58, 0.55), transparent 60%);
  animation: water-drift 28s ease-in-out infinite reverse;
  animation-delay: -8s;
}
@keyframes water-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  50%      { transform: translate(2.5%, -1.5%) scale(1.08); opacity: 1; }
}

/* Concentric ripples */
.ripple {
  position: absolute;
  left: 50%; top: 60%;
  width: 200px; height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-spread 7s ease-out infinite;
  pointer-events: none;
}
.ripple--2 { animation-delay: 2.3s; }
.ripple--3 { animation-delay: 4.6s; }
@keyframes ripple-spread {
  0%   { transform: translate(-50%, -50%) scale(0);   opacity: 0; }
  10%  { opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(7);   opacity: 0; }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--gutter) 12vh;
  max-width: 980px;
  /* JS toggles transform/opacity on scroll */
  will-change: transform, opacity;
}
.hero__content .eyebrow {
  color: rgba(237, 227, 210, 0.7);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-up 1.4s var(--ease) 0.2s forwards;
}
.hero h1 { color: var(--sand); margin-bottom: 1.75rem; }
.hero h1 em { color: rgba(237, 227, 210, 0.78); }
.hero .lede {
  color: rgba(237, 227, 210, 0.85);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  margin: 0 auto;
  opacity: 0;
  filter: blur(10px);
  animation: hero-lede-in 3.2s linear 0s forwards;
}
@keyframes hero-lede-in {
  0%   { opacity: 0; transform: translateY(40px); filter: blur(10px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Word-by-word clip-path reveal */
.split-reveal { display: inline; }
.split-reveal .word {
  display: inline-block;
  clip-path: inset(0 0 110% 0);
  transform: translateY(0.18em);
  animation: word-reveal 1.4s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 140ms + 400ms);
}
@keyframes word-reveal {
  to { clip-path: inset(0 0 -10% 0); transform: translateY(0); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--sand);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.36em;
  opacity: 0;
  animation: scroll-cue-in 1.4s var(--ease) 2.4s forwards;
}
@keyframes scroll-cue-in {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue__line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--sand), transparent);
  animation: scroll-cue 2.6s ease-in-out infinite;
}
@keyframes scroll-cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =====================================================
   2. VILA — sticky image rotator
   3 fotos empilhadas, fade entre elas conforme o scroll.
   ===================================================== */

.vila {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  align-items: start;
}
.vila__media {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  align-self: start;
  aspect-ratio: 3 / 4;
  max-height: calc(100vh - var(--header-h) - 3rem);
  border-radius: 4px;
  overflow: hidden;
}
.vila__media .placeholder { position: absolute; inset: 0; opacity: 0; transition: opacity 800ms var(--ease); }
.vila__media .placeholder.is-active { opacity: 1; }

.vila__panels {
  display: flex; flex-direction: column;
  gap: clamp(40vh, 50vh, 60vh);
  padding-top: 8vh;
  padding-bottom: 30vh;
}
.vila__panels > article {
  max-width: 48ch;
}
.vila__panels h2 { margin: 0.75rem 0 1.5rem; }
.vila__panels p {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .vila {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .vila__media {
    position: relative;
    top: 0;
    aspect-ratio: 4 / 5;
    max-height: none;
  }
  .vila__panels { gap: 4rem; padding-top: 0; padding-bottom: 0; }
}

/* =====================================================
   3. POUSADA — split-sticky scroll
   Foto da lagoa fixa à esquerda, painéis de texto rolando à direita.
   ===================================================== */

.pousada {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.pousada__media {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pousada__media .placeholder {
  width: 100%; height: 100%;
  border: none;
  border-radius: 0;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--green) 70%, var(--blue) 30%),
    color-mix(in srgb, var(--green-deep) 85%, var(--green) 15%)
  );
  aspect-ratio: auto;
}
.pousada__media .placeholder__icon,
.pousada__media .placeholder__label,
.pousada__media .placeholder__spec { color: var(--sand); }

.pousada__panels {
  display: flex; flex-direction: column;
}
.pousada__panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem clamp(2rem, 5vw, 5rem);
  max-width: 56ch;
}
.pousada__panel .eyebrow { color: rgba(237, 227, 210, 0.6); margin-bottom: 1rem; }
.pousada__panel h2 { color: var(--sand); margin-bottom: 1.5rem; }
.pousada__panel p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(237, 227, 210, 0.92);
  margin-bottom: 1rem;
}
.pousada .pull-quote {
  border-left: 1px solid rgba(237, 227, 210, 0.35);
  padding-left: 1.75rem;
  margin: 1rem 0 1.75rem;
}
.pousada .pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.45;
  color: var(--sand);
  margin-bottom: 0.75rem;
}
.pousada .pull-quote cite {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-style: normal;
  color: rgba(237, 227, 210, 0.6);
}

@media (max-width: 900px) {
  .pousada { grid-template-columns: 1fr; }
  .pousada__media {
    position: relative;
    height: 70vh;
    top: 0;
  }
  .pousada__panel {
    min-height: auto;
    padding: 4rem var(--gutter);
  }
}

/* =====================================================
   4. BANGALOS — horizontal scroll pinned section
   Section is tall; inner pins; track translates X based on scroll.
   ===================================================== */

.bangalos-section {
  position: relative;
  overflow: visible !important;
}
.bangalos__pin {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 3rem;
}
.bangalos__head {
  flex-shrink: 0;
  /* top padding must clear the fixed header so the eyebrow/heading isn't
     hidden behind it while the section is sticky-pinned */
  padding: calc(var(--header-h) + 0.25rem) clamp(2rem, 6vw, 6rem) clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.bangalos__head h2 { margin: 0.25rem 0 0; max-width: 22ch; font-size: clamp(1.85rem, 1.3rem + 2.1vw, 3.25rem); }
.bangalos__progress {
  display: flex; gap: 4px;
  align-items: center;
}
.bangalos__progress span {
  width: 24px; height: 1px; background: currentColor;
  opacity: 0.3; transition: opacity 400ms;
}
.bangalos__progress span.is-active { opacity: 1; }

.bangalos__track {
  display: flex;
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: 0 clamp(1.5rem, 6vw, 6rem) 1.5rem;
  scroll-padding-left: clamp(1.5rem, 6vw, 6rem);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.bangalos__track:active { cursor: grabbing; }
.bangalos__track::-webkit-scrollbar { display: none; }
.bangalo {
  flex: 0 0 clamp(240px, 24vw, 320px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scroll-snap-align: start;
}
.bangalo .placeholder,
.bangalo__media {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  margin: 0;
}
.bangalo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bangalo__body { padding: 0 0.25rem; }
.bangalo h3 { margin-bottom: 0.5rem; }
.bangalo__meta {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  opacity: 0.72;
  margin-bottom: 0.875rem;
}
.bangalo p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.bangalos__hint {
  text-align: center;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  opacity: 0.5;
  pointer-events: none;
  padding-top: 0.5rem;
}

.bangalos__nav {
  display: block;
}
.bangalos__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(237, 227, 210, 0.25);
  background: rgba(31, 51, 40, 0.7);
  backdrop-filter: blur(8px);
  color: var(--sand);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms, border-color 200ms, transform 200ms, box-shadow 200ms;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.bangalos__arrow--prev { left: clamp(0.5rem, 2vw, 2rem); }
.bangalos__arrow--next { right: clamp(0.5rem, 2vw, 2rem); }
.bangalos__arrow:hover {
  background: rgba(31, 51, 40, 0.95);
  border-color: rgba(237, 227, 210, 0.5);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.bangalos__arrow:active { transform: translateY(-50%) scale(0.94); }

.bangalos__cta {
  display: flex;
  justify-content: center;
  padding: 1.5rem var(--gutter) 0.5rem;
}

@media (max-width: 900px) {
  .bangalos__track { gap: 0.75rem; padding-bottom: 1.5rem; padding-left: 1.25rem; padding-right: 1.25rem; }
  .bangalo { flex: 0 0 72vw; max-width: 300px; }
  .bangalos__arrow { display: none; }
}

/* =====================================================
   5. BEM-ESTAR — alternating full-width rows com parallax CSS
   ===================================================== */

.bemestar { padding: clamp(4rem, 8vw, 7rem) 0; }
.bemestar__intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  padding: 0 var(--gutter);
}
.bemestar__intro h2 { margin: 1rem 0 1.5rem; }
.bemestar__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.bemestar__row:nth-child(even) { direction: rtl; }
.bemestar__row:nth-child(even) > * { direction: ltr; }
.bemestar__media {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
}
.bemestar__media .placeholder { transition: transform 1200ms var(--ease); }
.bemestar__row:hover .placeholder { transform: scale(1.04); }
.bemestar__copy h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); margin-bottom: 1.25rem; }
.bemestar__copy h3 em { color: var(--green); font-style: italic; font-weight: 300; }
.bemestar__copy p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  max-width: 50ch;
}
@media (max-width: 800px) {
  .bemestar__row { grid-template-columns: 1fr; }
  .bemestar__row:nth-child(even) { direction: ltr; }
}
.bemestar__media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Dark bg overrides for bemestar */
.card--green .bemestar__copy h3 { color: var(--sand); }
.card--green .bemestar__copy h3 em { color: rgba(237, 227, 210, 0.8); }
.card--green .bemestar__copy p { color: rgba(237, 227, 210, 0.85); }
.card--green .bemestar__copy .eyebrow { color: rgba(237, 227, 210, 0.55); }

/* ===== Accommodations grid (shared) ===== */
.acomodacoes { padding: clamp(4rem, 8vw, 7rem) 0; }
.acomodacoes__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.acomodacoes__head { text-align: center; max-width: 60ch; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.acomodacoes__head h2 { margin: 0 0 1rem; }
.acomodacoes__lede { margin: 0; opacity: 0.75; font-size: 1rem; line-height: 1.6; }
.acomodacoes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.acomo-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 6px; overflow: hidden;
  box-shadow: 0 8px 24px -16px rgba(0,0,0,0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.acomo-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px -16px rgba(0,0,0,0.25); }
.acomo-card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.acomo-card__img .placeholder { aspect-ratio: auto; height: 100%; border-radius: 0; }
.acomo-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acomo-card__body { padding: 1.5rem 1.5rem 1.75rem; flex: 1; display: flex; flex-direction: column; }
.acomo-card__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; margin: 0 0 0.6rem; line-height: 1.2; }
.acomo-card__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 1rem; }
.acomo-card__chip { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.32rem 0.6rem; border-radius: 999px; background: rgba(0,0,0,0.06); }
.acomo-card__copy { font-size: 0.9rem; line-height: 1.55; opacity: 0.78; margin: 0 0 1.5rem; flex: 1; }
.acomo-card__cta {
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; color: inherit; border-bottom: 1px solid currentColor;
  padding-bottom: 3px; align-self: flex-start; transition: opacity 0.2s;
}
.acomo-card__cta:hover { opacity: 0.6; }
@media (max-width: 900px) { .acomodacoes__grid { grid-template-columns: 1fr; } .acomo-card__img { aspect-ratio: 16 / 10; } }

/* ===== Page hero with real images ===== */
.page-hero__bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,51,40,0.25) 0%, rgba(31,51,40,0.65) 100%);
  z-index: 0;
}

/* =====================================================
   6. CASAMENTOS — full-bleed dramático
   ===================================================== */

.casamentos {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  color: var(--sand);
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
}
.casamentos__bg {
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--ink) 75%, var(--terracotta) 25%),
    color-mix(in srgb, var(--green-deep) 75%, var(--terracotta) 25%)
  );
}
.casamentos__bg .placeholder {
  position: absolute; inset: 0;
  border: none; border-radius: 0;
  background: transparent;
  aspect-ratio: auto;
}
.casamentos__bg .placeholder::before {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(183, 105, 58, 0.4), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(31, 51, 40, 0.5), transparent 50%);
  animation: water-drift 24s ease-in-out infinite;
}
.casamentos__bg .placeholder__icon,
.casamentos__bg .placeholder__label,
.casamentos__bg .placeholder__spec { color: var(--sand); opacity: 0.85; }

.casamentos__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 920px;
}
.casamentos__content .eyebrow { color: rgba(237, 227, 210, 0.7); margin-bottom: 1.25rem; }
.casamentos__content .display { color: var(--sand); margin-bottom: 2rem; }
.casamentos__content .display em { color: rgba(237, 227, 210, 0.8); }
.casamentos__content > p {
  color: rgba(237, 227, 210, 0.9);
  font-size: 1.125rem;
  line-height: 1.75;
  margin: 0 auto 2.5rem;
  max-width: 56ch;
}

/* Per-line reveal */
[data-line-reveal] .line {
  display: inline-block;
  overflow: hidden;
}
[data-line-reveal] .line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 120ms);
}
[data-line-reveal].in-view .line > span {
  transform: translateY(0);
}

/* =====================================================
   7. RESERVAS — editorial format
   ===================================================== */

.reservas {
  position: relative;
  overflow: hidden;
  color: var(--sand);
  padding: clamp(5rem, 10vw, 8rem) var(--gutter);
}
.reservas__bg {
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--blue-deep) 70%, var(--green-deep) 30%) 0%,
    color-mix(in srgb, var(--green-deep) 90%, var(--blue) 10%) 100%
  );
}
.reservas__bg::before {
  content: '';
  position: absolute; inset: -10%;
  background:
    radial-gradient(ellipse at 25% 40%, rgba(58, 107, 130, 0.4), transparent 55%),
    radial-gradient(ellipse at 75% 65%, rgba(183, 105, 58, 0.18), transparent 55%);
  animation: water-drift 28s ease-in-out infinite;
}
.reservas__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.reservas__inner .eyebrow {
  color: rgba(237, 227, 210, 0.7);
  margin-bottom: 1.25rem;
}
.reservas__inner h2 {
  color: var(--sand);
  margin-bottom: 2rem;
}
.reservas__inner h2 em { color: rgba(237, 227, 210, 0.82); }
.reservas__letter {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.125rem, 1.6vw, 1.4rem);
  line-height: 1.7;
  color: rgba(237, 227, 210, 0.92);
  margin-bottom: 3rem;
  text-align: left;
}
.reservas__letter p { margin-bottom: 1.25rem; }
.reservas__letter p:last-child { margin-bottom: 0; }
.reservas__ctas {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap;
}
.reservas .btn-secondary {
  border-color: var(--sand);
  color: var(--sand);
}
.reservas .btn-secondary:hover {
  background: var(--sand);
  color: var(--green-deep);
}

/* =====================================================
   PLACEHOLDERS (annotated image/video stubs)
   ===================================================== */

.placeholder {
  position: relative;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--sand) 88%, var(--green) 12%),
    color-mix(in srgb, var(--sand) 55%, var(--green) 45%)
  );
  border: 1px dashed color-mix(in srgb, var(--green) 50%, transparent);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--green-deep);
  isolation: isolate;
}
.placeholder::before {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.18), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(46, 74, 58, 0.22), transparent 60%);
  z-index: -1;
  animation: water-drift 16s ease-in-out infinite;
  pointer-events: none;
}
.placeholder__inner {
  padding: 1.5rem;
  max-width: 32ch;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: center;
}
.placeholder__icon { font-size: 1.5rem; opacity: 0.75; }
.placeholder__label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.5;
}
.placeholder__spec {
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  opacity: 0.65;
}
.placeholder--portrait { aspect-ratio: 3 / 4; }
.placeholder--square   { aspect-ratio: 1; }
.placeholder--wide     { aspect-ratio: 16 / 9; }

/* =====================================================
   PAGE HERO — usado em /a-vila/, /a-pousada/, etc.
   ===================================================== */

.page-hero {
  min-height: 70vh; min-height: 70svh;
  display: flex; flex-direction: column; justify-content: end;
  position: relative;
  padding: 8rem var(--gutter) 4rem;
  overflow: hidden;
  color: var(--sand);
}
.page-hero__bg {
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, var(--green-deep), var(--green));
}
.page-hero__bg .placeholder {
  position: absolute; inset: 0;
  border: none; border-radius: 0;
  aspect-ratio: auto;
  background: transparent;
}
.page-hero__bg .placeholder::before {
  background:
    radial-gradient(ellipse at 25% 35%, rgba(58,107,130,0.4), transparent 55%),
    radial-gradient(ellipse at 75% 70%, rgba(46,74,58,0.45), transparent 55%);
}
.page-hero__bg .placeholder__icon,
.page-hero__bg .placeholder__label,
.page-hero__bg .placeholder__spec { color: var(--sand); opacity: 0.8; }

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.page-hero .eyebrow { color: rgba(237,227,210,0.7); margin-bottom: 1rem; }
.page-hero h1 { color: var(--sand); margin-bottom: 1rem; }
.page-hero .lede {
  color: rgba(237,227,210,0.85);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
}

.breadcrumb {
  display: flex; gap: 0.75rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(237,227,210,0.65);
  margin-bottom: 2rem;
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--sand); }
.breadcrumb span { opacity: 0.5; }

/* Generic page content */
.page-content {
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
  max-width: 760px;
  margin: 0 auto;
}
.page-content > p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.page-content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin: 3rem 0 1.5rem;
  text-wrap: balance;
}
.page-content h2 em { font-style: italic; font-weight: 300; color: var(--green); }

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
  background: var(--green-deep);
  color: rgba(237, 227, 210, 0.85);
  padding: clamp(3rem, 6vw, 5rem) 0 1.5rem;
  font-size: 0.875rem;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  margin-top: calc(var(--card-overlap) * -1);
  position: relative;
  z-index: 1;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 0 var(--gutter) 3rem;
  border-bottom: 1px solid rgba(237, 227, 210, 0.15);
  max-width: var(--container);
  margin: 0 auto;
}
.footer__col--brand p {
  max-width: 36ch;
  margin-top: 1rem;
  line-height: 1.6;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--sand);
}
.footer__col p { line-height: 1.7; }
.footer__col a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.footer__col a:hover { border-color: var(--sand); }
.logo--footer .logo__mark, .logo--footer .logo__text { color: var(--sand); }
.footer__base {
  padding: 1.5rem var(--gutter) 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.7rem;
  color: rgba(237, 227, 210, 0.5);
  max-width: var(--container);
  margin: 0 auto;
}
.footer__base a { color: inherit; text-decoration: underline; }
.footer__social {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.5rem;
}
.footer__social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(237, 227, 210, 0.25);
  border-radius: 50%;
  color: var(--sand);
  transition: background-color 200ms, border-color 200ms;
}
.footer__social a:hover {
  background-color: rgba(237, 227, 210, 0.12);
  border-color: rgba(237, 227, 210, 0.5);
}
.footer__social svg { display: block; }
@media (max-width: 800px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* =====================================================
   WhatsApp float
   ===================================================== */

.wa-float {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(46, 74, 58, 0.32);
  z-index: 60;
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease);
  cursor: pointer;
}
.wa-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 32px rgba(46, 74, 58, 0.4);
}

/* ===== WhatsApp Widget ===== */
.wa-widget {
  position: fixed;
  bottom: calc(1.5rem + 56px + 0.75rem);
  right: 1.5rem;
  width: min(340px, calc(100vw - 2rem));
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(31, 51, 40, 0.28), 0 0 0 1px rgba(46, 74, 58, 0.08);
  z-index: 59;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 280ms var(--ease), visibility 280ms, transform 280ms var(--ease);
}
.wa-widget.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.wa-widget__header {
  padding: 1.25rem 1.25rem 0;
}
.wa-widget__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.wa-widget__subtitle {
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.wa-widget__close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 28px; height: 28px;
  font-size: 1.25rem; line-height: 1;
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background-color 200ms;
  cursor: pointer;
  background: none; border: none;
}
.wa-widget__close:hover { background-color: rgba(46, 74, 58, 0.08); }
.wa-widget__body {
  padding: 1rem 1.25rem 1.25rem;
}
.wa-widget__form {
  display: flex; flex-direction: column; gap: 0.75rem;
}
.wa-widget__form label {
  display: flex; flex-direction: column;
  gap: 0.3rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--ink-soft);
}
.wa-widget__form input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(46, 74, 58, 0.25);
  border-radius: 4px;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
  transition: border-color 200ms, box-shadow 200ms;
}
.wa-widget__form input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 74, 58, 0.12);
}
.wa-widget__form input::placeholder {
  color: rgba(46, 74, 58, 0.35);
}
.wa-widget__submit {
  margin-top: 0.25rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  background: var(--green);
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 200ms, transform 200ms;
  width: 100%;
}
.wa-widget__submit:hover {
  background: color-mix(in srgb, var(--green), #000 10%);
  transform: translateY(-1px);
}
.wa-widget__submit svg { flex-shrink: 0; }

/* =====================================================
   CUSTOM CURSOR — soft blob with lag, desktop only
   ===================================================== */

.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  color: rgba(255, 255, 255, 0.6);
  transform: translate(-50%, -50%);
  transition: width 320ms var(--ease), height 320ms var(--ease), border-color 320ms;
  will-change: transform;
  display: none;
}
.cursor.is-hover {
  width: 56px; height: 56px;
  background: rgba(255, 255, 255, 0.06);
}
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  body.has-cursor, body.has-cursor * { cursor: none !important; }
}

/* =====================================================
   MODALS (injetados em runtime via JS)
   ===================================================== */

.lc-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms, visibility 320ms;
}
.lc-modal.is-open { opacity: 1; visibility: visible; }
.lc-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(31, 51, 40, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lc-modal__card {
  position: relative;
  background: var(--paper);
  padding: clamp(2rem, 4vw, 2.75rem);
  width: min(420px, calc(100% - 2rem));
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 4px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
  transform: translateY(20px);
  transition: transform 420ms var(--ease);
}
.lc-modal.is-open .lc-modal__card { transform: translateY(0); }
.lc-modal__card--wide { width: min(560px, calc(100% - 2rem)); }
.lc-modal__close {
  position: absolute;
  top: 0.875rem; right: 0.875rem;
  width: 32px; height: 32px;
  font-size: 1.625rem; line-height: 1;
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px;
  transition: background-color 200ms;
}
.lc-modal__close:hover { background-color: rgba(46, 74, 58, 0.08); }
.lc-modal__eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}
.lc-modal__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.lc-modal__text {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ===== Forms ===== */
.lc-form { display: flex; flex-direction: column; gap: 1rem; }
.lc-form label {
  display: flex; flex-direction: column;
  gap: 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--ink-soft);
}
.lc-form input,
.lc-form select,
.lc-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(46, 74, 58, 0.3);
  border-radius: 2px;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
  transition: border-color 200ms, box-shadow 200ms;
}
.lc-form input:focus,
.lc-form select:focus,
.lc-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 74, 58, 0.12);
}
.lc-form textarea { min-height: 120px; resize: vertical; }
.lc-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.lc-form .children-ages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.lc-form button[type="submit"] { margin-top: 0.5rem; }

/* =====================================================
   REVEAL ANIMATIONS (IntersectionObserver-driven)
   ===================================================== */

[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--reveal-duration) var(--ease),
    transform var(--reveal-duration) var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   LIGHTBOX (galeria)
   ===================================================== */

.lightbox {
  position: fixed; inset: 0;
  z-index: 300;
  background: rgba(31, 51, 40, 0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 320ms, visibility 320ms;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage {
  width: min(1100px, calc(100% - 5rem));
  height: min(80vh, 720px);
  position: relative;
}
.lightbox__media {
  width: 100%; height: 100%;
  object-fit: contain;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__media .placeholder {
  width: 100%; height: 100%;
  border: 1px dashed rgba(237, 227, 210, 0.3);
  background: linear-gradient(135deg,
    rgba(58, 107, 130, 0.4),
    rgba(46, 74, 58, 0.6)
  );
  aspect-ratio: auto;
  color: var(--sand);
}
.lightbox__media .placeholder__icon,
.lightbox__media .placeholder__label,
.lightbox__media .placeholder__spec { color: var(--sand); }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(237, 227, 210, 0.1);
  color: var(--sand);
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 200ms;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(237, 227, 210, 0.2); }
.lightbox__close { top: 1.5rem; right: 1.5rem; transform: none; }
.lightbox__nav--prev { left: -1rem; }
.lightbox__nav--next { right: -1rem; }
.lightbox__counter {
  position: absolute;
  bottom: -2.5rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(237, 227, 210, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
@media (max-width: 700px) {
  .lightbox__nav--prev { left: 0.5rem; }
  .lightbox__nav--next { right: 0.5rem; }
  .lightbox__stage { width: calc(100% - 1rem); }
}

/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: clamp(0.5rem, 1vw, 1rem);
  padding: clamp(2rem, 4vw, 4rem) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.gallery__item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
}
.gallery__item .placeholder {
  width: 100%; height: 100%;
  aspect-ratio: auto;
  transition: transform 1.2s var(--ease);
}
.gallery__item:hover .placeholder { transform: scale(1.04); }
.gallery__item--w4 { grid-column: span 4; aspect-ratio: 3/4; }
.gallery__item--w6 { grid-column: span 6; aspect-ratio: 4/3; }
.gallery__item--w8 { grid-column: span 8; aspect-ratio: 16/9; }
.gallery__item--w12 { grid-column: span 12; aspect-ratio: 21/9; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--w4, .gallery__item--w6, .gallery__item--w8, .gallery__item--w12 {
    grid-column: span 1; aspect-ratio: 3/4;
  }
}

/* =====================================================
   View Transitions API (page transitions)
   ===================================================== */

@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: 320ms var(--ease) both fade-out;
}
::view-transition-new(root) {
  animation: 520ms var(--ease) 80ms both fade-in;
}
@keyframes fade-out {
  to { opacity: 0; transform: scale(0.985); }
}
@keyframes fade-in {
  from { opacity: 0; transform: scale(1.015); }
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-animate] { opacity: 1; transform: none; }
  .split-reveal .word { clip-path: none; transform: none; animation: none; }
  .card { transform: none !important; }
  .ripple { display: none; }
  .cursor { display: none !important; }
}
