
/* ── Tokens: ajuste pela identidade visual do cliente ───────────────────── */
:root {
  --fundo: #F6EFE4;          /* mesma cor dos prompts */
  --fundo-2: #EFE4D4;
  --texto: #3A1F24;
  --texto-suave: #75605C;
  --acento: #7A2E3A;         /* bordô */
  --champanhe: #C99A3B;   /* mostarda */
  --mar: #A0594F;   /* rosa antigo escurecido p/ texto */
  --rosa: #D8A7A0;
  --acento-texto: #FFFFFF;
  --linha: rgb(42 37 34 / 0.12);
  --painel: rgb(250 247 242 / 0.74);
  --mistura: multiply;

  --fonte-titulo: "Bodoni Moda", Didot, Georgia, serif;
  --fonte-texto: "Jost", system-ui, sans-serif;

  --raio: 18px;
  --gutter: clamp(16px, 4vw, 56px);
  --largura: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
/* Tema claro (marcas de luz, saúde, casamento etc.): troque os tokens assim
:root {
  --fundo: #f4efe7; --fundo-2: #ebe4d8; --texto: #1d1a16; --texto-suave: #5d564c;
  --linha: rgb(29 26 22 / .12); --painel: rgb(244 239 231 / .7); --mistura: multiply;
}
*/

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 400 clamp(16px, 1.05vw, 18px)/1.65 var(--fonte-texto);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* Grão de filme: tira o aspecto "liso de IA" */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grao 1s steps(4) infinite;
}
@keyframes grao { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--fonte-titulo); font-weight: 300; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.2vw, 96px); }
h2 { font-size: clamp(32px, 4.2vw, 64px); }
h3 { font-size: clamp(21px, 1.8vw, 27px); font-weight: 500; }
p { margin: 0 0 1em; color: var(--texto-suave); text-wrap: pretty; }

/* ── Topo ──────────────────────────────────────────────────────────────── */
.topo {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  transition: background .4s var(--ease), backdrop-filter .4s;
}
.topo.rolou { background: rgb(246 239 228 / .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.marca { text-decoration: none; display: flex; align-items: center; }
.marca-logo { height: 34px; width: auto; }
.marca-texto { font-family: var(--fonte-titulo); font-size: 22px; letter-spacing: .02em; }
.menu { display: flex; gap: 28px; align-items: center; font-size: 14px; letter-spacing: .04em; }
.menu a { text-decoration: none; opacity: .8; transition: opacity .3s; }
.menu a:hover { opacity: 1; }
.menu-cta { border: 1px solid var(--linha); padding: 9px 16px; border-radius: 999px; opacity: 1 !important; }
@media (max-width: 760px) { .menu a:not(.menu-cta) { display: none; } }

/* ── Abertura cinematográfica ──────────────────────────────────────────── */
.cine { position: relative; height: var(--altura, 400vh); }
.cine-palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.cine-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cine-vinheta {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgb(0 0 0 / .45) 100%),
    linear-gradient(to bottom, transparent 70%, var(--fundo) 100%);
}
.momento {
  position: absolute; inset: auto var(--gutter) 12vh; max-width: 640px;
  opacity: 0; transform: translateY(24px); filter: blur(6px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease);
  pointer-events: none;
}
.momento.ativo { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.momento--direita { left: auto; right: var(--gutter); }
.momento--centro { left: 50%; right: auto; transform: translate(-50%, 24px); text-align: center; width: min(640px, calc(100% - 2 * var(--gutter))); }
.momento--centro.ativo { transform: translate(-50%, 0); }
.titulo-abertura { margin-bottom: .3em; }
.apoio { font-size: clamp(16px, 1.3vw, 20px); margin: 0; }
.destaque { font-family: var(--fonte-titulo); font-size: clamp(24px, 2.8vw, 42px); line-height: 1.2; color: var(--texto); margin: 0 0 .6em; }
.destaque:last-child { margin: 0; }
.cine-dica {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .6;
  transition: opacity .5s;
}
.cine-dica span { width: 1px; height: 38px; background: linear-gradient(var(--texto), transparent); animation: dica 2s var(--ease) infinite; }
@keyframes dica { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.cine.andou .cine-dica { opacity: 0; }

/* ── Painéis (todo texto mora num painel) ──────────────────────────────── */
.painel {
  position: relative;
  background: var(--painel);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: clamp(24px, 3.2vw, 48px);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}
.painel--vidro { background: rgb(250 247 242 / .58); }
.painel > :last-child { margin-bottom: 0; }
.rotulo { display: block; font-size: 12px; letter-spacing: .3em; color: var(--acento); margin-bottom: 18px; }

/* ── Seções ────────────────────────────────────────────────────────────── */
.secao {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100vh; padding: 18vh var(--gutter);
  display: grid; align-content: center;
}
.secao-grade { width: 100%; max-width: var(--largura); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 560px) 1fr; }
.secao-grade--direita { grid-template-columns: 1fr minmax(0, 560px); }
.secao-grade--direita > .painel { grid-column: 2; }
.secao--larga { gap: 28px; justify-items: center; }
.painel--cabecalho { width: 100%; max-width: var(--largura); }
.cartoes { width: 100%; max-width: var(--largura); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cartao h3 { margin-bottom: .4em; }
.cartao { transition: transform .5s var(--ease), border-color .5s; }
.cartao:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--acento) 50%, transparent); }
.passos { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: p; display: grid; gap: 22px; }
.passos li { counter-increment: p; display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; }
.passos li::before { content: counter(p, decimal-leading-zero); grid-row: span 2; font-family: var(--fonte-titulo); color: var(--acento); font-size: 22px; }
.passos strong { font-weight: 600; }
.passos span { color: var(--texto-suave); }

