/* ============================================================
   Residence Legacy — Stylesheet (vanilla, mobile-first)
   ------------------------------------------------------------
   Convenções:
   - Mobile-first. Breakpoints: 768px (md), 1024px (lg), 1280px (xl).
   - BEM leve nas classes. CSS custom properties para tokens.
   - Sem dependências externas além das fontes Google.
   ============================================================ */


/* ------------------------------------------------------------
   1. DESIGN TOKENS  (CSS Custom Properties)
   ------------------------------------------------------------ */
:root {
  /* Cores — paleta luxe contemporânea */
  --bg:               #F4F1EC;
  --bg-alt:           #ECE6DE;
  --bg-warm:          #E6DED1;
  --bg-dark:          #0E0D0B;
  --bg-dark-overlay:  rgba(14, 13, 11, 0.95);

  --ink:              #1A1814;
  --ink-soft:         #2E2A24;
  --ink-muted:        #5A554E;
  --ink-subtle:       #8A8378;

  --on-dark:          #F4F1EC;
  --on-dark-muted:    rgba(244, 241, 236, 0.80);
  --on-dark-subtle:   rgba(244, 241, 236, 0.60);
  --on-dark-faint:    rgba(244, 241, 236, 0.10);

  --accent:           #8B6F3F;
  --accent-dark:      #6E5630;
  --accent-hover:     rgba(139, 111, 63, 0.92);

  --champagne:        #B89668;
  --champagne-soft:   rgba(184, 150, 104, 0.30);
  --champagne-faint:  rgba(184, 150, 104, 0.20);

  --border:           rgba(26, 24, 20, 0.10);
  --border-strong:    rgba(26, 24, 20, 0.22);
  --border-on-dark:   rgba(244, 241, 236, 0.18);
  --error:            #C8553D;

  /* Tipografia */
  --font-sans:    'Geist', 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Geist', 'Helvetica Neue', sans-serif;
  /* Serif italic — usado APENAS como acento numa palavra dos headlines.
     Optical sizing 144 garante terminais elegantes em tamanhos display. */
  --font-serif:   'Fraunces', 'Georgia', 'Times New Roman', serif;

  /* Sizing */
  --max-content: 1200px;
  --tap:         48px;

  /* Transições */
  --t-fast: 180ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-base: 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-slow: 560ms cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Z-index */
  --z-bar:    95;
  --z-header: 100;
}


/* ------------------------------------------------------------
   2. RESET + BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  color: var(--on-dark);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  /* Espaço para a sticky bar em mobile (24+56+24) */
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

/* ─────────── Film grain noise overlay (Awwwards-grade detail) ───────────
   Pseudo-elemento fixo cobrindo a viewport inteira com textura de ruído
   via SVG fractalNoise inline. opacity: 0.04 + mix-blend-mode: overlay
   deixa a granulação cinematográfica sem alterar a cor das seções.

   pointer-events: none — não intercepta clicks. Em sections com
   `isolation: isolate` (.hero, .section), o blend pode não atravessar
   o stacking context — fica apenas a opacidade flat (visualmente quase
   idêntico a 0.04, imperceptível na prática). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  background-repeat: repeat;
}

/* Reduced-motion: noise mais sutil ainda (estática) */
@media (prefers-reduced-motion: reduce) {
  body::after { opacity: 0.025; }
}


/* ─────────── Warm Light Leak (Quiet Luxury) ───────────
   Vazamento de luz indireta em tom champagne nas seções escuras.
   Implementação via ::before por seção (em vez de body::before
   global) porque cada .section tem `overflow: hidden` + `isolation:
   isolate` + background opaco, o que impede um leak global de ser
   visível. Cada seção ganha sua própria luz, com `animation-delay`
   distinto para um movimento orgânico/dessincronizado.

   inset: -15% expande além das bordas pra que o gradiente possa
   "respirar" durante o translate sem revelar limites retangulares.
   z-index: 0 fica entre o background-color da seção (atrás) e o
   conteúdo em fluxo natural (à frente) graças ao isolation:isolate.

   Opacidade máxima do centro: 9% — limiar do "quase imperceptível".
   ════════════════════════════════════════════════════════════════ */
.section--privilege::before,
.section--dark::before,
.habitat::before,
.footer::before {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 55% 45% at 28% 32%,
      rgba(184, 150, 104, 0.09) 0%,
      rgba(184, 150, 104, 0.04) 35%,
      rgba(184, 150, 104, 0.00) 70%
    );
  animation: ambientLight 25s ease-in-out infinite alternate;
  will-change: transform;
}

/* Footer não declara `position` nem `overflow` por padrão — precisamos
   pra que o ::before absolute ancore corretamente e seja recortado. */
.footer { position: relative; overflow: hidden; }

/* Defasagem orgânica — cada seção começa em ponto distinto do ciclo,
   evitando que todos os leaks "respirem" no mesmo compasso. */
.section--privilege::before { animation-delay: -6s;  }
.habitat::before            { animation-delay: -13s; }
.section--dark::before      { animation-delay: -19s; }
.footer::before             { animation-delay: -3s;  }

@keyframes ambientLight {
  0%   { transform: scale(1)    translate(0%,   0%);   }
  100% { transform: scale(1.10) translate(3%,   4%);   }
}

/* Garante que o conteúdo das seções renderize sobre o leak.
   .container já está em fluxo normal mas reforçamos com z-index
   explícito pra cobrir casos em que algum descendente cria
   stacking context. */
.section--privilege > .container,
.section--dark > .container,
.habitat > .container,
.habitat > .habitat__list,
.habitat > .swipe-hint,
.habitat > .carousel-indicators,
.footer > .container {
  position: relative;
  z-index: 1;
}

/* Reduced-motion: mantém o leak (acrescenta calor à composição)
   mas zera a animação pra evitar movimento contínuo. */
@media (prefers-reduced-motion: reduce) {
  .section--privilege::before,
  .section--dark::before,
  .habitat::before,
  .footer::before {
    animation: none;
  }
}

h1, h2, h3, h4, h5, h6, p { margin: 0; }

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol { list-style: none; padding: 0; margin: 0; }

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

