:root {
  --verde-900: #173826;
  --verde-800: #1f4d33;
  --verde-700: #2f6b47;
  --verde-500: #4f9a63;
  --verde-100: #e4f0e2;
  --creme: #fbf6ec;
  --creme-2: #f3eadb;
  --areia: #e8dcc4;
  --terracota: #d9693a;
  --terracota-2: #ef8a52;
  --ouro: #f2b84b;
  --texto: #233128;
  --texto-suave: #5d6b61;
  --branco: #fff;
  --erro: #c2412d;
  --raio: 20px;
  --sombra: 0 10px 30px -12px rgba(23, 56, 38, .25), 0 2px 6px rgba(23, 56, 38, .06);
  --sombra-forte: 0 30px 60px -20px rgba(23, 56, 38, .35);
  --fonte-titulo: "Fraunces", Georgia, "Times New Roman", serif;
  --fonte: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 17px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--creme);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--verde-700); }
h1, h2, h3 { font-family: var(--fonte-titulo); line-height: 1.12; margin: 0; color: var(--verde-900); letter-spacing: -.01em; }
[hidden] { display: none !important; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.container.estreito { width: min(720px, 100% - 32px); }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--verde-700); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.4em; border-radius: 999px; border: 0;
  font: 700 1rem/1.2 var(--fonte); text-decoration: none; cursor: pointer;
  background: var(--bg); color: var(--fg);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 3px solid var(--ouro); outline-offset: 3px; }
.btn-primario { background: linear-gradient(135deg, var(--terracota), var(--terracota-2)); box-shadow: 0 12px 24px -10px rgba(217, 105, 58, .7); }
.btn-primario:hover { box-shadow: 0 18px 30px -12px rgba(217, 105, 58, .8); }
.btn-vidro { --bg: rgba(255, 255, 255, .55); --fg: var(--verde-900); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .8); }
.btn-claro { --bg: #fff; --fg: var(--verde-800); box-shadow: inset 0 0 0 2px var(--areia); }
.btn-claro:hover { box-shadow: inset 0 0 0 2px var(--verde-500); }
.btn-fantasma { --bg: transparent; --fg: var(--verde-800); }
.btn-grande { padding: 1em 1.8em; font-size: 1.05rem; }
.btn-bloco { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: start center;
  padding: clamp(90px, 14vh, 140px) 16px 0;
  background: linear-gradient(180deg, #7cc6dc 0%, #b6e0e6 38%, #fbe7c3 72%, #f8d9a8 100%);
  overflow: hidden;
  isolation: isolate;
}
.paisagem { position: absolute; inset: auto 0 0 0; width: 100%; height: 58%; z-index: -1; }
.bandeirinhas { position: absolute; top: 0; left: 0; width: 100%; height: 90px; z-index: 1; }
.bandeirinhas .flags path { transform-box: fill-box; transform-origin: top center; animation: balanca 3s ease-in-out infinite alternate; }
@keyframes balanca { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }

.nuvem { animation: deriva 40s linear infinite alternate; }
.nuvem.n2 { animation-duration: 55s; animation-direction: alternate-reverse; }
.nuvem.n3 { animation-duration: 48s; }
@keyframes deriva { from { transform: translateX(-40px); } to { transform: translateX(60px); } }
.sol-brilho { transform-box: fill-box; transform-origin: center; animation: pulsa 5s ease-in-out infinite; }
@keyframes pulsa { 50% { transform: scale(1.12); opacity: .8; } }
.copa { animation: sacode 4.5s ease-in-out infinite alternate; }
@keyframes sacode { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
.ondas { animation: ondula 3.5s ease-in-out infinite alternate; }
.ondas path { animation: cintila 3s ease-in-out infinite; }
.ondas path:nth-child(2) { animation-delay: .8s; }
.ondas path:nth-child(3) { animation-delay: 1.6s; }
@keyframes ondula { to { transform: translateX(14px); } }
@keyframes cintila { 50% { opacity: .25; } }
.boia { animation: boia 3s ease-in-out infinite; }
@keyframes boia { 50% { transform: translate(6px, -3px) rotate(8deg); } }
.passaros { animation: voa 26s linear infinite; }
@keyframes voa { from { transform: translate(-220px, 20px); } to { transform: translate(260px, -30px); } }
.luzes circle { animation: pisca 2.4s ease-in-out infinite; }
@keyframes pisca { 50% { opacity: .45; } }

.hero-conteudo { position: relative; text-align: center; max-width: 820px; z-index: 2; }
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: .35em 1em;
  font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--verde-800); background: rgba(255, 255, 255, .6); border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero h1 { font-size: clamp(2.6rem, 8.5vw, 5.6rem); font-weight: 700; color: var(--verde-900); text-shadow: 0 2px 0 rgba(255, 255, 255, .4); }
.hero h1 span { color: var(--verde-700); }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--terracota); }
.hero-info {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .3em .7em;
  margin: 18px 0 0; font-weight: 700; font-size: clamp(1rem, 2.6vw, 1.2rem); color: var(--verde-900);
}
.hero-info i { color: var(--terracota); font-style: normal; }

