/* ===== Casamento Sara & João — 09.01.2027 ===== */
:root {
  --bg: #faf9f6;
  --bg-soft: #f3f1ea;
  --texto: #55524a;
  --titulo: #7a7154;
  --verde: #6f9490;
  --verde-escuro: #567773;
  --oliva: #8a9a6b;
  --ouro: #c9a86a;
  --ouro-claro: #e3cfa4;
  --branco: #ffffff;
  --sombra: 0 10px 30px rgba(90, 80, 60, .10);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Mulish", "Segoe UI", sans-serif;
  --cinza-produto: #4a5056;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--texto);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

/* ===== Nav ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 246, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eceae2;
}
.nav {
  display: flex; justify-content: center; align-items: center;
  gap: clamp(.8rem, 2.5vw, 2.2rem);
  padding: 1rem 1.2rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--verde);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 400;
  transition: color .2s;
}
.nav a:hover { color: var(--verde-escuro); }
.nav a.nav-cta {
  border: 1px solid var(--verde);
  padding: .45em 1.1em;
  border-radius: 999px;
}
.nav a.nav-cta:hover { background: var(--verde); color: #fff; }
.menu-toggle { display: none; }

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
    background: none; border: 0;
    padding: .9rem 1.2rem;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--verde); margin: 5px 0;
    transition: transform .25s, opacity .25s;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    display: none;
    flex-direction: column;
    padding-bottom: 1.2rem;
  }
  .nav.aberto { display: flex; }
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: clamp(2rem, 6vw, 4.5rem) 1.2rem 3rem;
  overflow-x: clip;
}
.hero-frame {
  position: relative;
  width: min(460px, 82vw);
  margin: 0 auto 2.2rem;
  aspect-ratio: 4 / 5;
}
.geo {
  position: absolute; inset: 0;
  pointer-events: none;
}
.geo-1 {
  border: 1.5px solid var(--ouro);
  border-radius: 54% 46% 50% 50% / 44% 52% 48% 56%;
  transform: scale(1.05) rotate(4deg);
  opacity: .85;
}
.geo-2 {
  border: 1.5px solid var(--ouro-claro);
  border-radius: 48% 52% 46% 54% / 52% 44% 56% 48%;
  transform: scale(1.09) rotate(-5deg);
  opacity: .9;
}
.hero-photo {
  position: absolute; inset: 4% 6%;
  border-radius: 50% / 42%;
  overflow: hidden;
  box-shadow: var(--sombra);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.branch {
  position: absolute;
  width: clamp(70px, 22%, 110px);
  z-index: 2;
}
.branch-tl { top: -4%; left: -6%; transform: rotate(-12deg); }
.branch-br { bottom: -4%; right: -6%; transform: rotate(168deg); }

.hero-names {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 5rem);
  color: var(--titulo);
  line-height: 1.1;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: .35em;
  flex-wrap: wrap;
}
.hero-names em {
  font-style: normal;
  color: var(--ouro);
  font-size: .55em;
}
.hero-date {
  margin-top: .6rem;
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .85rem;
  color: var(--verde);
}

/* Countdown */
.countdown {
  display: flex; justify-content: center;
  gap: clamp(.6rem, 3vw, 1.6rem);
  margin: 2.2rem 0;
}
.cd-box {
  background: var(--branco);
  border: 1px solid #eee9dc;
  border-radius: 10px;
  box-shadow: var(--sombra);
  padding: .9rem .4rem;
  min-width: clamp(64px, 18vw, 92px);
}
.cd-box strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 600;
  color: var(--titulo);
  line-height: 1;
}
.cd-box span {
  text-transform: uppercase;
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--verde);
}

.welcome {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.02rem;
}
.welcome p + p { margin-top: 1em; }
.welcome a { color: var(--verde-escuro); }
.welcome-signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--titulo);
}

/* ===== Divider ===== */
.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem;
  max-width: 480px;
  margin: 0 auto;
  color: var(--ouro);
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ouro-claro));
}
.divider::after { background: linear-gradient(90deg, var(--ouro-claro), transparent); }

/* ===== Sections ===== */
.section {
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 4.5rem) 1.4rem;
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 3rem);
  color: var(--titulo);
  text-align: center;
  margin-bottom: 1.2rem;
}
.section-sub {
  text-align: center;
  max-width: 620px;
  margin: -0.4rem auto 2.4rem;
}