/* ── Arte: imagens fundidas ao fundo (nunca retângulo com borda) ───────── */
.arte {
  position: absolute; z-index: -1; pointer-events: none;
  object-fit: cover; mix-blend-mode: var(--mistura);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.arte--direita, .arte--esquerda { top: 0; bottom: 0; width: 64vw; height: 100%; }
.arte--direita {
  right: 0;
  -webkit-mask-image: linear-gradient(to left, #000 38%, transparent 96%), linear-gradient(to bottom, transparent 13%, #000 34%, #000 66%, transparent 87%);
          mask-image: linear-gradient(to left, #000 38%, transparent 96%), linear-gradient(to bottom, transparent 13%, #000 34%, #000 66%, transparent 87%);
}
.arte--esquerda {
  left: 0;
  -webkit-mask-image: linear-gradient(to right, #000 38%, transparent 96%), linear-gradient(to bottom, transparent 13%, #000 34%, #000 66%, transparent 87%);
          mask-image: linear-gradient(to right, #000 38%, transparent 96%), linear-gradient(to bottom, transparent 13%, #000 34%, #000 66%, transparent 87%);
}
.arte--fundo {
  inset: 0; width: 100%; height: 100%; opacity: .5;
  /* closest-side: a elipse zera exatamente na borda, então nunca sobra linha reta */
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
          mask-image: radial-gradient(closest-side, #000 35%, transparent 100%), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
.arte--suave { opacity: .32; }
/* Parallax leve aplicado pelo app.js */
.arte[data-parallax] { will-change: transform; }

/* ── Contato ───────────────────────────────────────────────────────────── */
.secao--contato { justify-items: center; }
.painel--form { width: 100%; max-width: 760px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.campo { display: grid; gap: 6px; }
.campo--inteiro { grid-column: 1 / -1; }
.campo label { font-size: 13px; letter-spacing: .04em; color: var(--texto-suave); }
.campo input, .campo textarea {
  width: 100%; font: inherit; color: var(--texto);
  background: rgb(255 255 255 / .04); border: 1px solid var(--linha); border-radius: 12px;
  padding: 14px 16px; transition: border-color .3s, background .3s; resize: vertical;
}
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--acento); background: rgb(255 255 255 / .07); }
.campo.erro input { border-color: #d9776b; }
.pote { position: absolute; left: -9999px; }
.form-status { min-height: 1.4em; margin: 0; font-size: 14px; }
.form-status.ok { color: var(--acento); }
.form-status.falha { color: #e39a90; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ── Botões ────────────────────────────────────────────────────────────── */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px/1 var(--fonte-texto); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  color: var(--acento-texto); background: var(--acento); border: 0; border-radius: 999px;
  padding: 17px 30px; transition: transform .4s var(--ease), filter .3s;
}
.botao:hover { transform: translateY(-2px); filter: brightness(1.08); }
.botao[disabled] { opacity: .6; cursor: progress; }

/* ── WhatsApp flutuante ────────────────────────────────────────────────── */
.whats {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px rgb(0 0 0 / .35);
  transform: scale(0); transition: transform .5s var(--ease);
}
.whats.visivel { transform: scale(1); }
.whats:hover { transform: scale(1.07); }
.whats svg { width: 30px; height: 30px; }
.whats::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulso 2.6s ease-out infinite; }
@keyframes pulso { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ── Rodapé ────────────────────────────────────────────────────────────── */
.rodape { padding: 0 var(--gutter) 40px; }
.rodape-painel { max-width: var(--largura); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--texto-suave); padding: 24px 32px; }

/* ── Revelar ao rolar ──────────────────────────────────────────────────── */
.revelar { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.revelar.visto { opacity: 1; transform: none; }

/* ── Celular ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .secao { padding: 14vh var(--gutter); min-height: auto; }
  .secao-grade, .secao-grade--direita { grid-template-columns: 1fr; }
  .secao-grade--direita > .painel { grid-column: 1; }
  .arte--direita, .arte--esquerda { left: 0; right: 0; width: 100%; height: 70%; opacity: .55;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 55%, transparent);
            mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 55%, transparent); }
  .momento, .momento--direita { left: var(--gutter); right: var(--gutter); bottom: 10vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revelar, .momento:first-of-type { opacity: 1; transform: none; filter: none; }
  .cine { height: 100svh; }
  .momento:not(:first-of-type), .cine-dica { display: none; }
}

/* ── Ajustes Ilhéa Estética (tema claro) ───────────────────────────────── */
body::after { opacity: .045; }
h1, h2, h3 { font-weight: 400; }
h1 { font-size: clamp(42px, 6.4vw, 100px); }
.cine-vinheta {
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 60%, rgb(42 37 34 / .22) 100%),
    linear-gradient(to bottom, transparent 72%, var(--fundo) 100%);
}
.painel--vidro { border-color: rgb(255 255 255 / .5); box-shadow: 0 20px 60px rgb(42 37 34 / .12); }
.painel { box-shadow: 0 18px 50px rgb(42 37 34 / .06); }
.rotulo { color: var(--mar); }
.marca-texto em, .rodape-painel em { font-style: italic; color: var(--acento); }
.menu-cta { background: var(--texto); color: var(--fundo); border-color: var(--texto); }
.botao { background: var(--texto); color: var(--fundo); }
.campo input, .campo textarea { background: rgb(255 255 255 / .6); }
.campo input:focus, .campo textarea:focus { background: #fff; }
.form-status.ok { color: var(--mar); }

.aviso-demo {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; text-align: center;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 16px;
  background: rgb(246 239 228 / .88); color: var(--texto-suave); border-top: 1px solid var(--linha);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.whats { bottom: max(40px, env(safe-area-inset-bottom)); }
.rodape { padding-bottom: 64px; }

.pontos { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.pontos li { position: relative; padding-left: 26px; color: var(--texto); }
.pontos li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 1px; background: var(--acento); }

.lista-trat { margin: 22px 0 0; display: grid; gap: 0; }
.lista-trat div { padding: 18px 0; border-top: 1px solid var(--linha); transition: padding-left .5s var(--ease); }
.lista-trat div:hover { padding-left: 10px; }
.lista-trat dt { font-family: var(--fonte-titulo); font-size: clamp(22px, 1.9vw, 28px); line-height: 1.15; color: var(--texto); }
.lista-trat dd { margin: 4px 0 0; color: var(--texto-suave); font-size: 15px; }
.nota { font-size: 13px; margin-top: 18px; font-style: italic; }
.registro { font-size: 13px; letter-spacing: .06em; color: var(--texto); margin-top: 18px; }
.registro span { color: var(--texto-suave); }

#como-funciona { min-height: auto; }
.etapa { display: block; font-family: var(--fonte-titulo); font-size: 54px; line-height: 1; color: var(--champanhe); margin-bottom: 14px; }

/* Vista do Leblon: imagem cheia, sem multiply, bordas dissolvendo no fundo */
.vista { position: relative; min-height: 120vh; display: grid; align-items: end; overflow: clip; }
.vista-imagem { position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 80%, transparent 100%); }
.vista-zoom { position: absolute; inset: 0; transform: scale(var(--zoom, 1.18)); will-change: transform; }
.vista-imagem img.arte--vista {
  position: absolute; inset: 0; z-index: auto; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none;
}
.vista-texto { position: relative; padding: 0 var(--gutter) 22vh; width: 100%; max-width: var(--largura); margin: 0 auto; }
.vista-texto .painel { max-width: 520px; }
.vista-texto h2 { color: var(--texto); }

@media (max-width: 860px) {
  .vista { min-height: 100vh; }
  .vista-texto { padding-bottom: 16vh; }
}
/* Mesmas correções aplicadas no site do Rafael */
.secao { grid-template-columns: minmax(0, 1fr); }
.arte--direita { object-position: right center; }
.arte--esquerda { object-position: left center; }
@media (min-width: 861px) {
  .arte--direita, .arte--esquerda { top: calc(50% - 20vw); bottom: auto; height: 40vw; }
}
@media (max-width: 860px) { .arte--direita, .arte--esquerda { object-position: center; } }
.marca-texto { font-size: 26px; }

/* Select do formulário */
.campo select {
  width: 100%; font: inherit; color: var(--texto); background: rgb(255 255 255 / .6);
  border: 1px solid var(--linha); border-radius: 12px; padding: 14px 16px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--texto-suave) 50%), linear-gradient(135deg, var(--texto-suave) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.campo select:focus { outline: none; border-color: var(--acento); background-color: #fff; }

/* Vista: texto no alto, sobre o céu; o Dois Irmãos fica livre embaixo */
.vista { min-height: 110vh; align-items: start; }
.vista-texto { padding: 24vh var(--gutter) 0; }
.vista-texto .painel { margin-left: auto; max-width: 460px; }
@media (max-width: 860px) {
  .vista { min-height: 100vh; }
  .vista-texto { padding-top: 14vh; }
  .vista-texto .painel { margin-left: 0; }
}
@media (max-width: 860px) { .momento--centro { left: 50%; right: auto; } }

/* ── Ajustes Naturalmente Bela ─────────────────────────────────────────── */
h1, h2 { font-weight: 400; letter-spacing: -.015em; }
h1 { font-size: clamp(40px, 6vw, 92px); }
h3 { font-family: var(--fonte-titulo); font-weight: 400; }
.menu-cta, .botao { background: var(--acento); border-color: var(--acento); color: #F6EFE4; }
.marca-texto { letter-spacing: .01em; }
.marca-texto em, .rodape-painel em { color: var(--champanhe); }
.colecoes .cartao h3 { margin-bottom: .3em; }
.selo-ficticio { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0; color: var(--mar); }
#depoimentos { min-height: auto; }
.depoimento { margin: 0; }
.depoimento blockquote { margin: 0 0 18px; font-family: var(--fonte-titulo); font-size: clamp(19px, 1.5vw, 23px); line-height: 1.45; color: var(--texto); font-style: italic; }
.depoimento figcaption { font-size: 13px; color: var(--acento); letter-spacing: .04em; }
.endereco { font-size: 15px; color: var(--texto); margin: 18px 0 0; }
.insta { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; font-weight: 500; color: var(--acento); text-decoration: none; }
.insta:hover { text-decoration: underline; }
/* Bolinhas retrô discretas no fundo das seções de coleção */
#colecoes::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: radial-gradient(rgb(122 46 58 / .07) 2px, transparent 2.5px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.marca-texto, .menu-cta { white-space: nowrap; }
@media (max-width: 480px) {
  .topo { padding-block: 14px; }
  .marca-texto { font-size: 21px; }
  .menu-cta { font-size: 13px; padding: 8px 14px; }
}
.topo:not(.rolou) { background: linear-gradient(to bottom, rgb(246 239 228 / .6), transparent); }
