:root {
  --preto: #0b0a08;
  --preto-2: #15130f;
  --preto-3: #1d1a15;
  --ouro: #e3b25f;
  --ouro-claro: #f7dea0;
  --ouro-escuro: #a8702a;
  --gradiente-ouro: linear-gradient(135deg, #f8e0a2 0%, #e2b05a 45%, #b07428 100%);
  --branco: #f6f1e8;
  --cinza: #b8b0a3;
  --linha: rgba(227, 178, 95, .45);

  --script: 'Kaushan Script', 'Brush Script MT', cursive;
  --condensada: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --texto: 'Montserrat', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--branco);
  font-family: var(--texto);
  line-height: 1.5;
  background-color: var(--preto);
  background-image:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(227, 178, 95, .16), transparent 70%),
    radial-gradient(ellipse 55% 35% at 0% 100%, rgba(227, 178, 95, .12), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 40%, #16130e, var(--preto) 75%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Faixas douradas diagonais, como no convite impresso */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 70vmax;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ouro), transparent);
  opacity: .4;
  pointer-events: none;
  z-index: 0;
}
body::before { top: 9vmax; left: -28vmax; transform: rotate(-45deg); }
body::after  { bottom: 9vmax; right: -28vmax; transform: rotate(-45deg); }

p { margin: 0; }

.convite {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  padding: max(40px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
}

.script { font-family: var(--script); color: var(--ouro); }

.ouro {
  background: var(--gradiente-ouro);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.icone {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--ouro);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 12px;
  border: 0;
  font: 700 15px/1.2 var(--texto);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:active { transform: scale(.98); }
.btn .icone { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; }

.btn-ouro {
  color: #1a1206;
  background: var(--gradiente-ouro);
  box-shadow: 0 6px 24px rgba(227, 178, 95, .25), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-ouro:hover { filter: brightness(1.06); box-shadow: 0 8px 30px rgba(227, 178, 95, .38), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-ouro:disabled { filter: saturate(.4) brightness(.8); cursor: wait; }

.btn-linha {
  color: var(--ouro);
  background: transparent;
  border: 1px solid var(--linha);
}
.btn-linha:hover { background: rgba(227, 178, 95, .08); border-color: var(--ouro); }

.btn-zap {
  color: #fff;
  background: #1fa855;
  box-shadow: 0 6px 20px rgba(31, 168, 85, .3);
}

.link {
  background: none;
  border: 0;
  padding: 8px;
  color: var(--cinza);
  font: 500 14px var(--texto);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link:hover { color: var(--branco); }

:focus-visible { outline: 2px solid var(--ouro-claro); outline-offset: 3px; }

/* ---------- Topo ---------- */

.hero { text-align: center; }

.kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: clamp(18px, 5vw, 26px);
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  padding-left: .32em;
}
.kicker::before,
.kicker::after {
  content: '';
  width: 56px;
  height: 1px;
  background: var(--ouro);
}

.nome {
  position: relative;
  margin: 30px 0 0;
  font: 400 clamp(40px, 17.4vw, 108px)/1 var(--script);
  letter-spacing: -.01em;
  white-space: nowrap;
  transform: rotate(-4deg);
}
.nome .ouro {
  display: inline-block;
  padding: .12em .14em .2em;
  filter: drop-shadow(0 4px 18px rgba(227, 178, 95, .25));
}

.coroa {
  fill: none;
  stroke: var(--ouro);
  stroke-width: 3;
  stroke-linejoin: round;
}
.coroa circle { fill: var(--ouro); stroke: none; }
.nome .coroa {
  position: absolute;
  top: -.42em;
  right: 2%;
  width: .62em;
  transform: rotate(12deg);
}

.idade {
  position: relative;
  width: min(86%, 420px);
  margin: -6px auto 0;
  padding: 18px 0 22px;
  transform: rotate(-5deg);
}
.pincel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.idade span {
  position: relative;
  display: block;
  color: #110c05;
  font: 400 clamp(40px, 12vw, 70px)/1 var(--script);
  text-transform: uppercase;
}

.comemorar {
  margin-top: 18px;
  font: 400 clamp(40px, 11.5vw, 66px)/1.1 var(--script);
  color: var(--branco);
  transform: rotate(-4deg);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
}
.comemorar::after {
  content: '';
  display: block;
  width: 78%;
  height: 3px;
  margin: 6px auto 0;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, var(--ouro) 30%, var(--ouro-claro) 80%, transparent);
  transform: rotate(-2deg);
}

.hero-cta { margin-top: 32px; }

/* ---------- Informações ---------- */

.infos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 44px 0 36px;
  text-align: center;
}

.info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  color: inherit;
  text-decoration: none;
}
.info + .info { border-left: 1px solid var(--linha); }
.info .icone { margin-bottom: 12px; }

.info-topo,
.info-baixo {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.info-destaque {
  font: 700 clamp(26px, 7.4vw, 34px)/1.05 var(--condensada);
  text-transform: uppercase;
  color: var(--ouro);
}

.info-noite {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--linha);
}
.info + .info.info-noite { border-left: 0; }
.info-noite .icone { width: 52px; height: 46px; margin: 0; }
.info-noite .script { font-size: clamp(24px, 6.6vw, 30px); transform: rotate(-4deg); }

@media (min-width: 560px) {
  .infos { grid-template-columns: 1fr 1fr 1fr; }
  .info-destaque { font-size: 29px; }
  .info-noite {
    grid-column: auto;
    flex-direction: column;
    margin-top: 0;
    padding-top: 8px;
    border-top: 0;
  }
  .info + .info.info-noite { border-left: 1px solid var(--linha); }
  .info-noite .icone { margin-bottom: 8px; }
  .info-noite .script { font-size: 25px; line-height: 1.15; }
}

/* ---------- Confirmação ---------- */

.rsvp {
  position: relative;
  padding: 28px 22px;
  border: 1px solid var(--linha);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(227, 178, 95, .06), transparent 40%),
    rgba(11, 10, 8, .72);
  box-shadow: inset 0 0 0 4px rgba(11, 10, 8, .9), inset 0 0 0 5px rgba(227, 178, 95, .18);
  scroll-margin-top: 20px;
}

