/* =========================================================
   Letícia & Gabriel — 04.12.2026
   Paleta da identidade visual
   ========================================================= */
:root {
  --navy: #0F3B76;
  --navy-2: #2B518F;
  --navy-deep: #0A2A57;
  --sky: #4C8BB6;
  --ink: #2B2B2B;
  --white: #FFFFFF;
  --ivory: #F7F4EE;
  --linen: #ECE6DA;
  --muted: #6E6A64;
  --line: rgba(15, 59, 118, .2);
  --line-light: rgba(255, 255, 255, .3);
  --gold: #B8955A;

  --f-display: "Catchy Mager", "Cormorant Garamond", Georgia, serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-script: "Pinyon Script", cursive;
  --f-text: "Poppins", system-ui, sans-serif;

  --gutter: 20px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: url("img/papel.jpg?v=2") 0 0 / 420px repeat, var(--ivory);
  color: var(--ink);
  font-family: var(--f-text);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 660px; }
.narrow-text { max-width: 520px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ---------- Tipografia ---------- */
.script { font-family: var(--f-script); font-weight: 400; }
.eyebrow {
  display: block;
  font-family: var(--f-text);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--navy-2);
  margin: 0 0 14px;
}
.eyebrow--light { color: rgba(255, 255, 255, .78); }
.title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 10vw, 68px);
  line-height: 1.05;
  color: var(--navy);
  margin: 0 0 22px;
}
.title--light { color: var(--white); }
.lead {
  font-family: var(--f-serif);
  font-size: clamp(22px, 4.8vw, 27px);
  font-weight: 300;
  line-height: 1.45;
  color: var(--navy);
  margin: 0 0 20px;
}
.body { margin: 0 0 16px; color: var(--muted); }
.body--light { color: rgba(255, 255, 255, .85); }
.body strong { font-weight: 500; color: var(--navy); }
.body--light strong { color: var(--white); }
.small { font-size: 13px; }

/* ---------- Monograma (SVG como máscara, herda a cor) ---------- */
.logo-mask {
  display: inline-block;
  width: 34px;
  aspect-ratio: 1776 / 1976;
  background: currentColor;
  -webkit-mask: url("img/logo-lg.svg") center / contain no-repeat;
          mask: url("img/logo-lg.svg") center / contain no-repeat;
}
.logo-mask--lg { width: 64px; color: var(--navy); }
.logo-mask--md { width: 56px; color: var(--white); }

/* ---------- Seções ---------- */
.section { padding: 96px 0; position: relative; }
/* textura de papel nas partes off-white */
.section--ivory { background: transparent; } /* o papel vem do body, contínuo, sem emendas */
.section--white { background: transparent; }
@media (min-width: 900px) { .section { padding: 140px 0; } }

/* imagens com parallax: maiores que a moldura para poderem se mover */
[data-parallax] { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: transform; }

/* ---------- Botões (preenchimento deslizante) ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 30px;
  font-family: var(--f-text); font-size: 10.5px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; background: none;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy::before { background: var(--navy-deep); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline::before { background: var(--navy); }
.btn--outline:hover { color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light::before { background: var(--ivory); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
@media (max-width: 520px) { .btn-row .btn { width: 100%; } }

/* ---------- Molduras ---------- */
.frame-offset { outline: 1px solid var(--line); outline-offset: 12px; }

/* =========================================================
   ENVELOPE (papel com textura + selo de cera)
   ========================================================= */
:root {
  --paper: #F4EFE6;
  --paper-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .27 0 0 0 0 .2 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper-mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
}
.envelope {
  position: fixed; inset: 0; z-index: 100; overflow: hidden;
  background: transparent;
}
.envelope.is-gone { display: none; }

