/* ============================================================
   RENAN & GIULIA — convite de casamento
   Estética: A24 cinematográfico · old money · moto custom · noir
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  /* base clara — marfim, papel e creme, no lugar do noir */
  --paper: #f6efe7;
  --paper-2: #efe1ce;
  --paper-deep: #e3cfb3;
  --cream: #fbf6ef;
  --cream-dim: rgba(251, 246, 239, 0.6);

  /* tinta — texto escuro sobre fundo claro */
  --ink: #2a1f18;
  --ink-dim: rgba(42, 31, 24, 0.6);

  /* terracota — cor-âncora da paleta */
  --terracotta: #c1502e;
  --terracotta-deep: #8c3a22;
  --clay: #bc6435;
  --ochre: #a8551e;
  --coral: #b5573a;
  --peach: #c97a5c;

  /* neutros quentes — areia e terra, no lugar dos verdes */
  --sand: #9c7a52;
  --umber: #6b4f3a;

  --font-display: 'Bebas Neue', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  /* "mono" mantém o nome por compatibilidade, mas agora é uma sans elegante
     (Jost) no lugar da Space Mono — usada nos labels/etiquetas do site */
  --font-mono: 'Jost', sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

/* ---------- grão de filme global ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 90;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.6s steps(2) infinite;
}
@keyframes grainShift {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-3%, 2%);
  }
  100% {
    transform: translate(2%, -2%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .grain {
    animation: none;
  }
}

/* ---------- tipografia utilitária ---------- */
.label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 400;
}
.serif-it {
  font-style: italic;
}

/* ============================================================
   LAYOUT GERAL DE SEÇÃO
   ============================================================ */
section {
  position: relative;
}
.wrap {
  width: min(1080px, 90vw);
  margin-inline: auto;
}
.center {
  text-align: center;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 1.1s var(--ease),
    transform 1.1s var(--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;
}
.reveal.d4 {
  transition-delay: 0.48s;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  /* o texto fica sobre a foto — usamos tons claros locais para legibilidade,
     sem recair no preto/noir do resto do site */
  --peach: #f6dcc9;
  --ochre: #efaf73;
  --cream: #fbf6ef;
  --cream-dim: rgba(251, 246, 239, 0.66);

  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #5e4836;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('images/hero-pic.jpg') center 52% / cover no-repeat;
  filter: saturate(0.92) contrast(1.02) brightness(0.9);
  transform: scale(1.16); /* corta a borda branca de aquarela da ilustração */
  will-change: transform;
}
.hero__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      50% 46% at 50% 50%,
      rgba(46, 34, 24, 0.46),
      transparent 74%
    ),
    radial-gradient(
      120% 90% at 50% 8%,
      rgba(193, 80, 46, 0.32),
      transparent 55%
    ),
    radial-gradient(
      140% 120% at 50% 118%,
      rgba(246, 239, 231, 0.26),
      transparent 52%
    ),
    linear-gradient(
      180deg,
      rgba(74, 56, 40, 0.32) 0%,
      rgba(74, 56, 40, 0.14) 38%,
      rgba(74, 56, 40, 0.46) 100%
    );
  mix-blend-mode: normal;
}
/* sem faixas pretas de cinema — a moldura agora é a própria curva orgânica do divisor */
.hero__bar {
  display: none;
}

.hero__inner {
  position: relative;
  z-index: 7;
  padding: 0 6vw;
}
.hero__mono {
  width: clamp(170px, 8vw, 104px);
  height: auto;
  margin: 0 auto 0.9em;
  filter: drop-shadow(0 6px 24px rgba(46, 34, 24, 0.5));
  opacity: 0.96;
}
.hero .label {
  color: var(--peach);
}
.hero__eyebrow {
  font-size: 14px;
  color: var(--peach);
}
.hero__date {
  font-family: var(--font-display);
  font-size: clamp(72px, 17vw, 250px);
  line-height: 0.84;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-shadow: 0 4px 60px rgba(74, 56, 40, 0.4);
  margin: 0.14em 0 0.22em;
}
.hero__date .dot {
  color: var(--ochre);
  padding: 0 0.04em;
}
.hero__amp {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--ochre);
}
.hero__names {
  font-family: var(--font-display);
  line-height: 0.84;
  letter-spacing: 0.01em;
  color: var(--cream);
  font-size: clamp(60px, 13vw, 200px);
  text-shadow: 0 4px 50px rgba(74, 56, 40, 0.36);
  margin: 0.08em 0;
}
.hero__names em {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.32em;
  letter-spacing: 0;
  color: var(--ochre);
  line-height: 1;
  margin: 0.05em 0;
}
.hero__sub {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(19px, 2.4vw, 27px);
  color: var(--cream-dim);
  margin-top: 0.6em;
}
.hero__meta {
  display: flex;
  gap: clamp(14px, 4vw, 46px);
  justify-content: center;
  align-items: center;
  margin-top: 0.6em;
  color: var(--peach);
  font-size: 13px;
}
.hero__meta span {
  white-space: nowrap;
}
.hero__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
}