::selection {
  background: var(--accent);
  color: var(--on-dark);
}


/* ------------------------------------------------------------
   3. CONTAINER + SECTION (layout primitives)
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 768px) { .container { padding-inline: 48px; } }
@media (min-width: 1024px) { .container { padding-inline: 80px; } }

.section {
  position: relative;
  width: 100%;
  isolation: isolate;
  overflow: hidden;
  padding-block: 96px;
}
.section--tight { padding-block: 72px; }
.section--loose { padding-block: 120px; }
@media (min-width: 768px) {
  .section          { padding-block: 144px; }
  .section--tight   { padding-block: 96px; }
  .section--loose   { padding-block: 160px; }
}

.section--light { background: var(--bg);      color: var(--ink); }
.section--warm  { background: var(--bg-alt);  color: var(--ink); }
.section--dark  { background: var(--bg-dark); color: var(--on-dark); }

/* ─────────── Transição arredondada (Dark → Light) ───────────
   Aplicada em qualquer .section--rounded-top: a section sobe sobre
   a anterior com cantos superiores arredondados, criando o efeito
   "deslizando por cima" descrito no brief. */
.section--rounded-top {
  position: relative;
  z-index: 2;
  margin-top: clamp(-32px, -3vw, -64px);
  border-top-left-radius: clamp(32px, 5vw, 80px);
  border-top-right-radius: clamp(32px, 5vw, 80px);
  /* Pequena sombra acima reforça a sensação 3D de "lip" sobreposto */
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

/* ─────────── Privilège: dark com scrolljacking ───────────
   Bg ligeiramente diferente do hero (#111 vs #0E0D0B) para que a
   transição perceba sutilmente que mudou de "atmosfera" sem virar
   light. Os items .feature ganham comportamento de foco via JS. */
.section--privilege {
  background: #111;
  color: var(--on-dark);
  /* Padding generoso para acomodar features altas no scrolljacking */
  padding-block: 120px;
}
@media (min-width: 768px) {
  .section--privilege { padding-block: 160px; }
}


/* ------------------------------------------------------------
   4. CHIP (eyebrow tracked uppercase)
   ------------------------------------------------------------ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 20px;
}
.chip--dark {
  padding: 6px 12px;
  border: 1px solid var(--champagne-soft);
  border-radius: 2px;
  background: rgba(26, 24, 20, 0.40);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.chip--light { /* no box, only color */ }


/* ------------------------------------------------------------
   5. SECTION HEAD (chip + headline + sub)
   ------------------------------------------------------------ */
.section-head {
  display: flex;
  flex-direction: column;
  margin-bottom: 64px;
}
@media (min-width: 768px) { .section-head { margin-bottom: 80px; } }

.section-head__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
}
@media (min-width: 768px) { .section-head__title { line-height: 0.98; } }

.section-head__title em {
  font-style: normal;
  color: var(--champagne);
  font-weight: 400;
}

.section-head__sub {
  margin-top: 16px;
  max-width: 52ch;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-muted);
}
@media (min-width: 768px) { .section-head__sub { font-size: 15px; } }

.section-head__sub--dark { color: var(--on-dark-muted); }


/* ------------------------------------------------------------
   6. CTA BUTTONS
   ------------------------------------------------------------ */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding-inline: 28px;
  padding-block: 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: background var(--t-fast), transform var(--t-fast);
}
.cta--primary {
  width: 100%;
  background: var(--accent);
  color: var(--on-dark);
}
/* Shimmer interno — gradient sweep da esquerda pra direita on-hover.
   Implementado via background-position animado no próprio botão (e não
   ::after) pra evitar conflito com z-index de outros pseudo-elementos. */
.cta--primary {
  background-image: linear-gradient(
    100deg,
    var(--accent) 0%,
    var(--accent) 38%,
    rgba(255, 255, 255, 0.22) 50%,
    var(--accent) 62%,
    var(--accent) 100%
  );
  background-size: 220% 100%;
  background-position: 100% 0;
  transition:
    background-color var(--t-fast),
    background-position 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform var(--t-fast),
    box-shadow var(--t-fast);
}
.cta--primary:hover {
  background-color: var(--accent-hover);
  background-position: 0 0;
  box-shadow: 0 18px 36px rgba(139, 111, 63, 0.4);
}
.cta--primary:active { transform: scale(0.98); }
.cta--primary:disabled { opacity: 0.55; cursor: not-allowed; }

@media (min-width: 768px) {
  .cta--primary { font-size: 13px; }
}


/* ─────────── Luxury Pulse — anel sonar/aura ───────────
   Modifier opt-in. Aplicar APENAS em CTAs estratégicos (hero +
   WhatsApp sticky-bar) para não virar poluição visual.

   Como funciona:
   - O botão NÃO escala, NÃO treme, NÃO pulsa. Permanece estático.
   - Um pseudo-elemento ::after duplica o contorno do botão e é
     animado expandindo de scale 1 → ~1.15 com fade out.
   - z-index: -1 + isolation:isolate no parent garantem que o anel
     fica ESCONDIDO atrás do botão dentro dos seus limites e só
     emerge VISIBLY ao "escapar" das bordas.
   - overflow: visible sobrescreve o overflow:hidden herdado do .cta.
   - scaleX(1.05) extra evita que a aura vire círculo em botões
     muito retangulares — mantém proporção horizontal natural. */
.cta--pulse {
  isolation: isolate;     /* cria stacking context p/ z-index:-1 do ::after */
  overflow: visible;      /* sobrescreve .cta { overflow:hidden } */
}
.cta--pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid var(--champagne);
  background: transparent;
  pointer-events: none;
  animation: luxuryPulse 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes luxuryPulse {
  0%   { transform: scale(1);                opacity: 0.8; }
  100% { transform: scale(1.15) scaleX(1.05); opacity: 0; }
}

/* Reduced-motion: desliga a aura completamente */
@media (prefers-reduced-motion: reduce) {
  .cta--pulse::after { animation: none; opacity: 0; }
}