/* envelope de papel por cima da cena */
.envelope__body { position: absolute; inset: 0; z-index: 2; cursor: pointer; transform-origin: 50% 30%; perspective: 1400px; }
.envelope__pocket, .envelope__flap {
  background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 55%, rgba(0,0,0,.12) 100%), url("img/papel-envelope-azul.jpg") 0 0 / 420px repeat, var(--navy);
}
/* bolso: tudo menos o triângulo de cima (a "boca" do envelope) */
.envelope__pocket {
  position: absolute; inset: 0;
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
}
.envelope__pocket::after { /* dobras de baixo */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top right, transparent calc(50% - .6px), rgba(255,255,255,.14) 50%, transparent calc(50% + .6px)) left bottom / 50% 46% no-repeat,
    linear-gradient(to top left, transparent calc(50% - .6px), rgba(255,255,255,.14) 50%, transparent calc(50% + .6px)) right bottom / 50% 46% no-repeat;
}
.envelope__flapwrap {
  position: absolute; left: 0; right: 0; top: 0; height: 54%; z-index: 2;
  transform-origin: top center; transform-style: preserve-3d;
  filter: drop-shadow(0 6px 12px rgba(4,16,36,.45)) drop-shadow(0 1px 1px rgba(4,16,36,.5));
}
.envelope__flap { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.envelope__seal {
  position: absolute; left: 50%; top: 54%; z-index: 3;
  width: 140px; height: 140px; margin: -70px 0 0 -70px; padding: 0;
  border: 0; border-radius: 50%; background: none;
  filter: drop-shadow(0 8px 12px rgba(4,16,36,.5)) drop-shadow(0 2px 2px rgba(4,16,36,.45));
  animation: sealFloat 3.2s ease-in-out infinite;
}
.envelope__seal img { width: 100%; height: 100%; display: block; object-fit: contain; }
@keyframes sealFloat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
.envelope__hint {
  position: absolute; left: 0; right: 0; top: calc(54% + 94px); z-index: 3; margin: 0;
  text-align: center; font-size: clamp(30px, 8.6vw, 40px); color: #F3E7CC; transform: none;
}
.envelope.is-opening .envelope__seal { animation: none; }
@media (min-width: 900px) {
  .envelope__pocket { clip-path: polygon(0 0, 50% 50%, 100% 0, 100% 100%, 0 100%); }
  .envelope__flapwrap { height: 50%; }
  .envelope__seal { top: 50%; width: 164px; height: 164px; margin: -82px 0 0 -82px; }
  .envelope__hint { top: calc(50% + 108px); }
}

/* =========================================================
   NAVEGAÇÃO
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; padding: 0 var(--gutter);
  color: var(--white);
  transition: background .5s, color .5s, box-shadow .5s, transform .5s var(--ease);
}
.nav.is-solid { background: rgba(255,255,255,.92); color: var(--navy); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: flex; color: inherit; transition: opacity .4s; }
.nav__logo .logo-mask { width: 28px; }
.nav__toggle { width: 44px; height: 44px; border: 0; background: none; display: grid; place-content: center; gap: 7px; }
.nav__toggle span { display: block; width: 24px; height: 1px; background: currentColor; transition: transform .3s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__menu {
  position: fixed; inset: 62px 0 auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 24px var(--gutter) 32px;
  background: var(--white); color: var(--navy);
  box-shadow: 0 20px 30px rgba(15,59,118,.08);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s, transform .3s, visibility 0s linear .3s;
}
.nav__menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__menu a { position: relative; padding: 10px; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; }
.nav__cta { margin-top: 8px; border: 1px solid var(--navy); padding: 12px 22px !important; }
@media (min-width: 900px) {
  .nav { height: 76px; padding: 0 44px; }
  .nav__toggle { display: none; }
  .nav__menu { position: static; flex-direction: row; gap: 14px; padding: 0; background: none; color: inherit; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav__menu a:not(.nav__cta)::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .4s var(--ease); }
  .nav__menu a:not(.nav__cta):hover::after { transform: scaleX(1); }
  .nav__cta { margin: 0 0 0 8px; border-color: currentColor; }
  .nav:not(.is-solid) .nav__logo { opacity: 0; pointer-events: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 580px; color: var(--white); overflow: hidden; background: var(--navy); }
.hero__img { position: absolute; inset: 0; overflow: hidden; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,25,50,.6) 0%, rgba(10,25,50,.12) 32%, rgba(10,25,50,.08) 58%, rgba(10,25,50,.65) 100%);
}
.hero__content {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 84px var(--gutter) 92px; text-align: center;
}
.hero__logo { display: none; }
.hero__eyebrow { margin-bottom: 4px; }
.hero__names { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .26em; line-height: 1.12; font-weight: 400; font-size: clamp(44px, 12vw, 104px); }
.hero__names .script { text-shadow: 0 2px 24px rgba(0,0,0,.3); }
.hero__amp { font-size: .78em; opacity: .9; }
.split .char { display: inline-block; }
.hero__bottom { margin-top: auto; }
.hero__date { font-family: var(--f-display); font-size: clamp(34px, 8vw, 46px); line-height: 1; margin: 0; display: flex; align-items: center; justify-content: center; gap: .45em; }
.hero__date i { display: inline-block; width: 1px; height: .8em; background: currentColor; opacity: .55; }
.hero__place { font-size: 10.5px; letter-spacing: .42em; text-transform: uppercase; margin: 14px 0 0; opacity: .9; }
.hero__scroll { position: absolute; z-index: 1; left: 50%; bottom: 26px; width: 1px; height: 46px; margin-left: -.5px; background: rgba(255,255,255,.35); overflow: hidden; }
.hero__scroll span { position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--white); animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { to { top: 100%; } }

@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .hero__img { position: relative; grid-column: 2; grid-row: 1; }
  .hero__img::after { background: linear-gradient(180deg, rgba(10,25,50,.35) 0%, rgba(10,25,50,0) 22%); }
  .hero__content { grid-column: 1; grid-row: 1; justify-content: center; padding: 96px 48px; }
  .hero__logo { display: block; width: 66px; color: var(--white); margin-bottom: 44px; }
  .hero__eyebrow { margin-bottom: 20px; }
  .hero__names { font-size: clamp(56px, 5.6vw, 88px); flex-direction: column; align-items: center; line-height: 1; }
  .hero__names .script { text-shadow: none; }
  .hero__amp { font-size: .5em; margin: .12em 0; }
  .hero__bottom { margin-top: 44px; }
  .hero__date { padding: 16px 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); font-size: clamp(30px, 3vw, 42px); }
  .hero__scroll { left: 23.8%; }
}

/* =========================================================
   FAIXA (marquee)
   ========================================================= */
.marquee { background: var(--navy); color: var(--white); overflow: hidden; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.08); }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--f-display); font-size: 22px; white-space: nowrap; }
.marquee i { font-style: normal; font-size: 10px; opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   CONVITE
   ========================================================= */
.convite { overflow: hidden; }
.convite__grid { display: grid; gap: 64px; align-items: center; }
.arch {
  position: relative;
  width: min(100%, 420px); margin: 0 auto; aspect-ratio: 3 / 4.1;
  border-radius: 999px 999px 0 0;
  outline: 1px solid var(--line); outline-offset: 12px;
}
.arch__photo { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }

.convite__text { text-align: center; }
.convite__text .logo-mask { margin-bottom: 26px; }
.signature { font-size: 44px; color: var(--navy); margin: 24px 0 0; line-height: 1; }
.calla { position: absolute; color: var(--navy); pointer-events: none; }
.calla--convite { position: static; display: block; width: 56px; height: 104px; margin: 40px auto 0; opacity: .55; }
@media (min-width: 900px) {
  .convite__grid { grid-template-columns: 1fr 1.05fr; gap: 96px; }
  .convite__text { text-align: left; }
  .calla--convite { position: absolute; margin: 0; width: 96px; height: 176px; right: 3%; bottom: 60px; }
}

/* =========================================================
   VERSÍCULO
   ========================================================= */
.verse { position: relative; overflow: hidden; color: var(--white); padding: 130px 0; min-height: 80vh; display: grid; align-items: center; }
.verse__bg { position: absolute; inset: 0; overflow: hidden; }
.verse__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,42,87,.62) 0%, rgba(15,59,118,.5) 50%, rgba(10,42,87,.66) 100%); }
.verse__bg img { object-position: 50% 50%; }
.verse__inner { position: relative; min-width: 0; padding: 0 12px; }
.verse__text { text-shadow: 0 1px 18px rgba(8,22,45,.45); }
.verse__mark { display: block; font-family: var(--f-serif); font-size: 100px; line-height: .6; height: 44px; opacity: .45; }
.verse__text {
  margin: 0 0 28px;
  font-family: var(--f-serif); font-style: italic; font-weight: 300;
  font-size: 22px; line-height: 1.5;
}
.verse__line { display: block; width: max-content; margin: 0 auto; white-space: nowrap; }
.verse__text .w { display: inline-block; white-space: pre; }
.verse cite { font-style: normal; font-size: 10.5px; letter-spacing: .36em; text-transform: uppercase; opacity: .85; }

