/* =====================================================================
   Casamento Y & R — folha de estilos
   ===================================================================== */

:root {
  --ivory: #f8f4ec;
  --cream: #f1eadd;
  --sand: #e3d7c2;
  --gold: #b5925a;
  --gold-soft: #d9c39c;
  --gold-deep: #8f6f3c;
  --olive: #5e6a41;
  --olive-soft: #8b9468;
  --ink: #2a2521;
  --ink-soft: #5c544c;
  --muted: #8d857b;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(42, 37, 33, 0.14);
  --shadow-soft: 0 10px 30px rgba(42, 37, 33, 0.08);
  --radius: 18px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 400;
}
.eyebrow::before,
.eyebrow.center::after {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold);
}
.eyebrow.center { justify-content: center; }

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  margin-top: 14px;
  color: var(--ink);
}
.section-title em {
  font-style: italic;
  color: var(--gold-deep);
}

.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-gold {
  background: linear-gradient(135deg, #c6a26a, var(--gold) 60%, var(--gold-deep));
  color: var(--white);
  box-shadow: 0 12px 30px rgba(143, 111, 60, 0.35);
}
.btn-gold:hover { box-shadow: 0 16px 36px rgba(143, 111, 60, 0.45); }

.btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.08);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.18); }

.btn-outline-dark {
  border-color: var(--gold);
  color: var(--gold-deep);
  background: transparent;
}
.btn-outline-dark:hover { background: rgba(181, 146, 90, 0.1); }

.btn-sm { padding: 12px 22px; font-size: 0.72rem; }

/* ---------- Navegação ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 22px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
  color: var(--white);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav.scrolled {
  background: rgba(248, 244, 236, 0.92);
  backdrop-filter: blur(14px);
  color: var(--ink);
  padding: 12px 0;
  box-shadow: 0 6px 30px rgba(42, 37, 33, 0.08);
}
.nav.solid {
  background: rgba(248, 244, 236, 0.95);
  backdrop-filter: blur(14px);
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid rgba(181, 146, 90, 0.2);
}

.monogram {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.monogram .amp {
  font-style: italic;
  color: var(--gold);
  font-size: 1.3rem;
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  padding-bottom: 4px;
  opacity: 0.9;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links .nav-cta {
  color: var(--gold-soft);
}
.nav.scrolled .nav-cta,
.nav.solid .nav-cta { color: var(--gold-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -8px; left: 0; }
.nav-toggle span::after { top: 8px; left: 0; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/casal-campo.jpg") center 35% / cover no-repeat;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 18, 14, 0.42) 0%, rgba(20, 18, 14, 0.05) 35%, rgba(20, 18, 14, 0.2) 65%, rgba(20, 18, 14, 0.78) 100%),
    linear-gradient(90deg, rgba(20, 18, 14, 0.45) 0%, rgba(20, 18, 14, 0) 55%);
}

.hero-content {
  padding: 140px 0 90px;
  max-width: 640px;
}
.hero-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.12em;
}
.hero-title .amp {
  font-style: italic;
  font-size: 0.55em;
  color: var(--gold-soft);
  transform: translateY(-0.1em);
}
.hero-names {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-style: italic;
  opacity: 0.92;
}
.hero-date {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero-date .sep {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.5);
}
.hero-date strong {
  font-family: var(--serif);
  font-size: 1.8rem;
  letter-spacing: 0.12em;
  font-weight: 400;
}
.hero-actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.scroll-hint {
  position: absolute;
  right: 40px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.8;
  writing-mode: vertical-rl;
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, #fff, transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Contagem regressiva ---------- */
.countdown-band {
  background: var(--ink);
  color: var(--ivory);
  padding: 44px 0;
  border-top: 1px solid rgba(217, 195, 156, 0.25);
}
.countdown-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.countdown-label {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--gold-soft);
}
.countdown {
  display: flex;
  gap: 8px;
}
.countdown-item {
  text-align: center;
  min-width: 92px;
  padding: 10px 12px;
  position: relative;
}
.countdown-item + .countdown-item::before {
  content: ":";
  position: absolute;
  left: -8px;
  top: 8px;
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--gold);
  opacity: 0.6;
}
.countdown-item b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 3rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-item span {
  display: block;
  margin-top: 8px;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ---------- Seções ---------- */
.section { padding: 120px 0; }
.section.tight { padding: 90px 0; }
.section.cream { background: var(--cream); }

/* ---------- Nossa história ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 90px;
  align-items: center;
}
.story-photo {
  position: relative;
  max-width: 460px;
  margin-inline: auto;
}
.story-photo::before {
  content: "";
  position: absolute;
  inset: 28px -28px -28px 28px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  z-index: 0;
}
.story-photo img {
  position: relative;
  z-index: 1;
  border-radius: 8px;
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.story-photo .badge {
  position: absolute;
  z-index: 2;
  left: -34px;
  bottom: 60px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: var(--ivory);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
}
.story-photo .badge svg { width: 100%; height: 100%; }
.story-text p {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.story-text p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.4rem;
  float: left;
  line-height: 0.85;
  margin: 8px 10px 0 0;
  color: var(--gold-deep);
}
.signature {
  margin-top: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold-deep);
}

/* ---------- Detalhes ---------- */
.details {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
}
.details-photo {
  position: relative;
  border-radius: 200px 200px 14px 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 440px;
  margin-inline: auto;
}
.details-photo img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  object-position: center 62%;
  transition: transform 1.2s ease;
}
.details-photo:hover img { transform: scale(1.03); }
.details-photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 20px 18px;
  text-align: center;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.7), transparent);
}
.details-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.details-grid .detail-card:last-child { grid-column: 1 / -1; }
.detail-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px 32px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(181, 146, 90, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.detail-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.detail-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  display: grid;
  place-items: center;
  color: var(--gold-deep);
}
.detail-icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.detail-card h3 { font-size: 1.7rem; margin-bottom: 8px; }
.detail-card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.detail-card .big {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--gold-deep);
  line-height: 1;
  margin: 6px 0 10px;
}
.detail-card a.link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 2px;
}