.scrollcue {
  position: absolute;
  bottom: 8.5vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  color: var(--peach);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
@media (max-height: 680px) {
  .scrollcue {
    display: none;
  }
}
.scrollcue .line {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--peach), transparent);
  animation: cueDrop 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cueDrop {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* ============================================================
   SEPARAÇÕES ORGÂNICAS entre seções — curvas vivas, sem cortes secos

   Cada seção recorta sua própria "onda" de entrada com clip-path,
   numa faixa (::before/::after) deslocada para cima e sobreposta
   à seção anterior — sem <div class="divider"> à parte. As formas
   ficam em #wave-N (objectBoundingBox, no <head> do HTML) e esticam
   com a largura da seção, como o antigo viewBox+preserveAspectRatio.
   ============================================================ */
:root {
  --seam: clamp(96px, 16vh, 200px);
}
@media (max-width: 760px) {
  :root {
    --seam: clamp(60px, 10vh, 130px);
  }
}

.story,
.places,
.gifts {
  isolation: isolate;
}
.story > .wrap,
.places > .wrap,
.gifts > .wrap {
  position: relative;
  z-index: 1;
}

/* costura animada (injetada por JS em initSeams): a faixa recebe a cor do
   FIM da seção anterior; sobre ela, 3 camadas de onda preenchidas com a cor
   do INÍCIO desta seção, em opacidades crescentes, derivando na horizontal em
   velocidades/sentidos diferentes — as cristas translúcidas fundem uma cor na
   outra (sem corte seco) e o movimento dá o efeito de água. */
.seam {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--seam) * -1);
  height: var(--seam);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  line-height: 0;
  /* desbota o topo da faixa para ela derreter na seção de cima (sem linha
     reta de corte); embaixo fica opaca e encosta na seção de baixo */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 52%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 52%);
}
.seam__w {
  position: absolute;
  bottom: -1px; /* cobre o hairline e encosta na seção de baixo */
  left: 0;
  width: 200%;
  height: 100%;
  display: block;
  will-change: transform;
  animation-name: seamDrift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.seam__w.rev {
  animation-name: seamDriftRev;
}
@keyframes seamDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}
@keyframes seamDriftRev {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .seam__w {
    animation: none;
    transform: translate3d(-25%, 0, 0);
  }
}

/* ============================================================
   HISTÓRIA
   ============================================================ */
.story {
  background: linear-gradient(
    180deg,
    var(--paper) 0%,
    var(--paper-2) 55%,
    var(--paper-deep) 100%
  );
  padding: 7vh 0 2vh;
}
.story__head {
  text-align: center;
  margin-bottom: 9vh;
}
.story__head .label {
  color: var(--ochre);
}
.story__head h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(38px, 7vw, 84px);
  line-height: 1;
  margin-top: 0.2em;
  color: var(--peach);
}

.chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  margin-bottom: clamp(80px, 16vh, 180px);
}
.chapter:nth-child(even) .chapter__media {
  order: 2;
}
.chapter__year {
  font-family: var(--font-display);
  font-size: clamp(60px, 11vw, 150px);
  line-height: 0.8;
  color: var(--ochre);
  opacity: 0.9;
}
.chapter__text {
  max-width: 42ch;
}
.chapter__text .label {
  color: var(--coral);
  margin-bottom: 1.2em;
  display: block;
}
.chapter__text p {
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
}
.chapter__text .lead {
  font-style: italic;
  color: var(--peach);
}

/* moldura de foto — film still */
.frame {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--paper-deep);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(42, 31, 24, 0.18);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.04) brightness(0.96);
  transition: transform 1.4s var(--ease);
}
.chapter:hover .frame img {
  transform: scale(1.04);
}
.frame__grade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(42, 31, 24, 0.32));
  pointer-events: none;
}
.frame__num {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 3;
  color: var(--cream);
  background: rgba(42, 31, 24, 0.34);
  padding: 3px 10px;
  border-radius: 999px;
}
.frame--wide {
  aspect-ratio: 3/2;
}

