/* =====================================================
   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 — Hotel Boutique Bahia Bonita -----
     Paleta autoritativa do kit oficial em assets/brand/.
     Tokens semânticos (--accent, --cta, --bg, --text) + aliases legados
     (--green*, --blue*, --terracotta) para não quebrar o template. */

  /* Cores oficiais */
  --accent:        #6CC2C4;  /* Teal — primária, botões, dividers, destaques */
  --accent-hover:  #5AB0B2;
  --cta:           #C99F75;  /* Dourado — CTAs, badges, header sólido */
  --cta-hover:     #A8835E;

  --bg:            #FFF8F2;  /* creme — fundo principal */
  --surface:       #FDFAF7;  /* cards, formulários */
  --surface-light: #FFF0E2;  /* seções de destaque */

  --text:          #29393A;  /* texto principal (também usado em fundos dark) */
  --text-muted:    #6B7A7B;

  /* Tons escuros derivados — usados em cards/hero/footer */
  --dark:          #1F2D2E;  /* fundo escuro principal */
  --dark-soft:     #29393A;

  /* Aliases legados (preservados para não quebrar o CSS existente) */
  --sand:        var(--surface-light);
  --sand-light:  var(--surface);
  --paper:       var(--bg);
  --ink:         var(--text);
  --ink-soft:    var(--text-muted);
  --green:       var(--accent);
  --green-deep:  var(--dark);
  --green-soft:  var(--dark-soft);
  --blue:        var(--accent);
  --blue-deep:   var(--dark);
  --terracotta:  var(--cta);

  /* Tipografia oficial — Fraunces + Nunito Sans (self-hosted em
     assets/brand/fontes/fonts.css). Regra de marca:
     Fraunces sempre em weight 300, nunca bold. */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Nunito Sans', 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 */
}
@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: 300;          /* regra de marca: Fraunces sempre 300, nunca bold */
  line-height: 1.05;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
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: 300;
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  line-height: 1.25;
}
.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;
  padding: 1.25rem 0;
  background-color: transparent;
  color: #fff;
  transition: background-color 320ms ease, color 320ms ease, box-shadow 320ms ease;
}
.header.is-scrolled {
  background-color: #C99F75;
  color: #fff;
  box-shadow: 0 2px 18px rgba(0,0,0,0.08);
}
/* Quando o drawer mobile está aberto, o header deixa de ser transparente
   e mantém texto branco (mesmo padrão do drawer). */
body.nav-open .header {
  background-color: #C99F75;
  color: #fff;
  box-shadow: 0 2px 18px rgba(0,0,0,0.08);
}
.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;
  flex-shrink: 0; /* nunca encolher — troca de idioma não pode redimensionar o logo */
}
.logo__img { flex-shrink: 0; max-width: none; }
.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 SVG — sempre a versão branca, em qualquer estado do header */
.logo__img {
  height: 38px;
  width: auto;
  display: block;
}
.logo__img--footer { height: 64px; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav > a,
.nav > .nav-item > a {
  font-size: 0.875rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  letter-spacing: 0.04em;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.nav > .nav-item { display: inline-flex; align-items: center; }
.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;
}

/* ===== Nav dropdown (Casas e Suítes) ===== */
.nav-item { position: relative; }
.nav-item > a .nav-arrow {
  font-size: 0.65em;
  margin-left: 0.25em;
  display: inline-block;
  transition: transform 200ms var(--ease);
}
.nav-item:hover > a .nav-arrow { transform: rotate(180deg); }
.nav-sub {
  position: absolute;
  top: 100%; left: 50%;
  min-width: 240px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
  z-index: 200;
  text-align: center;
}
.nav-item:hover > .nav-sub,
.nav-item:focus-within > .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-sub a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.78rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: background 150ms, color 150ms;
}
.nav-sub a:hover { background: rgba(0,0,0,0.04); color: var(--cta); }
.nav-sub a::after { display: none; }

.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 #fff;
  color: #fff;
  background: transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 200ms, color 200ms;
}
.lang:hover { background: #fff; color: var(--text); }

/* Dropdown de idiomas */
.lang-switch { position: relative; }
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  min-width: 56px;
  z-index: 50;
}
.lang-switch__menu[hidden] { display: none; }
.lang-switch__menu button {
  display: block;
  width: 100%;
  padding: 0.35rem 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  text-align: center;
  background: transparent;
  color: var(--text);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background 150ms;
}
.lang-switch__menu button:hover,
.lang-switch__menu button[aria-current="true"] {
  background: rgba(0, 0, 0, 0.06);
}