/* =========================================================
   DATA
   ========================================================= */
.data__grid { display: grid; gap: 72px; align-items: center; }
.data__weekday { font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--navy); margin: 0; }
.data__day { font-family: var(--f-display); font-size: clamp(130px, 36vw, 190px); line-height: .95; color: var(--navy); margin: 6px 0 0; }
.data__month { font-family: var(--f-display); font-size: clamp(28px, 7vw, 36px); color: var(--navy); margin: 0; }
.data__month span { opacity: .4; margin: 0 .2em; }
.data__time { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 18px 0 0; color: var(--navy); }
.data__time b { font-weight: 400; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; }
.line-draw { display: block; width: 56px; height: 1px; background: var(--line); transform-origin: center; }

.calendar { max-width: 320px; margin: 44px auto 0; font-size: 12px; color: var(--muted); }
.calendar__head, .calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar__head span { font-size: 10px; letter-spacing: .14em; color: var(--navy-2); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.calendar__grid { isolation: isolate; }
.calendar__grid span { height: 34px; display: grid; place-items: center; position: relative; }
.calendar__grid .is-day { color: var(--white); font-weight: 500; }
.calendar__grid .is-day::before {
  content: ""; position: absolute; width: 36px; height: 36px; z-index: -1;
  background: var(--navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.3C.9 8.2 3 4.5 6.6 4.5c2.1 0 3.6 1.2 5.4 3.2 1.8-2 3.3-3.2 5.4-3.2 3.6 0 5.7 3.7 4.2 7.2C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.3C.9 8.2 3 4.5 6.6 4.5c2.1 0 3.6 1.2 5.4 3.2 1.8-2 3.3-3.2 5.4-3.2 3.6 0 5.7 3.7 4.2 7.2C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: heartbeat 2.4s var(--ease) infinite;
}
@keyframes heartbeat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.12); } }