/* placeholder de foto */
.frame--ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(42, 31, 24, 0.022) 0 12px,
      transparent 12px 24px
    ),
    radial-gradient(120% 100% at 50% 30%, var(--cream), var(--paper-2));
  border: 1px solid rgba(42, 31, 24, 0.12);
  color: var(--ink-dim);
  text-align: center;
  padding: 24px;
}
.frame--ph .ph-ic {
  width: 46px;
  height: 46px;
  opacity: 0.5;
}
.frame--ph .ph-t {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.frame--ph .ph-s {
  font-style: italic;
  font-size: 17px;
  max-width: 24ch;
}

/* ============================================================
   DATA + COUNTDOWN
   ============================================================ */
.date {
  background:
    radial-gradient(
      120% 80% at 50% 0%,
      rgba(193, 80, 46, 0.14),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      var(--paper-deep) 0%,
      var(--paper-2) 50%,
      #d9bb94 100%
    );
  text-align: center;
  padding: 14vh 0;
}
.date__icon {
  display: block;
  width: clamp(300px, 26vw, 450px);
  height: auto;
  margin: 0 auto 1.6em;
  opacity: 0.92;
}
.date .label {
  color: var(--sand);
}
.date__big {
  font-family: var(--font-display);
  font-size: clamp(80px, 22vw, 340px);
  line-height: 0.82;
  color: var(--terracotta-deep);
  letter-spacing: 0;
  margin: 0.1em 0 0.12em;
  display: flex;
  gap: 0.1em;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  width: 100%;
  text-align: center;
}
.date__big .sep {
  color: var(--clay);
}
.date__line {
  font-style: italic;
  font-weight: 300;
  color: var(--sand);
  font-size: clamp(20px, 2.6vw, 30px);
}

.count {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 5vw, 64px);
  margin-top: 6vh;
}
.count__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.count__n {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1;
  color: var(--terracotta-deep);
  min-width: 1.4em;
}
.count__l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ============================================================
   CERIMÔNIA / FESTA
   ============================================================ */
.places {
  background: linear-gradient(180deg, #e3cfb3 0%, #ddc7a8 50%, #d6bc9e 100%);
  padding: 13vh 0 14vh;
}
.place {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(30px, 5vw, 84px);
  align-items: center;
  margin-bottom: clamp(74px, 14vh, 160px);
}
.place:nth-child(even) .place__map {
  order: -1;
}
.place__info {
  padding: clamp(8px, 2vw, 30px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.place__info .label {
  color: #5e2408;
}
.place__time {
  font-family: var(--font-display);
  font-size: clamp(74px, 12vw, 164px);
  line-height: 0.78;
  color: #6e2a08;
  letter-spacing: 0.01em;
  margin: 0.06em 0 0.04em;
}
.place__time span {
  font-size: 0.5em;
  color: #3a2a14;
}
.place__info h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 70px);
  line-height: 1.02;
  color: var(--ink);
  margin: 0.05em 0 0.4em;
}
.place__rows {
  margin: 0.4em 0 1.4em;
}
.place__row {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid rgba(36, 28, 21, 0.18);
}
.place__row:last-child {
  border-bottom: 1px solid rgba(36, 28, 21, 0.18);
}
.place__row .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5b4a37;
  min-width: 74px;
}
.place__row .v {
  color: #2a2116;
  font-size: 19px;
  line-height: 1.35;
}
.place__row .v b {
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  text-decoration: none;
  align-self: flex-start;
}
.btn:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn--ghost-l {
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.btn--ghost-l:hover {
  background: var(--terracotta);
  color: var(--cream);
}

.place__map {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: 0 30px 70px rgba(42, 31, 24, 0.22);
}
.place__map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  filter: sepia(0.34) saturate(0.85) contrast(0.96) brightness(0.96);
}
.place__map .map-tint {
  position: absolute;
  inset: 0;
  background: rgba(193, 128, 80, 0.12);
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* trajeto entre os dois locais */
.route {
  text-align: center;
  margin: 2vh auto 0;
  color: #2a2116;
}
.route .label {
  color: #5b4a37;
}
.route p {
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 26px);
  max-width: 30ch;
  margin: 0.4em auto 0;
}

/* ============================================================
   TRILHA SONORA — player flutuante + modal da playlist
   ============================================================ */