.rsvp-cabecalho {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.icone-zap { flex: none; width: 52px; height: 52px; stroke-width: 1.4; }
.rsvp h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.4;
}
.rsvp h2 strong { color: var(--ouro); font-weight: 700; }
.rsvp-cabecalho > div > p:not(.script) {
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cinza);
}
.rsvp-cabecalho .script { margin-top: 8px; font-size: 26px; transform: rotate(-3deg); transform-origin: left; }

.campo { margin-bottom: 16px; }
.campo label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--cinza);
}
.campo input,
.campo select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid rgba(227, 178, 95, .3);
  border-radius: 10px;
  background: var(--preto-2);
  color: var(--branco);
  font: 500 16px var(--texto);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.campo select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3b25f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
  padding-right: 44px;
}
.campo input::placeholder { color: #6f685d; }
.campo input:focus,
.campo select:focus {
  outline: none;
  border-color: var(--ouro);
  box-shadow: 0 0 0 3px rgba(227, 178, 95, .2);
}
.campo input[aria-invalid='true'] { border-color: #e07a5f; }

.erro {
  margin: -4px 0 14px;
  color: #f0a08a;
  font-size: 14px;
  font-weight: 500;
}

#form-rsvp .btn { width: 100%; margin-top: 6px; }

.confirmado {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.confirmado[hidden] { display: none; }
.icone-ok { width: 48px; height: 48px; stroke-width: 1.6; }
.confirmado-texto { font-size: 16px; }
.confirmado-texto strong { color: var(--ouro); }
.confirmado .btn { width: 100%; }

/* ---------- Local ---------- */

.local { margin-top: 48px; text-align: center; scroll-margin-top: 20px; }

.titulo-secao {
  margin: 0 0 14px;
  font: 400 clamp(34px, 9vw, 44px)/1.1 var(--script);
  color: var(--ouro);
}
.local-nome {
  font: 700 26px/1.1 var(--condensada);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.local-endereco { margin-top: 4px; color: var(--cinza); font-size: 15px; }

.mapa {
  margin: 20px 0 16px;
  border: 1px solid var(--linha);
  border-radius: 12px;
  overflow: hidden;
  background: var(--preto-3);
  aspect-ratio: 4 / 3;
}
.mapa iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  /* Mapa escuro, mantendo as cores do pino */
  filter: invert(.9) hue-rotate(180deg) saturate(.7) contrast(.95);
}

.rotas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.rotas .btn { padding: 12px 8px; font-size: 13px; letter-spacing: .04em; }

/* ---------- Rodapé ---------- */

.rodape {
  margin-top: 56px;
  text-align: center;
}
.rodape .script {
  font-size: clamp(34px, 9.5vw, 48px);
  line-height: 1.15;
  transform: rotate(-5deg);
}
.coroa-pequena { width: 44px; margin-top: 22px; opacity: .7; }

.contato { margin-top: 36px; }
.contato p { margin-bottom: 12px; color: var(--cinza); font-size: 14px; }
.contato .btn { letter-spacing: .04em; }

.link-cancelar { margin-top: -8px; font-size: 13px; }

/* ---------- Popup ---------- */

.modal {
  width: min(92vw, 420px);
  max-height: 90vh;
  padding: 32px 22px 22px;
  border: 1px solid var(--linha);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(227, 178, 95, .14), transparent 70%),
    var(--preto-2);
  color: var(--branco);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
}
.modal::backdrop {
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal[open] { animation: surgir .28s ease-out; }

.modal-fechar-form { position: absolute; top: 8px; right: 8px; margin: 0; }
.modal-fechar {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cinza);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.modal-fechar:hover { color: var(--branco); background: rgba(255, 255, 255, .06); }

.modal h2 {
  margin: 10px 0 2px;
  font: 400 32px/1.15 var(--script);
  color: var(--ouro);
}
.modal h2:focus { outline: none; }
.modal-ola { font-size: 17px; font-weight: 600; }
.modal-aviso {
  margin-top: 12px;
  font-size: 14px;
  color: var(--cinza);
}
.modal .btn-zap { width: 100%; margin-top: 14px; }
.modal .btn-zap[hidden] { display: none; }

.modal-agenda {
  margin: 22px 0 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(227, 178, 95, .2);
  font-weight: 600;
}
.agendas { display: grid; gap: 10px; }
.agendas .btn { width: 100%; font-size: 14px; }

.modal-rodape { margin-top: 14px; font-size: 13px; color: var(--cinza); }
.modal-rodape a { color: var(--ouro); white-space: nowrap; }

@keyframes surgir {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- Entrada da página ---------- */

.hero > *,
.infos,
.rsvp {
  animation: subir .7s ease-out both;
}
.hero > :nth-child(2) { animation-delay: .1s; }
.hero > :nth-child(3) { animation-delay: .2s; }
.hero > :nth-child(4) { animation-delay: .3s; }
.hero > :nth-child(5) { animation-delay: .4s; }
.infos { animation-delay: .45s; }
.rsvp { animation-delay: .55s; }

@keyframes subir {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}

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