/* O casal */
.casal-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: 2.5rem;
}
.casal-photo img {
  border-radius: 14px;
  box-shadow: var(--sombra);
  height: auto;
}
.casal-texto { font-size: 1.05rem; }
.casal-texto p + p { margin-top: 1em; }
.casal-texto strong { color: var(--titulo); font-weight: 500; }

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.galeria {
  display: flex;
  gap: .9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: .4rem .2rem 1rem;
  flex: 1;
}
.galeria::-webkit-scrollbar { display: none; }
.galeria img {
  flex: 0 0 auto;
  width: clamp(200px, 70vw, 280px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(90, 80, 60, .12);
  scroll-snap-align: center;
  height: auto;
}
.carousel-seta {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid #ddd6c4;
  background: var(--branco);
  color: var(--titulo);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(90, 80, 60, .12);
  transition: background .2s, color .2s;
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 4px;
}
.carousel-seta:hover { background: var(--titulo); color: #fff; }
@media (max-width: 640px) {
  .carousel-seta { display: none; } /* no celular, desliza com o dedo */
}

@media (max-width: 800px) {
  .casal-grid { grid-template-columns: 1fr; }
  .casal-photo { max-width: 420px; margin: 0 auto; }
}

/* Cerimônia / Recepção */
.evento-card {
  background: var(--branco);
  border: 1px solid #eee9dc;
  border-radius: 16px;
  box-shadow: var(--sombra);
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(1.8rem, 5vw, 3rem);
  text-align: center;
}
.evento-icone { font-size: 2.4rem; margin-bottom: 1rem; }
.evento-destaque {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--titulo);
  margin-bottom: 1.2rem;
}
.evento-info { margin-bottom: 1.2rem; font-size: 1.05rem; }
.evento-info strong { color: var(--verde-escuro); font-weight: 500; }
.evento-obs { font-size: .95rem; margin-bottom: 1.4rem; }

/* Botões */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  padding: .8em 2em;
  cursor: pointer;
  transition: all .2s;
}
.btn-outline {
  border: 1px solid var(--verde);
  color: var(--verde);
  background: transparent;
}
.btn-outline:hover { background: var(--verde); color: #fff; }
.btn-solid {
  border: none;
  background: var(--verde);
  color: #fff;
}
.btn-solid:hover { background: var(--verde-escuro); }
.btn[disabled] { opacity: .55; cursor: wait; }

/* ===== Lista de presentes ===== */
.lista-controles {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; }
.filtros button {
  border: 1px solid #ddd6c4;
  background: var(--branco);
  color: var(--texto);
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .06em;
  padding: .4em 1em;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}
.filtros button.ativo,
.filtros button:hover {
  background: var(--titulo);
  border-color: var(--titulo);
  color: #fff;
}
.ordenar {
  font-size: .85rem;
  color: var(--verde-escuro);
  display: flex; align-items: center; gap: .5rem;
}
.ordenar select {
  font-family: var(--sans);
  border: 1px solid #ddd6c4;
  border-radius: 8px;
  padding: .35em .6em;
  background: var(--branco);
  color: var(--texto);
}

.presentes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.presente-card {
  background: var(--branco);
  border: 1px solid #e8eaef;
  border-radius: 14px;
  padding: 1.2rem 1.2rem 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  transition: transform .2s, box-shadow .2s;
}
.presente-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sombra);
}
.presente-foto {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.presente-foto {
  background: #f7f6f2;
}
.presente-foto img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.presente-emoji { font-size: 3rem; line-height: 1; }
.presente-nome {
  font-weight: 400;
  font-size: 1rem;
  color: var(--cinza-produto);
  min-height: 2.6em;
  display: flex; align-items: center;
  line-height: 1.35;
}
.presente-preco {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cinza-produto);
}
.presente-card .btn-presentear {
  width: 100%;
  border: none;
  background: var(--oliva);
  color: #fff;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 10px;
  padding: .7em 1em;
  cursor: pointer;
  transition: background .2s;
}
.presente-card .btn-presentear:hover { background: #75855a; }

/* Paginação */
.paginacao {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 2.2rem;
}
.paginacao button {
  min-width: 40px;
  height: 40px;
  padding: 0 .7em;
  border: 1px solid #ddd6c4;
  background: var(--branco);
  color: var(--texto);
  font-family: var(--sans);
  font-size: .95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
}
.paginacao button:hover:not(:disabled):not(.ativo) {
  border-color: var(--oliva);
  color: var(--oliva);
}
.paginacao button.ativo {
  background: var(--oliva);
  border-color: var(--oliva);
  color: #fff;
  font-weight: 700;
  cursor: default;
}
.paginacao button:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.pag-reticencia { color: #b0aa9c; padding: 0 .2rem; }
@media (max-width: 420px) {
  .paginacao { gap: .3rem; }
  .paginacao button {
    min-width: 34px;
    height: 34px;
    padding: 0 .4em;
    font-size: .88rem;
  }
}
.paginacao-info {
  text-align: center;
  font-size: .88rem;
  color: #9a958a;
  margin-top: .9rem;
}

/* ===== RSVP ===== */
.rsvp-form {
  max-width: 560px;
  margin: 0 auto;
  background: var(--branco);
  border: 1px solid #eee9dc;
  border-radius: 16px;
  box-shadow: var(--sombra);
  padding: clamp(1.6rem, 5vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.rsvp-form label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .92rem;
  color: var(--verde-escuro);
}
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea,
.modal input,
.modal textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--texto);
  border: 1px solid #ddd6c4;
  border-radius: 10px;
  padding: .65em .9em;
  background: var(--bg);
  transition: border-color .2s;
  width: 100%;
}
.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus,
.modal input:focus,
.modal textarea:focus {
  outline: none;
  border-color: var(--verde);
}
.rsvp-form small { color: #9a958a; font-size: .8rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.radio-row {
  border: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.radio-row legend {
  font-size: .92rem;
  color: var(--verde-escuro);
  margin-bottom: .4rem;
}
.radio {
  flex-direction: row !important;
  align-items: center;
  gap: .6rem !important;
  font-size: 1rem !important;
  color: var(--texto) !important;
  cursor: pointer;
}
.radio input { width: auto; accent-color: var(--verde); }
/* Campos de nome dos convidados adicionais */
.convidados[hidden] { display: none; }
.convidados {
  background: var(--bg-soft);
  border: 1px solid #eae6da;
  border-radius: 12px;
  padding: 1rem 1.1rem 1.2rem;
}
.convidados-titulo {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--verde-escuro);
  margin-bottom: .8rem;
}
.convidados-campos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}
.convidado-campo {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .82rem;
  color: var(--verde-escuro);
}
@media (max-width: 480px) {
  .convidados-campos { grid-template-columns: 1fr; }
}

