/* Débora & Leonardo · 29.11.2026 — branco e dourado */
:root {
  --marfim: #fffdf8;
  --areia: #f6efdc;
  --tinta: #2f2b26;
  --tinta-suave: #6b635a;
  --dourado-claro: #ecdba9;
  --dourado: #b8935a;
  --dourado-escuro: #8a6a2f;
  --vermelho-selo: #7a1616;
  --vermelho-selo-claro: #a83a2c;
  --branco: #ffffff;
  --sombra: 0 10px 30px rgba(60, 48, 20, .08);
  --sombra-alta: 0 18px 44px rgba(60, 48, 20, .16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Segoe UI", sans-serif;
  --script: "Great Vibes", "Cormorant Garamond", cursive;
  --manuscrita: var(--script);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--marfim);
  color: var(--tinta);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* textura de papel sutil sobre tudo */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--areia); }
::-webkit-scrollbar-thumb { background: var(--dourado-claro); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--dourado); }
::selection { background: var(--dourado); color: #fff; }
:focus-visible { outline: 2px solid var(--dourado-escuro); outline-offset: 2px; }

/* ---------- ornamento ---------- */
.ornamento {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin: 18px auto;
}
.ornamento span {
  display: block; width: clamp(46px, 8vw, 84px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--dourado));
}
.ornamento span:last-child { transform: scaleX(-1); }
.ornamento i {
  font-style: normal; line-height: 0; display: block; width: 44px; height: 18px;
  background: linear-gradient(105deg, var(--dourado-escuro), var(--dourado-claro) 45%, var(--dourado-escuro));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 18'%3E%3Cpath d='M2 10 C 8 3, 14 3, 18 8 C 20 10.5, 24 10.5, 26 8 C 30 3, 36 3, 42 10' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='22' cy='12.5' r='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 18'%3E%3Cpath d='M2 10 C 8 3, 14 3, 18 8 C 20 10.5, 24 10.5, 26 8 C 30 3, 36 3, 42 10' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='22' cy='12.5' r='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- abertura do convite ---------- */
.envelope {
  position: fixed; inset: 0; z-index: 100; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(184, 147, 90, .14), transparent),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(184, 147, 90, .10), transparent),
    var(--marfim);
  transition: transform .9s cubic-bezier(.6, 0, .3, 1), opacity .9s ease;
}
.envelope::before, .envelope::after {
  content: ""; position: absolute; pointer-events: none; border-radius: 2px;
}
.envelope::before { inset: 18px; border: 1px solid rgba(184, 147, 90, .4); }
.envelope::after { inset: 26px; border: 1px solid rgba(184, 147, 90, .18); }
.envelope.aberto { transform: translateY(-100%); opacity: .4; }
.envelope-conteudo { text-align: center; padding: 24px; }
.envelope-nomes {
  font-family: var(--script); font-size: clamp(2.2rem, 7vw, 3.4rem);
  color: var(--dourado-escuro); margin: 0 0 26px;
}
.envelope-nomes .e { color: var(--dourado); }

