/* ===== FONTES LOCAIS (idênticas ao original, sem CDN) ===== */
/* Cormorant Garamond — normal 400/600 (arquivo variável) + itálico 500 */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-italic.woff2') format('woff2');
}
/* Poppins — 300, 400, 500, 600 */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/poppins-300.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600.woff2') format('woff2'); }

/* ===== TEMA: elegante com humor — rosé + verde-oliva ===== */
:root {
  --rose:      #c98b7a;   /* rosé queimado */
  --rose-soft: #f3e3dd;
  --olive:     #5a5f43;   /* verde-oliva */
  --olive-dk:  #3f432f;
  --cream:     #faf6f1;
  --ink:       #2c2a28;
  --gold:      #b8915a;
  --shadow:    0 14px 40px rgba(63, 67, 47, .12);
  --radius:    18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, .hero__title, .footer__names {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
}

em { color: var(--rose); font-style: italic; }
strong { color: var(--olive-dk); font-weight: 600; }

/* ===== BOTÕES ===== */
.btn {
  display: inline-block;
  background: var(--olive);
  color: var(--cream);
  text-decoration: none;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: 0 6px 18px rgba(90, 95, 67, .25);
}
.btn:hover { background: var(--olive-dk); transform: translateY(-2px); }
.btn:focus-visible,
.filtro:focus-visible,
.nav__links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.btn--ghost {
  background: transparent;
  color: var(--olive-dk);
  border: 1.5px solid var(--olive);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--olive); color: var(--cream); }
.btn--mini { padding: .55rem 1.1rem; font-size: .85rem; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 6vw;
  background: rgba(250, 246, 241, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rose-soft);
}
.nav__logo {
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem; font-weight: 600;
  color: var(--olive-dk); text-decoration: none; letter-spacing: .05em;
}
.nav__logo span { color: var(--rose); font-style: italic; }
.nav__links { display: flex; gap: 1.8rem; }
.nav__links a {
  color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 400;
  position: relative;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--rose); transition: width .2s;
}
.nav__links a:hover::after { width: 100%; }

/* ===== HERO ===== */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
  padding: 5rem 6vw 4rem;
  background:
    radial-gradient(circle at 80% 20%, var(--rose-soft), transparent 55%),
    var(--cream);
}
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: .72rem;
  color: var(--rose); font-weight: 600; margin-bottom: 1rem;
}
.hero__title { font-size: clamp(3rem, 8vw, 6rem); color: var(--olive-dk); }
.hero__title span { color: var(--rose); font-style: italic; }
/* usa o glifo italic real da Cormorant (swash do "&"), sem itálico sintético */
.hero__title span, .footer__names span, .nav__logo span,
em, .section-title span { font-synthesis: none; }
.hero__date {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.5rem; color: var(--gold); margin: .3rem 0 1.5rem;
}
.hero__lead { max-width: 46ch; font-size: 1.02rem; color: #5c574f; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

.hero__photo { position: relative; }
.hero__frame {
  position: relative;
  border-radius: var(--radius);
  padding: 10px;
  background: linear-gradient(145deg, var(--gold), var(--rose));
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: revealUp 1s ease both;
}
.hero__frame::after {
  /* brilho elegante que cruza a foto */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.45) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: sheen 5.5s ease-in-out 1.2s infinite;
  pointer-events: none;
}
.hero__frame img {
  width: 100%; display: block;
  border-radius: calc(var(--radius) - 6px);
  aspect-ratio: 4 / 5; object-fit: cover;
  /* "tratamento" de pele: suaviza textura/imperfeições sem perder o rosto */
  filter: brightness(1.04) contrast(1.02) saturate(1.04);
  transition: transform 6s ease;
  animation: kenburns 14s ease-in-out infinite alternate;
}
.hero__photo:hover .hero__frame img { transform: scale(1.04); }
/* vinheta + textura de foto antiga sobre a imagem */
.hero__frame::before {
  content: ""; position: absolute; inset: 10px; z-index: 2;
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 64%, rgba(60, 40, 20, .28) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.022) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

@keyframes revealUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes sheen { 0%, 100% { transform: translateX(-120%); } 55%, 70% { transform: translateX(120%); } }
.hero__sticker {
  position: absolute; bottom: -16px; left: -16px;
  background: var(--rose); color: var(--cream);
  font-size: .85rem; padding: .5rem 1rem; border-radius: 999px;
  transform: rotate(-6deg); box-shadow: var(--shadow);
}