/* botão flutuante sempre visível */
.player {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(54px, 13vw, 62px);
  height: clamp(54px, 13vw, 62px);
  border-radius: 50%;
  background: var(--terracotta-deep);
  color: var(--cream);
  border: 0;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(140, 58, 34, 0.4);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    background 0.4s var(--ease);
}
.player:hover {
  background: var(--terracotta);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 20px 50px rgba(140, 58, 34, 0.5);
}
/* ícone de ondas de áudio (equalizador) */
.player__eq {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}
.player__eq i {
  display: block;
  width: 3.5px;
  height: 40%;
  border-radius: 999px;
  background: var(--cream);
  animation: eqBar 0.9s ease-in-out infinite;
}
.player__eq i:nth-child(1) {
  animation-delay: -0.2s;
}
.player__eq i:nth-child(2) {
  animation-delay: -0.55s;
}
.player__eq i:nth-child(3) {
  animation-delay: -0.05s;
}
.player__eq i:nth-child(4) {
  animation-delay: -0.7s;
}
@keyframes eqBar {
  0%,
  100% {
    height: 28%;
  }
  50% {
    height: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .player__eq i {
    animation: none;
    height: 64%;
  }
}

/* modal da playlist */
.pl-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  background: rgba(42, 31, 24, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.pl-modal.open {
  display: flex;
  animation: fadeUp 0.4s var(--ease);
}
.pl-modal__box {
  position: relative;
  width: min(680px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper-2) 100%);
  border-radius: clamp(20px, 4vw, 32px);
  padding: clamp(30px, 5vw, 52px);
  box-shadow: 0 50px 120px rgba(42, 31, 24, 0.4);
}
.pl-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(42, 31, 24, 0.06);
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: all 0.3s var(--ease);
}
.pl-modal__close:hover {
  background: var(--terracotta);
  color: var(--cream);
}
.pl-modal__head {
  text-align: center;
  margin-bottom: 3.4vh;
}
.pl-modal__head .label {
  color: var(--clay);
}
.pl-modal__head h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(34px, 6vw, 60px);
  color: var(--ink);
  line-height: 1;
  margin-top: 0.12em;
}
.pl-modal__head .sub {
  color: var(--ink-dim);
  font-style: italic;
  margin-top: 0.5em;
  font-size: clamp(16px, 2.2vw, 20px);
}

/* toast discreto de confirmação — aparece no rodapé com ?familia=ID.
   Só avança quando o convidado clica nele. */
.rsvp-toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 95;
  transform: translate(-50%, 140%);
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(420px, calc(100vw - 32px));
  text-align: left;
  padding: 14px 16px 14px 20px;
  border: 1px solid rgba(251, 246, 239, 0.14);
  border-radius: 999px;
  background: linear-gradient(160deg, var(--terracotta), var(--terracotta-deep));
  color: var(--cream);
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(42, 31, 24, 0.32);
  opacity: 0;
  transition:
    transform 0.5s var(--ease),
    opacity 0.5s var(--ease);
}
.rsvp-toast.in {
  transform: translate(-50%, 0);
  opacity: 1;
}
.rsvp-toast:hover {
  box-shadow: 0 22px 54px rgba(42, 31, 24, 0.4);
}
.rsvp-toast__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex: 1 1 auto;
  min-width: 0;
}
.rsvp-toast__txt strong {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rsvp-toast__txt small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(251, 246, 239, 0.82);
  margin-top: 2px;
}
.rsvp-toast__x {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(251, 246, 239, 0.16);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.rsvp-toast__x:hover {
  background: rgba(251, 246, 239, 0.3);
}
@media (prefers-reduced-motion: reduce) {
  .rsvp-toast {
    transition: opacity 0.4s var(--ease);
    transform: translate(-50%, 0);
  }
}

/* player incorporado do Spotify dentro do modal */
.pl-embed-wrap {
  width: 100%;
}
.pl-embed {
  width: 100%;
  height: min(60vh, 420px);
  border: 0;
  border-radius: 12px;
  display: block;
}
.pl-empty {
  text-align: center;
  font-style: italic;
  color: var(--ink-dim);
  padding: 6vh 0;
}
.noir__cta {
  text-align: center;
  margin-top: 3vh;
}
.btn--noir {
  border-radius: 999px;
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.btn--noir:hover {
  background: var(--terracotta);
  color: var(--cream);
}

/* ============================================================
   PRESENTES
   ============================================================ */
.gifts {
  background: linear-gradient(
    180deg,
    var(--paper-2) 0%,
    var(--cream) 50%,
    var(--paper) 100%
  );
  padding: 13vh 0;
  text-align: center;
}
.gifts .label {
  color: var(--ochre);
}
.gifts h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(38px, 7vw, 84px);
  color: var(--peach);
  line-height: 1;
  margin-top: 0.14em;
}
.gifts__lead {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-dim);
  max-width: 46ch;
  margin: 1.4em auto 0;
  font-size: clamp(19px, 2.3vw, 25px);
}
.gifts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 3vw, 28px);
  margin-top: 7vh;
  text-align: left;
}
.gift {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(42, 31, 24, 0.1);
  padding: clamp(28px, 4.4vw, 46px);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.78),
    rgba(255, 255, 255, 0.34)
  );
  border-radius: clamp(22px, 3.4vw, 34px);
  box-shadow: 0 30px 70px rgba(42, 31, 24, 0.12);
  transition:
    border-color 0.4s var(--ease),
    background 0.4s var(--ease),
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
.gift::before {
  content: '';
  position: absolute;
  right: -30%;
  top: -40%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 80, 46, 0.12), transparent 70%);
  pointer-events: none;
}
.gift:hover {
  border-color: var(--terracotta);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.42)
  );
  transform: translateY(-7px);
  box-shadow: 0 40px 90px rgba(42, 31, 24, 0.16);
}

