/* Joy Clínica Médica — estilos
   Paleta: marfim e bege com o terracota do logo. Fontes: Fraunces (títulos) e Work Sans (textos). */

:root {
  /* Paleta da marca: marfim e bege com o terracota do logo (#9E4A2A) como destaque. */
  --ink: #2B221C;          /* textos e títulos (marrom bem escuro) */
  --ink-soft: #4E433B;
  --muted: #70635A;        /* contraste mínimo de 4,5:1 sobre o marfim e o bege */
  --brand: #9E4A2A;        /* terracota do logo */
  --brand-dk: #7F3A20;
  --brand-light: #D08A66;  /* destaque sobre fundo escuro */
  --brand-soft: #F2E4DA;
  --dark: #3A2F27;         /* faixas escuras (café) */
  --bg: #F8F4EE;           /* marfim */
  --sand: #EFE7DC;         /* bege das seções alternadas */
  --line: #E1D5C4;
  --line-strong: #CDBDA8;
  --line-dk: rgba(248, 244, 238, .22);
  --wa: #25D366;

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
p { margin: 0; }
/* Palavra de destaque nos títulos (marcada com *asteriscos* no painel). */
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--brand); }
.contact h2 em, .price-featured h3 em { color: var(--brand-light); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  font: 600 15px/1.2 'Work Sans', sans-serif;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dk); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-line { border-color: var(--brand); color: var(--ink); }
.btn-line:hover { background: var(--brand); color: var(--bg); }
.btn-lg { padding: 17px 30px; font-size: 16px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 244, 238, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  font-family: 'Fraunces', serif; font-size: 22px; letter-spacing: .01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand { display: flex; align-items: center; }
.brand img { height: 48px; width: auto; }
@media (max-width: 860px) { .brand img { height: 42px; } }
.links { display: flex; align-items: center; gap: 30px; }
.links a { text-decoration: none; font-size: 15px; color: var(--ink); opacity: .8; white-space: nowrap; transition: opacity .2s; }
.links a:hover { opacity: 1; }
.links .nav-cta {
  opacity: 1; background: var(--brand); color: var(--bg);
  padding: 10px 20px; border-radius: 999px; font-weight: 500;
}
.links .nav-cta:hover { background: var(--brand-dk); }
.menu-btn {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease);
  }
  .links.open { max-height: 420px; }
  .links a { padding: 16px var(--gutter); border-top: 1px solid var(--line); opacity: 1; }
  .links .nav-cta { margin: 16px var(--gutter) 20px; text-align: center; border-top: 0; }
}

/* ---------- Abertura ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  background: var(--sand); color: var(--ink);
  min-height: min(calc(100svh - var(--header-h)), 760px);
}
.hero-copy {
  grid-column: 1; grid-row: 1;
  align-self: center;
  /* Alinha o texto com o resto da página à esquerda, mantendo um respiro antes da foto. */
  padding: 72px clamp(32px, 5vw, 72px) 72px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.hero-media { grid-column: 2; grid-row: 1; position: relative; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; animation: settle 1.6s var(--ease) both; }