/* foto das alianças de fora a fora no celular */
.data__photo { position: relative; overflow: hidden; margin: 0 calc(-1 * var(--gutter)); aspect-ratio: 4 / 5; }
@media (min-width: 900px) { .data__photo { margin: 0; } }
/* ancorada embaixo: a foto termina igual ao original e só corta em cima */
.data__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; transform-origin: 50% 100%; }

.countdown__label { margin-top: 96px; }
.countdown { display: flex; justify-content: center; align-items: center; gap: clamp(10px, 3.4vw, 34px); }
.countdown > i { width: 1px; height: 46px; background: var(--line); }
.countdown div { min-width: 58px; display: flex; flex-direction: column; align-items: center; }
.countdown strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 10vw, 64px); line-height: 1.05; color: var(--navy); font-variant-numeric: tabular-nums; }
.countdown strong.tick { animation: tick .5s var(--ease); }
@keyframes tick { from { opacity: .2; transform: translateY(-6px); } }
.countdown span { font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 900px) {
  .data__grid { grid-template-columns: 1.1fr 1fr; gap: 96px; }
}

/* =========================================================
   LOCAL
   ========================================================= */
.local { overflow: hidden; }
.local__art { max-width: 860px; margin: 8px auto 0; }
.local__art img { width: 100%; height: auto; }
.local__facts { display: grid; gap: 0; margin-top: 30px; text-align: center; border-top: 1px solid var(--line); }
.local__facts > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.local__facts .eyebrow { margin-bottom: 6px; }
.local__facts p { margin: 0; color: var(--navy); font-size: 15px; }
.local__facts .local__big { font-family: var(--f-display); font-size: 40px; line-height: 1; }
.map { position: relative; margin: 64px auto 0; max-width: 860px; }
.map iframe { display: block; width: 100%; height: 300px; border: 0; filter: grayscale(.35) contrast(1.02); }
@media (min-width: 900px) {
  .local__facts { grid-template-columns: 1fr auto 1fr; max-width: 860px; margin: 30px auto 0; border-bottom: 1px solid var(--line); align-items: center; }
  .local__facts > div { border: 0; padding: 28px 36px; }
  .local__facts > div:nth-child(2) { border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 28px 56px; }
  .map iframe { height: 360px; }
}