.contagem { display: flex; justify-content: center; gap: 10px; margin: 26px 0 0; }
.contagem div {
  min-width: 74px; padding: 10px 8px 8px; border-radius: 16px;
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px -12px rgba(23, 56, 38, .4);
}
.contagem b { display: block; font: 700 clamp(1.5rem, 5vw, 2rem)/1 var(--fonte-titulo); color: var(--verde-900); font-variant-numeric: tabular-nums; }
.contagem small { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-suave); }
.contagem.hoje div { display: none; }
.contagem .msg-hoje { display: block !important; padding: 12px 20px; font-weight: 800; color: var(--verde-800); }

.hero-acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.rolar { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; width: 30px; height: 48px; border: 2px solid rgba(255, 255, 255, .9); border-radius: 20px; z-index: 2; }
.rolar span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; background: #fff; border-radius: 4px; animation: rola 1.8s ease-in-out infinite; }
@keyframes rola { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Seções ---------- */
.secao { padding: clamp(64px, 10vw, 112px) 0; position: relative; }
.titulo-secao { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 6vw, 56px); }
.titulo-secao h2 { font-size: clamp(1.9rem, 5vw, 2.9rem); margin-top: 12px; }
.titulo-secao p { color: var(--texto-suave); margin: 14px 0 0; }
.tag {
  display: inline-block; padding: .35em .95em; border-radius: 999px;
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--verde-700); background: var(--verde-100);
}
.tag-clara { color: var(--ouro); background: rgba(255, 255, 255, .1); }

.cards-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-info {
  background: #fff; border-radius: var(--raio); padding: 30px 24px; text-align: center;
  box-shadow: var(--sombra); transition: transform .3s ease, box-shadow .3s ease;
}
.card-info:hover { transform: translateY(-6px); box-shadow: var(--sombra-forte); }
.card-info h3 { font-size: 1.3rem; margin-top: 16px; }
.card-info p { margin: 6px 0 0; color: var(--texto-suave); font-weight: 600; }
.card-info small { font-weight: 400; }
.icone-info { width: 72px; height: 72px; margin: 0 auto; display: grid; place-items: center; border-radius: 22px; background: var(--verde-100); color: var(--verde-700); }
.icone-info svg { width: 36px; height: 36px; }
.calendario { width: 72px; margin: 0 auto; text-align: center; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 2px var(--areia); }
.calendario span { display: block; padding: 3px 0; background: var(--terracota); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .14em; }
.calendario b { display: block; padding: 4px 0 6px; font: 700 2rem/1.1 var(--fonte-titulo); color: var(--verde-900); }