/* ---------- Banda de presentes ---------- */
.gifts-band {
  position: relative;
  color: var(--white);
  padding: 120px 0;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.gifts-band-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #14100c url("../img/celeiro.jpg") 90% 45% / 135% auto no-repeat;
}
.gifts-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 16, 12, 0.55) 0%, rgba(20, 16, 12, 0.35) 50%, rgba(20, 16, 12, 0.7) 100%);
}
.gifts-band-img { display: none; }
.gifts-card {
  max-width: 580px;
  margin-left: auto;
  padding: 44px 36px;
  border-radius: 24px;
  background: rgba(20, 16, 12, 0.35);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.gifts-band .eyebrow { color: var(--gold-soft); }
.gifts-band .eyebrow::before,
.gifts-band .eyebrow::after { background: var(--gold-soft); }
.gifts-band .section-title { color: var(--white); }
.gifts-band .section-title em { color: var(--gold-soft); }
.gifts-band .lead { color: rgba(255, 255, 255, 0.82); margin: 22px auto 0; }
.category-preview {
  margin: 46px auto 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 820px;
}
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.25s ease, transform 0.25s ease;
}
.category-pill:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }

/* ---------- Rodapé ---------- */
.footer {
  position: relative;
  padding: 220px 0 60px;
  text-align: center;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
  background: #14100c url("../img/campo-pb.jpg") center 22% / cover no-repeat;
}
/* escurece a foto de baixo para cima, mantendo o casal visível no topo */
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(20, 16, 12, 0.15) 0%, rgba(20, 16, 12, 0.55) 55%, rgba(20, 16, 12, 0.85) 100%);
}
.footer .monogram { font-size: 2.4rem; color: var(--white); }
.footer p {
  margin: 14px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.footer .heart { color: var(--gold); }
@media (max-width: 720px) {
  .footer { padding: 150px 0 44px; background-position: center 30%; }
}

/* ---------- Animações de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

/* =====================================================================
   PÁGINA DA LISTA DE PRESENTES
   ===================================================================== */
.page-head {
  position: relative;
  padding: 190px 0 110px;
  text-align: center;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}
.page-head-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/casal-cavalo.jpg") center 30% / cover no-repeat;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0.72) 0%, rgba(20, 16, 12, 0.35) 55%, rgba(20, 16, 12, 0.6) 100%);
}
.page-head .eyebrow { color: var(--gold-soft); }
.page-head .eyebrow::before,
.page-head .eyebrow::after { background: var(--gold-soft); }
.page-head .section-title { color: var(--white); }
.page-head .section-title em { color: var(--gold-soft); }
.page-head .lead { margin: 20px auto 0; color: rgba(255, 255, 255, 0.85); }