/* foto do presente — sangra até as bordas do topo do card */
.gift__photo {
  position: relative;
  z-index: 1;
  margin: calc(-1 * clamp(28px, 4.4vw, 46px))
    calc(-1 * clamp(28px, 4.4vw, 46px)) clamp(20px, 3vw, 26px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: clamp(22px, 3.4vw, 34px) clamp(22px, 3.4vw, 34px) 0 0;
}
.gift__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  transition: transform 1s var(--ease);
}
.gift:hover .gift__photo img {
  transform: scale(1.05);
}
.gift__photo--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-dim);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(42, 31, 24, 0.03) 0 12px,
      transparent 12px 24px
    ),
    radial-gradient(120% 100% at 50% 30%, var(--cream), var(--paper-2));
}
.gift__photo--ph span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.gift__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}
.gift h4 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 34px);
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}
.gift__val {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--terracotta-deep);
  white-space: nowrap;
}
.gift p {
  color: var(--ink-dim);
  font-weight: 300;
  font-size: 17px;
  margin: 0.7em 0 0;
}
/* garante respiro mínimo entre o texto e o botão, mesmo no card mais alto
   (onde o margin-top:auto do botão não sobra espaço) */
.gift__head:has(+ .gift__open),
.gift p:has(+ .gift__open) {
  margin-bottom: 1.8em;
}
.gift__open {
  margin-top: auto;
  align-self: stretch;
  width: 100%;
  justify-content: center;
  border-radius: 999px;
  border-color: var(--terracotta);
  background: var(--terracotta);
  color: var(--cream);
  padding-top: 16px;
  padding-bottom: 16px;
}
.gift__open:hover {
  background: var(--terracotta-deep);
  border-color: var(--terracotta-deep);
  color: var(--cream);
}

/* painel que expande dentro do card ao clicar em "Presentear" */
.gift__pay {
  margin-top: 1.5em;
  border-top: 1px solid rgba(42, 31, 24, 0.12);
  padding-top: 1.4em;
  animation: fadeUp 0.5s var(--ease);
}
.gift__pay .field {
  margin-bottom: 16px;
}
.gift__pay label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 9px;
}
.gift__pay textarea.input {
  min-height: 64px;
  font-size: 18px;
}
.gift__methods {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.gift__pix,
.gift__card {
  flex: 1 1 0;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
}
.gift__pix {
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.gift__pix:hover {
  background: var(--terracotta);
  color: var(--cream);
}

/* bloco do Pix copia-e-cola + QR */
.pixbox {
  margin-top: 1.5em;
  text-align: center;
}
.pix-qr {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  width: min(220px, 72%);
}
.pix-qr svg {
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 14px 36px rgba(42, 31, 24, 0.14);
}
.pix-hint {
  font-size: 14px;
  color: var(--ink-dim);
  margin: 1.1em 0 0.7em;
}
.pix-copia {
  display: flex;
  gap: 8px;
  align-items: stretch;
  text-align: left;
}
.pix-code {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink);
  background: rgba(193, 80, 46, 0.06);
  border: 1px solid rgba(193, 80, 46, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  word-break: break-all;
  max-height: 96px;
  overflow: auto;
}
.pix-copybtn {
  white-space: nowrap;
  border-radius: 12px;
  align-self: stretch;
}
.send-err {
  color: var(--terracotta-deep);
  font-size: 14px;
  font-style: italic;
  margin-top: 12px;
}

/* RSVP — saudação da família e estados */
.rsvp-hello {
  font-style: italic;
  color: var(--ink);
  font-size: clamp(20px, 2.6vw, 26px);
  margin-top: 1.8em;
}
.rsvp-hello strong {
  color: var(--terracotta);
  font-weight: 500;
  font-style: normal;
}
.rsvp-saved {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--clay);
  margin-top: 0.9em;
}
.rsvp-msg {
  max-width: 46ch;
  margin: 3vh auto 0;
  font-style: italic;
  color: var(--ink-dim);
  font-size: clamp(19px, 2.3vw, 23px);
}
.guest__label {
  font-size: 19px;
  color: var(--ink);
  font-family: var(--font-serif);
  padding: 8px 4px;
}
.submit.sending {
  opacity: 0.7;
  cursor: progress;
  letter-spacing: 0.08em;
  transform: none;
}

/* ============================================================
   LUA DE MEL — vaquinha (crowdfunding) com mapa de destinos
   ============================================================ */
.lua {
  background: linear-gradient(
    180deg,
    var(--paper) 0%,
    var(--paper-2) 60%,
    var(--cream) 100%
  );
  padding: 13vh 0;
  text-align: center;
}
.lua .label {
  color: var(--ochre);
}
.lua h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(38px, 7vw, 84px);
  color: var(--peach);
  line-height: 1;
  margin-top: 0.14em;
}
.lua__lead {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-dim);
  max-width: 48ch;
  margin: 1.4em auto 0;
  font-size: clamp(19px, 2.3vw, 25px);
}
#luaRoot {
  max-width: 720px;
  margin: 8vh auto 0;
}