.eyebrow { font-size: 14.5px; letter-spacing: .04em; color: var(--brand); font-weight: 500; margin-bottom: 18px; }
.hero h1 { color: var(--ink); font-size: clamp(36px, 4.8vw, 60px); max-width: 12ch; }
.lede { margin-top: 22px; max-width: 42ch; font-size: 17.5px; color: var(--ink-soft); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-copy > * { animation: rise .55s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .05s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .2s; }

@keyframes rise { from { opacity: .01; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { grid-column: 1; grid-row: 1; aspect-ratio: 4 / 3; }
  .hero-copy { grid-row: 2; padding: 36px var(--gutter) 48px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Faixa de destaques ---------- */
.facts { background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 26px; padding-bottom: 26px; }
.facts b { display: block; font-family: 'Fraunces', serif; font-weight: 500; font-size: 22px; color: var(--brand); }
.facts span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) { .facts-inner { grid-template-columns: 1fr 1fr; } }

/* ---------- Seções ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--sand); }
.tag { font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); font-weight: 600; margin-bottom: 14px; }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 18ch; }
.section-head { margin-bottom: clamp(32px, 5vw, 52px); }

/* Títulos que acendem palavra por palavra (o main.js cria os .w e controla --w). */
.palavras .w { display: inline-block; }
.fx .palavras .w {
  --luz: clamp(0, calc(var(--w, 0) - var(--i)), 1);
  opacity: calc(.14 + .86 * var(--luz));
  filter: blur(calc((1 - var(--luz)) * 5px));
}

/* Seções coloridas chegam como cartão arredondado e se abrem até as bordas (main.js controla --p). */
.fx .section-tint, .fx .contact {
  clip-path: inset(0 calc((1 - var(--p, 1)) * 3.5vw) round calc((1 - var(--p, 1)) * 36px));
}

/* Só esconde para animar se o JavaScript estiver ativo; sem ele, tudo aparece normalmente. */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* Vitrine: foto que se abre até a tela cheia.
   Sem animação (ou com "reduzir movimento" ligado), aparece direto aberta. Com a classe .fx, o main.js
   controla --p (0 = cartão pequeno, 1 = tela cheia) conforme a página desce. */
.vitrine { --p: 1; --ix: 18%; --iy: 14%; position: relative; background: var(--bg); }
.vitrine-frame { position: relative; height: min(78svh, 760px); overflow: hidden; background: var(--sand); }
.vitrine-frame img { width: 100%; height: 100%; object-fit: cover; }
.vitrine-copy {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(28px, 6vw, 72px) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  padding-top: clamp(80px, 14vw, 180px);
  background: linear-gradient(to top, rgba(30, 24, 20, .86), rgba(30, 24, 20, .6) 50%, transparent);
  color: var(--bg);
}
.vitrine-copy h2 { color: var(--bg); font-size: clamp(32px, 5vw, 64px); max-width: 14ch; }
.vitrine-copy h2 em { color: var(--brand-light); }
.vitrine-copy p { margin-top: 14px; max-width: 40ch; font-size: clamp(16px, 1.6vw, 19px); color: rgba(248, 244, 238, .9); }
.fx .vitrine { height: 210vh; }
.fx .vitrine-sticky { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); overflow: hidden; }
.fx .vitrine-frame {
  height: 100%;
  clip-path: inset(calc((1 - var(--p)) * var(--iy)) calc((1 - var(--p)) * var(--ix)) round calc((1 - var(--p)) * 28px));
}
.fx .vitrine-frame img { transform: scale(calc(1.16 - .16 * var(--p))); }
.fx .vitrine-copy { opacity: clamp(0, calc((var(--p) - .62) * 3), 1); transform: translateY(calc((1 - var(--p)) * 40px)); }
@media (max-width: 860px) {
  .vitrine { --ix: 7%; --iy: 16%; }
  /* No celular a foto fica em pé: puxa o enquadramento para o lado do logo. */
  .vitrine-frame img { object-position: 60% 50%; }
  /* Espaço embaixo para o texto não ficar sob os botões flutuantes (música e WhatsApp). */
  .vitrine-copy { padding-bottom: 100px; }
}

/* Sobre */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about-copy p:not(.tag) { margin-top: 18px; max-width: 52ch; color: var(--ink-soft); font-size: 16.5px; }
.about-copy h2 + p { margin-top: 24px; }
.about-photos { position: relative; padding-bottom: 18%; }
.about-photos img { border-radius: 4px; }
.ph-tall { width: 88%; aspect-ratio: 3 / 2; object-fit: cover; }
.ph-small { position: absolute; right: 0; bottom: 0; width: 38%; aspect-ratio: 2 / 3; object-fit: cover; border: 6px solid var(--bg); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Vídeo */
.video-grid { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; justify-content: center; }
.video-frame { aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; background: var(--ink); box-shadow: 0 24px 60px -30px rgba(34, 28, 20, .45); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
/* Com dois vídeos, ficam lado a lado e o segundo desce um pouco. */
.video-grid.has-2 { grid-template-columns: minmax(0, 540px) 1fr; }
.video-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 16px; align-items: start; }
.has-2 .video-pair .video-frame + .video-frame { margin-top: 64px; }
/* Botão de play no centro (o main.js liga com .js-video e tira os controles do canto). */
.video-frame { position: relative; }
.video-play { display: none; }
.js-video .video-play {
  display: grid; place-items: center; position: absolute; inset: 0; margin: auto;
  width: 76px; height: 76px; padding: 0 0 0 4px; border: 0; border-radius: 50%;
  background: rgba(248, 244, 238, .94); color: var(--brand); cursor: pointer;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45);
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
/* Anel que pulsa devagar em volta do play, para convidar ao clique. */
.js-video .video-play::after {
  content: ''; position: absolute; inset: -9px; border-radius: 50%;
  border: 1.5px solid rgba(248, 244, 238, .8); animation: pulso 2.4s var(--ease) infinite;
}
@keyframes pulso { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.video-frame.aberto .video-play { opacity: 0; pointer-events: none; }
@media (hover: hover) {
  .video-pair .video-frame { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
  .video-pair .video-frame:hover { transform: scale(1.03); box-shadow: 0 30px 70px -28px rgba(34, 28, 20, .6); }
  .video-frame:hover .video-play { transform: scale(1.1); }
}
/* Vídeo aberto: sai do lugar e vai para o centro da tela (main.js calcula posição e tamanho). */
.video-frame.voando {
  position: fixed; z-index: 200; margin: 0 !important; transform: none !important;
  transition: top .55s var(--ease), left .55s var(--ease), width .55s var(--ease), height .55s var(--ease), border-radius .55s var(--ease);
}
.video-ph { background: transparent; box-shadow: none; }
.video-fundo { position: fixed; inset: 0; z-index: 190; background: rgba(30, 24, 20, .88); opacity: 0; transition: opacity .45s var(--ease); }
.video-fundo.on { opacity: 1; }
.video-fechar {
  position: fixed; top: 16px; right: 16px; z-index: 210; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(248, 244, 238, .16); color: var(--bg); font: 300 30px/1 'Work Sans', sans-serif; cursor: pointer;
  opacity: 0; transition: opacity .3s var(--ease), background .2s;
}
.video-fechar.on { opacity: 1; }
.video-fechar:hover { background: rgba(248, 244, 238, .28); }
.video-copy p:not(.tag) { margin-top: 20px; max-width: 44ch; color: var(--ink-soft); font-size: 16.5px; }
.checks { list-style: none; padding: 0; margin: 26px 0 32px; }
.checks li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); color: var(--ink); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before { content: ''; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
@media (max-width: 860px) {
  .video-grid, .video-grid.has-2 { grid-template-columns: 1fr; }
  .video-pair { max-width: 340px; width: 100%; margin: 0 auto; }
  .has-2 .video-pair { max-width: 460px; gap: 10px; }
  .has-2 .video-pair .video-frame + .video-frame { margin-top: 40px; }
}

/* Valores */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price {
  display: flex; flex-direction: column; position: relative;
  padding: 36px 32px; border: 1px solid var(--line); border-radius: 6px; background: #FCFAF6;
}
.price h3 { font-size: 21px; }
.amount { margin-top: 18px; font-family: 'Fraunces', serif; font-size: 48px; line-height: 1; color: var(--ink); }
.amount small { font-size: 18px; vertical-align: top; margin-right: 4px; position: relative; top: 6px; }
.per { margin-top: 8px; font-size: 14px; color: var(--muted); }
.desc { margin: 18px 0 28px; font-size: 15px; color: var(--ink-soft); }
.price .btn { margin-top: auto; }
.price-featured { background: var(--dark); border-color: var(--dark); color: var(--bg); }
.price-featured h3, .price-featured .amount { color: var(--bg); }
.price-featured .per, .price-featured .desc { color: rgba(248, 244, 238, .82); }
/* O selo fica sobre a borda do card, para os títulos dos três planos ficarem na mesma altura. */
.badge { position: absolute; top: 0; left: 32px; transform: translateY(-50%); margin: 0; padding: 5px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 860px) { .prices { grid-template-columns: 1fr; } }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery button {
  display: block; width: 100%; padding: 0; border: 0; background: var(--line);
  aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; cursor: zoom-in;
}
.gallery button:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery button:last-child { grid-column: span 2; aspect-ratio: auto; }
/* As fotos que ocupam mais de uma célula seguem a altura da linha, sem esticá-la. */
.gallery button:first-child, .gallery button:last-child { position: relative; min-height: 100%; }
.gallery button:first-child img, .gallery button:last-child img { position: absolute; inset: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .6s var(--ease); }
.gallery button:hover img { transform: scale(1.04); filter: brightness(1.03); }
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery button:first-child, .gallery button:last-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
}

/* Lightbox */
.lightbox { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh; background: rgba(30, 24, 20, .94); color: var(--bg); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.lightbox img { max-height: 84dvh; max-width: 100%; object-fit: contain; border-radius: 3px; }
.lightbox figcaption { font-size: 14px; color: rgba(248, 244, 238, .78); text-align: center; padding: 0 12px; }
.lb-nav, .lb-close { background: none; border: 0; color: var(--bg); cursor: pointer; font: 300 44px/1 'Work Sans', sans-serif; width: 64px; height: 64px; }
.lb-close { position: absolute; top: 8px; right: 8px; font-size: 38px; }
.lb-nav:hover, .lb-close:hover { color: var(--brand-light); }
@media (max-width: 600px) { .lightbox[open] { grid-template-columns: 44px 1fr 44px; } .lb-nav { width: 44px; font-size: 36px; } }

/* Salas */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.room { display: flex; flex-direction: column; }
.room-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.room-ph { padding: 0; border: 0; background: var(--line); border-radius: 4px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; }
.room-ph-main { grid-column: span 2; aspect-ratio: 4 / 3; }
.room-ph img { width: 100%; height: 100%; object-fit: cover; }
/* Ao passar o mouse, a foto cresce um pouco e fica por cima das vizinhas (só em aparelhos com mouse). */
@media (hover: hover) {
  .room-ph { position: relative; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
  .room-ph:hover, .room-ph:focus-visible { transform: scale(1.06); z-index: 2; box-shadow: 0 18px 40px -18px rgba(34, 28, 20, .55); }
}
.room h3 { font-size: 24px; }
.room-sum { margin-top: 8px; color: var(--ink-soft); font-size: 15.5px; }
.room-items { list-style: none; padding: 0; margin: 16px 0 24px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--ink); }
.room-items li::before { content: '·'; color: var(--brand); font-weight: 700; margin-right: 6px; }
.room .btn { margin-top: auto; align-self: flex-start; }
/* Em telas menores, as três fotos ficam numa linha: a principal define a altura e as outras acompanham. */
@media (max-width: 960px) { .rooms { grid-template-columns: 1fr; gap: 56px; } .room-photos { grid-template-columns: 2fr 1fr 1fr; } .room-ph-main { grid-column: auto; } .room-ph:not(.room-ph-main) { aspect-ratio: auto; } }

/* Estrutura */
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 40px; }
.amenities li { display: flex; align-items: flex-start; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.amenities .ico { flex: none; color: var(--brand); margin-top: 2px; }
.amenities b { display: block; font-weight: 600; color: var(--ink); font-size: 16px; }
.amenities span { font-size: 14px; color: var(--muted); }

/* Especialidades */
.specialties-block { margin-top: clamp(48px, 7vw, 80px); }
.specialties-block h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 20px; }
.specialties { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.specialties li { padding: 11px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 15px; }
/* Faixas que passam sozinhas (só com animação ligada). */
.marquee { display: none; }
.fx .specialties { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fx .marquee {
  display: grid; gap: 12px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; gap: 12px; width: max-content; animation: deslizar 70s linear infinite; }
.marquee-row.rev .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 13px 24px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  font-family: 'Fraunces', serif; font-size: clamp(17px, 1.8vw, 21px); color: var(--ink);
}
.marquee span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.marquee-row.rev span { background: transparent; border-color: var(--line-strong); }
/* O deslocamento é metade da faixa mais meio espaço, para a emenda das repetições ficar invisível. */
@keyframes deslizar { to { transform: translateX(calc(-50% - 6px)); } }

/* Dúvidas */
.faq-wrap { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: 'Fraunces', serif; font-size: 19px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; margin-top: -14px; font: 300 28px/1 'Work Sans', sans-serif; color: var(--brand); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 62ch; }

/* Localização */
.location { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.location address { font-style: normal; margin: 24px 0 16px; color: var(--ink-soft); font-size: 16.5px; line-height: 1.8; }
.location address strong { display: block; color: var(--ink); font-weight: 600; }
.hours { margin: 0 0 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.hours strong { color: var(--ink); font-weight: 600; }
.map { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); min-height: 360px; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
@media (max-width: 860px) { .location { grid-template-columns: 1fr; } }

/* Contato */
.contact { background: var(--dark); color: var(--bg); }
.contact .tag { color: var(--brand-light); }
.contact-logo { width: 104px; height: auto; margin-bottom: 28px; opacity: .92; }
.contact h2 { color: var(--bg); }
.contact-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
.contact-inner p:not(.tag) { margin-top: 18px; max-width: 42ch; color: rgba(248, 244, 238, .84); font-size: 16.5px; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
/* min-height de 44px para ficar fácil de tocar no celular. */
.link-light { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--bg); text-decoration: none; border-bottom: 1px solid var(--line-dk); font-size: 16px; transition: color .2s, border-color .2s; }
.link-light:hover { color: var(--brand-light); border-color: var(--brand-light); }

/* Rodapé */
.site-footer { padding: 28px 0 96px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); }
.footer-inner a { color: var(--muted); }

/* ---------- Botões flutuantes ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .35);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }

.music {
  position: fixed; left: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 6px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(248, 244, 238, .94); backdrop-filter: blur(6px);
  color: var(--ink); font: 500 13px/1 'Work Sans', sans-serif; cursor: pointer;
  box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .3);
}
.music svg { box-sizing: content-box; padding: 9px; border-radius: 50%; background: var(--brand); color: var(--bg); }
.music .i-pause, .music[aria-pressed="true"] .i-play { display: none; }
.music[aria-pressed="true"] .i-pause { display: block; }
/* Só o ícone; o nome da música aparece ao passar o mouse ou focar. */
.music-label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s var(--ease), margin .3s var(--ease); margin-right: -10px; }
.music:hover .music-label, .music:focus-visible .music-label { max-width: 200px; margin-right: 10px; }

/* Página de privacidade e página de erro */
.legal-wrap { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); }
.legal h2 { font-size: 22px; margin: 36px 0 10px; max-width: none; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal a:not(.btn) { color: var(--ink); }
.legal-date { margin-top: 10px; font-size: 14px; color: var(--muted) !important; }
.legal-back { margin-top: 40px; }

/* ---------- Formulário de reserva ---------- */
.booking {
  border: 0; padding: 22px 22px 26px; width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto;
  border-radius: 20px; background: #FCFAF6; color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(30, 24, 20, .55);
}
.booking::backdrop { background: rgba(30, 24, 20, .55); backdrop-filter: blur(2px); }
@media (max-width: 600px) {
  /* No celular, abre como uma folha que sobe do rodapé. */
  .booking { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 20px 20px 0 0; max-height: 92dvh; padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
}
.bk-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bk-steps { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.bk-steps .dot { width: 26px; height: 4px; border-radius: 4px; background: var(--line); }
.bk-steps .dot.on { background: var(--brand); }
.bk-close { width: 40px; height: 40px; border: 0; background: none; font: 300 32px/1 'Work Sans', sans-serif; color: var(--muted); cursor: pointer; }
.bk-title { font-size: 24px; }
.bk-sub { color: var(--muted); font-size: 14px; margin: 4px 0 18px; }
.booking form { display: grid; gap: 16px; }
.booking .field { display: grid; gap: 6px; }
.booking label, .booking .legend { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.booking .opt { font-weight: 400; color: var(--muted); }
.booking input[type="text"], .booking input[type="tel"], .booking input[type="date"], .booking textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 16px/1.3 'Work Sans', sans-serif; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
}
.booking textarea { min-height: 72px; resize: vertical; }
.booking input:focus, .booking textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(158, 74, 42, .18); }
.booking .field.error input { border-color: #A3631B; }
.booking .err { font-size: 12.5px; color: #A3631B; }
.booking .err:empty { display: none; }
.booking fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 14px; color: var(--ink-soft); font-weight: 500; transition: background .15s, color .15s, border-color .15s; }
.chip small { font-size: 12px; color: var(--muted); font-weight: 400; }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--bg); }
.chip input:checked + span small { color: var(--bg); opacity: .8; }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.privacy { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.privacy a { color: var(--ink); }
.btn-main { background: var(--brand); color: var(--bg); min-height: 52px; font-size: 16px; }
.btn-main:hover { background: var(--brand-dk); }
.btn-wa { background: #1FAF57; color: #fff; min-height: 52px; font-size: 16px; }
.btn-wa:hover { background: #179C4C; }
.btn-back { background: none; border-color: var(--line); color: var(--ink-soft); min-height: 44px; font-size: 14px; }
.bk-actions { display: grid; gap: 10px; }
.bk-done { display: grid; gap: 14px; text-align: center; padding: 8px 0 4px; }
.bk-done .check { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.bk-done p { color: var(--ink-soft); font-size: 14.5px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