.filters {
  position: sticky;
  top: 66px;
  z-index: 30;
  background: rgba(248, 244, 236, 0.92);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  border-block: 1px solid rgba(181, 146, 90, 0.15);
}
.filters .container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: safe center;
}
.filters .container::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(181, 146, 90, 0.4);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}
.chip:hover { border-color: var(--gold); color: var(--gold-deep); }
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}
.chip .count {
  font-size: 0.62rem;
  opacity: 0.65;
}

.gifts-section { padding: 60px 0 120px; }
.gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
}
.gift-group-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 26px 0 4px;
  font-size: 1.9rem;
}
.gift-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--gold-soft), transparent);
}
.gift-group-title:first-child { margin-top: 0; }

.gift-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(181, 146, 90, 0.12);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gift-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.gift-media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f3ecdf, #e6dac4);
  overflow: hidden;
}
.gift-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gift-media .icon {
  font-size: 4rem;
  filter: drop-shadow(0 10px 20px rgba(42, 37, 33, 0.15));
  transition: transform 0.4s ease;
}
.gift-card:hover .gift-media .icon { transform: scale(1.08) rotate(-3deg); }
.gift-media .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.gift-media .done {
  position: absolute;
  inset: 0;
  background: rgba(42, 37, 33, 0.55);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
}
.gift-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.gift-body h3 { font-size: 1.55rem; }
.gift-body .desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  flex: 1;
}
.gift-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.gift-price .value {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--ink);
}
.gift-price .per {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.progress {
  height: 6px;
  border-radius: 999px;
  background: var(--cream);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold-deep));
  transition: width 0.8s ease;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.gift-body .btn { margin-top: 14px; width: 100%; }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
}

/* ---------- Modal de checkout ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(31, 28, 22, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card {
  width: min(560px, 100%);
  max-height: calc(100svh - 40px);
  overflow: auto;
  background: var(--ivory);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s ease;
}
.modal.open .modal-card { transform: none; }
.modal-head {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 26px 28px 20px;
  border-bottom: 1px solid rgba(181, 146, 90, 0.2);
}
.modal-head .thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(145deg, #f3ecdf, #e6dac4);
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  flex: 0 0 auto;
  overflow: hidden;
}
.modal-head .thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-head h3 { font-size: 1.6rem; }
.modal-head small { color: var(--muted); font-size: 0.8rem; }
.modal-close {
  margin-left: auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(181, 146, 90, 0.4);
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.1rem;
  flex: 0 0 auto;
}
.modal-body { padding: 24px 28px 28px; display: grid; gap: 18px; }
.field label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(181, 146, 90, 0.35);
  background: var(--white);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(181, 146, 90, 0.15);
}
.field textarea { min-height: 90px; resize: vertical; }

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(181, 146, 90, 0.35);
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
}
.stepper button {
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  font-size: 1.3rem;
  color: var(--gold-deep);
}
.stepper button:disabled { opacity: 0.3; cursor: not-allowed; }
.stepper output {
  min-width: 56px;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.5rem;
}
.hint { font-size: 0.78rem; color: var(--muted); margin: 6px 0 0; }

.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px dashed rgba(181, 146, 90, 0.4);
}
.total-row span { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.total-row strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.2rem;
  color: var(--ink);
}
.secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.secure svg { width: 16px; height: 16px; stroke: var(--olive-soft); fill: none; stroke-width: 1.6; }
.error-msg {
  background: #fbe9e4;
  color: #8a3b2a;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.88rem;
  display: none;
}
.error-msg.show { display: block; }
.pix-box {
  background: var(--cream);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.pix-box code {
  display: block;
  margin-top: 6px;
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
  color: var(--ink);
  user-select: all;
}

/* ---------- Checkout: escolha da forma de pagamento ---------- */
#checkoutForm { display: grid; gap: 18px; }
.pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(181, 146, 90, 0.35);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  color: var(--ink);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.pay-tab:hover { border-color: var(--gold); }
.pay-tab.active {
  border-color: var(--gold);
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.pay-tab-ico { font-size: 1.3rem; line-height: 1; }
.pay-tab b { display: block; font-weight: 500; font-size: 0.95rem; }
.pay-tab small { display: block; font-size: 0.72rem; color: var(--muted); line-height: 1.35; }

/* ---------- Etapas de pagamento (cartão, Pix, resultado) ---------- */
.pay-step { display: grid; gap: 16px; }
.pay-step[hidden] { display: none; }
.back-link {
  justify-self: start;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
}
.back-link:hover { color: var(--ink); }
.step-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: var(--cream);
  border-radius: 12px;
}
.step-total span { font-size: 0.85rem; color: var(--ink-soft); }
.step-total strong { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }

/* Pix */
.pix-qr {
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--white);
  border: 1px solid rgba(181, 146, 90, 0.3);
  border-radius: 14px;
}
.pix-qr img { width: 220px; max-width: 100%; height: auto; image-rendering: pixelated; }
.pix-instrucao { margin: 0; font-size: 0.88rem; color: var(--ink-soft); text-align: center; }
.pix-copia { display: flex; gap: 8px; }
.pix-copia input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(181, 146, 90, 0.35);
  border-radius: 10px;
  background: var(--ivory);
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-overflow: ellipsis;
}
.pix-copia .btn { white-space: nowrap; }
.pix-aguardando {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gold-deep);
}
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold-soft);
  border-top-color: var(--gold-deep);
  border-radius: 50%;
  animation: girar 0.9s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

/* Resultado */
.pay-done { text-align: center; justify-items: center; padding: 10px 0 4px; }
.done-ico {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--gold);
  font-size: 1.7rem;
}
.done-ico.pendente { color: var(--olive); }
.done-ico.erro { color: #a6584f; }
.pay-done h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 400; margin: 0; }
.pay-done p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); max-width: 42ch; }

@media (max-width: 520px) {
  .pay-tabs { grid-template-columns: 1fr; }
  .pix-qr img { width: 180px; }
}

/* ---------- Painel de recados (só para os noivos) ---------- */
.recados { padding: 140px 0 90px; background: var(--ivory); min-height: 100svh; }
.recados-login { max-width: 460px; margin: 40px auto; text-align: center; }
.recados-login .lead { margin: 14px 0 26px; }
.recados-login form { display: grid; gap: 12px; }
.recados-login input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(181, 146, 90, 0.35);
  border-radius: 12px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  text-align: center;
  letter-spacing: 0.1em;
}
.recados-login input:focus { outline: none; border-color: var(--gold); }
.recados-login .error-msg { margin-top: 14px; }

.recados-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.recados-acoes { display: flex; gap: 8px; flex-wrap: wrap; }

.resumo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}
.resumo-card {
  background: var(--white);
  border: 1px solid rgba(181, 146, 90, 0.22);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
}
.resumo-card b { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--ink); font-weight: 400; }
.resumo-card span {
  display: block;
  margin-top: 4px;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.recados-filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }

.recados-lista { display: grid; gap: 16px; }
.recado {
  background: var(--white);
  border: 1px solid rgba(181, 146, 90, 0.22);
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: var(--shadow-soft);
}
.recado.pendente { opacity: 0.68; border-style: dashed; }
.recado blockquote {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}
.recado blockquote::before { content: "“"; color: var(--gold-soft); }
.recado blockquote::after { content: "”"; color: var(--gold-soft); }
.recado .sem-recado { margin: 0 0 14px; font-size: 0.9rem; color: var(--muted); }
.recado-rodape {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(181, 146, 90, 0.18);
}
.recado-rodape strong { display: block; font-weight: 500; font-size: 0.98rem; color: var(--ink); }
.recado-rodape span { font-size: 0.78rem; color: var(--muted); }
.recado-valor { text-align: right; }
.recado-valor b { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--gold-deep); font-weight: 400; }