/* =========================================================
   MOMENTOS
   ========================================================= */
.momentos { overflow: hidden; }
.momentos__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 36px; padding-bottom: 60px; }
.momentos__grid figure { position: relative; overflow: hidden; aspect-ratio: 2 / 3; background: var(--linen); }
.momentos__grid { align-items: start; }
.momentos__grid figure:nth-child(even) { margin-top: 60px; }
.momentos__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.momentos__grid figure:hover img { transform: scale(1.05); }
@media (min-width: 900px) {
  .momentos__grid { grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 56px; padding-bottom: 120px; }
  .momentos__grid figure:nth-child(2) { margin-top: 110px; }
  .momentos__grid figure:nth-child(3) { margin-top: 36px; }
  .momentos__grid figure:nth-child(4) { margin-top: 140px; }
}

/* =========================================================
   TRAJE
   ========================================================= */
.traje__code { font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 5vw, 30px); color: var(--navy); margin: -8px 0 14px; }
.traje__grid { display: grid; gap: 56px; margin-top: 56px; }
.traje__card { display: grid; gap: 24px; align-content: start; }
.traje__art { display: flex; justify-content: center; }
.traje__art img { width: 100%; height: auto; }
.traje__card--eles .traje__art img { max-width: 380px; }
.traje__copy { text-align: center; }
.traje__who { font-family: var(--f-display); font-weight: 400; font-size: 34px; color: var(--navy); margin: 0 0 6px; }
.traje__hint { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.avoid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; }
.avoid li { display: flex; align-items: center; gap: 12px; text-align: left; }
.avoid i {
  position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.avoid i::after { /* risco diagonal = "evite" */
  content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 1px;
  background: #b4423a; transform: rotate(-45deg);
}
.avoid span { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.avoid b { display: block; font-weight: 500; color: var(--navy); font-size: 13px; letter-spacing: .04em; }
@media (min-width: 900px) {
  .traje__grid { grid-template-columns: 1.55fr 1fr; gap: 56px; align-items: end; }
}

/* =========================================================
   FAIXA DE FOTO
   ========================================================= */
.band { position: relative; height: 72vh; min-height: 420px; overflow: hidden; display: grid; place-items: start center; color: var(--white); text-align: center; }
.band__bg { position: absolute; inset: 0; overflow: hidden; }
.band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,42,87,.6) 0%, rgba(10,42,87,.25) 45%, rgba(10,42,87,.15) 100%); }
.band__inner { position: relative; margin: 5.5vh 0 0; display: flex; flex-direction: column; align-items: center; }
.band__flourish { width: 180px; height: 18px; margin-top: 14px; color: rgba(255,255,255,.85); overflow: visible; }
.band__line { display: block; white-space: nowrap; }
.band__text .w { display: inline-block; white-space: pre; }
.band__text { position: relative; margin: 0; padding: 0 var(--gutter); font-family: var(--f-display); font-size: clamp(26px, 7.2vw, 66px); line-height: 1.15; text-shadow: 0 2px 30px rgba(0,0,0,.25); }

/* =========================================================
   FOTO DE ENCERRAMENTO
   ========================================================= */
.closing { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy-deep); }
/* ancorada embaixo: só corta em cima */
.closing img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 100%; transform-origin: 50% 100%; }
@media (min-width: 900px) { .closing { aspect-ratio: auto; height: 85vh; } }

/* =========================================================
   PRESENTES
   ========================================================= */
