/* Chalé Alma do Campo — direção «Hora Dourada»: papel creme, musgo, âmbar das luzes. */

@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces.woff2") format("woff2"); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --paper: #F4EFE6;
  --paper-2: #EDE6DA;
  --surface: #FBF8F2;
  --line: #DED4C3;
  --line-strong: #CBBEA9;
  --ink: #26231E;
  --ink-2: #57514A;
  --ink-3: #7D7569;
  --moss: #2F3A2E;
  --moss-2: #45523F;
  --amber: #D4924A;
  --amber-ink: #8E5520;      /* âmbar para texto pequeno sobre o creme (AA) */
  --night: #1C2130;
  --night-2: #252B3C;
  --on-night: #EFE8DC;
  --on-night-2: #B9B2A6;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --section: clamp(96px, 13vw, 168px);
  --radius: 10px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.32, .72, 0, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --dur-fast: 160ms;
  --dur-base: 260ms;
  --dur-slow: 700ms;
  --dur-reveal: 700ms;

  color-scheme: light;
}

/* Modo escuro = o chalé à noite */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15181F; --paper-2: #1B1F29; --surface: #1C2130; --line: #2C3242; --line-strong: #3A4155;
    --ink: #EFE8DC; --ink-2: #C3BBAE; --ink-3: #8F887C; --moss: #DCE3D2; --moss-2: #B9C4AE;
    --amber-ink: #E7AE6C; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15181F; --paper-2: #1B1F29; --surface: #1C2130; --line: #2C3242; --line-strong: #3A4155;
  --ink: #EFE8DC; --ink-2: #C3BBAE; --ink-3: #8F887C; --moss: #DCE3D2; --moss-2: #B9C4AE;
  --amber-ink: #E7AE6C; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* grão de papel, fixo e sem custo de repintura */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
picture { display: block; }
picture img { width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
address { font-style: normal; }
::selection { background: var(--amber); color: var(--night); }
:focus-visible { outline: 2px solid var(--amber-ink); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--moss); color: var(--paper); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 16px; }