.vazio { text-align: center; color: var(--muted); padding: 40px 0; }

@media (max-width: 640px) {
  .recados { padding: 110px 0 70px; }
  .recado { padding: 20px; }
  .recado blockquote { font-size: 1.15rem; }
  .recado-valor { text-align: left; }
}

/* ---------- Painel dos noivos: login, abas e financeiro ---------- */
.recados-login .lembrar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0;
  cursor: pointer;
}
.recados-login .lembrar input { width: auto; accent-color: var(--gold); }

.abas {
  display: flex;
  gap: 4px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(181, 146, 90, 0.25);
}
.aba {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 20px;
  margin-bottom: -1px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.aba:hover { color: var(--ink); }
.aba.active { color: var(--gold-deep); border-bottom-color: var(--gold); }
.aba-conteudo[hidden] { display: none; }

.bloco-titulo {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
  margin: 42px 0 18px;
}

.metodos,
.categorias-fin {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}
.metodo,
.categoria-fin {
  background: var(--white);
  border: 1px solid rgba(181, 146, 90, 0.22);
  border-radius: 14px;
  padding: 18px 20px;
}
.metodo-topo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.metodo-topo strong { font-weight: 500; font-size: 0.95rem; color: var(--ink); }
.metodo-topo b { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; color: var(--gold-deep); }
.metodo .progress,
.categoria-fin .progress { margin: 0 0 8px; }
.metodo .hint,
.categoria-fin .hint { font-size: 0.74rem; }

.tabela-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid rgba(181, 146, 90, 0.22); background: var(--white); }
.tabela-fin { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 460px; }
.tabela-fin th {
  text-align: left;
  padding: 14px 18px;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  border-bottom: 1px solid rgba(181, 146, 90, 0.22);
  white-space: nowrap;
}
.tabela-fin td { padding: 13px 18px; border-bottom: 1px solid rgba(181, 146, 90, 0.12); color: var(--ink-soft); }
.tabela-fin tr:last-child td { border-bottom: 0; }
.tabela-fin .num { text-align: right; white-space: nowrap; }
.tabela-fin td.num b { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; color: var(--ink); }
.tabela-fin tr.completo td { background: rgba(181, 146, 90, 0.06); }
.tabela-fin .vazio { padding: 26px; }
.selo {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--gold-deep);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .abas { overflow-x: auto; }
  .aba { padding: 12px 14px; }
  .bloco-titulo { font-size: 1.35rem; margin: 34px 0 14px; }
}