/* ---- postal/cartão-postal com a foto do destino ---- */
.lua__postcard {
  position: relative;
  border-radius: clamp(14px, 2.2vw, 20px);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--paper-deep);
  border: clamp(7px, 1.3vw, 12px) solid #fbf6ee;
  box-shadow: 0 40px 90px rgba(42, 31, 24, 0.26);
  outline: 1px solid rgba(42, 31, 24, 0.1);
  outline-offset: calc(-1 * clamp(7px, 1.3vw, 12px));
  transform: rotate(-0.7deg);
  transition:
    transform 0.6s var(--ease),
    box-shadow 0.6s var(--ease);
}
.lua__postcard:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 52px 110px rgba(42, 31, 24, 0.32);
}
.lua__photo-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s var(--ease);
}
.lua__postcard:hover .lua__photo-inner {
  transform: scale(1.05);
}
.lua__photo-inner--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(42, 31, 24, 0.03) 0 12px,
      transparent 12px 24px
    ),
    radial-gradient(120% 100% at 50% 30%, var(--cream), var(--paper-deep));
}
.lua__photo-inner--ph span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.lua__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 3.4em 1.5em 1.3em;
  text-align: left;
  background: linear-gradient(
    0deg,
    rgba(20, 12, 7, 0.82) 8%,
    rgba(20, 12, 7, 0.3) 58%,
    transparent
  );
  color: #fff;
}
.lua__cap-k {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 0.55em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.lua__cap-d {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 6.4vw, 66px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.4);
}
.lua__cap-l {
  display: block;
  font-style: italic;
  font-family: var(--font-serif);
  opacity: 0.92;
  margin-top: 0.25em;
  font-size: clamp(16px, 2.1vw, 21px);
}