/* selo de cera derretida vermelho, com o monograma L&D embossado */
.selo {
  width: 122px; height: 118px; margin: 0 auto 34px;
  /* contorno irregular de "cera derretida" em vez de círculo perfeito */
  border-radius: 42% 58% 61% 39% / 45% 41% 59% 55%;
  background: radial-gradient(circle at 33% 26%, var(--vermelho-selo-claro), var(--vermelho-selo) 74%);
  box-shadow:
    0 8px 20px rgba(122, 22, 22, .45),
    inset 0 0 0 2px rgba(0, 0, 0, .12),
    inset 2px 3px 6px rgba(255, 255, 255, .25),
    inset -3px -4px 8px rgba(0, 0, 0, .3);
  display: flex; align-items: center; justify-content: center;
  animation: pulsar 2.6s ease-in-out infinite;
  position: relative;
}
.selo::after {
  content: ""; position: absolute; inset: 9px;
  border-radius: 40% 60% 58% 42% / 48% 44% 56% 52%;
  border: 1px solid rgba(255, 255, 255, .22); pointer-events: none;
}
/* pingos de cera escorrendo */
.selo-gota {
  position: absolute; background: var(--vermelho-selo); pointer-events: none; z-index: -1;
}
.selo-gota-1 {
  width: 16px; height: 24px; left: 14%; bottom: -13px;
  border-radius: 50% 50% 55% 45% / 60% 60% 40% 40%;
}
.selo-gota-2 {
  width: 11px; height: 16px; right: 20%; bottom: -9px;
  border-radius: 50% 50% 55% 45% / 60% 60% 40% 40%;
}
.selo-logo {
  width: 68%; height: auto; position: relative; z-index: 1;
  /* transforma o dourado em um relevo claro impresso na cera (efeito "carimbado") */
  filter: brightness(0) invert(1) drop-shadow(0 1px 1px rgba(0, 0, 0, .35));
  opacity: .88; mix-blend-mode: overlay;
}
@keyframes pulsar {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
.envelope-toque {
  font-family: var(--sans); font-size: .82rem; letter-spacing: .3em; padding-left: .3em;
  text-transform: uppercase; color: var(--tinta-suave); margin: 0;
  animation: respirar 2.6s ease-in-out infinite;
}
@keyframes respirar { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- convite ---------- */
.convite { padding: 26px 20px 10px; }
.convite .secao-ante, .convite h2 { text-align: center; }
.convite h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin: 0; text-align: center;
}
.convite .ornamento { margin: 18px auto 40px; }

.convite-cartao {
  max-width: 1080px; margin: 0 auto; position: relative;
  background: var(--branco); border: 1px solid rgba(184, 147, 90, .35);
  border-radius: 6px; box-shadow: var(--sombra);
  padding: clamp(28px, 4.5vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 52px); align-items: start;
}
.convite-cartao::after {
  content: ""; position: absolute; inset: 9px; pointer-events: none;
  border: 1px solid rgba(184, 147, 90, .2); border-radius: 3px;
}
.convite-imagem-col { text-align: center; }
.convite-texto-col { text-align: left; }
.convite-texto {
  margin: 0 0 22px; color: var(--tinta-suave); font-size: 1.05rem;
}
.versiculo { margin: 0 0 30px; max-width: 480px; }
.versiculo p {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
  color: var(--dourado-escuro); margin: 0 0 6px; line-height: 1.5;
}
.versiculo cite {
  font-family: var(--sans); font-style: normal; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--tinta-suave);
}
.convite-imagem-btn {
  display: block; width: 100%; margin: 0 auto 14px; padding: 0; border: 0;
  background: none; cursor: zoom-in; position: relative;
}
.convite-imagem {
  width: 100%; display: block;
  border-radius: 4px; box-shadow: var(--sombra);
}
.convite-imagem-dica {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  background: rgba(47, 43, 38, .72); color: #fff; backdrop-filter: blur(2px);
  font-family: var(--sans); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; opacity: 0; transition: opacity .2s ease;
  pointer-events: none;
}
.convite-imagem-btn:hover .convite-imagem-dica,
.convite-imagem-btn:focus-visible .convite-imagem-dica { opacity: 1; }
@media (hover: none) {
  .convite-imagem-dica { opacity: 1; bottom: 10px; }
}