/* ============================================================
   7. HERO — Clean Editorial (Quiet Luxury)
   ------------------------------------------------------------
   100vw × 100vh, imagem fullbleed com Ken Burns CSS puro.
   Overlay linear-gradient pra contraste. Conteúdo no
   centro-inferior, CTA grande no thumb-zone do mobile.
   ============================================================ */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--on-dark);
  isolation: isolate;
}

/* Camada 1: imagem com Ken Burns */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  animation: heroKenBurns 20s linear 0s infinite alternate;
  will-change: transform;
}
@keyframes heroKenBurns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.05); }
}

/* Camada 2: overlay gradient — top transparente, bottom dark */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(14, 13, 11, 0.20)  0%,
    rgba(14, 13, 11, 0.05) 30%,
    rgba(14, 13, 11, 0.55) 70%,
    rgba(14, 13, 11, 0.92) 100%
  );
}

/* ─────────── Scrim de leitura no topo da Hero ───────────
   A nova imagem de fachada tem céu claro — texto branco da brand,
   address e lang-switcher ficam ilegíveis ali. Este gradiente curto
   (35vh) cria contraste só na faixa de cima, sem escurecer a
   composição arquitetônica.
   z-index 3: fica ACIMA do .hero__overlay (z:2) mas ABAIXO do
   .hero__top (z:4) e .hero__content (z:3 ou maior). pointer-events:
   none — não captura cliques. */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 35vh;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0)   100%
  );
  z-index: 3;
  pointer-events: none;
}

/* Camada 3: header brand + endereço */
.hero__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 20px) 24px 20px;
}
@media (min-width: 768px)  { .hero__top { padding: calc(env(safe-area-inset-top) + 32px) 48px 20px; } }
@media (min-width: 1024px) { .hero__top { padding-inline: 80px; } }

.hero__address {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 2px;
  line-height: 1.05;
}
.hero__address-top {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--on-dark-subtle);
}
.hero__address-livraison {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--champagne);
  font-weight: 500;
}

/* Brand badge (compartilhado com o footer) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--on-dark);
  text-decoration: none;
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--champagne-soft);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 16px;
  color: var(--champagne);
}
.brand__stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.05;
}
.brand__top {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--on-dark);
  font-weight: 500;
}
.brand__sub {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--on-dark-subtle);
}

/* Camada 4: conteúdo no centro-inferior */
.hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 24px 24px calc(120px + env(safe-area-inset-bottom));
}
@media (min-width: 768px) {
  .hero__content {
    padding: 24px 48px 96px;
    gap: 24px;
  }
}
@media (min-width: 1024px) {
  .hero__content {
    padding: 24px 80px 112px;
    gap: 28px;
  }
}

/* Headline brutalista — display denso, leve serif italic no acento */
.hero__headline {
  /* margin-top zero para colar no chip; margin-bottom generoso evita
     que o título encoste no parágrafo descritivo no mobile (line-height
     0.92 + descenders do italic do <em> deixavam as duas linhas muito
     próximas no Android narrow). */
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--on-dark);
  font-variation-settings: "opsz" 96;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
  max-width: 18ch;
}
@media (min-width: 768px) {
  .hero__headline { margin-bottom: 32px; }
}
.hero__headline em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--champagne);
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.025em;
}

.hero__sub {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--on-dark-muted);
  max-width: 56ch;
  margin: 0 auto;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}
.hero__sub strong { font-weight: 400; color: var(--on-dark); }
@media (min-width: 768px)  { .hero__sub { font-size: 15px; } }
@media (min-width: 1024px) { .hero__sub { font-size: 16px; } }

/* CTA — grande, dentro do thumb-zone no mobile */
.hero__cta {
  width: 100%;
  max-width: 360px;
  min-height: 56px;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.22em;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}
@media (min-width: 768px) {
  .hero__cta {
    width: auto;
    min-width: 320px;
    min-height: 60px;
    padding-inline: 36px;
    font-size: 13px;
  }
}

/* Reduced-motion: pausa o Ken Burns */
@media (prefers-reduced-motion: reduce) {
  .hero__bg img { animation: none; transform: scale(1); }
}


/* ============================================================
   8. PROJECT FEATURES — "Le Privilège" (Scrolljacking dark)
   ------------------------------------------------------------
   Reescrito em single-column tall blocks. Cada .feature ocupa ~50vh
   com opacity 0.3 / scale 0.95 por padrão. JS marca [data-active]
   no item cujo centro está no centro da viewport — esse vai pra
   opacity 1 / scale 1 com transição suave.
   ============================================================ */
.features {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-on-dark);
  max-width: 800px;
  margin-inline: auto;
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 48px;
  border-bottom: 1px solid var(--border-on-dark);
}
@media (min-width: 768px) {
  .feature {
    padding-block: 64px;
  }
}

.feature__top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.feature__index {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--champagne);
  line-height: 1;
}

.feature__icon {
  color: var(--on-dark);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.feature__title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2rem, 5vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--on-dark);
  font-variation-settings: "opsz" 96;
  margin-bottom: 16px;
}
@media (min-width: 768px) { .feature__title { line-height: 0.98; } }

.feature__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-dark-muted);
  font-weight: 300;
  max-width: 56ch;
}
@media (min-width: 768px) { .feature__desc { font-size: 17px; } }
@media (min-width: 1024px) { .feature__desc { font-size: 18px; } }

.features__closing {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border-on-dark);
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--on-dark-subtle);
}
@media (min-width: 768px) { .features__closing { margin-top: 96px; font-size: 11px; } }


/* ============================================================
   10. LOCATION — "L'Adresse"
   ============================================================ */
.location__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: stretch;
}
@media (min-width: 768px) {
  .location__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 64px;
    align-items: center;
  }
}
@media (min-width: 1024px) {
  .location__grid { gap: 128px; }
}

.plate {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
}
.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .plate { aspect-ratio: 4 / 5; min-height: 480px; }
}
@media (min-width: 1024px) {
  .plate { min-height: 580px; }
}

.plate figcaption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 12px 16px;
  background: rgba(14, 13, 11, 0.65);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--on-dark);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plate__top { color: var(--champagne); }

.location__content {
  display: flex;
  flex-direction: column;
}