/* --- tipografia --- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .75rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--amber-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--light { color: var(--amber); }
.display, .hero__title {
  font-family: var(--serif); font-weight: 340; letter-spacing: -.022em; color: var(--moss);
  font-variation-settings: "opsz" 144;
}
.display, .hero__title, .dusk__line, .space h3, .tour h3 { text-wrap: balance; }
.display { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem); line-height: 1.04; }
.display em, .hero__title em { font-style: italic; font-weight: 300; color: var(--moss-2); }

/* --- botões: pílula com ícone aninhado --- */
.btn {
  --bg: transparent; --fg: var(--moss); --ic-bg: color-mix(in srgb, var(--fg) 10%, transparent);
  display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 6px 6px 6px 24px;
  border-radius: 999px; border: 1px solid transparent; background: var(--bg); color: var(--fg);
  font: 500 .975rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn__icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ic-bg);
  transition: transform var(--dur-base) var(--ease-soft);
}
.btn__icon svg { width: 18px; height: 18px; }
.btn:hover .btn__icon { transform: translateX(3px) scale(1.05); }
.btn--primary { --bg: var(--moss); --fg: var(--paper); --ic-bg: color-mix(in srgb, var(--amber) 85%, transparent); }
.btn--primary .btn__icon { color: var(--night); }
.btn--primary:hover { --bg: var(--moss-2); }
.btn--ghost { padding: 6px 24px; border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--moss); }
.btn--amber { --bg: var(--amber); --fg: var(--night); --ic-bg: rgb(28 33 48 / .14); }
.btn--amber:hover { --bg: #E0A35E; }
.btn--light { --bg: var(--surface); --fg: var(--moss); border-color: var(--line); box-shadow: 0 1px 2px rgb(38 35 30 / .06), 0 10px 30px -12px rgb(38 35 30 / .25); }
.btn--sm { min-height: 44px; padding: 4px 4px 4px 18px; font-size: .9rem; }
.btn--sm .btn__icon { width: 34px; height: 34px; }

/* --- navegação: ilha flutuante --- */
.nav { position: fixed; inset: 16px 0 auto; z-index: 50; display: flex; justify-content: center; padding: 0 var(--gutter); pointer-events: none; }
.nav__bar {
  pointer-events: auto; display: flex; align-items: center; gap: clamp(12px, 2.4vw, 36px);
  width: min(100%, var(--max)); padding: 8px 8px 8px 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 78%, transparent); border: 1px solid color-mix(in srgb, var(--line-strong) 60%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  transition: width var(--dur-slow) var(--ease-soft), box-shadow var(--dur-slow) var(--ease-soft);
}
.nav.is-compact .nav__bar { width: min(100%, 980px); box-shadow: 0 12px 40px -18px rgb(38 35 30 / .35); }
.nav__brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--moss); margin-right: auto; }
.nav__mark { width: 34px; height: 34px; color: var(--moss); }
.nav__name { font: 400 1.2rem/1 var(--serif); letter-spacing: -.01em; }
.nav__name small { display: block; font: 600 .58rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.nav__links { display: flex; gap: clamp(14px, 2vw, 28px); }
.nav__links a { position: relative; text-decoration: none; font-size: .925rem; color: var(--ink-2); padding: 8px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--amber-ink); transform: scaleX(0); transform-origin: right; transition: transform var(--dur-base) var(--ease-out); }
.nav__links a:hover { color: var(--moss); }
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__links a[aria-current="true"] { color: var(--moss); }
.nav__toggle { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--moss); cursor: pointer; }
.nav__toggle i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--paper); transition: transform var(--dur-base) var(--ease-soft); }
.nav__toggle i:first-of-type { top: 18px; } .nav__toggle i:last-of-type { top: 25px; }
.nav__toggle[aria-expanded="true"] i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 120px var(--gutter) 48px; background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a { font: 340 clamp(2rem, 9vw, 3rem)/1.15 var(--serif); color: var(--moss); text-decoration: none; padding: 4px 0;
  opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(2) { transition-delay: 50ms; } .menu.is-open nav a:nth-child(3) { transition-delay: 100ms; }
.menu.is-open nav a:nth-child(4) { transition-delay: 150ms; } .menu.is-open nav a:nth-child(5) { transition-delay: 200ms; }
.menu.is-open nav a:nth-child(6) { transition-delay: 250ms; }
.menu__foot { color: var(--ink-3); font-size: .9rem; }

/* --- abertura --- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(32px, 5vw, 80px);
  max-width: var(--max); margin: 0 auto; min-height: 100dvh; padding: 120px var(--gutter) 64px;
}
.hero__text { display: flex; flex-direction: column; gap: 28px; }
.hero__title { font-size: clamp(2.75rem, 1.2rem + 5.4vw, 6rem); line-height: .98; }
.hero__title em { display: block; }
.hero__lead { max-width: 46ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__media { margin: 0; position: relative; }
/* a foto recortada na silhueta do chalé (mesma proporção do logo: telhado em A, paredes baixas) */
.hero__gable {
  aspect-ratio: 4 / 5; max-height: min(78dvh, 760px); margin-left: auto;
  clip-path: polygon(50% 0, 100% 46%, 100% 100%, 0 100%, 0 46%);
  background: var(--night);
}
.hero__gable picture { height: 100%; }
/* a foto tem meio quadro de céu: aproxima e desloca para o telhado verdadeiro ficar logo abaixo do bico do recorte
   (zoom moderado: o original tem só 720 px de largura) */
.hero__gable img { object-position: 62% 86%; transform-origin: 62% 8%; transform: scale(1.08); transition: transform 1.8s var(--ease-out); }
.hero.is-in .hero__gable img { transform: scale(1.02); }
.hero__media figcaption { position: absolute; left: 0; bottom: -32px; font-size: .8rem; color: var(--ink-3); letter-spacing: .02em; }

/* --- o chalé --- */
.intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center;
  max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter);
}
.intro__art img { width: 100%; height: auto; }
.intro__text { display: flex; flex-direction: column; gap: 22px; }
.intro__text > p:not(.eyebrow) { max-width: 54ch; color: var(--ink-2); }
.intro__art { position: relative; }
.intro__glow { position: absolute; inset: 0; }
.intro__ink { position: relative; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .intro__ink { content: url("assets/brand/illustrated-ink-night.svg"); } }
:root[data-theme="dark"] .intro__ink { content: url("assets/brand/illustrated-ink-night.svg"); }