/* ---------- lightbox do convite ---------- */
.lightbox-fundo {
  position: fixed; inset: 0; z-index: 60; cursor: zoom-out;
  background: rgba(30, 26, 20, .88); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fundo-surge .2s ease;
}
.lightbox-img {
  max-width: 100%; max-height: 100%; border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox-fechar {
  position: absolute; top: 18px; right: 22px; border: 0; background: none;
  color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; opacity: .85;
  transition: opacity .15s ease, transform .15s ease;
}
.lightbox-fechar:hover { opacity: 1; transform: rotate(90deg); }
@media (max-width: 480px) {
  .lightbox-fundo { padding: 10px; }
  .lightbox-fechar { top: 10px; right: 12px; font-size: 1.9rem; }
}
.convite-endereco { margin: 0 0 30px; font-size: .92rem; }
.convite-endereco a {
  color: var(--dourado-escuro); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid rgba(184, 147, 90, .5);
}
.convite-endereco a:hover { border-color: var(--dourado-escuro); }
.convite-cartao .btn { position: relative; z-index: 1; }

/* ---------- RSVP ---------- */
.rsvp { position: relative; z-index: 1; text-align: left; }
.rsvp label {
  display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  margin: 16px 0 6px; color: var(--tinta-suave);
}
.rsvp label:first-of-type { margin-top: 0; }
.rsvp input, .rsvp textarea {
  width: 100%; padding: 12px 15px; border-radius: 4px;
  border: 1px solid rgba(184, 147, 90, .4); background: var(--marfim);
  font-family: var(--sans); font-size: .98rem; color: var(--tinta); resize: vertical;
}
.rsvp input:focus, .rsvp textarea:focus { outline: 2px solid rgba(184, 147, 90, .35); border-color: var(--dourado); }
.rsvp-opcoes { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.rsvp-opcao {
  flex: 1; min-width: 150px; padding: 13px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(184, 147, 90, .4); background: var(--branco); color: var(--tinta);
  font-family: var(--sans); font-size: .9rem; font-weight: 500;
  transition: all .18s ease;
}
.rsvp-opcao:hover { border-color: var(--dourado-escuro); }
.rsvp-opcao.selecionada {
  background: linear-gradient(160deg, var(--dourado), var(--dourado-escuro));
  border-color: var(--dourado-escuro); color: #fff;
}
.rsvp-detalhes { animation: surgir .35s ease both; }
.rsvp-obrigado {
  font-family: var(--serif); font-style: italic; font-size: 1.2rem;
  color: var(--dourado-escuro); text-align: center; margin: 0;
}

/* ---------- topo ---------- */
.topo {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(20px, 5vw, 60px);
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--marfim) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184, 147, 90, .2);
}
.monograma { display: block; height: 58px; width: auto; }
.topo nav a {
  color: var(--tinta-suave); text-decoration: none; margin-left: 26px;
  font-size: .92rem; letter-spacing: .12em; text-transform: uppercase;
  position: relative; padding-bottom: 3px;
}
.topo nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--dourado);
  transform: scaleX(0); transform-origin: right; transition: transform .3s ease;
}
.topo nav a:hover { color: var(--dourado-escuro); }
.topo nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- hero ---------- */
.hero {
  min-height: 88vh; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 80px 24px 100px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(184, 147, 90, .14), transparent),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(184, 147, 90, .10), transparent);
}
/* moldura dupla de convite */
.hero::before, .hero::after {
  content: ""; position: absolute; pointer-events: none; border-radius: 2px;
}
.hero::before { inset: 18px; border: 1px solid rgba(184, 147, 90, .4); }
.hero::after { inset: 26px; border: 1px solid rgba(184, 147, 90, .18); }

.ramo {
  position: absolute; bottom: 8px; width: clamp(92px, 13vw, 165px); opacity: .8;
  pointer-events: none; z-index: -1; transition: transform .4s ease-out;
}
.ramo-esq { left: clamp(26px, 4vw, 70px); }
.ramo-dir { right: clamp(26px, 4vw, 70px); }
.ramo-caule { fill: none; stroke: var(--dourado); stroke-width: 2; opacity: .8; }
.ramo-folha { fill: var(--branco); stroke: var(--dourado-claro); stroke-width: 1; opacity: .95; }
.ramo-fruto { fill: var(--dourado); opacity: .8; }

.hero-ante {
  font-family: var(--script);
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  color: var(--dourado-escuro); margin: 0 0 6px; font-weight: 400;
  animation: surgir .9s ease both;
}
.hero h1 {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 7.2rem);
  margin: 0; padding-top: .18em; line-height: 1.3; letter-spacing: .01em;
  background: linear-gradient(160deg, #c9a45c, var(--dourado-escuro) 60%, #c9a45c);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: surgir .9s .12s ease both;
}
.hero .amp { font-style: italic; }
.hero .ornamento { animation: surgir .9s .24s ease both; }
.hero-data {
  font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-style: italic; color: var(--tinta-suave); margin: 0 0 38px;
  animation: surgir .9s .3s ease both;
}
.contagem {
  display: flex; align-items: center; gap: clamp(10px, 3vw, 26px);
  margin-bottom: 44px; animation: surgir .9s .42s ease both;
}
.contagem em { color: var(--dourado); font-style: normal; opacity: .6; }
.contagem div { text-align: center; min-width: 58px; }
.contagem strong {
  display: block; font-family: var(--manuscrita); font-weight: 600;
  font-size: clamp(2.4rem, 6.4vw, 3.6rem); color: var(--dourado-escuro);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.contagem span {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--tinta-suave);
}
.hero .btn { animation: surgir .9s .54s ease both; }