/* ===== COUNTDOWN ===== */
.countdown { display: flex; gap: .8rem; margin-top: 2.5rem; }
.countdown__box {
  background: #fff; border-radius: 14px; padding: .8rem 1.1rem;
  text-align: center; min-width: 64px; box-shadow: var(--shadow);
}
.countdown__box strong {
  display: block; font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem; color: var(--olive-dk); line-height: 1;
}
.countdown__box span {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--rose);
}

/* ===== SECTION TITLES ===== */
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--olive-dk); margin-bottom: 1.5rem; }
.section-title span { color: var(--rose); font-style: italic; font-weight: 500; }
.section-title--center { text-align: center; margin: 0 auto 2.5rem; max-width: 22ch; }

/* ===== HISTÓRIA ===== */
.historia {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  padding: 5rem 6vw;
}
.historia__text p { margin-bottom: 1rem; color: #5c574f; }
.historia__assinatura {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.3rem; color: var(--gold); margin-top: 1.5rem;
}
/* ===== MOSAICO POLAROID ===== */
.polaroids {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: .4rem; padding: 1rem 0;
}
.polaroid {
  background: #fff; padding: 10px 10px 38px;
  border-radius: 4px; box-shadow: 0 10px 26px rgba(63, 67, 47, .18);
  width: 46%; max-width: 200px; margin: 0;
  transition: transform .25s ease, box-shadow .25s ease, z-index 0s;
  position: relative;
}
.polaroid img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  border-radius: 2px;
}
/* fita washi no topo de cada polaroid — toque de scrapbook */
.polaroid::before {
  content: ""; position: absolute; top: -9px; left: 50%;
  width: 52px; height: 18px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(201, 139, 122, .42);
  border-left: 1px dashed rgba(255,255,255,.5); border-right: 1px dashed rgba(255,255,255,.5);
  box-shadow: 0 1px 2px rgba(63,67,47,.12); pointer-events: none;
}
.polaroid figcaption {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  text-align: center; color: var(--ink); font-size: 1.05rem;
  margin-top: 8px;
}
/* inclinações alternadas pra ficar espalhado */
.polaroid:nth-child(1) { transform: rotate(-5deg); }
.polaroid:nth-child(2) { transform: rotate(4deg); margin-top: 1.5rem; }
.polaroid:nth-child(3) { transform: rotate(-3deg); margin-top: -.5rem; }
.polaroid:nth-child(4) { transform: rotate(6deg); }
.polaroid:nth-child(5) { transform: rotate(-2deg); margin-top: -1rem; }
.polaroid:hover {
  transform: rotate(0) scale(1.07); z-index: 5;
  box-shadow: 0 18px 40px rgba(63, 67, 47, .28);
}

/* ===== COMO FUNCIONA ===== */
.como { padding: 4rem 6vw; background: var(--olive); color: var(--cream); }
.como .section-title { color: var(--cream); }
.como .section-title span { color: var(--rose-soft); }
.como__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.como__card {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius); padding: 2rem 1.6rem; text-align: center;
}
.como__num {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--rose); color: #fff;
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; margin-bottom: 1rem;
}
.como__card h3 { font-size: 1.5rem; margin-bottom: .5rem; color: var(--cream); }
.como__card p { font-size: .92rem; opacity: .9; }