/* --- espaços --- */
.spaces { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) var(--section); display: flex; flex-direction: column; gap: clamp(72px, 10vw, 144px); }
.space { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.space--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.space--flip .space__media { order: 2; }
.space__media picture { height: 100%; }
.space__media { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; max-height: 86dvh; }
.space:nth-child(odd) .space__media { aspect-ratio: 5 / 4; }
.space__text { display: flex; flex-direction: column; gap: 14px; padding-bottom: clamp(0px, 3vw, 40px); }
.space h3 { font: 340 clamp(1.9rem, 1.3rem + 2vw, 3rem)/1.05 var(--serif); color: var(--moss); letter-spacing: -.02em; }
.space__text p:last-child { color: var(--ink-2); max-width: 40ch; }

/* --- assinatura: do entardecer à noite --- */
.dusk { position: relative; background: var(--night); color: var(--on-night); }
.dusk__sticky { position: sticky; top: 0; height: 100dvh; overflow: hidden; }
.dusk__frames, .dusk__frame { position: absolute; inset: 0; }
.dusk__frame { opacity: 0; transition: opacity 1.4s var(--ease-soft); }
.dusk__frame.is-active { opacity: 1; }
.dusk__frame picture { height: 100%; }
.dusk__frame img { transform: scale(1.08); transition: transform 6s linear; }
.dusk__frame.is-active img { transform: scale(1); }
.dusk__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(21 24 31 / .72) 0%, rgb(21 24 31 / .35) 45%, rgb(21 24 31 / 0) 75%), linear-gradient(0deg, rgb(21 24 31 / .55), transparent 35%); }
.dusk__clock { position: absolute; left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); bottom: 40px; margin: 0; padding: 0; list-style: none; display: flex; gap: 24px; font: 500 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--on-night-2); }
.dusk__clock li { position: relative; padding-top: 14px; transition: color var(--dur-slow) var(--ease-out); }
.dusk__clock li::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: rgb(239 232 220 / .2); }
.dusk__clock li::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease-out); }
.dusk__clock li.is-active { color: var(--on-night); }
.dusk__clock li.is-active::after { transform: scaleX(1); }
.dusk__steps { position: relative; margin-top: -100dvh; }
.dusk__step { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 18px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.dusk__line { max-width: 15ch; font: 300 clamp(2.2rem, 1.2rem + 4vw, 4.75rem)/1.04 var(--serif); letter-spacing: -.02em; color: var(--on-night);
  opacity: .25; transform: translateY(16px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.dusk__step.is-active .dusk__line { opacity: 1; transform: none; }

/* desktop: as fotos da sequência são verticais (720 px) — metade direita em retrato, sem ampliar demais;
   o texto fica na metade esquerda, sobre a noite */
@media (min-width: 981px) {
  .dusk__frame picture { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; height: 100%; }
  .dusk__line { max-width: min(15ch, calc(50vw - var(--gutter) - 48px)); }
  .dusk__veil { background:
      linear-gradient(90deg, var(--night) 0 50%, rgb(28 33 48 / .75) 50%, rgb(28 33 48 / 0) 64%),
      linear-gradient(0deg, rgb(21 24 31 / .5), transparent 30%); }
}

/* --- seções com título --- */
.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head--row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 32px; }
.section-head--row > div { display: flex; flex-direction: column; gap: 18px; }
.section-head__note { max-width: 30ch; color: var(--ink-3); font-size: .95rem; }

/* --- comodidades --- */
.amenities { max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter); }
.amenities__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.amenities__list li { display: grid; grid-template-columns: 40px 1fr; column-gap: 18px; row-gap: 4px; padding: 32px 28px 32px 0; border-bottom: 1px solid var(--line); }
.amenities__list li:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.amenities__list svg { grid-row: span 2; width: 36px; height: 36px; color: var(--moss); }
.amenities__list strong { font: 400 1.35rem/1.2 var(--serif); color: var(--moss); }
.amenities__list span { color: var(--ink-3); font-size: .95rem; }

/* --- galeria --- */
.gallery { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) var(--section); }
.gallery__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 22vw, 300px); grid-auto-flow: dense; gap: clamp(8px, 1.2vw, 16px); }
.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 2; }
.g button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; overflow: hidden; border-radius: 4px; }
.g picture { height: 100%; }
.g img { transition: transform 1s var(--ease-out), filter var(--dur-slow) var(--ease-out); }
.g button:hover img { transform: scale(1.04); }
.g button:focus-visible { outline-offset: 4px; }