/* ---------- Página de obrigado ---------- */
.thanks {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 0 80px;
  background:
    radial-gradient(60% 60% at 50% 20%, rgba(217, 195, 156, 0.4), transparent 70%),
    var(--ivory);
}
.thanks .ring {
  width: 110px;
  height: 110px;
  margin: 0 auto 30px;
}
.thanks h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.thanks h1 em { font-style: italic; color: var(--gold-deep); }
.thanks p { color: var(--ink-soft); font-size: 1.1rem; max-width: 52ch; margin: 18px auto 0; }
.thanks .actions { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =====================================================================
   PÁGINA ADMIN
   ===================================================================== */
.admin {
  padding: 120px 0 100px;
}
.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.admin-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-note {
  background: #fff7e6;
  border: 1px solid rgba(181, 146, 90, 0.35);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 30px;
}
.admin-note code { background: rgba(181, 146, 90, 0.15); padding: 1px 6px; border-radius: 6px; }
.admin-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  align-items: start;
}
.panel {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(181, 146, 90, 0.15);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}
.panel h3 { font-size: 1.5rem; margin-bottom: 14px; }
.cat-list { display: grid; gap: 8px; }
.cat-row {
  display: grid;
  grid-template-columns: 44px 1fr 32px;
  gap: 8px;
  align-items: center;
}
.cat-row input {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(181, 146, 90, 0.3);
  font: inherit;
  width: 100%;
}
.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(181, 146, 90, 0.3);
  background: transparent;
  color: var(--muted);
}
.icon-btn:hover { color: #8a3b2a; border-color: #d7a496; }
.admin-table { display: grid; gap: 12px; }
.admin-row {
  display: grid;
  grid-template-columns: 56px 1.4fr 1fr 110px 90px 1fr 32px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid rgba(181, 146, 90, 0.15);
}
.admin-row.head {
  background: transparent;
  border: 0;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: 0;
}
.admin-row input,
.admin-row select,
.admin-row textarea {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(181, 146, 90, 0.3);
  font: inherit;
  font-size: 0.9rem;
  background: var(--ivory);
}
.admin-row .icon-input { text-align: center; font-size: 1.3rem; padding: 6px; }
.admin-row .stack { display: grid; gap: 6px; }
.admin-row .stack small { font-size: 0.7rem; color: var(--muted); }
.admin-row .cota-info { font-size: 0.72rem; color: var(--muted); }
.json-out {
  width: 100%;
  min-height: 260px;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(181, 146, 90, 0.3);
  background: var(--white);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--ivory);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   RESPONSIVO
   ===================================================================== */
@media (max-width: 1024px) {
  .story { gap: 60px; }
  .admin-row { grid-template-columns: 56px 1fr 1fr 32px; }
  .admin-row.head { display: none; }
  .admin-row > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .admin-row > :nth-child(2) { grid-column: 2 / 4; grid-row: 1; }
  .admin-row > :nth-child(3) { grid-column: 1 / 3; grid-row: 2; }
  .admin-row > :nth-child(4) { grid-column: 3 / 5; grid-row: 2; }
  .admin-row > :nth-child(5) { grid-column: 1 / 3; grid-row: 3; }
  .admin-row > :nth-child(6) { grid-column: 3 / 5; grid-row: 3; }
  .admin-row > :nth-child(7) { grid-column: 4; grid-row: 1; }
  .admin-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    color: var(--ivory);
    flex-direction: column;
    align-items: center;
    padding: 34px 24px 40px;
    gap: 28px;
    font-size: 0.85rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav.open .nav-cta { color: var(--gold-soft); }
  .nav.open { background: var(--ink); color: var(--ivory); }
  .hero-bg { background-position: 62% center; }
  .hero-content { padding: 130px 0 110px; }
  .hero-actions .btn { width: 100%; }
  .scroll-hint { display: none; }
  .countdown-band .container { justify-content: center; text-align: center; }
  .countdown-item { min-width: 70px; padding: 6px; }
  .countdown-item b { font-size: 2.2rem; }
  .section { padding: 80px 0; }
  .story { grid-template-columns: 1fr; gap: 60px; }
  .story-photo { max-width: 340px; }
  .story-photo .badge { left: -14px; width: 96px; height: 96px; }
  .details { grid-template-columns: 1fr; gap: 44px; }
  .details-photo { max-width: 360px; }
  .details-content { text-align: center; }
  .details-content .eyebrow::after { content: ""; width: 36px; height: 1px; background: var(--gold); }
  .details-grid { grid-template-columns: 1fr; }
  .gifts-band { padding: 0 0 60px; background: #14100c; }
  .gifts-band-bg, .gifts-band::after { display: none; }
  .gifts-band-img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: 50% 45%;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  }
  .gifts-card {
    max-width: none;
    margin-top: -60px;
    padding: 30px 22px 34px;
    background: rgba(20, 16, 12, 0.7);
  }
  .page-head { padding-top: 120px; }
  .filters { top: 60px; }
  .filters .container { justify-content: flex-start; }
  .gifts-grid { gap: 18px; }
  .modal-head, .modal-body { padding-inline: 20px; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 32px); }
  .hero-title { font-size: 5.4rem; }
  .hero-date { flex-wrap: wrap; gap: 12px; }
  .countdown-item { min-width: 62px; }
  .countdown-item + .countdown-item::before { display: none; }
  .gifts-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