.palette { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 22px; margin: 34px 0 8px; }
.palette div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.palette i { width: 40px; height: 40px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.palette span { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.gift-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 52px 0 24px; }
.segmented { display: inline-flex; border: 1px solid var(--line); background: var(--white); }
.segmented button { border: 0; background: none; padding: 11px 18px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: background .4s, color .4s; }
.segmented button[aria-selected="true"] { background: var(--navy); color: var(--white); }
.gift-count { margin: 0; font-size: 12px; color: var(--muted); }
@media (max-width: 520px) { .gift-toolbar { justify-content: center; } .segmented { width: 100%; } .segmented button { flex: 1; padding: 11px 6px; } }

.gifts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .gifts { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 1000px) { .gifts { grid-template-columns: repeat(4, 1fr); } }

.gift {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid rgba(15,59,118,.08);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.gift:not(.is-taken):hover { box-shadow: 0 22px 44px rgba(15,59,118,.12); transform: translateY(-4px); }
.gift__media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--linen); }
.gift__media.has-img { background: var(--white); }
.gift__media img, .gift__media svg { width: 100%; height: 100%; object-fit: cover; transition: filter .6s, transform 1s var(--ease); }
.gift__media.has-img img { object-fit: contain; padding: 8%; }
.gift:not(.is-taken):hover .gift__media img { transform: scale(1.05); }
.gift__body { display: flex; flex-direction: column; flex: 1; padding: 14px 14px 16px; }
.gift__name { font-family: var(--f-serif); font-size: 19px; font-weight: 400; line-height: 1.25; color: var(--navy); margin: 0 0 4px; }
.gift__desc { font-size: 12px; line-height: 1.55; color: var(--muted); margin: 0 0 14px; }
.gift__link { font-size: 11px; color: var(--navy-2); margin: 4px 0 14px; text-underline-offset: 3px; }
.gift__action { margin-top: auto; }
.gift__action .btn { width: 100%; min-height: 42px; padding: 0 10px; font-size: 10px; letter-spacing: .18em; }
.gift__taken { display: none; margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(0,0,0,.08); font-size: 11.5px; line-height: 1.45; color: #8a8a8a; }
.gift__taken strong { display: block; font-weight: 500; color: #6d6d6d; }
.gift__badge {
  position: absolute; top: 10px; left: 10px; z-index: 1; display: none;
  padding: 4px 10px; background: rgba(255,255,255,.92); color: #6d6d6d;
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase; box-shadow: 0 0 0 1px rgba(0,0,0,.06);
}
.gift.is-taken { background: #f1f1f0; border-color: transparent; }
.gift.is-taken .gift__media { background: #ececeb; }
.gift.is-taken .gift__media img, .gift.is-taken .gift__media svg { filter: grayscale(1); opacity: .55; mix-blend-mode: multiply; }
.gift.is-taken .gift__name { color: #8d8d8d; }
.gift.is-taken .gift__desc, .gift.is-taken .gift__link { color: #a5a5a5; }
.gift.is-taken .gift__link { display: none; }
.gift.is-taken .gift__action { display: none; }
.gift.is-taken .gift__taken, .gift.is-taken .gift__badge { display: block; }
.gift.is-hidden { display: none; }
.gift.is-loading .gift__action .btn { opacity: .4; pointer-events: none; }
.gift-note { text-align: center; font-size: 12px; color: var(--muted); margin: 34px 0 0; }
.gifts-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

/* =========================================================
   RSVP
   ========================================================= */
.rsvp { color: var(--white); overflow: hidden; }
.rsvp__bg { position: absolute; inset: 0; overflow: hidden; }
.rsvp__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,42,87,.9), rgba(15,59,118,.84)); }
.rsvp__inner { position: relative; }

.form {
  margin-top: 40px; display: grid; gap: 20px;
  padding: 28px 22px; border: 1px solid var(--line-light);
  background: rgba(255,255,255,.05); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
@media (min-width: 600px) { .form { padding: 40px; } }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.85); padding: 0; }
.field small { text-transform: none; letter-spacing: 0; opacity: .7; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; padding: 13px 14px;
  font: inherit; font-size: 16px; color: var(--white);
  background: rgba(255,255,255,.06); border: 1px solid var(--line-light); border-radius: 0;
  transition: border-color .3s, background .3s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.45); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--white); background: rgba(255,255,255,.1); }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: #f2b8b5 !important; }
.choice { display: grid; gap: 10px; margin-top: 8px; }
@media (min-width: 560px) { .choice { grid-template-columns: 1fr 1fr; } }
.choice label { position: relative; cursor: pointer; letter-spacing: 0; text-transform: none; font-size: 14px; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; padding: 13px 14px; text-align: center; border: 1px solid var(--line-light); transition: background .4s, color .4s, border-color .4s; }
.choice input:checked + span { background: var(--white); color: var(--navy); border-color: var(--white); }
.choice input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.field[hidden] { display: none; }