/* --- passeios --- */
.tours { background: var(--paper-2); }
.tours > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.tours { padding: var(--section) var(--gutter); }
.tours__list { list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 48px); }
.tour { display: flex; flex-direction: column; gap: 20px; }
.tour--feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.tour__media { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.tour__media picture { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--line); }
.tour--feature .tour__media picture { aspect-ratio: 16 / 9; }
.tour__media figcaption { font-size: .72rem; line-height: 1.4; color: var(--ink-3); }
.tour__media figcaption a { display: inline-block; padding: 5px 0; color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.tour__media figcaption a:hover { color: var(--ink-2); }
.tour__body { display: grid; row-gap: 8px; }
.tour h3 { font: 340 clamp(1.5rem, 1.2rem + 1vw, 2.1rem)/1.1 var(--serif); color: var(--moss); letter-spacing: -.015em; }
.tour__where { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.tour__desc { color: var(--ink-2); max-width: 52ch; }

/* --- localização --- */
.where { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter); }
.where__text { display: flex; flex-direction: column; gap: 24px; }
.where__text > p:not(.eyebrow) { color: var(--ink-2); max-width: 40ch; }
.where address { font: 340 1.5rem/1.35 var(--serif); color: var(--ink-2); }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
.map__art { position: absolute; inset: 8% 10% auto; width: 80%; opacity: .14; }
.map .btn { position: relative; }
.map__note { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: .8rem; color: var(--ink-3); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); }
.map iframe.is-loaded { opacity: 1; }

/* --- contato --- */
.contact { background: var(--night); color: var(--on-night); padding: var(--section) var(--gutter); }
.contact__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.contact__art { width: min(100%, 440px); height: auto; }
.contact__text { display: flex; flex-direction: column; gap: 22px; }
.contact .display { color: var(--on-night); }
.contact .display em { color: var(--amber); white-space: nowrap; }
.contact__text > p:not(.eyebrow) { color: var(--on-night-2); max-width: 44ch; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 8px; }
.contact__phone { display: inline-flex; align-items: center; min-height: 44px; font: 400 1.15rem/1 var(--sans); color: var(--on-night); text-decoration: none; font-variant-numeric: tabular-nums; border-bottom: 1px solid rgb(239 232 220 / .3); padding-bottom: 4px; }
.contact__phone:hover { border-color: var(--amber); }
.contact__ig { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--on-night); text-decoration: none; font: 400 1rem/1 var(--sans); }
.contact__ig svg { width: 22px; height: 22px; color: var(--amber); }
.contact__ig:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--amber); }
.footer__credit { flex-basis: 100%; padding-top: 16px; border-top: 1px solid var(--night-2); font-size: .78rem; color: #8A8FA0; }
.footer a { display: inline-block; padding: 12px 0; margin: -12px 0; color: inherit; }

.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom)); background: var(--night); color: var(--on-night-2); font-size: .85rem; border-top: 1px solid var(--night-2); }

/* --- WhatsApp flutuante --- */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--moss); color: var(--paper); box-shadow: 0 10px 30px -10px rgb(28 33 48 / .55);
  transform: translateY(0); transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { transform: translateY(-2px) scale(1.04); }
.wa-float.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wa-float { background: var(--amber); color: var(--night); } }