@keyframes surgir {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- botões ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; position: relative;
  font-family: var(--sans); font-weight: 500; font-size: .9rem;
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  padding: 14px 34px; border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primario {
  background: linear-gradient(160deg, var(--dourado), var(--dourado-escuro));
  color: #fff; box-shadow: 0 4px 14px rgba(138, 106, 47, .3);
}
.btn-primario:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(138, 106, 47, .35), 0 0 0 1px rgba(184, 147, 90, .5);
}
.btn-fantasma { background: transparent; color: var(--dourado-escuro); border: 1px solid rgba(184, 147, 90, .6); }
.btn-fantasma:hover { background: var(--dourado-escuro); color: #fff; transform: translateY(-2px); border-color: var(--dourado-escuro); }
.btn-cheio { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; transform: none; }

/* ---------- presentes ---------- */
.presentes { max-width: 1120px; margin: 0 auto; padding: 88px 20px 100px; }
.secao-ante {
  text-align: center; font-family: var(--script);
  font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--dourado-escuro); margin: 0 0 2px;
}
.presentes h2 {
  font-family: var(--serif); font-weight: 500; text-align: center;
  font-size: clamp(2.1rem, 5vw, 3.1rem); margin: 0; letter-spacing: .015em;
}
.explica {
  max-width: 620px; margin: 6px auto 44px; text-align: center;
  color: var(--tinta-suave); font-size: 1.02rem;
}

.busca-wrap { max-width: 680px; margin: 0 auto 16px; }
.busca {
  display: flex; align-items: center; gap: 10px;
  background: var(--branco); border: 1px solid rgba(184, 147, 90, .4);
  border-radius: 999px; padding: 6px 6px 6px 22px;
  box-shadow: var(--sombra); transition: box-shadow .2s ease, border-color .2s ease;
}
.busca:focus-within { border-color: var(--dourado); box-shadow: var(--sombra-alta), 0 0 0 3px rgba(184, 147, 90, .12); }
.busca-icone {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: var(--dourado); stroke-width: 2; stroke-linecap: round;
}
.busca input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0;
  font-family: var(--sans); font-size: 1.02rem; color: var(--tinta);
}
.busca input:focus { outline: none; }
.busca .btn { padding: 12px 26px; }

.estado-busca {
  text-align: center; color: var(--tinta-suave); min-height: 1.6em;
  margin-bottom: 20px; font-family: var(--serif); font-style: italic; font-size: 1.08rem;
}

.grade {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
}

/* cartão de produto */
.card {
  background: var(--branco); border-radius: 4px; overflow: hidden;
  box-shadow: var(--sombra); display: flex; flex-direction: column;
  border: 1px solid rgba(184, 147, 90, .25); position: relative;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card::after {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1px solid rgba(184, 147, 90, 0); border-radius: 2px;
  transition: border-color .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sombra-alta); border-color: rgba(184, 147, 90, .5); }