/* ===== Hamburger toggle (mobile) ===== */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 250ms ease, opacity 200ms ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

  /* drawer mobile: nav full-screen abaixo do header */
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #C99F75;
    padding: 2rem var(--gutter);
    transform: translateX(100%);
    transition: transform 360ms var(--ease, cubic-bezier(0.16,1,0.3,1));
    overflow-y: auto;
    z-index: 99;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 0;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    text-align: center;
    width: 100%;
  }
  .nav a::after { display: none; }
  body.nav-open { overflow: hidden; }

  /* Dropdown colapsável no drawer mobile */
  .nav > .nav-item {
    display: block !important;
    width: 100%;
    align-items: unset;
  }
  .nav-item > a {
    position: relative;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  .nav-item > a .nav-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    transition: transform 240ms var(--ease, ease);
  }
  .nav-item.is-open > a .nav-arrow { transform: translateY(-50%) rotate(180deg); }
  .nav-sub,
  .nav-item:hover > .nav-sub,
  .nav-item:focus-within > .nav-sub {
    position: static;
    left: auto;
    opacity: 1;
    visibility: visible;
    transform: none !important;
    background: transparent;
    box-shadow: none;
    margin-top: 0;
    min-width: auto;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    text-align: center;
    transition: max-height 320ms var(--ease, ease), padding 320ms var(--ease, ease);
  }
  .nav-item.is-open > .nav-sub {
    max-height: 600px !important;
    padding: 0.25rem 0 0.5rem;
  }
  .nav-sub a {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.65rem 0 !important;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
  }
  .nav-sub a:hover { color: #fff; background: transparent; }

  .nav-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 2rem;
    padding-bottom: 1rem;
  }
  .nav-social a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #fff;
    transition: background 200ms, border-color 200ms, color 200ms;
  }
  .nav-social a:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.95);
    color: var(--ink);
  }
  .nav-social svg { width: 20px; height: 20px; }
}
/* Esconder o bloco fora do drawer mobile */
@media (min-width: 901px) {
  .nav-social { display: none; }
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.85rem;
  background: #fff;
  color: var(--text);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;                              /* pill — regra de marca */
  box-shadow: 0 2px 8px rgba(41, 57, 58, 0.12);
  transition: background-color 320ms var(--ease), color 320ms var(--ease), transform 320ms var(--ease), box-shadow 320ms var(--ease);
}
.btn-primary:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(41, 57, 58, 0.22);
}
.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(--accent);
  color: var(--accent);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: background-color 320ms var(--ease), color 320ms var(--ease);
}
.btn-secondary:hover { background: var(--accent); color: #fff; }

.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.
   100lvh (large viewport height) força o hero a ocupar a tela inteira
   mesmo quando a barra de endereço do mobile colapsa. */
body:has(> .hero) .stack {
  padding-top: 100vh;
  padding-top: 100lvh;
  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;
  /* Força altura explícita pra evitar edge cases de inset:0 em Safari iOS
     com a barra de endereço dinâmica. */
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--sand);
  isolation: isolate;
}
.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-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);
  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;
  animation: fade-up 1.4s var(--ease) 1.4s forwards;
}
@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 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 > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.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;
  /* tall — JS sets exact height via --bangalos-vh */
  height: 380vh;
}
.bangalos__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Buffer fixo à esquerda — o track translateX corre por dentro,
     então só padding aqui dentro do pin garante respiro permanente */
  padding-left: clamp(1.5rem, 5vw, 4rem);
}
.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) + 1.25rem) var(--gutter) 1.5rem clamp(2rem, 8vw, 6rem);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.bangalos__head h2 { margin: 0.5rem 0 0; max-width: 14ch; }
.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 {
  flex: 1;
  display: flex;
  /* stretch: cards ocupam a altura disponível do track. Combinado com
     min-height/flex no body, isso garante que as fotos tenham tamanho
     consistente entre cards (sem o body "comer" altura). */
  align-items: stretch;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 0 clamp(2rem, 6vw, 6rem) 3rem clamp(3rem, 9vw, 7rem); /* extra à esquerda */
  width: max-content;
  will-change: transform;
}
.bangalo {
  flex: 0 0 clamp(280px, 38vw, 480px);
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
/* Foto cresce com o card; body abaixo tem altura reservada fixa,
   de modo que todas as fotos terminem na mesma linha visual. */
.bangalo .placeholder,
.bangalo > img {
  flex: 1;
  width: 100%;
  min-height: 0;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}
.bangalo__body {
  flex: 0 0 9rem;       /* altura fixa: garante que todas as fotos terminem na mesma linha visual */
  padding: 0 0.25rem;
  overflow: hidden;
}
.bangalo h3 { margin-bottom: 0.5rem; }
.bangalo__meta {
  font-size: 0.7rem;
  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;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bangalos__footer {
  /* Fica em fluxo (não absolute) para reservar espaço próprio
     no rodapé do pin, evitando sobreposição com os cards.
     padding-bottom generoso cria respiro até a próxima dobra. */
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem clamp(2rem, 5vw, 4rem) clamp(3.5rem, 7vw, 6rem);
}

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

.bangalos__cta {
  /* btn-secondary base + ajustes para fundo dark */
  border-color: rgba(240, 229, 210, 0.7);
  color: var(--sand);
  padding: 0.6rem 1.4rem;
  font-size: 0.7rem;
}
.bangalos__cta:hover {
  background: var(--sand);
  color: var(--text);
}

@media (max-width: 700px) {
  .bangalos__footer {
    flex-direction: column-reverse;
    gap: 0.75rem;
    padding: 1rem var(--gutter) 4rem;
    bottom: 1rem;
  }
}

/* mobile: convert pinned scroll-driven carousel to native horizontal swipe */
@media (max-width: 900px) {
  .bangalos-section { height: auto; }
  .bangalos__pin {
    position: relative;
    height: auto;
    overflow: visible;
    padding-bottom: 2rem;
  }
  .bangalos__track {
    /* override base `width: max-content` and `transform` from desktop:
       on mobile, the track is exactly viewport-width and items overflow
       INSIDE it, with native horizontal scrolling */
    width: 100%;
    transform: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 1rem var(--gutter) 1.5rem clamp(1.5rem, 6vw, 3rem);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
  }
  .bangalos__track:active { cursor: grabbing; }
  .bangalos__track::-webkit-scrollbar { display: none; }
  .bangalo {
    flex: 0 0 78vw;
    height: 70vh;
    scroll-snap-align: start;
  }
  .bangalos__hint { position: relative; bottom: auto; left: auto; transform: none; text-align: center; padding: 1rem 0 0; }
}

/* =====================================================
   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; }
}

/* =====================================================
   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: 0;
  margin-top: 0;
  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__social {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.25rem;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(237, 227, 210, 0.25);
  border-bottom-color: rgba(237, 227, 210, 0.25); /* override .footer__col a */
  border-radius: 50%;
  color: rgba(237, 227, 210, 0.7);
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
  transition: border-color 250ms var(--ease), color 250ms var(--ease), background 250ms var(--ease);
}
.footer__social a:hover {
  color: var(--ink);
  background: rgba(237, 227, 210, 0.95);
  border-color: rgba(237, 227, 210, 0.95);
}
.footer__social svg { width: 18px; height: 18px; }

.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 p a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.footer__col p 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; }
@media (max-width: 800px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer__inner { grid-template-columns: 1fr; }
}

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