/* ===== PRESENTES ===== */
.presentes { padding: 5rem 6vw; }
.filtros { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.5rem; }
.filtro {
  background: #fff; border: 1.5px solid var(--rose-soft);
  color: var(--ink); padding: .5rem 1.1rem; border-radius: 999px;
  font-family: 'Poppins', sans-serif; font-size: .85rem; cursor: pointer;
  transition: all .18s;
}
.filtro:hover { border-color: var(--rose); }
.filtro.is-active { background: var(--rose); color: #fff; border-color: var(--rose); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.6rem; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--rose-soft);
  box-shadow: 0 22px 48px rgba(184, 145, 90, .22);
}
.card__img {
  height: 170px; display: grid; place-items: center; font-size: 3.4rem;
  background: linear-gradient(135deg, var(--rose-soft), #fff);
}

/* ===== CENA ANIMADA DO CASAL (cada animação remete ao presente) ===== */
.scene {
  position: relative; aspect-ratio: 334 / 358; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--rose-soft), #fff);
}
.scene__art {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  object-fit: cover;
  animation: none !important;
  transform: none !important;
}
/* MODO EMOJI: emoji grande central animado */
.scene__big {
  position: relative; z-index: 2; font-size: 4.2rem; line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(63,67,47,.2));
}
/* MODO STICKER: figura transparente central animada */
.scene__sticker {
  position: relative; z-index: 2;
  align-self: center; justify-self: center; margin: 0;
  width: auto; height: auto;
  max-width: 92%; max-height: 184px;
  object-fit: contain; object-position: center;
  opacity: 1;
  filter: none;
}
/* FOTO enviada (jpg): preenche o card inteiro (cover) */
.scene__sticker--foto {
  width: 100% !important; height: 100% !important;
  max-width: none !important; max-height: none !important;
  object-fit: cover !important; padding: 0 !important;
}
/* sem moldura/borda nos stickers (PNG transparente) */
.scene__sticker.is-framed {
  align-self: center; margin-top: 0;
  height: 88%; max-width: 92%;
  border-radius: 0;
  box-shadow: none;
  filter: none;
}
/* emojis do presente flutuando ao fundo */
.scene__fx {
  position: absolute; z-index: 1; font-size: 1.3rem; opacity: 0; bottom: 8px;
  animation: floatUp 3.4s ease-in-out infinite;
}
.scene__fx.fx1 { left: 22%; animation-delay: 0s; }
.scene__fx.fx2 { left: 50%; animation-delay: 1.1s; }
.scene__fx.fx3 { left: 74%; animation-delay: 2.2s; }
@keyframes floatUp {
  0%   { opacity: 0; transform: translateY(10px) scale(.7); }
  20%  { opacity: .9; }
  80%  { opacity: .9; }
  100% { opacity: 0; transform: translateY(-90px) scale(1.05); }
}
/* --- BOB: balanço suave (café, cachorro) --- */
.scene--bob .anim-el { animation: a-bob 2.6s ease-in-out infinite; }
@keyframes a-bob { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-9px) rotate(1.5deg); } }

/* --- SHAKE: tremedeira de raiva (montar móvel) --- */
.scene--shake .anim-el { animation: a-shake .35s linear infinite; }
@keyframes a-shake {
  0%,100% { transform: translate(0,0) rotate(0); }
  25% { transform: translate(-3px,1px) rotate(-2.5deg); }
  50% { transform: translate(3px,-1px) rotate(2.5deg); }
  75% { transform: translate(-2px,0) rotate(-1.5deg); }
}