.form__status { min-height: 1.5em; margin: 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.9); }
.form__status.is-error { color: #f6c7c4; }
.form__status--dark { color: var(--navy); }
.form__status--dark.is-error { color: #b3261e; }
.thanks { text-align: center; padding: 20px 0; }

/* RSVP por convite */
.rsvp-names { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rsvp-names .field { min-width: 0; }
.rsvp-step { display: grid; gap: 20px; }
.rsvp-step[hidden] { display: none; }
.rsvp-label { margin: 0; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.rsvp-options { display: grid; gap: 10px; }
.rsvp-option { padding: 14px; border: 1px solid var(--line-light); background: rgba(255,255,255,.06); color: var(--white); font-size: 15px; text-align: left; transition: background .3s; }
.rsvp-option:hover { background: rgba(255,255,255,.14); }
.rsvp-people { display: grid; gap: 18px; }
.rsvp-person { border: 0; margin: 0; padding: 0 0 18px; border-bottom: 1px solid var(--line-light); min-width: 0; }
.rsvp-person legend { padding: 0; font-family: var(--f-display); font-size: 26px; color: var(--white); }
.rsvp-person .choice { margin-top: 10px; }
.rsvp-hint { margin: 0; font-size: 13px; color: rgba(255,255,255,.8); }
.rsvp-hint b { font-weight: 500; color: var(--white); white-space: nowrap; }
.rsvp-code input { font-size: 22px !important; letter-spacing: .5em; text-align: center; max-width: 180px; }
.rsvp-code[hidden] { display: none; }
.rsvp-back { justify-self: center; border: 0; background: none; color: rgba(255,255,255,.75); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.rsvp-back[hidden] { display: none; }
.thanks .script { font-size: 46px; margin: 0; }

.field--dark label { color: var(--navy); }
.field--dark input[type="text"] { color: var(--ink); background: var(--white); border-color: var(--line); }
.field--dark input:focus { border-color: var(--navy); background: var(--white); }
.field--dark input::placeholder { color: #aaa; }

/* =========================================================
   MODAL
   ========================================================= */
.modal { width: min(92vw, 440px); padding: 0; border: 0; background: url("img/papel.jpg?v=2") 0 0 / 420px repeat, var(--ivory); color: var(--ink); box-shadow: 0 30px 80px rgba(8,22,45,.35); }
.modal::backdrop { background: rgba(8,22,45,.6); backdrop-filter: blur(3px); }
.modal[open] { animation: modalIn .5s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.modal__inner { position: relative; padding: 0 24px 24px; text-align: center; display: grid; gap: 4px; max-height: 92vh; overflow-y: auto; }
.modal__media { margin: 0 -24px 18px; aspect-ratio: 2 / 1; overflow: hidden; background: var(--linen); }
.modal__media.has-img { background: var(--white); }
.modal__media img, .modal__media svg { width: 100%; height: 100%; object-fit: cover; }
.modal__media.has-img img { object-fit: contain; padding: 6%; }
.modal__title { font-family: var(--f-serif); font-weight: 400; font-size: 26px; line-height: 1.2; color: var(--navy); margin: 0 0 8px; }
.modal .field { text-align: left; margin-top: 14px; }
.modal__actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 10px; }
.modal__actions .btn { padding: 0 10px; font-size: 10px; letter-spacing: .16em; }
.modal__close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); font-size: 24px; line-height: 1; color: var(--navy); }

/* =========================================================
   RODAPÉ / TOAST
   ========================================================= */
.footer { position: relative; background: var(--navy-deep); color: var(--white); text-align: center; padding: 80px var(--gutter) 60px; }
.calla--footer { position: static; display: block; width: 52px; height: 96px; margin: 0 auto 26px; color: rgba(255,255,255,.55); }
.footer__names { font-size: 46px; margin: 16px 0 0; line-height: 1.1; }
.footer__date { font-family: var(--f-display); font-size: 22px; margin: 6px 0 22px; }
.footer__msg { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; opacity: .7; margin: 0; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120;
  width: max-content; max-width: min(calc(100vw - 32px), 460px); padding: 14px 22px;
  background: var(--navy); color: var(--white); font-size: 13px; text-align: center;
  box-shadow: 0 12px 30px rgba(8,22,45,.3);
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

.demo-badge { position: fixed; right: 12px; bottom: 12px; z-index: 60; padding: 6px 10px; background: #fff7d6; color: #6b5800; border: 1px solid #ecd98a; font-size: 11px; max-width: 220px; line-height: 1.4; }

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

/* aquarela: a tela pinta por cima da imagem enquanto ela "aparece" */
[data-paint] { position: relative; }
[data-paint] .paint-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
[data-paint].is-painting > img { opacity: 0; }

/* =========================================================
   PRESENTES: grupos, cotas e PIX
   ========================================================= */
.gift-group {
  grid-column: 1 / -1; margin: 30px 0 4px; text-align: center;
  font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 6.4vw, 34px); color: var(--navy);
}
.gift-group:first-child { margin-top: 0; }
.gift-group[hidden] { display: none; }
.gift-group::after { content: ""; display: block; width: 48px; height: 1px; margin: 12px auto 0; background: var(--line); }

.gift__cota { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.gift__cota b { font-weight: 500; color: var(--navy); }
.gift__bar { height: 4px; border-radius: 4px; background: rgba(15,59,118,.1); overflow: hidden; }
.gift__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--navy-2), var(--navy)); transition: width 1s var(--ease); }
.gift__progress { margin: 6px 0 12px; font-size: 11px; color: var(--muted); }
.gift.is-taken .gift__bar i { background: #9a9a9a; }
.gift.is-taken .gift__cota b { color: #8d8d8d; }
/* cota com algumas já dadas: mostra quem já presenteou, mas continua disponível */
.gift--cota .gift__taken { display: none !important; }
.gift__names { display: block; margin-top: 4px; }
.gift__names b { font-weight: 500; color: var(--navy); }
.gift.is-taken .gift__names b { color: #6d6d6d; }

/* seletor de cotas */
.cota-picker { margin: 4px 0 6px; text-align: center; }
.cota-picker[hidden] { display: none; }
.cota-picker__label { margin: 0 0 8px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--navy); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--white); }
.stepper button { width: 46px; height: 46px; border: 0; background: none; font-size: 22px; color: var(--navy); }
.stepper button:disabled { opacity: .25; cursor: default; }
.stepper output { min-width: 48px; font-family: var(--f-display); font-size: 26px; color: var(--navy); }
.cota-picker__total { margin: 10px 0 0; font-size: 14px; color: var(--navy); }

/* loja ou PIX */
.gift-ways { border: 0; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.gift-ways[hidden] { display: none; }
.gift-ways legend { padding: 0; margin-bottom: 8px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--navy); }
.gift-ways label { position: relative; cursor: pointer; }
.gift-ways input { position: absolute; opacity: 0; }
.gift-ways span { display: block; padding: 11px 14px 11px 40px; border: 1px solid var(--line); background: var(--white); font-size: 12px; line-height: 1.45; color: var(--muted); transition: border-color .3s, box-shadow .3s; }
.gift-ways span b { display: block; font-weight: 500; font-size: 13.5px; color: var(--navy); }
.gift-ways span::before { content: ""; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 1px solid var(--navy); background: var(--white); }
.gift-ways input:checked + span { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.gift-ways input:checked + span::after { content: ""; position: absolute; left: 18px; top: 50%; width: 8px; height: 8px; margin-top: -3px; border-radius: 50%; background: var(--navy); }
.gift-ways input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.gift-hint { margin: 4px 0 0; }
.gift-step { display: grid; gap: 4px; }
.gift-step[hidden] { display: none; }

/* passo final */
.gift-done { gap: 14px; padding-top: 4px; }
.gift-done__thanks { margin: 0; font-size: 40px; line-height: 1.1; color: var(--navy); }
.gift-done .body { margin: 0; }
.pix-box { display: grid; gap: 10px; margin-top: 10px; padding: 14px; border: 1px dashed rgba(15,59,118,.35); background: var(--white); }
.pix-box code { font-family: var(--f-text); font-size: 15px; font-weight: 500; color: var(--navy); word-break: break-all; }
.pix-titular { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.pix-titular:empty { display: none; }
.btn[hidden] { display: none; }
