/* Lucas Mamede Foto e Vídeo — folha de estilo do site novo.
   Celular primeiro. Variáveis, tipografia, componentes e animações (o padrão está na seção 11 do plano). */

:root {
  --marfim: #FAF8F5;
  --creme: #F3EEE6;
  --areia: #E7DECD;
  --grafite: #222222;
  --carvao: #1A1A1A;
  --carvao-2: #242322;
  --dourado: #B8912F;
  --dourado-claro: #D4AF37;
  --texto: #222222;
  --texto-2: #5C564D;
  --texto-3: #8B8477;
  --borda: rgba(34, 34, 34, 0.12);
  --claro: #F6F3EE;
  --claro-2: #CFC9BE;
  --claro-3: #9A948A;
  --borda-clara: rgba(246, 243, 238, 0.14);
  --serifa: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --suave: cubic-bezier(0.16, 1, 0.3, 1);
  --sobe: 28px;
  --largura: 1200px;
  --gutter: 20px;
  --topo-altura: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* "hidden" sempre esconde, mesmo em componentes que definem display (grid, flex) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--marfim);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; max-width: 62ch; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--serifa); font-weight: 400; line-height: 1.12; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 7vw, 4.6rem); line-height: 1.05; }
h2 { font-size: clamp(1.85rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.35rem; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--dourado); }
.secao-escura h1 em, .secao-escura h2 em, .hero h1 em { color: var(--dourado-claro); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--dourado); outline-offset: 3px; }
::selection { background: var(--dourado-claro); color: var(--grafite); }

.container { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 var(--gutter); }
/* As seções têm fundo opaco e ficam acima do hero: com a animação ligada, o hero fica preso ao fundo e elas
   deslizam por cima dele como uma cortina. */
.secao { padding: 4.5rem 0; background: var(--marfim); position: relative; z-index: 1; }
.secao-creme { background: var(--creme); }
.secao-escura { background: var(--carvao); color: var(--claro); }
.secao-escura p { color: var(--claro-2); }
.secao-escura .etiqueta { color: var(--dourado-claro); }
.secao-escura .etiqueta::before { background: var(--dourado-claro); }
.secao-escura h2, .secao-escura h3 { color: var(--claro); }