/* --- ZEN: respiração calma (sem sogra, terapia) --- */
.scene--zen .anim-el { animation: a-zen 4s ease-in-out infinite; }
@keyframes a-zen { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.scene--zen { background: linear-gradient(135deg, #e7eddb, #fff); }

/* --- CRY: soluço tremido (choro no altar) --- */
.scene--cry .anim-el { animation: a-sob 1.1s ease-in-out infinite; }
@keyframes a-sob {
  0%,100% { transform: translateY(0) rotate(0); }
  20% { transform: translateY(-3px) rotate(-2deg); }
  40% { transform: translateY(1px) rotate(2deg); }
  60% { transform: translateY(-2px) rotate(-1deg); }
}

/* --- WIGGLE: dança de festa (cerveja, open bar) --- */
.scene--wiggle .anim-el { animation: a-wiggle .7s ease-in-out infinite; }
@keyframes a-wiggle {
  0%,100% { transform: rotate(-3deg) scale(1.02); }
  50% { transform: rotate(3deg) scale(1.04); }
}
.scene--wiggle .scene__fx { animation-duration: 1.8s; }

/* --- ZOOM: disparada pra fugir (combustível) --- */
.scene--zoom .anim-el { animation: a-zoom 1.7s ease-in-out infinite; }
@keyframes a-zoom {
  0% { transform: translateX(-12px) scale(1.02); }
  55% { transform: translateX(8px) scale(1.05); }
  100% { transform: translateX(-12px) scale(1.02); }
}
.scene--zoom .scene__fx { animation: streak 1s linear infinite; }
@keyframes streak {
  0% { opacity: 0; transform: translateX(40px); }
  30% { opacity: .9; }
  100% { opacity: 0; transform: translateX(-70px); }
}

/* --- KISS: batida de coração apaixonado (lua de mel, sumir) --- */
.scene--kiss .anim-el { animation: a-kiss 1.3s ease-in-out infinite; }
@keyframes a-kiss { 0%,100% { transform: scale(1); } 15% { transform: scale(1.07); } 30% { transform: scale(1); } 45% { transform: scale(1.07); } }

/* --- PULSE: cha-ching do dinheiro (paguei o buffet) --- */
.scene--pulse .anim-el { animation: a-pulse 1s ease-in-out infinite; }
@keyframes a-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06) rotate(1.5deg); } }
/* movimentos extras */
.scene--swing .anim-el { transform-origin: top center; animation: a-swing 2.2s ease-in-out infinite; }
@keyframes a-swing { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.scene--spin .anim-el { animation: a-spin 3.4s linear infinite; }
@keyframes a-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.scene--jelly .anim-el { animation: a-jelly 1.6s ease-in-out infinite; }
@keyframes a-jelly { 0%,100% { transform: scale(1,1); } 30% { transform: scale(1.12,.88); } 50% { transform: scale(.9,1.1); } 70% { transform: scale(1.05,.95); } }
.scene--tada .anim-el { animation: a-tada 2s ease-in-out infinite; }
@keyframes a-tada { 0%,100% { transform: scale(1) rotate(0); } 10%,20% { transform: scale(.93) rotate(-5deg); } 30%,50%,70%,90% { transform: scale(1.1) rotate(5deg); } 40%,60%,80% { transform: scale(1.1) rotate(-5deg); } }
.scene--bounce .anim-el { animation: a-bounce 1.7s cubic-bezier(.28,.84,.42,1) infinite; }
@keyframes a-bounce { 0%,100% { transform: translateY(0); } 30% { transform: translateY(-22px); } 50% { transform: translateY(0); } 65% { transform: translateY(-10px); } 80% { transform: translateY(0); } }
.scene--drift .anim-el { animation: a-drift 3s ease-in-out infinite; }
.scene--estatico .anim-el { animation: none; }
.scene--flip .anim-el { animation: a-flip 3s ease-in-out infinite; }
@keyframes a-flip { 0%,100% { transform: perspective(420px) rotateY(0); } 50% { transform: perspective(420px) rotateY(180deg); } }
.scene--heartbeat .anim-el { animation: a-heartbeat 1.4s ease-in-out infinite; }
@keyframes a-heartbeat { 0%,40%,100% { transform: scale(1); } 12% { transform: scale(1.16); } 24% { transform: scale(1); } 32% { transform: scale(1.12); } }
.scene--wobble .anim-el { animation: a-wobble 1.8s ease-in-out infinite; }
@keyframes a-wobble { 0%,100% { transform: translateX(0) rotate(0); } 15% { transform: translateX(-8px) rotate(-5deg); } 30% { transform: translateX(6px) rotate(4deg); } 45% { transform: translateX(-5px) rotate(-3deg); } 60% { transform: translateX(4px) rotate(2deg); } 75% { transform: translateX(-2px) rotate(-1deg); } }
.scene--rubber .anim-el { animation: a-rubber 1.6s ease-in-out infinite; }
@keyframes a-rubber { 0%,100% { transform: scale(1,1); } 30% { transform: scale(1.25,.75); } 45% { transform: scale(.8,1.2); } 60% { transform: scale(1.1,.9); } 75% { transform: scale(.97,1.03); } }
.scene--orbit .anim-el { animation: a-orbit 3s linear infinite; }
@keyframes a-orbit { 0% { transform: translate(6px,0); } 25% { transform: translate(0,6px); } 50% { transform: translate(-6px,0); } 75% { transform: translate(0,-6px); } 100% { transform: translate(6px,0); } }
.scene--vibrate .anim-el { animation: a-vibrate .25s linear infinite; }
@keyframes a-vibrate { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-1.5px,1px); } 40% { transform: translate(1.5px,-1px); } 60% { transform: translate(-1px,1px); } 80% { transform: translate(1px,-1px); } }
@keyframes a-drift { 0%,100% { transform: translateX(-10px) rotate(-2deg); } 50% { transform: translateX(10px) rotate(2deg); } }
.scene--pulse { background: linear-gradient(135deg, #e9e2c4, #fff); }
.scene--pulse .scene__fx { animation-duration: 1.6s; font-size: 1.5rem; }

/* respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .scene__big, .scene__fx { animation: none !important; }
  .scene__fx { opacity: .85; }
}
.card__body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__nome { font-size: 1.45rem; line-height: 1.15; color: var(--olive-dk); margin-bottom: .4rem; }
.card__desc { font-size: .88rem; color: #6b6459; flex: 1; margin-bottom: 1.1rem; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.card__preco { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--rose); font-weight: 600; }

/* ===== CARD DE VALOR LIVRE ===== */
.card--custom .scene { background: linear-gradient(135deg, #f6ebd9, #fff); }
/* campo de valor (reutilizado no modal) */
.card__custom-row {
  display: flex; align-items: center; gap: .5rem;
  border: 1.5px solid var(--rose-soft); border-radius: 12px;
  padding: .5rem .8rem; background: #fff;
}
.card__custom-row:focus-within { border-color: var(--gold); }
.card__cifrao { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--rose); font-weight: 600; }
.card__valor-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600;
  color: var(--olive-dk); width: 100%;
}
.card__custom-hint { font-size: .74rem; color: #8a8275; }

/* ===== MODO EMOJI: cards no tamanho original ===== */
.emoji-mode .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.6rem; }
.emoji-mode .scene { aspect-ratio: auto; height: 170px; }

/* ===== MODO STICKER: cards no tamanho original ===== */
.sticker-mode .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.6rem; }
.sticker-mode .scene { aspect-ratio: auto; height: 200px; }
/* foto enviada (jpg): caixa 4:3 idêntica ao recorte do painel → enquadramento exato */
.scene:has(.scene__sticker--foto) { aspect-ratio: 4 / 3; height: auto; }
.emoji-mode .card__body { padding: 1.3rem 1.3rem 1.5rem; }
.emoji-mode .card__nome { font-size: 1.45rem; }
.emoji-mode .card__desc { font-size: .88rem; margin-bottom: 1.1rem; }
.emoji-mode .card__foot { gap: .6rem; }
.emoji-mode .card__preco { font-size: 1.6rem; }
.emoji-mode .scene__big { font-size: 5.4rem; }

/* ===== FAQ ===== */
.faq { padding: 4rem 6vw 5rem; max-width: 820px; margin: 0 auto; }
.faq__list { display: flex; flex-direction: column; gap: .8rem; }
.faq details {
  background: #fff; border-radius: 14px; padding: 1rem 1.4rem;
  box-shadow: 0 6px 18px rgba(63, 67, 47, .06); cursor: pointer;
}
.faq summary {
  font-weight: 500; color: var(--olive-dk); list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after { content: '+'; color: var(--rose); font-size: 1.4rem; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: .8rem; font-size: .92rem; color: #6b6459; }

/* ===== FOOTER ===== */
.footer { background: var(--olive-dk); color: var(--cream); text-align: center; padding: 3.5rem 6vw; }
.footer__names { font-size: 2.6rem; }
.footer__names span { color: var(--rose); font-style: italic; }
.footer__date { letter-spacing: .3em; color: var(--rose-soft); margin: .3rem 0 1rem; }
.footer__small { font-size: .85rem; opacity: .7; }

/* ===== MODAL ===== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(44, 42, 40, .6); backdrop-filter: blur(4px);
  display: none; place-items: center; padding: 1.5rem;
}
.modal.is-open { display: grid; }
.modal__box {
  background: var(--cream); border-radius: 20px; padding: 2.5rem 2rem 2rem;
  max-width: 400px; width: 100%; text-align: center; position: relative;
  box-shadow: var(--shadow); animation: pop .25s ease;
}
/* Etapa de pagamento precisa de mais largura (telefone com máscara, 3 colunas). */
.modal__box:has(.modal__pagar:not([hidden])) { max-width: 480px; }
/* Atributo hidden vence o display de .btn (evita o "Combinado!" vazar na etapa de dados). */
.modal__ok[hidden] { display: none !important; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal__close {
  position: absolute; top: .8rem; right: 1rem;
  background: none; border: none; font-size: 1.8rem; color: var(--ink); cursor: pointer; line-height: 1;
}
.modal__emoji { font-size: 3rem; }
.modal__box h3 { font-size: 1.8rem; color: var(--olive-dk); margin: .3rem 0; }
.modal__nome { color: var(--ink); font-weight: 500; }
.modal__valor { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; color: var(--rose); margin: .4rem 0 1rem; }
.modal__instrucao { font-size: .85rem; color: #6b6459; margin-bottom: 1.5rem; }
.modal__ok { width: 100%; }

/* etapa de valor livre dentro do modal */
.modal__valor-edit { display: flex; flex-direction: column; gap: .7rem; margin: .4rem 0 .5rem; text-align: left; }
/* respeita o atributo hidden (só o card custom 'generosidade' mostra o campo de valor) */
.modal__valor-edit[hidden] { display: none !important; }
.modal__valor-edit .card__custom-row { padding: .7rem 1rem; }
.modal__valor-edit .card__valor-input { font-size: 1.9rem; text-align: center; }
.modal__valor-edit .card__custom-hint { text-align: center; }
.modal__valor-edit .modal__ok { margin-top: .3rem; }

/* ===== RESPONSIVO ===== */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .hero, .historia { grid-template-columns: 1fr; }
  .hero__photo { order: -1; }
  .como__grid { grid-template-columns: 1fr; }
}

/* ===== CONFIRMAR PRESENÇA (RSVP) ===== */
.rsvp {
  max-width: 620px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.rsvp__lead {
  text-align: center;
  color: var(--olive-dk);
  margin: -1rem 0 2rem;
}
.rsvp__form {
  display: grid;
  gap: 1.2rem;
  background: var(--cream);
  border: 1px solid var(--rose-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.rsvp__campo { display: grid; gap: .4rem; }
.rsvp__campo > span,
.rsvp__campo legend {
  font-size: .9rem;
  font-weight: 500;
  color: var(--olive-dk);
}
.rsvp__campo input[type="text"],
.rsvp__campo input[type="number"],
.rsvp__campo textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1.5px solid var(--rose-soft);
  border-radius: calc(var(--radius) - 8px);
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.rsvp__campo input:focus,
.rsvp__campo textarea:focus {
  outline: none;
  border-color: var(--rose);
}
.rsvp__campo textarea { resize: vertical; }
.rsvp__opcoes { border: none; }
.rsvp__opcoes label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-right: 1.5rem;
  font-weight: 400;
  cursor: pointer;
}
.rsvp__form .btn { justify-self: start; border: none; cursor: pointer; }
.rsvp__msg {
  min-height: 1.2em;
  font-size: .95rem;
  color: var(--olive-dk);
}

/* utilitário de ocultação (filtro de cards, campo de acompanhantes do RSVP) */
.is-hidden { display: none !important; }

/* ===== PRESENTE JÁ PRESENTEADO ===== */
.card__pago {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: .8rem;
  font-weight: 500;
  color: var(--rose);
  background: var(--rose-soft);
  padding: .35rem .8rem;
  border-radius: 999px;
}

/* ===== HOME (landing) — complementa o tema (origem: index2.css) ===== */

/* local sob a data do hero */
.hero__local {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.2rem; color: var(--gold); margin: -.8rem 0 1.4rem;
}

/* local sob a timeline de horários */
.horarios__local {
  text-align: center; margin-top: 1.8rem; letter-spacing: .04em;
  color: var(--rose-soft); font-size: .95rem;
}

/* ---- INTRO / BOAS-VINDAS ---- */
.intro {
  padding: 5rem 6vw 4rem;
  text-align: center;
  background:
    radial-gradient(circle at 20% 10%, var(--rose-soft), transparent 45%),
    var(--cream);
}
.intro__inner { max-width: 640px; margin: 0 auto; }
.intro .polaroids { margin-top: 3rem; }
.intro__eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: .72rem;
  color: var(--rose); font-weight: 600; margin-bottom: 1rem;
}
.intro h2 { font-size: clamp(2rem, 5vw, 3rem); color: var(--olive-dk); margin-bottom: 1.6rem; }
.intro h2 span { color: var(--rose); font-style: italic; }
.intro p { color: #5c574f; font-size: 1.04rem; margin-bottom: 1.1rem; }
.intro__sign {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.5rem; color: var(--gold); margin-top: 1.6rem;
}

/* ---- BOTÕES INTERATIVOS (cards de ação) ---- */
.acoes { padding: 1rem 6vw 4rem; }
.acoes__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
  max-width: 980px; margin: 0 auto;
}
.acao {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .6rem; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--rose-soft);
  border-radius: var(--radius); padding: 2.2rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.acao:hover { transform: translateY(-6px); border-color: var(--rose); box-shadow: 0 20px 46px rgba(63,67,47,.2); }
.acao__icon { font-size: 2.6rem; line-height: 1; }
.acao__titulo {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: 1.55rem; color: var(--olive-dk);
}
.acao__txt { font-size: .9rem; color: #6b6459; }
.acao__cta {
  margin-top: .4rem; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--rose);
}

/* ---- HORÁRIOS / TIMELINE ---- */
.horarios { padding: 4.5rem 6vw; background: var(--olive); color: var(--cream); }
.horarios .section-title { color: var(--cream); }
.horarios .section-title span { color: var(--rose-soft); }
.timeline {
  max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.4rem;
}
.evento {
  display: flex; align-items: center; gap: 1.4rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 1.6rem 1.8rem;
}
.evento__hora {
  font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 600;
  color: var(--rose-soft); line-height: 1; min-width: 92px; text-align: center;
}
.evento__corpo h3 { font-size: 1.5rem; color: var(--cream); margin-bottom: .2rem; }
.evento__corpo p { font-size: .92rem; opacity: .9; }
.evento__emoji { font-size: 1.4rem; }

@media (max-width: 860px) {
  .acoes__grid { grid-template-columns: 1fr; }
  .evento { flex-direction: column; text-align: center; gap: .6rem; }
}

/* ===== Fundo dos cards mesclado com a paleta do site (varia por card) ===== */
.grid .card:nth-child(4n+1) .scene { background: linear-gradient(150deg, color-mix(in srgb, var(--rose) 30%, #fff), #fff); }
.grid .card:nth-child(4n+2) .scene { background: linear-gradient(150deg, color-mix(in srgb, var(--olive) 24%, #fff), #fff); }
.grid .card:nth-child(4n+3) .scene { background: linear-gradient(150deg, color-mix(in srgb, var(--gold) 28%, #fff), #fff); }
.grid .card:nth-child(4n+4) .scene { background: linear-gradient(150deg, color-mix(in srgb, var(--olive) 18%, #fff), color-mix(in srgb, var(--rose) 16%, #fff)); }

/* ---- CHECKOUT TRANSPARENTE (etapas do modal) ---- */
/* Atributo hidden vence o display das classes abaixo (etapas comutáveis). */
.modal__pagar[hidden], .modal__cartao[hidden], .modal__pix[hidden] { display: none !important; }
.modal__pagar { display: flex; flex-direction: column; gap: .7rem; margin: .6rem 0 .2rem; text-align: left; }
.modal__campos { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.modal__input {
  width: 100%; box-sizing: border-box;
  border: 1.5px solid var(--rose-soft); border-radius: 12px;
  padding: .6rem .8rem; font-size: .95rem; color: var(--ink); background: #fff;
}
.modal__input:focus { outline: none; border-color: var(--olive); }
.modal__metodos { display: flex; gap: .5rem; }
.modal__metodo {
  flex: 1; cursor: pointer; border: 1.5px solid var(--rose-soft);
  background: #fff; color: var(--ink); border-radius: 12px; padding: .5rem .8rem;
  font-size: .92rem; transition: background .15s, color .15s, border-color .15s;
}
.modal__metodo.is-active { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.modal__cartao { display: flex; flex-direction: column; gap: .55rem; }
.modal__cartao-linha { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
.modal__pix { display: flex; flex-direction: column; align-items: center; gap: .7rem; margin: .4rem 0; }
.modal__pix-qr { width: 210px; height: 210px; border-radius: 12px; background: #fff; }
.modal__pix-codigo {
  width: 100%; box-sizing: border-box; border: 1.5px solid var(--rose-soft);
  border-radius: 12px; padding: .5rem .7rem; font-family: monospace; font-size: .78rem;
  resize: none; color: var(--ink); background: #fff;
}
.modal__pix-aguardando { font-size: .85rem; color: var(--olive); }

@media (max-width: 480px) {
  .modal__campos, .modal__cartao-linha { grid-template-columns: 1fr; }
}