.form-status { text-align: center; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: #4c8a4f; }
.form-status.erro { color: #b3543f; }

/* ===== Modal presente ===== */
.modal-overlay[hidden] { display: none; }
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(60, 55, 45, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem;
}
.modal {
  background: var(--branco);
  border-radius: 18px;
  max-width: 440px;
  width: 100%;
  padding: 2rem 1.8rem;
  text-align: center;
  position: relative;
  display: flex; flex-direction: column; gap: .9rem;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute; top: .6rem; right: .9rem;
  background: none; border: none;
  font-size: 1.8rem; color: #b0aa9c;
  cursor: pointer; line-height: 1;
}
.modal-emoji { font-size: 2.6rem; }
.modal-emoji img {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 10px;
}
.modal h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--titulo);
}
.modal-preco {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--verde-escuro);
}
.modal label {
  text-align: left;
  font-size: .88rem;
  color: var(--verde-escuro);
  display: flex; flex-direction: column; gap: .3rem;
}
.modal-metodos { font-size: .85rem; color: #9a958a; }

/* ===== Footer ===== */
.rodape {
  text-align: center;
  padding: 3.5rem 1.2rem 3rem;
  background: var(--bg-soft);
  margin-top: 4rem;
}
.rodape-nomes {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--titulo);
}
.rodape-nomes em { color: var(--ouro); font-style: normal; }
.rodape p:nth-child(2) {
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .8rem;
  color: var(--verde);
  margin: .4rem 0 1rem;
}
.rodape-frase {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: #8d8776;
}

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