/* ---- medidor: figura grande + rota com avião ---- */
.lua__meter {
  margin-top: clamp(40px, 7vh, 76px);
}
.lua__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35em;
  margin-bottom: clamp(28px, 4.6vh, 52px);
}
.lua__raised {
  font-family: var(--font-display);
  font-size: clamp(66px, 13vw, 152px);
  line-height: 0.82;
  letter-spacing: 0.01em;
  background: linear-gradient(
    180deg,
    var(--terracotta) 0%,
    var(--terracotta-deep) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--terracotta-deep);
}
.lua__of {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.5vw, 14px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.lua__of b {
  color: var(--ink);
  font-weight: 600;
}
.lua__sep {
  margin: 0 0.6em;
  color: var(--clay);
  font-style: normal;
}
.lua__pct {
  color: var(--terracotta);
  font-weight: 600;
}

.lua__route {
  position: relative;
  padding: 0 4px;
}
.lua__track {
  position: relative;
  height: clamp(16px, 2.4vw, 22px);
  border-radius: 999px;
  background:
    repeating-linear-gradient(
        90deg,
        rgba(42, 31, 24, 0.16) 0 7px,
        transparent 7px 16px
      )
      center / 100% 2px no-repeat,
    rgba(42, 31, 24, 0.08);
  box-shadow: inset 0 2px 5px rgba(42, 31, 24, 0.16);
  overflow: hidden;
}
.lua__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--ochre),
    var(--terracotta) 70%,
    var(--terracotta-deep)
  );
  box-shadow: 0 0 22px rgba(193, 80, 46, 0.5);
  transition: width 1.3s var(--ease);
}
.lua__fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: translateX(-100%);
  animation: luaSheen 3.4s var(--ease) infinite;
}
@keyframes luaSheen {
  0% {
    transform: translateX(-100%);
  }
  55%,
  100% {
    transform: translateX(240%);
  }
}
.lua__plane {
  position: absolute;
  top: clamp(8px, 1.2vw, 11px);
  left: 0;
  transform: translate(-50%, -50%);
  width: clamp(38px, 6vw, 48px);
  height: clamp(38px, 6vw, 48px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fbf6ee;
  color: var(--terracotta-deep);
  box-shadow:
    0 8px 22px rgba(140, 58, 34, 0.4),
    0 0 0 4px rgba(193, 80, 46, 0.14);
  z-index: 3;
  transition: left 1.3s var(--ease);
  animation: luaBob 2.6s ease-in-out infinite;
}
.lua__plane svg {
  width: 56%;
  height: 56%;
  transform: rotate(-45deg);
}
@keyframes luaBob {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: -4px;
  }
}
.lua__stops {
  position: relative;
  height: 66px;
  margin-top: 18px;
}
.lua__stop {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: max-content;
}
.lua__stop:first-child {
  transform: translateX(0);
  align-items: flex-start;
}
.lua__stop:last-child {
  transform: translateX(-100%);
  align-items: flex-end;
}
.lua__pin {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid rgba(42, 31, 24, 0.22);
  transition: all 0.45s var(--ease);
}
.lua__stop.is-on .lua__pin {
  border-color: var(--terracotta);
  background: var(--terracotta);
  box-shadow: 0 0 0 5px rgba(193, 80, 46, 0.16);
}
.lua__stop-d {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.4s var(--ease);
}
.lua__stop.is-on .lua__stop-d {
  color: var(--terracotta-deep);
  font-weight: 600;
}
.lua__stop-v {
  font-size: 11px;
  color: var(--clay);
}
.lua__status {
  margin: clamp(20px, 3.5vh, 32px) auto 0;
  color: var(--ink-dim);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 23px);
  max-width: 50ch;
}
.lua__status strong {
  color: var(--terracotta-deep);
  font-weight: 600;
  font-style: normal;
}
.lua__open {
  margin-top: 2em;
  border-radius: 999px;
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.lua__open:hover {
  background: var(--terracotta);
  color: var(--cream);
}
.lua__panel {
  margin-top: 2.4em;
  animation: fadeUp 0.5s var(--ease);
}
.lua__panel-lead {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.2em;
}
.lua__cotas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}
.lua__cota {
  justify-content: center;
  border-radius: 999px;
  border-color: rgba(42, 31, 24, 0.25);
}
.lua__cota:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.lua__cota.is-sel {
  background: var(--terracotta);
  color: var(--cream);
  border-color: var(--terracotta);
}
.lua__panel .pixbox {
  max-width: 520px;
  margin: 2em auto 0;
}
@media (max-width: 760px) {
  .lua__stop-v {
    display: none;
  }
  .lua__stop-d {
    font-size: 9px;
    letter-spacing: 0.06em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lua__plane {
    animation: none;
  }
  .lua__fill::after {
    animation: none;
    display: none;
  }
}

/* ============================================================
   RSVP
   ============================================================ */
.rsvp {
  background: linear-gradient(
    180deg,
    var(--paper) 0%,
    var(--paper-2) 50%,
    var(--cream) 100%
  );
  padding: 13vh 0 4vh;
  text-align: center;
}
.rsvp .label {
  color: var(--ochre);
}
.rsvp h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 8vw, 92px);
  color: var(--peach);
  line-height: 1;
  margin-top: 0.12em;
}
.rsvp__lead {
  font-style: italic;
  color: var(--ink-dim);
  max-width: 40ch;
  margin: 1.2em auto 0;
  font-size: clamp(19px, 2.3vw, 25px);
}
.rsvp__deadline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--coral);
  margin-top: 1.6em;
}

.form {
  width: min(640px, 92vw);
  margin: 7vh auto 0;
  text-align: left;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.78),
    rgba(255, 255, 255, 0.4)
  );
  border: 1px solid rgba(42, 31, 24, 0.1);
  border-radius: clamp(24px, 4.4vw, 38px);
  padding: clamp(28px, 5.2vw, 54px);
  box-shadow: 0 40px 100px rgba(42, 31, 24, 0.14);
}
.field {
  margin-bottom: 26px;
}
.field:last-of-type {
  margin-bottom: 0;
}
.field > label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 11px;
}
.input {
  width: 100%;
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid rgba(42, 31, 24, 0.16);
  border-radius: 16px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 21px;
  padding: 14px 18px;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.input::placeholder {
  color: rgba(42, 31, 24, 0.34);
  font-style: italic;
}
.input:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(193, 80, 46, 0.14);
}
textarea.input {
  resize: vertical;
  min-height: 92px;
  line-height: 1.5;
}