/* --- lightbox --- */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; overscroll-behavior: contain; background: #0E1016; color: var(--on-night); }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox::backdrop { background: rgb(14 16 22 / .6); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in var(--dur-base) var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 64px 72px; max-width: 100%; max-height: 100%; }
.lightbox__figure img { max-width: min(92vw, 1400px); max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain; border-radius: 2px; touch-action: pan-y; }
.lightbox__figure figcaption { font-size: .9rem; color: var(--on-night-2); max-width: 60ch; text-align: center; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(239 232 220 / .2); background: rgb(239 232 220 / .06); color: var(--on-night); cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.lightbox__btn:hover { background: rgb(239 232 220 / .14); }
.lightbox__btn:active { transform: scale(.94); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }
.lightbox__count { position: absolute; top: 28px; left: 24px; font: 500 .8rem/1 var(--sans); letter-spacing: .14em; color: var(--on-night-2); font-variant-numeric: tabular-nums; }

/* --- entrada coreografada --- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); filter: blur(5px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out), filter var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js .hero__gable { clip-path: polygon(50% 46%, 50% 46%, 50% 100%, 50% 100%, 50% 46%); transition: clip-path 1s var(--ease-soft) .05s; }
.js .hero.is-in .hero__gable { clip-path: polygon(50% 0, 100% 46%, 100% 100%, 0 100%, 0 46%); }

/* --- efeitos de impresso: sofisticados, lentos, sem perder o rústico --- */

/* 1. títulos: cada palavra sobe de dentro de uma dobra (o JS embrulha as palavras em .w > span) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; }
.js [data-split][data-reveal] { opacity: 1; filter: none; transform: none; }
.js [data-split] .w > span { transform: translateY(105%); transition: transform 1s var(--ease-soft); transition-delay: calc(var(--wi, 0) * 55ms + 80ms); }
.js [data-split].is-in .w > span { transform: none; }
/* a abertura é a primeira tela: mais curta (tudo assentado em ~0,9 s) */
.js .hero [data-split] .w > span { transition-duration: .75s; transition-delay: calc(var(--wi, 0) * 30ms); }
.js .hero [data-reveal] { transition-duration: 600ms; transition-delay: calc(var(--i, 0) * 50ms); }

/* 2. fotos dos espaços: abrem de baixo para cima como cortina de linho e assentam */
/* (o recorte fica na <picture>: no próprio alvo, o IntersectionObserver o veria como invisível e nunca dispararia) */
.js .space__media[data-reveal] { opacity: 1; filter: none; transform: none; }
.js .space__media[data-reveal] picture { clip-path: inset(100% 0 0 0); scale: 1.12; transition: clip-path 1.3s var(--ease-soft), scale 1.8s var(--ease-out); }
.js .space__media[data-reveal].is-in picture { clip-path: inset(0 0 0 0); scale: 1; }

/* 3. parallax leve dentro do quadro, guiado pela própria rolagem (só onde o navegador suporta) */
@supports (animation-timeline: view()) {
  .space__media img, .tour__media img {
    animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%;
  }
  .space__media img, .tour__media img { scale: 1.08; }
  @keyframes drift { from { translate: 0 -4%; } to { translate: 0 4%; } }
}
.tour__media img, .space__media img { transition: scale 1.2s var(--ease-out); }
.space__media:hover img, .tour:hover .tour__media img { transform: none; scale: 1.12; }

/* 4. a ilustração: o nanquim é «desenhado» da esquerda para a direita, o âmbar entra depois, como segunda cor */
.js .intro__art[data-reveal] { opacity: 1; filter: none; transform: none; }
.js .intro__art .intro__ink { clip-path: inset(0 100% 0 0); transition: clip-path 2.2s cubic-bezier(.65, 0, .35, 1) .1s; }
.js .intro__art.is-in .intro__ink { clip-path: inset(0 0 0 0); }
.js .intro__art .intro__glow { opacity: 0; translate: -6px -5px; transition: opacity 1.2s var(--ease-out) 1.7s, translate 1.4s var(--ease-out) 1.7s; }
.js .intro__art.is-in .intro__glow { opacity: 1; translate: 0 0; }

/* 5. divisores: a linha da serra feita à mão se desenha ao entrar na tela */
.ridge { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); color: var(--line-strong); }
.ridge svg { width: 100%; height: clamp(28px, 4vw, 52px); overflow: visible; }
.ridge--flip svg { transform: scaleX(-1); }
.js .ridge[data-reveal] { opacity: 1; filter: none; transform: none; }
.js .ridge use { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s cubic-bezier(.65, 0, .35, 1); }
.js .ridge.is-in use { stroke-dashoffset: 0; }