.etiqueta {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dourado); margin: 0 0 1.2rem;
}
.etiqueta::before { content: ''; display: block; width: 40px; height: 1px; background: var(--dourado); flex: none; }
.etiqueta.centro { justify-content: center; }
.etiqueta.centro::after { content: ''; display: block; width: 40px; height: 1px; background: currentColor; flex: none; }
.centro { text-align: center; }
.centro p { margin-left: auto; margin-right: auto; }
.introducao { font-size: 1.08rem; color: var(--texto-2); }
.secao-escura .introducao { color: var(--claro-2); }
.texto-menor { font-size: 0.9rem; color: var(--texto-3); }
.pendente { color: var(--dourado); font-weight: 600; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  min-height: 50px; padding: 0.8rem 1.7rem;
  font-family: var(--sans); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; background: none; color: inherit;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--suave);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-dourado { background: var(--dourado); border-color: var(--dourado); color: #FFFDF8; }
.btn-dourado:hover { background: #A07D27; border-color: #A07D27; }
.btn-contorno { border-color: var(--grafite); color: var(--grafite); }
.btn-contorno:hover { background: var(--grafite); color: var(--marfim); }
.btn-contorno-claro { border-color: rgba(246, 243, 238, 0.7); color: var(--claro); }
.btn-contorno-claro:hover { background: var(--claro); color: var(--grafite); border-color: var(--claro); }
.btn:active { transform: translateY(1px); }
.acoes { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; align-items: center; margin-top: 1.8rem; }
.link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  border-bottom: 1px solid var(--dourado); padding-bottom: 3px; transition: color 0.3s ease, gap 0.3s ease;
}
.link:hover { color: var(--dourado); gap: 0.8rem; }
.link svg { width: 15px; height: 15px; }

/* ---------- Topo ---------- */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topo-altura);
  display: flex; align-items: center;
  color: var(--claro);
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.topo .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topo.solido, .topo.rolou, .topo.aberto {
  background: rgba(250, 248, 245, 0.94); color: var(--grafite);
  box-shadow: 0 1px 0 rgba(34, 34, 34, 0.08); backdrop-filter: blur(8px);
}
/* Com o menu aberto o topo fica opaco e sem backdrop-filter: o filtro viraria o "pai" do painel fixo e o espremeria */
.topo.aberto { background: var(--marfim); backdrop-filter: none; }
.marca { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.marca-nome { font-family: var(--serifa); font-size: 1.25rem; letter-spacing: 0.16em; text-transform: uppercase; }
.marca-sub { margin-top: 5px; font-size: 0.58rem; font-weight: 600; letter-spacing: 0.36em; text-transform: uppercase; color: var(--dourado-claro); }
.topo.solido .marca-sub, .topo.rolou .marca-sub, .topo.aberto .marca-sub { color: var(--dourado); }
.menu-botao {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: none; border: 0; color: inherit; cursor: pointer; margin-right: -8px;
}
.menu-botao svg { width: 26px; height: 26px; }
.menu-botao .fechar { display: none; }
.topo.aberto .menu-botao .abrir { display: none; }
.topo.aberto .menu-botao .fechar { display: block; }
.menu {
  position: fixed; top: var(--topo-altura); left: 0; right: 0; height: calc(100vh - var(--topo-altura)); height: calc(100svh - var(--topo-altura));
  display: none; flex-direction: column; gap: 0;
  background: var(--marfim); padding: 1rem var(--gutter) 2rem; overflow: auto;
}
.topo.aberto .menu { display: flex; }
.menu a {
  padding: 1rem 0; border-bottom: 1px solid var(--borda);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grafite);
}
.menu a.atual { color: var(--dourado); }
.menu .menu-cta { margin-top: 1.5rem; border-bottom: 0; padding: 0; }
.menu .menu-cta .btn { width: 100%; }
.topo-cta { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 0; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; background: var(--carvao); color: var(--claro);
}
/* Cortina: só quando o site.js está rodando (ele ajusta o "top" em telas mais baixas que o hero) */
.anima-pronta .hero { position: sticky; top: 0; }
.hero-foto {
  position: absolute; left: 0; right: 0; top: -6%; height: 112%;
  will-change: transform;
}
.hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: var(--foco, 50% 50%); }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.88) 0%, rgba(26, 26, 26, 0.35) 45%, rgba(26, 26, 26, 0.25) 100%);
}
.hero-texto { position: relative; z-index: 2; padding-top: calc(var(--topo-altura) + 3rem); padding-bottom: 3rem; will-change: transform, opacity; }
.hero-texto .etiqueta { color: var(--dourado-claro); letter-spacing: 0.18em; }
.hero-texto .etiqueta::before { background: var(--dourado-claro); width: 28px; }
.hero-texto h1 { max-width: 14ch; color: var(--claro); margin-bottom: 1rem; font-size: clamp(2.1rem, 6.2vw, 4rem); }
.hero-texto p { color: rgba(246, 243, 238, 0.86); font-size: 1rem; max-width: 40ch; }
.hero-texto .acoes { margin-top: 1.6rem; }
.hero-texto .acoes .btn { flex: 1 1 auto; }
.hero-rolar {
  position: absolute; z-index: 2; left: 50%; bottom: 1.1rem; transform: translateX(-50%);
  display: none; width: 1px; height: 44px; background: linear-gradient(to bottom, rgba(246, 243, 238, 0), rgba(246, 243, 238, 0.7));
}

/* ---------- Fotos ---------- */
.foto { position: relative; margin: 0; overflow: hidden; background: var(--areia); }
.foto img { width: 100%; height: 100%; object-fit: cover; object-position: var(--foco, 50% 50%); }
.foto-32 { aspect-ratio: 3 / 2; }
.foto-23 { aspect-ratio: 2 / 3; }
.foto-45 { aspect-ratio: 4 / 5; }
.foto figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.9rem 1rem;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--claro);
  background: linear-gradient(to top, rgba(26, 26, 26, 0.7), rgba(26, 26, 26, 0));
  opacity: 0; transition: opacity 0.4s ease;
}
.foto:hover figcaption, .foto:focus-within figcaption { opacity: 1; }
.foto-vazia {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem;
  border: 1px dashed var(--dourado); background: transparent; color: var(--texto-2); font-size: 0.9rem;
}