.address-block {
  font-style: normal;
  padding-top: 20px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.address-block__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--champagne);
}
.address-block__lines {
  font-family: var(--font-display);
  font-weight: 300;
  /* Antes: clamp(28px, 4.5vw, 40px) — quebrava a palavra "Luxembourg"
     no meio em viewports < 380px. Reduzido para caber inteira em
     iPhones SE (320px) e similares; topo continua igual no desktop. */
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: "opsz" 64;
  /* Permite quebra elegante caso uma palavra não caiba em telas muito
     estreitas (preferível a overflow ou letter-cropping). */
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
.address-block__lines strong { font-weight: 400; }

.poi {
  border-top: 1px solid var(--border);
}
.poi__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding-block: 20px;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  animation: fadeIn 600ms ease-out forwards;
  animation-play-state: paused;
}
.poi__item[data-revealed="true"] { animation-play-state: running; }

.poi__index {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--champagne);
  min-width: 24px;
}
.poi__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.poi__label {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 64;
}
@media (min-width: 768px) { .poi__label { font-size: 26px; } }

.poi__detail {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}
.poi__distance {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 64;
  text-align: right;
  white-space: nowrap;
}
@media (min-width: 768px) { .poi__distance { font-size: 26px; } }


/* ============================================================
   11. CONCIERGE — White-Glove Lead Capture
   ------------------------------------------------------------
   Filosofia: dois campos, fonte grande, borda inferior champagne
   no foco, botão primário cheio + outline secundário pra WhatsApp,
   divisória editorial entre eles. Card centrado, max-width modesto.
   ============================================================ */
.concierge {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.concierge__head {
  align-items: center;
  text-align: center;
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: 56px;
}
@media (min-width: 768px) { .concierge__head { margin-bottom: 72px; } }

.concierge__head .section-head__sub {
  margin-inline: auto;
  text-align: center;
}

/* Card central — único bloco visual da seção */
.concierge__card {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 768px) {
  .concierge__card { gap: 40px; }
}

/* Form: dois campos minimalistas em coluna + CTA full-width */
.concierge-form {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
@media (min-width: 768px) {
  .concierge-form { gap: 44px; }
}

/* Field "luxo" — só borda inferior, fonte grande, cor champagne no foco */
.field-lux {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.field-lux__label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--on-dark-subtle);
  /* Slide sutil pro alto quando o input ganha foco */
  transition: color var(--t-fast);
}
.field-lux__input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 64px;
  padding: 0 0 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-on-dark);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  font-variation-settings: "opsz" 64;
  transition:
    border-color 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-width 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 768px) {
  .field-lux__input { font-size: 26px; height: 72px; }
}
.field-lux__input::placeholder {
  color: var(--on-dark-subtle);
  font-weight: 200;
  opacity: 0.7;
}
.field-lux__input:focus {
  outline: none;
  border-bottom-color: var(--champagne);
}
.field-lux__input:focus + .field-lux__error,
.field-lux:focus-within .field-lux__label {
  color: var(--champagne);
}

/* Estado de erro */
.field-lux[data-error="true"] .field-lux__input {
  border-bottom-color: #E8826B;
}
.field-lux[data-error="true"] .field-lux__label {
  color: #E8826B;
}
.field-lux__error {
  font-size: 12px;
  line-height: 1.4;
  color: #E8826B;
  min-height: 0;
}
.field-lux__error:empty { display: none; }

/* Submit ocupa largura total do card */
.concierge-form__submit {
  width: 100%;
  min-height: 60px;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.22em;
}
@media (min-width: 768px) {
  .concierge-form__submit { min-height: 64px; font-size: 13px; }
}
.concierge-form__submit .cta__loading[hidden] { display: none; }

/* Privacidade — texto sutil sob o submit */
.concierge-form__privacy {
  margin: 4px 0 0;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.55;
  color: var(--on-dark-subtle);
  text-align: center;
}

/* Divisória editorial: linha — "ou" — linha */
.concierge__divider {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.concierge__divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-on-dark);
}
.concierge__divider-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--on-dark-subtle);
  text-transform: lowercase;
}

/* WhatsApp CTA secundário — usa .cta-outline mas full-width */
.concierge__whats {
  width: 100%;
  align-self: stretch;
  margin-top: 0;
  min-height: 60px;
  text-align: center;
}
@media (min-width: 768px) {
  .concierge__whats { min-height: 64px; }
}

/* Sucesso — substitui o card inteiro */
.concierge__success {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--champagne-soft);
  background: rgba(184, 150, 104, 0.06);
  animation: fadeUp 500ms ease-out forwards;
}
/* Bug fix: `display: flex` acima sobrescrevia `[hidden] { display:none }`
   da UA stylesheet, fazendo o card de sucesso aparecer por padrão. */
.concierge__success[hidden] { display: none; }
.concierge__success-chip {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--champagne);
}
.concierge__success h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--on-dark);
  font-variation-settings: "opsz" 96;
}
.concierge__success p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-dark-muted);
}


/* ============================================================
   12. FOOTER
   ============================================================ */
.footer {
  background: var(--bg-dark);
  color: var(--on-dark);
  padding-block: 48px;
  border-top: 1px solid var(--border-on-dark);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    align-items: flex-start;
  }
}

.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--on-dark-muted);
}
.footer__brand strong {
  display: block;
  color: var(--on-dark);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.footer__nav a:hover { color: var(--champagne); }

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--on-dark-subtle);
}


/* ============================================================
   13. STICKY BOTTOM BAR — WhatsApp pill (mobile only)
   ============================================================ */
.sticky-bar {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 24px);
  z-index: var(--z-bar);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: calc(100% - 32px);
  max-width: 360px;
  min-height: 56px;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--on-dark);
  border-radius: 999px;
  border: 1px solid var(--on-dark-faint);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  animation: slideUp 520ms cubic-bezier(0.22, 0.61, 0.36, 1) 750ms both;
}
.sticky-bar:active { transform: translateX(-50%) scale(0.98); }
.sticky-bar:hover {
  background: var(--accent-hover);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.80);
}
.sticky-bar svg { flex-shrink: 0; }
.sticky-bar__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
}