.guest {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(42, 31, 24, 0.08);
  border-radius: 16px;
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.guest:hover {
  border-color: rgba(42, 31, 24, 0.16);
  background: rgba(255, 255, 255, 0.62);
}
.guest__name {
  font-size: 19px;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  padding: 8px 4px;
  width: 100%;
}
.guest__name::placeholder {
  color: rgba(42, 31, 24, 0.36);
  font-style: italic;
}
.guest__name:focus {
  outline: none;
  box-shadow: none;
  border-color: transparent;
}
.toggle {
  display: inline-flex;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(42, 31, 24, 0.16);
}
.toggle button {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 16px;
  background: transparent;
  color: var(--ink-dim);
  border: 0;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.toggle button.on-yes {
  background: var(--terracotta);
  color: var(--cream);
}
.toggle button.on-no {
  background: var(--umber);
  color: var(--cream);
}
.guest__rm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(42, 31, 24, 0.06);
  border: 0;
  color: rgba(42, 31, 24, 0.4);
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
  transition: all 0.3s var(--ease);
}
.guest__rm:hover {
  color: var(--cream);
  background: var(--terracotta-deep);
}

.addguest {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px dashed rgba(42, 31, 24, 0.28);
  border-radius: 999px;
  color: var(--clay);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 11px 22px;
  margin-top: 8px;
  transition: all 0.3s var(--ease);
}
.addguest:hover {
  color: var(--cream);
  border-color: var(--terracotta);
  border-style: solid;
  background: rgba(193, 80, 46, 0.14);
}

.submit {
  width: 100%;
  margin-top: 32px;
  padding: 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.08em;
  background: var(--terracotta);
  color: var(--cream);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 22px 60px rgba(193, 80, 46, 0.28);
  transition: all 0.4s var(--ease);
}
.submit:hover {
  background: var(--terracotta-deep);
  letter-spacing: 0.16em;
  transform: translateY(-2px);
  box-shadow: 0 26px 70px rgba(140, 58, 34, 0.34);
}

.thanks {
  display: none;
  text-align: center;
  padding: 4vh 0;
}
.thanks.show {
  display: block;
  animation: fadeUp 1s var(--ease);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.thanks .mark {
  font-family: var(--font-display);
  font-size: clamp(44px, 9vw, 90px);
  color: var(--ochre);
  line-height: 0.9;
}
.thanks p {
  font-style: italic;
  color: var(--ink-dim);
  margin-top: 1em;
  font-size: 22px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  background: var(--cream);
  text-align: center;
  padding: 12vh 0 9vh;
  border-top: 1px solid rgba(42, 31, 24, 0.1);
}
.foot__icon {
  display: block;
  width: clamp(120px, 18vw, 188px);
  height: auto;
  margin: 0 auto 2.2em;
  opacity: 0.9;
}
.foot .amp {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ochre);
  font-size: clamp(40px, 8vw, 90px);
}
.foot__names {
  font-family: var(--font-display);
  font-size: clamp(40px, 9vw, 110px);
  color: var(--ink);
  line-height: 0.9;
  letter-spacing: 0.02em;
}
.foot .label {
  color: var(--ink-dim);
  margin-top: 2.4em;
}
.foot__date {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--coral);
  margin-top: 1em;
}

/* ============================================================
   BOTÃO VOLTAR AO INÍCIO
   ============================================================ */
.back-top {
  position: fixed;
  left: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 79;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(54px, 13vw, 62px);
  height: clamp(54px, 13vw, 62px);
  border-radius: 50%;
  background: var(--terracotta-deep);
  color: var(--cream);
  border: 0;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(140, 58, 34, 0.4);
  opacity: 0;
  transition:
    opacity 0.45s var(--ease),
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  pointer-events: none;
}
.back-top svg {
  width: 24px;
  height: 24px;
}
.back-top.visible {
  opacity: 1;
  pointer-events: auto;
  animation: backTopBounce 2.4s ease-in-out 0.5s infinite;
}
.back-top:hover {
  background: var(--terracotta);
  box-shadow: 0 22px 52px rgba(140, 58, 34, 0.52);
  animation-play-state: paused;
}
@keyframes backTopBounce {
  0%, 55%, 100% { transform: translateY(0); }
  25%           { transform: translateY(-13px); }
  40%           { transform: translateY(-4px); }
  70%           { transform: translateY(-8px); }
  85%           { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .back-top.visible {
    animation: none;
  }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 760px) {
  body {
    font-size: 18px;
  }
  .chapter {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .chapter:nth-child(even) .chapter__media {
    order: 0;
  }
  .chapter__year {
    font-size: clamp(54px, 18vw, 90px);
  }
  .place {
    grid-template-columns: 1fr;
  }
  .place:nth-child(even) .place__map {
    order: 0;
  }
  .place__map {
    min-height: 260px;
  }
  .gifts__grid {
    grid-template-columns: 1fr;
  }
  .guest {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }
  .guest__label {
    text-align: center;
    font-size: 20px;
  }
  .toggle {
    width: 100%;
  }
  .toggle button {
    flex: 1 1 0;
    padding: 12px 8px;
    font-size: 12px;
  }
  .gift__methods {
    flex-direction: column;
  }
  .pix-qr {
    width: min(200px, 80%);
  }
  .hero__meta {
    flex-direction: column;
    gap: 10px;
  }
  .hero__meta .hero__dot {
    display: none;
  }
}