.acoes-centro { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* Local */
.secao-local { background: var(--verde-800); color: #e7efe6; overflow: hidden; }
.secao-local::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(242, 184, 75, .16), transparent 70%),
    radial-gradient(500px 400px at 100% 100%, rgba(79, 154, 99, .4), transparent 70%);
}
.local-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.local-texto h2 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin: 14px 0 16px; }
.local-texto p { color: #c9d9cb; margin: 0 0 18px; }
.lista-check { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.lista-check li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.lista-check li::before { content: "✓"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(242, 184, 75, .18); color: var(--ouro); font-weight: 800; flex: none; }
.local-video { display: flex; justify-content: center; }
.moldura-celular {
  width: min(340px, 100%); padding: 10px; border-radius: 36px;
  background: #0f2418; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 0 0 2px rgba(255, 255, 255, .08);
  transform: rotate(2deg);
}
.insta-placeholder { border-radius: 28px; overflow: hidden; background: #fff; min-height: 480px; display: grid; }
.insta-placeholder .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.insta-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px;
  text-align: center; font-weight: 800; color: #fff; text-decoration: none;
  background: linear-gradient(160deg, #f9ce34, #ee2a7b 55%, #6228d7);
}
.insta-play { width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, .25); position: relative; }
.insta-play::after { content: ""; position: absolute; left: 29px; top: 22px; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }

/* ---------- Formulário ---------- */
.secao-rsvp { background: linear-gradient(180deg, var(--creme) 0%, var(--creme-2) 100%); }
.cartao-form { background: #fff; border-radius: 28px; padding: clamp(22px, 5vw, 44px); box-shadow: var(--sombra-forte); position: relative; }
.cartao-form::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; border-radius: 28px 28px 0 0;
  background: repeating-linear-gradient(90deg, var(--terracota) 0 24px, var(--ouro) 24px 48px, var(--verde-500) 48px 72px);
}
.armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.passo { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px dashed var(--areia); }
.passo:first-of-type { padding-top: 6px; }
.passo-num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--verde-700); color: #fff; font-weight: 800; }
.passo-corpo { display: grid; gap: 16px; min-width: 0; }
.rotulo { margin: 4px 0 0; font-weight: 800; font-size: 1.08rem; color: var(--verde-900); }
.ajuda { margin: -10px 0 0; color: var(--texto-suave); font-size: .92rem; }

.campo { display: grid; gap: 6px; }
.campo > span { font-weight: 800; font-size: .95rem; color: var(--verde-900); }
.campo em { font-weight: 600; color: var(--texto-suave); font-style: normal; }
.campo input {
  width: 100%; padding: .85em 1em; border-radius: 14px;
  border: 2px solid var(--areia); background: #fffdf8;
  font: 600 1rem var(--fonte); color: var(--texto);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.campo input::placeholder { color: #a3a99f; font-weight: 400; }
.campo input:focus { outline: none; border-color: var(--verde-500); background: #fff; box-shadow: 0 0 0 4px rgba(79, 154, 99, .18); }
.campo.invalido input { border-color: var(--erro); box-shadow: 0 0 0 4px rgba(194, 65, 45, .12); }
.erro { color: var(--erro); font-size: .88rem; font-weight: 700; min-height: 0; margin: 0; }
.erro:empty { display: none; }

.opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opcao input { position: absolute; opacity: 0; pointer-events: none; }
.opcao-card {
  display: grid; justify-items: center; gap: 2px; padding: 18px 12px; text-align: center; cursor: pointer;
  border-radius: 18px; border: 2px solid var(--areia); background: #fffdf8;
  transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}
.opcao-card:hover { transform: translateY(-2px); }
.opcao-emoji { font-size: 2rem; line-height: 1.2; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.opcao-card b { color: var(--verde-900); }
.opcao-card small { color: var(--texto-suave); font-size: .82rem; }
.opcao input:focus-visible + .opcao-card { outline: 3px solid var(--ouro); outline-offset: 2px; }
.opcao-sim input:checked + .opcao-card { border-color: var(--verde-500); background: var(--verde-100); box-shadow: 0 10px 22px -14px rgba(47, 107, 71, .8); }
.opcao-nao input:checked + .opcao-card { border-color: var(--terracota); background: #fdeee6; }
.opcao input:checked + .opcao-card .opcao-emoji { transform: scale(1.25) rotate(-8deg); }

.passo-dep { animation: entra .4s ease both; }
.contador { display: inline-flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: var(--creme-2); justify-self: start; }
.contador-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--verde-800); font: 700 1.5rem/1 var(--fonte); box-shadow: var(--sombra);
  transition: transform .15s, background .2s;
}
.contador-btn:hover { background: var(--verde-100); }
.contador-btn:active { transform: scale(.92); }
.contador-btn:disabled { opacity: .4; cursor: not-allowed; }
.contador output { min-width: 52px; text-align: center; font: 700 1.6rem/1 var(--fonte-titulo); color: var(--verde-900); }
.contador output.pulo { animation: pulo .3s ease; }
@keyframes pulo { 50% { transform: scale(1.3); color: var(--terracota); } }

.lista-dep { display: grid; gap: 12px; }
.dep-item { display: grid; grid-template-columns: 34px 1fr; align-items: start; gap: 10px; animation: entra .35s ease both; }
.dep-item .dep-num { margin-top: 32px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #fdeee6; color: var(--terracota); font-weight: 800; font-size: .9rem; }
.dep-item.saindo { animation: sai .25s ease forwards; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } }
@keyframes sai { to { opacity: 0; transform: translateX(20px); } }

.form-rodape { padding-top: 24px; display: grid; gap: 12px; }
.erro-geral { text-align: center; }
#btn-enviar { position: relative; }
.spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: gira .7s linear infinite; }
#btn-enviar.carregando .spinner { display: inline-block; }
#btn-enviar.carregando { pointer-events: none; opacity: .85; }
@keyframes gira { to { transform: rotate(360deg); } }

/* Sucesso */
.sucesso { text-align: center; animation: entra .5s ease both; padding: 8px 0; }
.sucesso-icone { width: 92px; height: 92px; margin: 0 auto 18px; }
.sucesso-icone circle { stroke: var(--verde-500); stroke-width: 3; stroke-dasharray: 152; stroke-dashoffset: 152; animation: traco .7s ease forwards; }
.sucesso-icone path { stroke: var(--verde-700); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: traco .4s .6s ease forwards; }
.sucesso.nao-vai .sucesso-icone circle { stroke: var(--terracota); }
.sucesso.nao-vai .sucesso-icone path { stroke: var(--terracota); }
@keyframes traco { to { stroke-dashoffset: 0; } }
.sucesso h3 { font-size: clamp(1.7rem, 5vw, 2.2rem); }
.sucesso p { color: var(--texto-suave); margin: 10px auto 0; max-width: 460px; }
.resumo { list-style: none; padding: 16px 20px; margin: 22px auto 0; max-width: 420px; text-align: left; background: var(--creme); border-radius: 16px; display: grid; gap: 6px; }
.resumo li { display: flex; gap: 10px; }
.resumo li span:first-child { flex: none; }
.resumo:empty { display: none; }
.sucesso-acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

/* Rodapé */
.rodape { background: var(--verde-900); color: #a9bfae; text-align: center; padding: 44px 0 calc(44px + env(safe-area-inset-bottom)); font-size: .95rem; }
.rodape p { margin: 4px 0; }
.rodape-titulo { font: 600 1.3rem var(--fonte-titulo); color: #fff; }
.rodape-org { margin-top: 14px !important; font-size: .85rem; }
.rodape a { color: var(--ouro); }

#confete { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease var(--d, 0s), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.reveal.visivel { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .cards-info { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .card-info { display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto; column-gap: 18px; text-align: left; align-items: center; padding: 20px; }
  .card-info > :first-child { grid-row: span 2; margin: 0; }
  .card-info h3 { margin: 0; align-self: end; }
  .card-info p { margin: 0; align-self: start; }
  .local-grid { grid-template-columns: 1fr; text-align: center; }
  .lista-check { justify-items: center; }
  .moldura-celular { transform: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 84px; }
  .paisagem { height: 46%; }
  .contagem { gap: 6px; }
  .contagem div { min-width: 0; flex: 1; max-width: 76px; }
  .hero-acoes .btn { width: 100%; }
  .passo { grid-template-columns: 1fr; gap: 12px; }
  .passo-num { width: 30px; height: 30px; font-size: .9rem; }
  .opcao-card { padding: 14px 8px; }
  .opcao-emoji { font-size: 1.7rem; }
  .acoes-centro .btn, .sucesso-acoes .btn { width: 100%; }
  .insta-placeholder { min-height: 420px; }
}
@media (max-height: 640px) and (min-width: 561px) {
  .paisagem { height: 48%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Galeria de fotos reais (public/assets/fotos/) */
.galeria { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: clamp(40px, 6vw, 64px); }
.foto { padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: rgba(255, 255, 255, .08); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .7); }
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.foto:hover img { transform: scale(1.06); }
.foto:focus-visible { outline: 3px solid var(--ouro); outline-offset: 3px; }
@media (min-width: 720px) { .galeria:has(> .foto:nth-child(5)) .foto:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 90vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 25, 16, .85); backdrop-filter: blur(4px); }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 14px; display: block; }
.lightbox-fechar { position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--verde-900); font-size: 1.6rem; cursor: pointer; box-shadow: var(--sombra); }