@media (min-width: 768px) {
  .sticky-bar { display: none; }
}


/* ============================================================
   14. ANIMATIONS + REVEAL ON SCROLL
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { transform: translate(-50%, 130%); opacity: 0; }
  to   { transform: translate(-50%, 0); opacity: 1; }
}
@keyframes slowZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.0); }
}

/* ─────────── Reveal-on-scroll (fade-up editorial) ───────────
   JS adiciona `data-revealed="true"` E/OU `.is-visible` quando o
   elemento entra na viewport. Ambas ativam a transição. Easing
   "expo-out" cubic-bezier(0.22, 1, 0.36, 1) — sensação cinemática
   de objeto repousando, sem rebote. */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal][data-revealed="true"],
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ─────────── Staggered title reveal (palavras em cascata) ───────────
   JS splita o texto do elemento em <span class="stagger-word"><span>w</span></span>
   antes de observar. Cada palavra-filha vem de translateY(110%) opacity:0
   e sobe quando o pai recebe `.is-visible`. O delay em cascata vem do
   `--i` (índice da palavra), aplicado em transition-delay.

   IMPORTANTE: o wrapper `.stagger-word` tem overflow:hidden para mascarar
   a palavra abaixo da linha — efeito de "cortina" tipográfica. */
/* FAIL-SAFE: o CSS NUNCA esconde o título nem os filhos. Se o JS
   falhar, o texto continua legível. Só preservamos a máscara visual
   (overflow:hidden no wrapper) — quem oculta os spans antes da
   animação é o GSAP via gsap.set() em splitWordsForStagger. */
.stagger-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
  /* Padding-bottom previne corte de descenders (g, p, j, y) */
  padding-bottom: 0.08em;
}
.stagger-word > span {
  display: inline-block;
  will-change: transform, opacity;
}


/* Respeita usuário com reduced-motion: revela tudo sem animação */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  [data-stagger] .stagger-word > span { transform: none; opacity: 1; }
  .hero__bg img { opacity: 1; transform: none; }
}



/* ============================================================
   15. UTILITY: visually-hidden (acessibilidade)
   ============================================================ */
.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;
}


/* ============================================================
   16. L'HABITAT — Modelos 3D (CSS nativo, sem JS)
   ------------------------------------------------------------
   Mobile (<1024px): scroll-snap horizontal, 1 cartão visível
   por vez (90vw cada), imagem em cima, dados embaixo.
   Desktop (≥1024px): grid 2 colunas zig-zag (alterna texto/imagem).
   Sem position:sticky. Sem stacking. Página rola normal.
   ============================================================ */
.habitat {
  position: relative;
  width: 100%;
  background-color: #0E0D0B;
  color: var(--on-dark);
  padding-block: 96px;
  overflow: hidden;
}
@media (min-width: 768px)  { .habitat { padding-block: 128px; } }
@media (min-width: 1024px) { .habitat { padding-block: 160px; } }

/* Cabeçalho da seção */
.habitat__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
}
@media (min-width: 1024px) { .habitat__head { margin-bottom: 96px; } }

.habitat__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
  color: var(--on-dark);
}
@media (min-width: 768px) { .habitat__title { line-height: 0.96; } }
.habitat__title em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--champagne);
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.025em;
}

.habitat__sub {
  margin: 0;
  max-width: 56ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-dark-muted);
}
@media (min-width: 768px) { .habitat__sub { font-size: 15px; } }


/* Swipe-hint — affordance visual de carrossel horizontal no mobile.
   Escondido em ≥1024px (lá vira grid zig-zag, não há scroll). */
.swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 20px;
  padding-inline: 24px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne);
  /* Pulse fade — chama atenção sem irritar */
  animation: swipeHintPulse 2.4s ease-in-out infinite;
}
.swipe-hint__arrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--champagne);
  /* Bounce horizontal — reforça o "deslize lateral" */
  animation: swipeHintBounce 1.8s ease-in-out infinite;
}
.swipe-hint__arrow:last-child { animation-delay: 0.9s; }

@keyframes swipeHintPulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
@keyframes swipeHintBounce {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-4px); }
}
.swipe-hint__arrow:last-child {
  /* Inverte o sentido do bounce na seta da direita */
  animation-name: swipeHintBounceReverse;
}
@keyframes swipeHintBounceReverse {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}

/* Reduced motion — mantém visível mas estático */
@media (prefers-reduced-motion: reduce) {
  .swipe-hint,
  .swipe-hint__arrow { animation: none; opacity: 0.85; }
}

/* Desktop (≥1024px): vira grid sem scroll, hint não faz sentido */
@media (min-width: 1024px) {
  .swipe-hint { display: none; }
}


/* ── MOBILE: scroll-snap horizontal nativo com PEEK (até 1023px) ──
   padding-inline: 10vw → afasta o primeiro/último cartão da borda;
                          combinado com 80vw do item, garante ~10vw
                          do cartão vizinho visível em cada lado
   gap: 16px            → separação consistente entre cartões
   item flex: 0 0 80vw  → cartão ocupa 80% da viewport, deixando ~20%
                          do próximo cartão aparecendo (peek agressivo) */
.habitat__list {
  list-style: none;
  margin: 0;

  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  padding-inline: 10vw;
  padding-bottom: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 10vw;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox */
}
.habitat__list::-webkit-scrollbar { display: none; } /* Chromium/Safari */

.habitat__item {
  flex: 0 0 80vw;
  max-width: 480px;
  scroll-snap-align: center;

  display: flex;
  flex-direction: column;
  gap: 24px;

  /* Cartões fora de foco ficam atenuados — reforça que existe um
     "ativo" e os outros são adjacentes. JS toggla .is-active. */
  opacity: 0.5;
  transform: scale(0.92);
  transition:
    opacity 420ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.habitat__item.is-active {
  opacity: 1;
  transform: scale(1);
}

/* ── Pagination dots (só mobile) ── */
.carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px auto 0;
  padding-inline: 24px;
}
.carousel-indicators__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition:
    width 360ms cubic-bezier(0.22, 0.61, 0.36, 1),
    background-color 360ms ease,
    border-radius 360ms ease;
}
.carousel-indicators__dot.is-active {
  width: 22px;
  border-radius: 4px;
  background: var(--champagne);
}
@media (prefers-reduced-motion: reduce) {
  .habitat__item,
  .carousel-indicators__dot { transition: none; }
}
@media (min-width: 1024px) {
  .carousel-indicators { display: none; }
  /* Desktop: zig-zag grid não precisa do estado de foco do carrossel */
  .habitat__item { opacity: 1; transform: none; transition: none; }
}