/* --- responsivo --- */
@media (max-width: 980px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  /* celular: a foto do chalé aceso é a própria abertura (tela cheia), o texto assenta na parte escura de baixo */
  .hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; max-width: none;
    min-height: 100svh; padding: 112px var(--gutter) calc(36px + env(safe-area-inset-bottom)); overflow: hidden; background: #15181F; }
  .hero__media { position: absolute; inset: 0 0 auto; height: 72%; }
  .hero__media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgb(21 24 31 / .5) 0%, rgb(21 24 31 / 0) 18%, rgb(21 24 31 / .12) 34%,
      rgb(21 24 31 / .68) 54%, rgb(21 24 31 / .92) 74%, #15181F 100%); }
  .hero__gable, .js .hero__gable, .js .hero.is-in .hero__gable { height: 100%; max-height: none; width: 100%; aspect-ratio: auto; clip-path: none; overflow: hidden; }
  .hero__gable img { object-position: 60% 76%; transform-origin: 60% 40%; }
  .hero__media figcaption { display: none; }
  .hero__text { position: relative; z-index: 1; gap: 22px; }
  .hero__title, .hero__title em { color: #EFE8DC; text-shadow: 0 1px 18px rgb(10 12 18 / .55); }
  .hero .eyebrow, .hero__lead { text-shadow: 0 1px 10px rgb(10 12 18 / .6); }
  .hero__lead { color: #C9C2B6; font-size: 1rem; }
  .hero .eyebrow { color: var(--amber); }
  .hero .btn--primary { --bg: #EFE8DC; --fg: var(--night); }
  .hero .btn--ghost { --fg: #EFE8DC; border-color: rgb(239 232 220 / .35); }
  .intro, .where, .contact__inner { grid-template-columns: 1fr; }
  .space, .space--flip { grid-template-columns: 1fr; }
  .space--flip .space__media { order: 0; }
  .space__media, .space:nth-child(odd) .space__media { aspect-ratio: 4 / 5; }
  .amenities__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amenities__list li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .amenities__list li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 44vw, 280px); }
  .gallery__grid > .g:last-child { grid-column: 1 / -1; }
  .tours__list { grid-template-columns: 1fr; }
  .tour--feature { grid-template-columns: 1fr; }
  .tour--feature .tour__media picture { aspect-ratio: 4 / 3; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .contact__art { width: min(70%, 320px); }
}
@media (max-width: 560px) {
  .amenities__list { grid-template-columns: 1fr; }
  .amenities__list li:nth-child(even) { padding-left: 0; border-left: 0; }
  .dusk__clock { gap: 16px; top: 96px; bottom: auto; }
  .dusk__veil { background: linear-gradient(0deg, rgb(21 24 31 / .7), rgb(21 24 31 / .45) 55%, rgb(21 24 31 / .3)); }
  .lightbox__figure { padding: 64px 8px 88px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; translate: none; }
  .lightbox__prev { left: calc(50% - 60px); } .lightbox__next { right: calc(50% - 60px); }
  .hero__media figcaption { position: static; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { transform: none; filter: none; }
  .dusk__frame img { transform: none !important; }
  .hero__gable img { transform: scale(1.02) !important; }
  .space__media img, .tour__media img { animation: none !important; translate: none !important; }
  .js [data-split] .w > span { transform: none; }
  .js .space__media[data-reveal] picture, .js .intro__art .intro__ink { clip-path: none; }
  .js .space__media[data-reveal] picture { scale: 1; }
  .js .intro__art .intro__glow { opacity: 1; translate: 0 0; }
  .js .ridge use { stroke-dashoffset: 0; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.footer__credit .footer__credit-mark { text-decoration: none; }
.footer__credit .footer__credit-mark svg { display: inline-block; width: auto; height: 12px; vertical-align: -1px; overflow: visible; }