.card:hover::after { border-color: rgba(184, 147, 90, .3); }
.card-img {
  aspect-ratio: 1; background: var(--areia); position: relative;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply;
  transition: transform .35s ease;
}
.card:hover .card-img img { transform: scale(1.06); }
.card-img .sem-foto { font-size: 2.6rem; opacity: .3; }
.card-corpo { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-nome {
  font-family: var(--serif); font-size: 1.08rem; font-weight: 500;
  line-height: 1.35; margin: 0; flex: 1; color: var(--tinta);
}
.card-preco {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
  color: var(--dourado-escuro); margin: 0;
  padding-top: 10px; border-top: 1px solid rgba(184, 147, 90, .25);
}
.card .btn { padding: 11px 20px; font-size: .8rem; }

/* skeleton de carregamento */
.skel { pointer-events: none; }
.skel .card-img, .skel .s-linha, .skel .s-preco, .skel .s-btn {
  background: linear-gradient(100deg, var(--areia) 40%, #fbf6e9 50%, var(--areia) 60%);
  background-size: 200% 100%;
  animation: brilho 1.3s linear infinite;
}
.skel .s-linha { height: 14px; border-radius: 6px; }
.skel .s-linha.curta { width: 65%; }
.skel .s-preco { height: 24px; width: 45%; border-radius: 6px; }
.skel .s-btn { height: 40px; border-radius: 999px; }
@keyframes brilho { to { background-position: -200% 0; } }

/* reveal ao rolar */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visivel { opacity: 1; transform: none; }

.mais-wrap { text-align: center; margin: 40px 0 0; }

/* ---------- presente livre ---------- */
.livre {
  margin-top: 76px; padding: 44px clamp(24px, 5vw, 52px);
  background: linear-gradient(120deg, rgba(184, 147, 90, .12), rgba(236, 219, 169, .28));
  border: 1px solid rgba(184, 147, 90, .38); border-radius: 6px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; flex-wrap: wrap; position: relative;
}
.livre::after {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 1px solid rgba(184, 147, 90, .22); border-radius: 3px;
}
.livre h3 { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; margin: 0 0 6px; }
.livre p { margin: 0; color: var(--tinta-suave); }
.livre-form { display: flex; gap: 10px; align-items: stretch; position: relative; z-index: 1; }
.prefixo-real {
  display: flex; align-items: center; background: var(--branco);
  border: 1px solid rgba(184, 147, 90, .45); border-radius: 999px; padding: 0 8px 0 18px;
  transition: border-color .2s ease;
}
.prefixo-real span { color: var(--tinta-suave); margin-right: 4px; }
.prefixo-real input {
  border: 0; background: transparent; width: 110px; padding: 12px 8px;
  font-family: var(--sans); font-size: 1rem; color: var(--tinta);
}
.prefixo-real input:focus { outline: none; }
.prefixo-real:focus-within { border-color: var(--dourado); outline: 2px solid rgba(184, 147, 90, .35); }

/* ---------- modal ---------- */
.modal-fundo {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(47, 43, 38, .5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fundo-surge .25s ease;
}
@keyframes fundo-surge { from { opacity: 0; } }
.modal {
  background: var(--branco); border-radius: 6px; box-shadow: var(--sombra-alta);
  width: min(480px, 100%); padding: 34px; position: relative;
  max-height: 90vh; overflow: auto;
  border: 1px solid rgba(184, 147, 90, .3);
  animation: modal-surge .3s ease;
}
@keyframes modal-surge { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal .ornamento { margin: 0 auto 18px; }
.modal-fechar {
  position: absolute; top: 12px; right: 16px; border: 0; background: none;
  font-size: 1.7rem; color: var(--tinta-suave); cursor: pointer;
  transition: color .15s ease, transform .15s ease;
}
.modal-fechar:hover { color: var(--tinta); transform: rotate(90deg); }
.modal-item { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.modal-item img {
  width: 88px; height: 88px; object-fit: contain;
  background: var(--areia); border-radius: 4px; mix-blend-mode: multiply;
}
.modal-item h3 {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500;
  margin: 0 0 4px; line-height: 1.3;
}
.modal-preco { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--dourado-escuro); margin: 0; }
.modal label {
  display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  margin: 16px 0 6px; color: var(--tinta-suave);
}
.modal input, .modal textarea {
  width: 100%; padding: 12px 15px; border-radius: 4px;
  border: 1px solid rgba(184, 147, 90, .4); background: var(--marfim);
  font-family: var(--sans); font-size: .98rem; color: var(--tinta); resize: vertical;
  transition: border-color .15s ease;
}
.modal input:focus, .modal textarea:focus { outline: 2px solid rgba(184, 147, 90, .4); border-color: var(--dourado); }
.modal form .btn { margin-top: 22px; }

/* ---------- rodapé ---------- */
.rodape {
  text-align: center; padding: 58px 20px 46px;
  background: var(--areia); border-top: 1px solid rgba(184, 147, 90, .35);
  position: relative;
}
.rodape .assinatura {
  font-family: var(--script); font-size: clamp(1.9rem, 5vw, 2.6rem);
  color: var(--dourado-escuro); margin: 0;
}
.rodape .assinatura .e { color: var(--dourado); }
.rodape .ornamento { margin: 10px auto 14px; }
.rodape p { margin: 8px auto 0; color: var(--tinta-suave); }
.rodape .mini { font-size: .74rem; max-width: 560px; opacity: .75; margin-top: 18px; }

/* ---------- responsivo / a11y ---------- */
@media (max-width: 860px) {
  .convite-cartao { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero::before { inset: 12px; }
  .hero::after { inset: 18px; }
  .busca { padding: 5px 5px 5px 16px; }
  .busca .btn { padding: 11px 18px; font-size: .78rem; }
  .livre { flex-direction: column; align-items: stretch; text-align: center; }
  .livre-form { justify-content: center; }
  .topo nav a { margin-left: 16px; font-size: .8rem; }
  .grade { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .card-corpo { padding: 14px 14px 16px; }
  .card-nome { font-size: .98rem; }
  .card-preco { font-size: 1.22rem; }
  .ramo { opacity: .5; width: clamp(70px, 11vw, 120px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