.habitat__visual {
  margin: 0;
  width: 100%;
  aspect-ratio: 5 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 70%, rgba(184, 150, 104, 0.12) 0%, transparent 70%);
  /* Preparado pro hover do desktop (no mobile o transform fica neutro). */
  transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.habitat__visual img {
  max-width: 95%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55));
}

.habitat__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Respiro horizontal no mobile — sem isso o texto encostava na
     borda do .habitat__item (85vw width no scroll-snap). No desktop
     o padding é resetado pro grid zig-zag não ganhar margem dupla. */
  padding: 0 24px 24px;
}

.habitat__index {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--champagne);
}

.habitat__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--on-dark);
  font-variation-settings: "opsz" 96;
}

.habitat__spec {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.habitat__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 300;
  color: var(--on-dark-muted);
  max-width: 52ch;
}
@media (min-width: 1024px) { .habitat__desc { font-size: 16px; } }

/* Scarcity / urgency cue — sutil, itálico, champagne */
.scarcity-text {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: var(--champagne);
  /* Linha-divisória fina à esquerda pra destacar como nota editorial */
  border-left: 1px solid var(--champagne-soft);
  padding-left: 12px;
}
@media (min-width: 768px) { .scarcity-text { font-size: 13px; } }

/* Outline CTA — borda champagne, fundo transparente.
   Hover: preenche com accent-dark + sweep de brilho interno. */
.cta-outline {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  min-height: 52px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne);
  background-color: transparent;
  background-image: linear-gradient(
    100deg,
    transparent 0%,
    transparent 38%,
    rgba(184, 150, 104, 0.22) 50%,
    transparent 62%,
    transparent 100%
  );
  background-size: 220% 100%;
  background-position: 100% 0;
  border: 1px solid var(--champagne);
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  transition:
    background-color 320ms cubic-bezier(0.22, 1, 0.36, 1),
    background-position 900ms cubic-bezier(0.22, 1, 0.36, 1),
    color 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 320ms cubic-bezier(0.22, 1, 0.36, 1),
    transform var(--t-fast);
}
.cta-outline:hover,
.cta-outline:focus-visible {
  background-color: var(--accent-dark);
  background-position: 0 0;
  border-color: var(--accent-dark);
  color: var(--on-dark);
}
.cta-outline:active { transform: scale(0.98); }
@media (min-width: 768px) {
  .cta-outline { font-size: 13px; padding: 16px 32px; }
}


/* ── DESKTOP: zig-zag em CSS Grid (≥1024px) ── */
@media (min-width: 1024px) {
  /* Reseta o flex/scroll-snap do mobile e vira coluna espaçosa */
  .habitat__list {
    display: flex;
    flex-direction: column;
    overflow: visible;
    scroll-snap-type: none;
    gap: clamp(96px, 12vw, 200px);
    padding: 0;
    max-width: var(--max-content);
    margin-inline: auto;
    padding-inline: 80px;
  }

  .habitat__item {
    /* Neutraliza o flex:0 0 85vw do mobile (flex-basis virava height
       no flex-direction:column do desktop e quebrava o layout). */
    flex: 0 1 auto;
    width: 100%;
    max-width: none;
    scroll-snap-align: none;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(48px, 6vw, 120px);
  }

  /* Zig-zag: itens pares trocam a ordem das colunas */
  .habitat__item:nth-child(even) .habitat__visual { order: 1; }
  .habitat__item:nth-child(even) .habitat__body   { order: 2; }

  .habitat__visual {
    aspect-ratio: 5 / 4;
    padding: 48px;
  }
  .habitat__visual img { max-width: 88%; max-height: 100%; }

  .habitat__body { gap: 16px; padding: 0; }

  /* Hover premium no modelo 3D — flutua + escala sutil + sombra mais difusa.
     Simula que o modelo "sai da página" em direção ao usuário.
     IMPORTANTE: escopado a `.habitat__list .habitat__item` para nunca
     vazar para imagens do <dialog class="lightbox-3d"> (que vivem fora
     do .habitat__item). Defesa explícita contra regressões futuras. */
  @media (hover: hover) {
    .habitat__list .habitat__item .habitat__visual img {
      transition:
        transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 600ms cubic-bezier(0.22, 1, 0.36, 1);
    }
    .habitat__list .habitat__item:hover .habitat__visual {
      transform: translateY(-10px);
    }
    .habitat__list .habitat__item:hover .habitat__visual img {
      transform: scale(1.03);
      filter: drop-shadow(0 38px 56px rgba(0, 0, 0, 0.65));
    }
  }
}

/* Reset duro: imagem do lightbox NUNCA herda hover lift/scale dos
   cards do habitat. Mesmo que algum seletor futuro vaze, este wins. */
.lightbox-3d img,
.lightbox-3d__stage img,
.lightbox-3d:hover img,
.lightbox-3d__stage:hover img,
.lightbox-3d__stage img:hover {
  transform: none;
  /* preserva o drop-shadow definido no .lightbox-3d__stage img */
}

/* prefers-reduced-motion: anula o lift do hover */
@media (prefers-reduced-motion: reduce) {
  .habitat__visual { transition: none; }
  .habitat__item:hover .habitat__visual { transform: none; }
}

/* Indica que a imagem 3D é clicável (abre o lightbox-3d) */
.habitat__visual img[data-lightbox-3d-trigger] {
  cursor: pointer;
}