/* Casamento: texto + composição de 3 fotos */
.duas-colunas { display: grid; gap: 2.5rem; align-items: center; }
.composicao { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.composicao .foto-larga { grid-column: 1 / -1; }
.composicao .foto-23:last-child { margin-top: 2rem; }

/* Lista do que inclui */
.lista-check { display: grid; gap: 0.8rem; margin: 1.6rem 0 0; }
.lista-check li { display: flex; gap: 0.9rem; align-items: flex-start; color: var(--texto-2); }
.lista-check li::before {
  content: ''; flex: none; width: 22px; height: 22px; margin-top: 3px; border: 1px solid var(--dourado);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8912F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>") center / 12px no-repeat;
}
.secao-escura .lista-check li { color: var(--claro-2); }

/* Frase grande que acende palavra por palavra */
.texto-grande {
  font-family: var(--serifa); font-size: clamp(1.6rem, 4.6vw, 3rem); line-height: 1.3; letter-spacing: -0.01em;
  max-width: 26ch; margin: 0 auto; text-align: center; color: var(--texto);
}
.anima .texto-grande .palavra { color: var(--areia); transition: color 0.5s ease; }
.anima .texto-grande .palavra.acesa { color: var(--texto); }
.secao-escura .texto-grande { color: var(--claro); }
.anima .secao-escura .texto-grande .palavra { color: #4A4844; }
.anima .secao-escura .texto-grande .palavra.acesa { color: var(--claro); }

/* Mosaico (cada foto inteira, na proporção dela) */
.mosaico { columns: 2; column-gap: 0.8rem; }
.mosaico .foto { break-inside: avoid; margin-bottom: 0.8rem; }

/* Vídeo (carrega o YouTube só ao clicar) */
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--carvao-2); }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-botao {
  position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  background: rgba(26, 26, 26, 0.28); border: 0; color: var(--claro); cursor: pointer; font-family: var(--sans);
  transition: background-color 0.3s ease;
}
.video-botao:hover { background: rgba(26, 26, 26, 0.4); }
.video-botao .play {
  display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%;
  border: 1px solid rgba(246, 243, 238, 0.8); background: rgba(26, 26, 26, 0.35); backdrop-filter: blur(4px);
  transition: transform 0.4s var(--suave), background-color 0.3s ease;
}
.video-botao:hover .play { transform: scale(1.06); background: var(--dourado); border-color: var(--dourado); }
.video-botao .play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-botao span { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; }
.video-aviso { margin-top: 0.9rem; font-size: 0.9rem; color: var(--claro-3); text-align: center; }

/* Passos */
.passos { display: grid; gap: 1.5rem; counter-reset: passo; margin-top: 2.5rem; }
.passo { position: relative; padding: 1.8rem 0 0; border-top: 1px solid var(--borda); }
.passo::before {
  counter-increment: passo; content: '0' counter(passo);
  display: block; font-family: var(--serifa); font-size: 2rem; color: var(--dourado); line-height: 1; margin-bottom: 0.8rem;
}
.passo h3 { margin-bottom: 0.4rem; }
.passo p { color: var(--texto-2); margin: 0; }

/* Depoimentos */
.depoimentos { display: grid; gap: 1rem; margin-top: 2.5rem; }
.depoimento { padding: 2rem; background: var(--marfim); border: 1px solid var(--borda); display: flex; flex-direction: column; gap: 1.2rem; }
.depoimento blockquote { margin: 0; font-family: var(--serifa); font-size: 1.15rem; line-height: 1.5; color: var(--texto); }
.depoimento blockquote::before { content: '\201C'; color: var(--dourado); font-size: 2.4rem; line-height: 0; vertical-align: -0.4em; margin-right: 0.15em; }
.depoimento cite { font-style: normal; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--texto-3); }
.depoimento cite strong { display: block; font-weight: 600; color: var(--dourado); margin-bottom: 0.2rem; }

/* Sobre */
.sobre { display: grid; gap: 2.5rem; align-items: center; }
.sobre .foto { max-width: 420px; }

/* Chamada final */
.chamada { position: relative; overflow: hidden; text-align: center; padding: 6rem 0; }
.chamada h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.chamada .acoes { justify-content: center; }
.chamada-telefone { margin-top: 1.4rem; font-size: 0.82rem; letter-spacing: 0.08em; color: var(--claro-3); }

/* Rodapé */
.rodape { position: relative; z-index: 1; background: var(--carvao); color: var(--claro-2); padding: 4rem 0 2rem; border-top: 1px solid var(--borda-clara); }
.rodape-grade { display: grid; gap: 2.5rem; }
.rodape .marca-nome { color: var(--claro); }
.rodape .marca-sub { color: var(--dourado-claro); }
.rodape p { font-size: 0.92rem; }
.rodape h3 { font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dourado-claro); margin-bottom: 1rem; }
.rodape ul { display: grid; gap: 0.55rem; }
.rodape a { transition: color 0.3s ease; }
.rodape a:hover { color: var(--dourado-claro); }
.rodape-copia { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--borda-clara); font-size: 0.8rem; color: var(--claro-3); display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; justify-content: space-between; }
.rodape-copia a { text-decoration: underline; text-underline-offset: 3px; }