/* WhatsApp float — logo da marca em pílula circular, com balão de fala
   sofisticado entrando após 5s e ancorado à esquerda do botão. */
.wa-dock {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-direction: row;
}
.wa-float {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(41, 57, 58, 0.28), 0 2px 6px rgba(41, 57, 58, 0.18);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), background-color 320ms;
  overflow: hidden;
  flex-shrink: 0;
}
.wa-float:hover {
  transform: translateY(-2px) scale(1.04);
  background: var(--accent-hover);
  box-shadow: 0 14px 34px rgba(41, 57, 58, 0.34), 0 3px 8px rgba(41, 57, 58, 0.2);
}
.wa-float__logo {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}

/* Balão de fala — aparece após 5s, fade + slide-in da direita */
.wa-bubble {
  position: relative;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.3;
  padding: 0.75rem 1.1rem;
  border-radius: 14px;
  box-shadow:
    0 12px 30px rgba(41, 57, 58, 0.16),
    0 2px 6px rgba(41, 57, 58, 0.08),
    inset 0 0 0 1px rgba(201, 159, 117, 0.18);
  white-space: nowrap;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateX(10px) scale(0.96);
  transform-origin: right center;
  pointer-events: none;
  animation: wa-bubble-in 700ms var(--ease) 5s forwards;
}
.wa-bubble em {
  font-style: italic;
  font-weight: 400;
  color: var(--cta);
}
.wa-bubble::after {
  /* seta apontando para o botão */
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: var(--surface);
  box-shadow:
    1px -1px 0 rgba(201, 159, 117, 0.18);
  border-radius: 2px;
}
@keyframes wa-bubble-in {
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@media (max-width: 600px) {
  .wa-bubble { font-size: 0.8125rem; padding: 0.6rem 0.85rem; }
  .wa-float { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-bubble { animation: none; opacity: 1; transform: none; }
}

/* =====================================================
   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__card--benefits { width: min(480px, calc(100% - 2rem)); }
.lc-modal__title em { font-style: italic; color: var(--accent, var(--cta)); }
.benefits-list {
  list-style: none; padding: 0; margin: 0 0 1.5rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.benefits-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--paper) 60%, white 40%);
  transition: border-color 200ms, background 200ms;
}
.benefits-item:hover {
  border-color: color-mix(in srgb, var(--cta) 50%, transparent);
  background: color-mix(in srgb, var(--paper) 30%, white 70%);
}
.benefits-item__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cta, #7BC4C4) 14%, transparent);
  color: var(--cta, #7BC4C4);
  flex-shrink: 0;
}
.benefits-item__icon svg { width: 22px; height: 22px; }
.benefits-item__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 0.2rem;
  line-height: 1.2;
}
.benefits-item__copy {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
.btn-benefits {
  background: #7BC4C4 !important;
  color: #fff !important;
  border-color: #7BC4C4 !important;
  transition: background 220ms, transform 220ms;
}
.btn-benefits:hover {
  background: #6AB4B4 !important;
  border-color: #6AB4B4 !important;
  transform: translateY(-1px);
}
.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;
}
.lc-modal__skip {
  display: block;
  margin: 0.75rem auto 0;
  padding: 0.25rem 0.5rem;
  background: none;
  border: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 200ms ease;
}
.lc-modal__skip:hover,
.lc-modal__skip:focus-visible { opacity: 1; }

/* ===== 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 .form-row > label { min-width: 0; }
.lc-form .form-row > label > input { width: 100%; min-width: 0; box-sizing: border-box; }
.lc-form .children-ages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.lc-form .children-ages > label { min-width: 0; }
.lc-form .children-ages > label > select { width: 100%; min-width: 0; box-sizing: border-box; }
.lc-form button[type="submit"] { margin-top: 0.5rem; }

/* ===== Stepper (+/− para adultos e crianças) ===== */
.stepper-group {
  display: flex; flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(46, 74, 58, 0.18);
  border-radius: 6px;
  background: color-mix(in srgb, var(--paper) 50%, white 50%);
}
.stepper {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
}
.stepper + .stepper {
  border-top: 1px solid rgba(46, 74, 58, 0.1);
  padding-top: 0.85rem;
}
.stepper__info { min-width: 0; }
.stepper__label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
  margin: 0 0 0.15rem;
}
.stepper__hint {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
}
.stepper__controls {
  display: flex; align-items: center; gap: 0.55rem;
  flex-shrink: 0;
}
.stepper__btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid #7BC4C4;
  background: transparent;
  color: #7BC4C4;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  transition: background 180ms, color 180ms, border-color 180ms, opacity 180ms;
}
.stepper__btn:hover:not(:disabled) {
  background: #7BC4C4; color: #fff;
}
.stepper__btn:disabled {
  opacity: 0.3; cursor: not-allowed;
  border-color: rgba(46, 74, 58, 0.25); color: rgba(46, 74, 58, 0.4);
}
.stepper__count {
  min-width: 1.5ch;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stepper-group__warn {
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(46, 74, 58, 0.1);
  font-size: 0.78rem;
  color: var(--cta, #7BC4C4);
  font-style: italic;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
}

/* Botão secundário WhatsApp dentro do booking modal */
.btn-wa-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(46, 74, 58, 0.3);
  border-radius: 2px;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 200ms, background 200ms, color 200ms;
}
.btn-wa-secondary:hover {
  border-color: #7BC4C4;
  background: rgba(123, 196, 196, 0.08);
  color: #5a9c9c;
}
.btn-wa-secondary svg { flex-shrink: 0; }

/* Mobile: modal fullscreen — elimina overflow e cálculos de viewport
   que falhavam em bordas (Safari iOS, telas estreitas). */
@media (max-width: 700px) {
  .lc-modal {
    padding: 0;
    align-items: stretch;
  }
  .lc-modal__card,
  .lc-modal__card--wide,
  .lc-modal__card--benefits {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    padding: 4.5rem 1.25rem 2rem;
    border-radius: 0;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    box-shadow: none;
  }
  .lc-modal__close {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 1;
  }
  .lc-modal__title { font-size: 1.4rem; }
  .lc-modal__text { font-size: 0.9rem; margin-bottom: 1.25rem; }
  .lc-form { gap: 0.85rem; }
  .lc-form .form-row { grid-template-columns: 1fr; gap: 0.85rem; }
  .lc-form .children-ages { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .lc-form label { min-width: 0; }
  .lc-form input,
  .lc-form select,
  .lc-form textarea {
    font-size: 16px; /* evita zoom no iOS */
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .stepper-group { padding: 0.85rem 0.95rem; }
  .stepper { gap: 0.5rem; }
  .stepper__btn { width: 40px; height: 40px; font-size: 1.4rem; }
  .stepper__hint { font-size: 0.72rem; }
  .stepper__count { min-width: 1.5ch; font-size: 1.05rem; }
  .btn-wa-secondary { padding: 0.75rem 1rem; font-size: 0.72rem; }
}

/* =====================================================
   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%;
  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; }
}