/* ============================================================
   17. LIGHTBOX 3D — <dialog> nativo, abertura editorial
   ------------------------------------------------------------
   Estrutura:
     dialog.lightbox-3d
       button.lightbox-3d__close (X canto superior direito)
       div.lightbox-3d__inner (split desktop / column mobile)
         figure.lightbox-3d__stage > img (modelo 3D ampliado)
         div.lightbox-3d__meta (título + hint + CTA)

   Animação: fade + scale 0.95→1 em 300ms ease-out (tipo "lâmina
   de vidro surgindo"). Body scroll lock via `body.lightbox-open`
   adicionado pelo JS quando o dialog abre.
   ============================================================ */
.lightbox-3d {
  /* Reset do <dialog> default styling */
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--on-dark);
  overflow: hidden;
}

.lightbox-3d:not([open]) { display: none; }

.lightbox-3d[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Animação de entrada — lâmina de vidro surgindo */
  animation: lb3dFadeIn 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes lb3dFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* Backdrop "vidro fosco" — escurece levemente e desfoca o fundo,
   transição gentil para o desfoque crescer junto com o fade-in. */
.lightbox-3d::backdrop {
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: lb3dBackdropIn 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes lb3dBackdropIn {
  from {
    opacity: 0;
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
  }
  to {
    opacity: 1;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

.lightbox-3d__close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--on-dark);
  background: rgba(244, 241, 236, 0.06);
  border: 1px solid var(--border-on-dark);
  border-radius: 50%;
  cursor: pointer;
  transition:
    background var(--t-fast),
    border-color var(--t-fast),
    transform var(--t-fast);
}
.lightbox-3d__close:hover,
.lightbox-3d__close:focus-visible {
  background: var(--on-dark-faint);
  border-color: var(--champagne);
  transform: rotate(90deg);
}
@media (min-width: 768px) {
  .lightbox-3d__close { top: max(24px, env(safe-area-inset-top)); right: 24px; }
}

.lightbox-3d__inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 64px 24px 32px;
  overflow-y: auto;
}
@media (min-width: 1024px) {
  .lightbox-3d__inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(48px, 6vw, 96px);
    padding: 64px 80px;
    overflow-y: hidden;
  }
}

/* Stage — palco do modelo 3D, dominante visual */
.lightbox-3d__stage {
  margin: 0;
  flex: 1 1 auto;
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 75%, rgba(184, 150, 104, 0.18) 0%, transparent 70%);
}
@media (min-width: 1024px) {
  .lightbox-3d__stage {
    flex: 1 1 60%;
    height: 100%;
    padding: 32px;
  }
}

.lightbox-3d__stage img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 32px 56px rgba(0, 0, 0, 0.65));
}
@media (min-width: 1024px) {
  .lightbox-3d__stage img { max-height: 80vh; }
}

/* Meta — título + hint + CTA, lateral no desktop, abaixo no mobile */
.lightbox-3d__meta {
  flex: 0 0 auto;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
@media (min-width: 1024px) {
  .lightbox-3d__meta {
    flex: 0 0 360px;
    max-width: 420px;
  }
}

.lightbox-3d__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--champagne);
}

.lightbox-3d__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--on-dark);
  font-variation-settings: "opsz" 96;
}

.lightbox-3d__hint {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--on-dark-muted);
  max-width: 44ch;
}
@media (min-width: 1024px) { .lightbox-3d__hint { font-size: 14px; } }

/* CTA principal: ocupa largura total do meta — destaque máximo */
.lightbox-3d__cta {
  width: 100%;
  margin-top: 12px;
  min-height: 56px;
  font-size: 12px;
  letter-spacing: 0.22em;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
}
@media (min-width: 768px) {
  .lightbox-3d__cta { font-size: 13px; min-height: 60px; }
}

/* Body lock — JS adiciona `lightbox-open` em <body> e <html> quando abre.
   Travar nos dois é defensivo (alguns navegadores móveis ignoram só body)
   e overscroll-behavior bloqueia o "rubber band" do iOS no fundo. */
html.lightbox-open,
body.lightbox-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

/* Reduced motion: corta a animação de entrada */
@media (prefers-reduced-motion: reduce) {
  .lightbox-3d[open] { animation: none; }
  .lightbox-3d::backdrop { animation: none; }
  .lightbox-3d__close:hover { transform: none; }
}


/* ============================================================
   LANG SWITCHER — minimalista, fixo no topo direito.
   FR | EN | PT, ativo em champagne, inativos mutados.
   ============================================================ */
.lang-switcher {
  position: fixed;
  /* Desktop: topo centralizado, persistente em todas as seções
     graças ao backdrop-blur. Mobile vira pílula vertical à direita
     (override no @media abaixo). */
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  left: 50%;
  /* translateZ(0) força o navegador a promover este elemento a
     uma camada de composição própria (GPU layer). Combinado com
     will-change, garante que o transform/opacity da animação de
     hide-on-scroll roda na GPU sem repaint da árvore principal —
     elimina o scroll-jank no mobile. */
  transform: translateX(-50%) translateZ(0);
  will-change: transform, opacity;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(14, 13, 11, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  /* Hide-on-scroll: quando o usuário começa a ler, o switcher
     desaparece com fade+slide pra despoluir a interface. */
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

/* Estado oculto — adicionado via JS quando scrollY > 150.
   Mantém o translateZ(0) pra preservar a GPU layer durante a
   transição (sem isso, o navegador poderia descartar a layer e
   recriar — gerando um spike de paint no início da animação). */
.lang-switcher--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-10px) translateZ(0);
}
.lang-switcher button {
  appearance: none;
  background: none;
  border: 0;
  padding: 6px 8px;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--on-dark-muted);
  cursor: pointer;
  transition: color 220ms ease, opacity 220ms ease;
  opacity: 0.7;
  /* Mobile: elimina delay de 300ms do Chrome Android e remove o
     highlight cinza no toque pra UX limpa. */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  /* Stacking context pra que ::before (área de toque invisível) fique
     atrás do texto mas ainda capture clicks dentro do parent. */
  position: relative;
}
/* ── Área de toque expandida invisível ──
   Visual permanece pequeno/luxe, mas o hit-area cobre 44×44px (mínimo
   recomendado pelo Material Design / WCAG 2.5.5 Target Size).
   Sem isto, dedos médios em Android miravam o "FR"/"EN"/"PT" e
   acertavam o gap entre eles → cliques perdidos → "tradução não
   funciona" reportado pelo cliente. */