/* WhatsApp flutuante */
.whatsapp-flutuante {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s var(--suave);
}
.whatsapp-flutuante:hover { transform: translateY(-2px); }
.whatsapp-flutuante svg { width: 28px; height: 28px; }

/* ---------- Animações ao rolar ----------
   Só escondem algo depois que o anima.js (no <head>) põe a classe "anima" no <html>. Sem JavaScript, ou com
   "reduzir movimento" ligado, tudo aparece parado. Só transform, opacity e (nas fotos) clip-path. */
.anima .aparece {
  opacity: 0;
  transform: translate3d(0, var(--sobe), 0);
  transition: opacity 0.9s var(--suave), transform 1.3s var(--suave);
}
.anima .aparece.visivel { opacity: 1; transform: none; }
/* Fotos marcadas com "revela" abrem de dentro para fora enquanto sobem (sem zoom: a foto não muda de tamanho) */
.anima .revela.aparece {
  clip-path: inset(10% 0 10% 0);
  transform: translate3d(0, 36px, 0);
  transition: opacity 0.9s var(--suave), transform 1.5s var(--suave), clip-path 1.5s var(--suave);
}
.anima .revela.aparece.visivel { clip-path: inset(0); }
/* No mosaico a entrada é mais discreta: são muitas fotos */
.anima .mosaico .aparece { --sobe: 14px; }
/* Rede de segurança: se o site.js não carregar, o conteúdo aparece sozinho depois de 2,5 s */
.anima:not(.anima-pronta) .aparece { animation: aparecer-sozinho 0.6s ease 2.5s forwards; }
@keyframes aparecer-sozinho { to { opacity: 1; transform: none; clip-path: inset(0); } }
/* Entrada da página: o topo desce e a foto do hero aparece; o texto do hero entra em cascata (data-cascata) */
.anima .topo { animation: topo-entrada 1s var(--suave) 0.15s both; }
@keyframes topo-entrada { from { opacity: 0; transform: translate3d(0, -10px, 0); } to { opacity: 1; transform: none; } }
.anima .hero-foto img { animation: hero-entrada 1.8s ease-out both; }
@keyframes hero-entrada { from { opacity: 0; } to { opacity: 1; } }
/* O botão flutuante do WhatsApp só aparece depois do hero (que já tem o botão de WhatsApp) */
.anima .whatsapp-flutuante { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.9); pointer-events: none; transition: opacity 0.5s ease, transform 0.7s var(--suave); }
.anima .whatsapp-flutuante.visivel { opacity: 1; transform: none; pointer-events: auto; }
.anima:not(.anima-pronta) .whatsapp-flutuante { animation: aparecer-sozinho 0.6s ease 2.5s forwards; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anima .aparece, .anima .revela.aparece { opacity: 1; transform: none; clip-path: none; transition: none; animation: none; }
  .anima .topo, .anima .hero-foto img { animation: none; }
  .anima .whatsapp-flutuante { opacity: 1; transform: none; pointer-events: auto; transition: none; }
  .btn, .link, .topo, .foto figcaption { transition: none; }
}
@media print {
  .anima .aparece { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero { position: static !important; }
  .topo, .whatsapp-flutuante { display: none; }
}

/* ---------- Tablet (640 px) ---------- */
@media (min-width: 640px) {
  .composicao .foto-23:last-child { margin-top: 3rem; }
  .passos { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .depoimentos { grid-template-columns: 1fr 1fr; }
  .mosaico { columns: 3; column-gap: 1rem; }
  .mosaico .foto { margin-bottom: 1rem; }
  .sobre { grid-template-columns: 340px 1fr; gap: 3rem; }
  .rodape-grade { grid-template-columns: 1.2fr 1fr 1fr; }
  .hero-rolar { display: block; }
}

/* ---------- Desktop (1000 px) ---------- */
@media (min-width: 1000px) {
  :root { --gutter: 40px; --topo-altura: 76px; }
  body { font-size: 17px; }
  .secao { padding: 7rem 0; }
  /* No desktop a caixa da foto é mais larga que a tela: o casal (centro da foto) fica à direita do texto,
     e só a borda direita da foto (parede, sem pessoas) sai do quadro. */
  .hero-foto { width: 118%; }
  .hero-texto { padding-bottom: 5rem; }
  .hero-texto p { font-size: 1.1rem; }
  .hero-texto .acoes .btn { flex: 0 0 auto; }
}

/* ---------- Menu horizontal (1200 px): só quando os 7 links e o botão cabem numa linha ---------- */
@media (min-width: 1200px) {
  .menu-botao { display: none; }
  .menu {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 1.3rem; height: auto;
    background: none; padding: 0; overflow: visible;
  }
  .menu a { padding: 0; border: 0; font-size: 0.68rem; color: inherit; letter-spacing: 0.18em; opacity: 0.9; transition: color 0.3s ease; }
  .menu a:hover { color: var(--dourado-claro); }
  .topo.rolou .menu a:hover, .topo.solido .menu a:hover { color: var(--dourado); }
  .menu .menu-cta { margin: 0 0 0 0.6rem; }
  .menu .menu-cta .btn { width: auto; min-height: 42px; padding: 0.5rem 1.2rem; font-size: 0.68rem; white-space: nowrap; }
  .topo .btn-contorno-claro { border-color: rgba(246, 243, 238, 0.6); }
  .topo.rolou .btn-contorno-claro, .topo.solido .btn-contorno-claro { border-color: var(--grafite); color: var(--grafite); }
  .topo.rolou .btn-contorno-claro:hover, .topo.solido .btn-contorno-claro:hover { background: var(--grafite); color: var(--marfim); }
  .duas-colunas { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .duas-colunas.invertido > :first-child { order: 2; }
  .composicao { gap: 1rem; }
  .sobre { grid-template-columns: 420px 1fr; gap: 5rem; }
  .chamada { padding: 9rem 0; }
  .rodape { padding-top: 5rem; }
}
@media (min-width: 1400px) {
  :root { --largura: 1280px; }
}

/* =====================================================================
   Páginas internas (etapa 3). Seguem o padrão da home (seção 11 do plano).
   ===================================================================== */

/* Links dentro do texto */
.link-texto { border-bottom: 1px solid var(--dourado); transition: color 0.3s ease; }
.link-texto:hover { color: var(--dourado); }
.link-claro { color: var(--dourado-claro); }
.link-claro:hover { text-decoration: underline; text-underline-offset: 3px; }

/* No celular, com o menu aberto, o botão do topo vira o principal (dourado): o contorno claro sumiria no marfim */
@media (max-width: 1199px) {
  .topo .menu-cta .btn { background: var(--dourado); border-color: var(--dourado); color: #FFFDF8; }
}

/* Cabeçalho de página sem foto (topo "solido" desde o início) */
.cabecalho { position: relative; z-index: 1; background: var(--marfim); padding: calc(var(--topo-altura) + 3.5rem) 0 3rem; }
.cabecalho h1 { font-size: clamp(2.1rem, 6vw, 3.8rem); max-width: 18ch; }
.cabecalho .introducao { max-width: 56ch; }
.cabecalho.centro h1 { margin-left: auto; margin-right: auto; }
.cabecalho + .secao { padding-top: 1rem; }

/* Hero das páginas internas (mesma cortina e parallax da home). Em tela em pé ele ocupa a tela inteira, como o
   da home: com a foto vertical, os rostos ficam no alto e o texto, embaixo, fica sobre o vestido. Só no desktop
   (tela deitada, foto horizontal) ele é menor. */
.hero.hero-menor { min-height: 100svh; }
.hero.hero-menor .hero-texto h1 { font-size: clamp(2rem, 5.6vw, 3.6rem); max-width: 16ch; }

/* Momentos do dia (três blocos com número em serifa, como os passos) */
.momentos { display: grid; gap: 2rem; margin-top: 2.5rem; }
.momento h3 { margin-bottom: 0.5rem; }
.momento p { color: var(--texto-2); margin: 0; }
.secao-escura .momento p { color: var(--claro-2); }
.momento-numero { display: block; font-family: var(--serifa); font-style: italic; font-size: 1.05rem; color: var(--dourado); margin-bottom: 0.6rem; }
.secao-escura .momento-numero { color: var(--dourado-claro); }

/* Galeria com filtros e foto ampliada */
.filtros { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; }
.filtros.centro { justify-content: center; }
.filtro {
  min-height: 42px; padding: 0.45rem 1.1rem; border: 1px solid var(--borda); background: transparent; color: var(--texto-2);
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.filtro:hover { border-color: var(--dourado); color: var(--texto); }
.filtro[aria-pressed="true"] { background: var(--grafite); border-color: var(--grafite); color: var(--marfim); }
.galeria { columns: 2; column-gap: 0.7rem; }
.galeria > * { break-inside: avoid; margin-bottom: 0.7rem; }
.galeria .foto a { display: block; cursor: zoom-in; }
.galeria [hidden] { display: none; }
.galeria-vazia { padding: 2.5rem 1.5rem; border: 1px dashed var(--dourado); text-align: center; color: var(--texto-2); }
.galeria-vazia[hidden] { display: none; }
.cartao-video { position: relative; }
.cartao-video .video { aspect-ratio: 3 / 2; }
.cartao-video p { margin: 0.7rem 0 0; font-size: 0.9rem; color: var(--texto-2); }

.ampliada {
  position: fixed; inset: 0; z-index: 100; display: none; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(16, 16, 15, 0.97); color: var(--claro); padding: 3.5rem 0 1rem;
  -webkit-user-select: none; user-select: none; touch-action: pan-y;
}
.ampliada.aberta { display: flex; }
.ampliada-figura { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 0; }
/* a foto encolhe para caber junto com a legenda e os botões (sem cortar: object-fit contain) */
.ampliada-figura img { flex: 0 1 auto; min-height: 0; max-width: calc(100vw - 2rem); max-height: 100%; width: auto; height: auto; object-fit: contain; transition: opacity 0.35s ease; }
.ampliada-figura > :not(img) { flex: none; }
.ampliada-figura img.trocando { opacity: 0; }
.ampliada-legenda { margin-top: 0.9rem; min-height: 1.4em; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--claro-3); text-align: center; padding: 0 1rem; }
.ampliada-botao {
  position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  background: rgba(26, 26, 26, 0.5); border: 1px solid rgba(246, 243, 238, 0.25); border-radius: 50%; color: var(--claro); cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.ampliada-botao:hover { background: var(--dourado); border-color: var(--dourado); }
.ampliada-botao svg { width: 22px; height: 22px; }
.ampliada-fechar { top: 0.6rem; right: 0.6rem; }
.ampliada-anterior { left: 0.6rem; top: 50%; transform: translateY(-50%); }
.ampliada-proxima { right: 0.6rem; top: 50%; transform: translateY(-50%); }
.ampliada-contador { position: absolute; top: 1.1rem; left: 1rem; font-size: 0.74rem; letter-spacing: 0.16em; color: var(--claro-3); }
body.travado { overflow: hidden; }

/* Itens com borda (o que define a proposta, como eu trabalho) */
.itens { display: grid; gap: 1.6rem; margin-top: 2.2rem; }
.item { padding-top: 1.4rem; border-top: 1px solid var(--borda); }
.item h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.item p { color: var(--texto-2); margin: 0; }
.secao-escura .item { border-color: var(--borda-clara); }
.secao-escura .item p { color: var(--claro-2); }

/* Perguntas (details) */
.perguntas { margin-top: 2rem; border-top: 1px solid var(--borda); max-width: 820px; }
.perguntas.centro { margin-left: auto; margin-right: auto; text-align: left; }
.pergunta { border-bottom: 1px solid var(--borda); }
.pergunta summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; cursor: pointer; list-style: none;
  font-family: var(--serifa); font-size: 1.15rem; line-height: 1.35;
}
.pergunta summary::-webkit-details-marker { display: none; }
.pergunta summary::after { content: '+'; flex: none; font-family: var(--sans); font-size: 1.4rem; color: var(--dourado); transition: transform 0.3s ease; }
.pergunta[open] summary::after { transform: rotate(45deg); }
.pergunta div { padding: 0 0 1.3rem; color: var(--texto-2); }
.pergunta div p:last-child { margin-bottom: 0; }

/* Nota com borda dourada à esquerda */
.nota { border-left: 2px solid var(--dourado); padding: 0.2rem 0 0.2rem 1.2rem; color: var(--texto-2); margin: 1.6rem 0 0; }
.secao-escura .nota { color: var(--claro-2); border-color: var(--dourado-claro); }

/* Formulários */
.form { display: grid; gap: 1.2rem; }
.campos-2 { display: grid; gap: 1.2rem; }
.campo { display: grid; gap: 0.45rem; }
.campo label, .campo .rotulo { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--texto-2); }
.campo .opcional { font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--texto-3); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 50px; padding: 0.75rem 0.9rem; border: 1px solid rgba(34, 34, 34, 0.22); border-radius: 0;
  background: #FFFDF9; color: var(--texto); font-family: var(--sans); font-size: 1rem; line-height: 1.4;
  transition: border-color 0.3s ease, box-shadow 0.3s ease; -webkit-appearance: none; appearance: none;
}
.campo select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8912F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 16px; padding-right: 2.4rem; }
.campo textarea { min-height: 130px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--dourado); box-shadow: 0 0 0 3px rgba(184, 145, 47, 0.18); }
.campo [aria-invalid="true"] { border-color: #A23B2A; }
.campo-erro { font-size: 0.82rem; color: #A23B2A; min-height: 0; }
.campo-erro:empty { display: none; }
.form-status { font-size: 0.92rem; color: var(--texto-2); }
.form-status:empty { display: none; }
.form-status.erro { color: #A23B2A; }
.form-status.ok { color: #3D6B3A; }
.form-caixa { background: var(--creme); padding: 1.6rem; }
.form .btn { justify-self: start; }

/* Cartões de contato */
.contatos { display: grid; gap: 1rem; }
.contato-cartao { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem; border: 1px solid var(--borda); background: var(--marfim); transition: border-color 0.3s ease; }
a.contato-cartao:hover { border-color: var(--dourado); }
.contato-cartao svg { flex: none; width: 24px; height: 24px; color: var(--dourado); margin-top: 2px; }
.contato-cartao strong { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--texto-3); margin-bottom: 0.2rem; }
.contato-cartao span { font-size: 1rem; color: var(--texto); }

/* Texto longo (privacidade) */
.texto-longo { max-width: 760px; }
.texto-longo h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2.6rem; }
.texto-longo ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1.1em; color: var(--texto-2); }
.texto-longo li { margin-bottom: 0.4rem; }
.texto-longo p { color: var(--texto-2); }

@media (min-width: 640px) {
  .galeria { columns: 3; column-gap: 1rem; }
  .galeria > * { margin-bottom: 1rem; }
  .momentos { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .itens { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
  .campos-2 { grid-template-columns: 1fr 1fr; }
  .contatos { grid-template-columns: 1fr 1fr; }
  .form-caixa { padding: 2.2rem; }
  .ampliada-anterior { left: 1rem; }
  .ampliada-proxima { right: 1rem; }
  .ampliada-figura img { max-width: calc(100vw - 9rem); }
}
@media (min-width: 1000px) {
  .cabecalho { padding: calc(var(--topo-altura) + 5rem) 0 4rem; }
  .hero.hero-menor { min-height: 78svh; }
  .itens.tres { grid-template-columns: repeat(3, 1fr); }
  .contato-grade { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 3rem; align-items: start; }
  .contato-grade .contatos { grid-template-columns: 1fr; }
}
@media (min-width: 1200px) {
  .galeria.quatro { columns: 4; }
}

/* =====================================================================
   Área do cliente e painel (noindex). Mesmo visual; o topo é "solido".
   ===================================================================== */
.area { min-height: 70vh; }
.area-caixa { max-width: 440px; margin: 0 auto; background: var(--creme); padding: 2rem 1.5rem; }
.area-caixa h1, .area-caixa h2 { font-size: clamp(1.7rem, 5vw, 2.3rem); }
.area-caixa .form .btn { width: 100%; justify-self: stretch; }
.area-estado { max-width: 560px; margin: 0 auto; text-align: center; }
.area-estado .acoes { justify-content: center; }
.carregando { display: inline-block; width: 22px; height: 22px; border: 2px solid var(--areia); border-top-color: var(--dourado); border-radius: 50%; animation: girar 0.9s linear infinite; vertical-align: middle; }
@keyframes girar { to { transform: rotate(360deg); } }

.galeria-topo { display: grid; gap: 1.2rem; margin-bottom: 2rem; }
.galeria-topo h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: 0.3rem; }
.galeria-info { color: var(--texto-2); font-size: 0.95rem; margin: 0; }
.galeria-acoes { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.btn-pequeno { min-height: 42px; padding: 0.5rem 1rem; font-size: 0.68rem; }

/* Colunas montadas pelo area-cliente.js: cada foto vai, na ordem, para a coluna mais curta (a leitura fica da
   esquerda para a direita, e cada foto aparece inteira, na proporção dela) */
.galeria-cliente { display: flex; align-items: flex-start; gap: 0.5rem; }
.galeria-coluna { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.foto-cliente { position: relative; margin: 0; background: var(--areia); }
.foto-cliente button.abrir { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.foto-cliente img { width: 100%; height: auto; }
.foto-cliente .marcar {
  position: absolute; right: 0.4rem; bottom: 0.4rem; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.7); background: rgba(26, 26, 26, 0.35); color: #fff; cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s var(--suave);
}
.foto-cliente .marcar svg { width: 20px; height: 20px; }
.foto-cliente .marcar[aria-pressed="true"] { background: var(--dourado); border-color: var(--dourado); }
.foto-cliente .marcar:active { transform: scale(0.92); }
.foto-cliente .tem-comentario { position: absolute; left: 0.4rem; bottom: 0.4rem; padding: 0.15rem 0.5rem; background: rgba(26, 26, 26, 0.55); color: #fff; font-size: 0.68rem; letter-spacing: 0.06em; }
.foto-cliente.escondida { display: none; }

.barra-selecao {
  position: sticky; bottom: 0; z-index: 30; margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; justify-content: space-between;
  padding: 0.8rem var(--gutter); background: rgba(250, 248, 245, 0.97); border-top: 1px solid var(--borda); box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
}
.barra-selecao strong { font-family: var(--serifa); font-size: 1.2rem; font-weight: 400; }
.barra-selecao .limite-passou { color: #A23B2A; }
.aviso { padding: 1rem 1.2rem; border-left: 2px solid var(--dourado); background: var(--creme); color: var(--texto-2); margin-bottom: 1.5rem; }
.aviso strong { color: var(--texto); }

.ampliada-ferramentas { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; align-items: center; margin-top: 0.6rem; padding: 0 1rem; }
.ampliada-ferramentas .btn { min-height: 42px; padding: 0.45rem 1rem; font-size: 0.66rem; }
.ampliada-ferramentas .btn[aria-pressed="true"] { background: var(--dourado); border-color: var(--dourado); color: #FFFDF8; }
.ampliada-comentario { width: min(560px, calc(100vw - 2rem)); margin-top: 0.6rem; }
.ampliada-comentario textarea {
  width: 100%; min-height: 64px; padding: 0.6rem 0.8rem; border: 1px solid rgba(246, 243, 238, 0.3); background: rgba(246, 243, 238, 0.06);
  color: var(--claro); font-family: var(--sans); font-size: 0.95rem; resize: vertical;
}
.ampliada-comentario textarea::placeholder { color: var(--claro-3); }
.ampliada-comentario[hidden] { display: none; }

.modal-fundo { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(16, 16, 15, 0.6); }
.modal-fundo.aberto { display: flex; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 2rem); overflow: auto; background: var(--marfim); padding: 1.8rem 1.5rem; }
.modal h2 { font-size: 1.6rem; }
.modal .acoes { justify-content: flex-end; }

/* Painel */
.painel-topo { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.painel-topo h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.clientes-lista { display: grid; gap: 0.8rem; }
.cliente-linha { display: grid; gap: 0.6rem; padding: 1.1rem 1.2rem; background: var(--marfim); border: 1px solid var(--borda); }
.cliente-linha h3 { font-size: 1.2rem; margin: 0; }
.cliente-linha p { margin: 0; font-size: 0.88rem; color: var(--texto-2); }
.cliente-linha .acoes { margin-top: 0.3rem; }
.selo { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.55rem; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--borda); color: var(--texto-2); }
.selo::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.selo-ok { color: #3D6B3A; border-color: rgba(61, 107, 58, 0.4); }
.selo-alerta { color: #8A5A00; border-color: rgba(138, 90, 0, 0.4); }
.selo-parado { color: var(--texto-3); }
.selos { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.senha-gerada { padding: 1rem 1.2rem; background: #FFF7DD; border: 1px solid rgba(184, 145, 47, 0.5); }
.senha-gerada code, .codigo { font-family: Consolas, 'Courier New', monospace; font-size: 1rem; word-break: break-all; }
.lista-nomes { width: 100%; min-height: 140px; font-family: Consolas, 'Courier New', monospace; font-size: 0.9rem; padding: 0.7rem; border: 1px solid var(--borda); background: #FFFDF9; }
.tabela-selecao { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tabela-selecao th, .tabela-selecao td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--borda); vertical-align: top; }
.tabela-selecao th { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texto-3); font-weight: 600; }
.marcador { display: flex; gap: 0.6rem; align-items: center; font-size: 0.95rem; color: var(--texto-2); }
.marcador input { width: 20px; height: 20px; accent-color: var(--dourado); }

@media (min-width: 640px) {
  .galeria-cliente, .galeria-coluna { gap: 0.7rem; }
  .area-caixa { padding: 2.5rem 2.2rem; }
  .galeria-topo { grid-template-columns: 1fr auto; align-items: end; }
  .cliente-linha { grid-template-columns: 1fr auto; align-items: center; }
  .cliente-linha .acoes { margin-top: 0; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .ampliada-figura img, .filtro, .foto-cliente .marcar { transition: none; }
  .carregando { animation-duration: 3s; }
}
@media print {
  .ampliada, .barra-selecao, .modal-fundo { display: none !important; }
}