.lang-switcher button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 40px;
  /* Sem background — é só hit-area invisível.
     36×40 é compromisso: 4× a área visual original (suficiente p/ dedo
     médio), mas estreito o bastante pra não sobrepor os botões vizinhos
     (FR/EN/PT estão ~22px de distância, separados por "|"). */
}
.lang-switcher button:hover,
.lang-switcher button:focus-visible {
  color: var(--on-dark);
  opacity: 1;
  outline: none;
}
.lang-switcher button.is-active {
  color: var(--champagne);
  opacity: 1;
}
.lang-switcher__sep {
  color: var(--on-dark-muted);
  opacity: 0.35;
  user-select: none;
}

/* ─────────── Mobile (≤767px): pílula vertical à direita ───────────
   Em vez de competir por espaço horizontal com brand + address na
   mesma linha, o switcher vira uma pílula vertical fixa no canto
   direito (FR/EN/PT empilhados). Header volta a fluir natural com
   logo à esquerda; address fica abaixo numa linha própria.
   A pílula desaparece no scroll (classe .lang-switcher--hidden,
   gerenciada pelo JS — ver initLangSwitcherHide). */
@media (max-width: 767px) {
  /* Header: logo esquerda, address quebra pra linha 2 centralizado.
     Sem o switcher horizontal pra esmagar, o address respira. */
  .hero__top {
    flex-wrap: wrap;
    align-items: center;
  }
  .hero__address {
    /* Sai do flex-column do desktop e vira block puro: text-align:
       center centraliza relativo ao container (que é 100% da largura
       do hero__top, com paddings simétricos de 24px). Resultado:
       o address fica no centro óptico real da tela.
       Resets explícitos garantem que nada herdado empurre pra um lado. */
    display: block;
    flex-basis: 100%;
    width: 100%;
    text-align: center;
    margin: 16px 0 0 0;
    padding: 0;
    opacity: 0.85;
  }
  /* Spans precisam virar block pra empilhar (street / livraison),
     já que o pai não é mais flex-column no mobile. */
  .hero__address-top,
  .hero__address-livraison {
    display: block;
    font-size: 8px;
  }

  /* Switcher: pílula VERTICAL fixa no canto direito.
     top:20px / right:15px (somando safe-area pra notch iOS). */
  .lang-switcher {
    top: calc(env(safe-area-inset-top, 0px) + 20px);
    right: 15px;
    left: auto;
    /* Mobile não precisa de translateX(-50%), mas mantemos o
       translateZ(0) pra preservar a GPU layer e o anti-jank. */
    transform: translateZ(0);
    flex-direction: column;
    /* Pílula vertical: mais preenchimento topo/base, menos lateral */
    padding: 12px 10px;
    gap: 8px;
    font-size: 12px;
    /* Container narrow — borda arredondada continua válida (radius:999px) */
  }
  /* Estado hidden no mobile: sem translateX(-50%), só translateY + Z */
  .lang-switcher--hidden {
    transform: translateY(-10px) translateZ(0);
  }
  /* Separadores "|" não fazem sentido na vertical — substituídos pelo gap */
  .lang-switcher__sep {
    display: none;
  }
  /* Cada botão vira quadradinho de toque (~32×32) — vertical-friendly.
     ::before fica menor pra não sobrepor o vizinho de cima/baixo. */
  .lang-switcher button {
    padding: 6px 8px;
  }
  .lang-switcher button::before {
    width: 36px;
    height: 32px;
  }
}


/* ============================================================
   BACK-TO-TOP — círculo minimalista, canto inferior direito.
   Surge após scroll com fade+slide. Borda champagne no hover.
   No mobile sobe para não conflitar com a sticky-bar do WhatsApp.
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  z-index: 70;

  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(14, 13, 11, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--on-dark);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  /* Estado oculto (default) — JS adiciona .is-visible quando scrolla */
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 320ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    color 220ms ease,
    background 220ms ease;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: var(--champagne);
  color: var(--champagne);
  background: rgba(14, 13, 11, 0.7);
  outline: none;
}
.back-to-top:active {
  transform: translateY(0) scale(0.94);
}
.back-to-top svg {
  display: block;
}

/* Mobile: a sticky-bar do WhatsApp ocupa o bottom-center.
   Sobe o back-to-top pra ficar acima dela e mantém à direita. */
@media (max-width: 767px) {
  .back-to-top {
    right: 16px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 96px);
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 200ms ease; transform: none; }
  .back-to-top.is-visible { transform: none; }
}


/* ============================================================
   GSAP REVEAL — fail-safe
   ------------------------------------------------------------
   Quando o GSAP carrega e o JS roda, ele adiciona `.js-anim` no
   <html> e assume controle total: gsap.set() para os estados
   iniciais, gsap.fromTo() para animar.
   Sem `.js-anim` (gsap não carregou OU JS quebrou): NÃO escondemos
   nada via CSS — o texto fica visível, sem text-reveal mas legível.
   ============================================================ */
.js-anim [data-reveal],
.js-anim .gsap-reveal {
  transition: none;
}
/* will-change pra hint do compositor; sem opacity/transform aqui */
.gsap-reveal {
  will-change: opacity, transform;
}


/* ============================================================
   PHOSPHOR ICONS — sizing por contexto
   ------------------------------------------------------------
   <i class="ph ph-*"></i> usa font-icon: tamanho via font-size,
   cor via color (herda do pai). Aqui só fixamos o tamanho onde
   antes havia <svg width="..." height="...">.
   ============================================================ */
i.feature__icon {
  font-size: 28px;
  line-height: 1;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
}
.lightbox-3d__close .ph,
.lightbox-3d__close i[class*="ph-"] {
  font-size: 20px;
  line-height: 1;
}
.back-to-top .ph,
.back-to-top i[class*="ph-"] {
  font-size: 18px;
  line-height: 1;
}
.sticky-bar .ph,
.sticky-bar i[class*="ph-"] {
  font-size: 22px;
  line-height: 1;
}
