/* =========================================================
   Convite de Casamento · Mármore & Dourado
   ========================================================= */

:root {
  --ivory: #fbf6ee;
  --champagne: #e9d2b8;
  --beige: #e6d6bf;
  --nude: #d8c0a4;
  --ink: #5f4a30;
  --ink-soft: #7d6648;
  --gold: #b8913f;
  --gold-light: #e8cf8a;
  --gold-dark: #8c6a2c;
  --gold-grad: linear-gradient(110deg, #8c6a2c 0%, #c9a557 18%, #f5e3a8 32%, #b8913f 48%, #e9d08c 64%, #9a7834 82%, #d6b66a 100%);

  --brown: #4a2818;
  --brown-light: #8e5436;
  --brown-dark: #28130a;
  --brown-grad: linear-gradient(110deg, #2e170d 0%, #4a2818 18%, #8e5436 32%, #3a1e12 48%, #784328 64%, #28130a 82%, #522d1b 100%);

  --cafe: #381e13;
  --cafe-dark: #231109;
  --cafe-light: #522c1b;
  --cafe-grad: linear-gradient(110deg, #241108 0%, #3a1e12 25%, #562e1c 50%, #3d1f13 75%, #241108 100%);

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --script: "Pinyon Script", "Brush Script MT", cursive;

  --w: min(100%, 540px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--champagne);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  min-height: 100svh;
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; touch-action: manipulation; }
button { font: inherit; color: inherit; touch-action: manipulation; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Tipografia utilitária (Letras em Marrom Escuro com Gradiente) ---------- */
.gold-text {
  background: var(--brown-grad);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 9s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.caps {
  text-transform: uppercase;
  letter-spacing: .28em;
  font-weight: 500;
  margin: 0;
}
.caps--sm { font-size: .78rem; line-height: 1.9; }
.caps--xs { font-size: .68rem; color: var(--ink-soft); }

.title {
  margin: 0 0 1.4rem;
  font-weight: 400;
  text-align: center;
  line-height: 1;
}
.title__caps {
  display: block;
  font-size: clamp(1.6rem, 6.4vw, 2.15rem);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 400;
  padding-left: .22em; /* compensa o letter-spacing para centralizar */
}
.title__script {
  display: block;
  font-family: var(--script);
  font-size: clamp(2.3rem, 10vw, 3.2rem);
  line-height: 1.15;
  margin-top: -.2em;
  padding: 0 .2em .1em;
}
.title__sub {
  display: block;
  margin-top: .6rem;
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 500;
}
.title--sm .title__caps { font-size: clamp(1.25rem, 5vw, 1.55rem); }

.text {
  font-size: 1.12rem;
  line-height: 1.6;
  text-align: center;
  max-width: 30ch;
  margin: 0 auto 1.6rem;
  font-style: italic;
  color: var(--ink-soft);
}
.text strong { font-style: normal; font-weight: 600; color: var(--ink); }

/* ---------- Estrutura ---------- */
.invite {
  position: relative;
  width: var(--w);
  margin: 0 auto;
  background: var(--champagne);
}

.panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 88px 28px;
  background-color: var(--champagne);
}
.panel::before { /* leve véu para legibilidade */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 45%, rgba(251, 246, 238, .55), rgba(251, 246, 238, .1) 70%);
  pointer-events: none;
}

.content { position: relative; z-index: 2; text-align: center; }

/* Divisor entre seções */
.divider {
  position: relative;
  height: 1px;
  background: var(--gold-grad);
  z-index: 3;
}
.divider i {
  position: absolute;
  left: 50%; top: 50%;
  width: 9px; height: 9px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--gold-grad);
  box-shadow: 0 0 0 4px var(--champagne);
}

/* ---------- Decorações (flores / pérolas) ---------- */
.deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply; /* remove o fundo branco das fotos e funde com o mármore */
}
.deco img { width: 100%; }

.sway { animation: sway 9s ease-in-out infinite; }
.sway--alt { animation-duration: 11s; animation-delay: -4s; }
@keyframes sway {
  0%, 100% { transform: rotate(0deg) translate3d(0, 0, 0); }
  50% { transform: rotate(1.6deg) translate3d(0, 3px, 0); }
}

.deco--tr { top: -6%; right: -18%; width: 82%; transform-origin: 100% 0; }
.deco--bl { bottom: -7%; left: -18%; width: 74%; transform-origin: 0 100%; }
.deco--bl img { transform: rotate(180deg); }

.deco--pearl-tr { top: -70px; right: -38%; width: 80%; transform-origin: 100% 0; }
.deco--pearl-tr img { transform: rotate(200deg); }
.deco--pearl-br { bottom: -90px; right: -30%; width: 72%; transform-origin: 100% 100%; }
.deco--pearl-br img { transform: rotate(-20deg); }

.deco--tl-small { top: -40px; left: -70px; width: 58%; transform-origin: 0 0; }
.deco--tl-small img { transform: scaleX(-1); }
.deco--bl-small { bottom: -50px; left: -70px; width: 60%; transform-origin: 0 100%; }
.deco--bl-small img { transform: rotate(180deg); }
.deco--ml { top: 50%; left: -110px; width: 56%; margin-top: -28%; transform-origin: 0 50%; }
.deco--ml img { transform: rotate(-90deg) scaleY(-1); }
.deco--photo { top: -30px; right: -22%; width: 62%; transform-origin: 100% 0; }

/* ---------- SVG dourado ---------- */
.organic__frame path,
.wave path {
  fill: none;
  stroke: url(#gold);
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}
.organic__frame path.thin,
.wave path.thin { stroke-width: .9; opacity: .85; }
.organic__frame,
.wave { filter: drop-shadow(0 1px 1px rgba(110, 80, 30, .35)); }

/* ---------- SEÇÃO ANTERIOR À SEÇÃO 01 (INTRODUÇÃO COM VÍDEO) ---------- */
body.intro-active {
  overflow: hidden;
}
body.intro-active .menu-btn,
body.intro-active .menu,
body.intro-active .music-toggle {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* ---------- Botão de Música Flutuante ---------- */
.music-toggle {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: max(14px, calc((100vw - 540px) / 2 + 14px));
  z-index: 60;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 246, 238, .85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px -8px rgba(110, 80, 30, .4), inset 0 0 0 1px rgba(184, 145, 63, .6);
  color: var(--brown, #4a2818);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .4s var(--ease), transform .3s var(--ease), visibility .4s;
}
.music-toggle:hover {
  transform: scale(1.06);
}
.music-toggle__bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 15px;
}
.music-toggle__bars i {
  display: block;
  width: 2.5px;
  height: 100%;
  background: var(--brown, #4a2818);
  border-radius: 2px;
  transform-origin: bottom;
  animation: musicBar .8s ease-in-out infinite alternate;
}
.music-toggle__bars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.music-toggle__bars i:nth-child(2) { height: 100%; animation-delay: .2s; }
.music-toggle__bars i:nth-child(3) { height: 60%; animation-delay: .4s; }
.music-toggle__bars i:nth-child(4) { height: 85%; animation-delay: .1s; }

.music-toggle.is-paused .music-toggle__bars i {
  animation-play-state: paused;
  transform: scaleY(0.25);
  opacity: .5;
}

@keyframes musicBar {
  0% { transform: scaleY(0.25); }
  100% { transform: scaleY(1); }
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: #e9d2b8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 1.2s var(--ease), visibility 1.2s var(--ease), transform 1.2s var(--ease);
}

html:not(.js) .intro-screen {
  display: none !important;
}

.intro-screen__container {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e9d2b8;
}

.intro-screen__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: #e9d2b8;
}

.intro-screen__cue {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.intro-screen__play-hint {
  font-family: var(--serif);
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  background: rgba(251, 246, 238, .9);
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(184, 145, 63, .45);
  box-shadow: 0 4px 12px rgba(95, 74, 48, .12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.intro-screen.is-playing .intro-screen__cue {
  opacity: 0;
  transform: scale(0.8);
}

.intro-screen.is-completed {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  pointer-events: none;
}

.intro-screen__play-ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(234, 208, 176, .85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 0 0 rgba(184, 145, 63, .45), 0 12px 28px rgba(95, 74, 48, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  animation: introPlayPulse 2.4s infinite var(--ease);
}

@keyframes introPlayPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(184, 145, 63, .45), 0 12px 28px rgba(95, 74, 48, .2); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 18px rgba(184, 145, 63, 0), 0 14px 34px rgba(95, 74, 48, .25); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(184, 145, 63, 0), 0 12px 28px rgba(95, 74, 48, .2); }
}

.intro-screen__play-icon {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

/* ---------- SEÇÃO 1 · CAPA (VÍDEO HERO) ---------- */
.panel--cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1620 / 2880;
  display: block;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  background-color: #e9d2b8;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-sound-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(184, 145, 63, .6);
  background: rgba(251, 246, 238, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(95, 74, 48, .2);
  transition: transform .25s var(--ease), background .25s;
}
.hero-sound-btn:hover {
  transform: scale(1.06);
  background: rgba(251, 246, 238, 1);
}
.hero-sound-btn svg {
  width: 18px;
  height: 18px;
}

.organic {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
}
.organic__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.organic__content {
  position: relative;
  padding: 64px 30px 60px;
  text-align: center;
  display: grid;
  gap: 1.4rem;
}

.verse {
  margin: 0 auto;
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 26ch;
}
.verse span {
  display: block;
  margin-top: .35rem;
  font-style: normal;
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.names {
  margin: .2rem 0;
  font-weight: 300;
  line-height: .95;
}
.names__name {
  display: block;
  font-size: clamp(2.5rem, 11.5vw, 3.4rem);
  letter-spacing: .14em;
  padding-left: .14em;
  text-transform: uppercase;
  font-weight: 400;
}
.names__amp {
  display: block;
  font-family: var(--script);
  font-size: clamp(2.6rem, 11vw, 3.4rem);
  color: var(--gold);
  line-height: 1.1;
  margin: -.05em 0 -.15em;
}

.date {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: .4rem;
}
.date__col {
  display: grid;
  gap: .3rem;
  padding: .2rem .4rem;
}
.date__col + .date__col { border-left: 1px solid rgba(184, 145, 63, .65); }
.date__label {
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  padding-left: .26em;
}
.date__value {
  font-size: clamp(1.6rem, 7vw, 2rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}

.scroll-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  z-index: 3;
  width: 26px; height: 40px;
  margin-left: -13px;
  border: 1px solid rgba(140, 106, 44, .6);
  border-radius: 14px;
}
.scroll-hint span {
  position: absolute;
  left: 50%; top: 8px;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold);
  animation: scrollDot 2.2s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- SEÇÃO 2 · CONTAGEM ---------- */
.panel--countdown {
  position: relative;
  width: 100%;
  aspect-ratio: 1620 / 2880;
  background-image: url("../assets/Fundo%20contagem%20regressiva.png");
  background-position: center top;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.panel--countdown::before {
  display: none;
}

.panel--countdown .content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

.panel--countdown .title {
  margin-bottom: clamp(12px, 3.5vw, 22px);
}

.panel--countdown .title__caps {
  font-size: clamp(1.4rem, 5.8vw, 2rem);
  letter-spacing: .22em;
}

.panel--countdown .title__script {
  font-size: clamp(2.3rem, 9.8vw, 3.3rem);
  margin-top: -.22em;
}

.panel--countdown .title__sub {
  margin-top: .45rem;
  font-size: clamp(.62rem, 2.3vw, .76rem);
  letter-spacing: .26em;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(6px, 2vw, 12px);
  max-width: 380px;
  margin: 0 auto;
}

.cd {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: clamp(16px, 4.5vw, 24px) 2px clamp(10px, 2.5vw, 16px);
  border-radius: 999px 999px 8px 8px;
  background: rgba(251, 246, 238, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 20px -10px rgba(110, 80, 30, .35);
}

.cd::before { /* borda em gradiente dourado */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: var(--gold-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.cd__num {
  font-size: clamp(1.5rem, 6.8vw, 2.2rem);
  font-weight: 500;
  line-height: 1.1;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink);
}

.cd__lbl {
  font-size: clamp(.54rem, 2vw, .64rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  padding-left: .18em;
}

.cd__num.tick { animation: tick .5s var(--ease); }
@keyframes tick {
  0% { opacity: .35; transform: translateY(-4px); }
  100% { opacity: 1; transform: none; }
}

.countdown-done {
  margin: 0;
  font-family: var(--script);
  font-size: 2.6rem;
  color: var(--gold);
}

/* ---------- SEÇÃO 3 · PROGRAMAÇÃO ---------- */
.panel--schedule {
  position: relative;
  width: 100%;
  aspect-ratio: 1620 / 2880;
  background-image: url("../assets/Fundo%20programacao.png");
  background-position: center top;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.panel--schedule::before {
  display: none;
}

.panel--schedule .rect-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: 0 10px;
  background: transparent;
}
.panel--schedule .rect-frame::before,
.panel--schedule .rect-frame::after {
  display: none;
}

.rect-frame {
  position: relative;
  z-index: 2;
  max-width: 400px;
  margin: 0 auto;
  padding: 54px 30px 44px;
  background: rgba(251, 246, 238, .35);
}
.rect-frame::before,
.rect-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
  padding: 1px;
  background: var(--gold-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.rect-frame::before { inset: 0; padding: 1.5px; }
.rect-frame::after { inset: 7px; opacity: .7; }

.schedule {
  list-style: none;
  margin: 0;
  padding: 0;
}
.schedule__item {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 22px;
  padding: 18px 0;
}
.schedule__item::after { display: none; }
.schedule__item + .schedule__item {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(184, 145, 63, .7), transparent) 1;
}
.schedule__icon {
  justify-self: end;
  width: 46px; height: 46px;
  color: var(--gold);
}
.schedule__item::before { /* linha vertical central */
  content: "";
  grid-column: 2;
  grid-row: 1;
  width: 1px;
  height: 42px;
  background: linear-gradient(transparent, var(--gold), transparent);
}
.schedule__icon { grid-column: 1; grid-row: 1; }
.schedule__text { grid-column: 3; grid-row: 1; }
.schedule__icon svg,
.btn svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.schedule__text {
  display: grid;
  text-align: left;
  line-height: 1.15;
}
.schedule__text strong {
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: .08em;
}
.schedule__text span {
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Botões ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(251, 246, 238, .7);
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .76rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 8px 20px -12px rgba(110, 80, 30, .55);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.btn::before { /* borda dourada */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: var(--gold-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.btn::after { /* reflexo de luz */
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 40%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: skewX(-20deg) translateX(0);
  transition: transform .9s var(--ease);
}
.btn svg { width: 22px; height: 22px; color: var(--gold-dark); flex: none; }
.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -14px rgba(110, 80, 30, .6);
  background: rgba(251, 246, 238, .95);
}
.btn:hover::after, .btn:focus-visible::after { transform: skewX(-20deg) translateX(420%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.btn--solid {
  background: var(--cafe-grad);
  background-size: 200% 100%;
  color: #fff9f2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  box-shadow: 0 10px 24px -10px rgba(35, 17, 9, .75);
}
.btn--solid::before {
  background: linear-gradient(135deg, rgba(215, 180, 150, .45), rgba(56, 30, 19, .9));
}
.btn--solid::after {
  z-index: 1;
  pointer-events: none;
}
.btn--solid svg,
.btn--solid span {
  position: relative;
  z-index: 2;
}
.btn--solid svg { color: #fff9f2; }
.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--cafe-grad);
  background-position: 100% 0;
  background-size: 200% 100%;
  box-shadow: 0 14px 28px -10px rgba(35, 17, 9, .9);
}
.btn--solid:focus-visible {
  outline: 2px solid var(--cafe-light);
  outline-offset: 4px;
}

/* ---------- SEÇÃO 4 · LOCAL ---------- */
.panel--venue {
  width: 100%;
  aspect-ratio: 1620 / 2880;
  background-image: url("../assets/Fundo%20local.png");
  background-position: center top;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 12% 11%; /* mantém o conteúdo dentro da moldura da arte */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.panel--venue::before { display: none; }
.panel--venue .deco { display: none; } /* a arte já traz a moldura; evita sobreposição */
.panel--venue .content { width: 100%; }

/* ---------- SEÇÃO 5 · PRESENTES & RSVP ---------- */
.panel--gifts {
  width: 100%;
  aspect-ratio: 1620 / 2880;
  background-image: url("../assets/Fundo%20lista%20de%20presentes.png");
  background-position: center top;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 12% 11%; /* mantém o conteúdo dentro da moldura da arte */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.panel--gifts::before { display: none; }
.panel--gifts .deco { display: none; } /* a arte já traz flores e alianças */
.panel--gifts .content { width: 100%; }

.venue { margin-bottom: 1.6rem; }
.venue__name {
  margin: 0 0 .6rem;
  font-size: clamp(1.4rem, 6vw, 1.8rem);
  letter-spacing: .14em;
  font-weight: 500;
}
.venue__addr {
  margin: 0;
  font-size: 1.08rem;
  font-style: italic;
  color: var(--ink-soft);
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 3rem auto 2.4rem;
  max-width: 240px;
}
.ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament i {
  width: 7px; height: 7px;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
}

.dress {
  margin: -.6rem 0 1.4rem;
  font-size: 1.05rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
}
.dress strong { font-weight: 600; color: var(--gold-dark); }

.swatches {
  display: flex;
  justify-content: center;
  gap: 16px;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.swatch {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.swatch i {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .15), inset 0 4px 8px rgba(255, 255, 255, .25), 0 4px 10px -4px rgba(80, 50, 20, .5);
  outline: 1px solid rgba(184, 145, 63, .7);
  outline-offset: 3px;
}

/* ---------- SEÇÃO 6 · MANUAL & ENCERRAMENTO ---------- */
.panel--closing {
  width: 100%;
  aspect-ratio: 1620 / 2880;
  background-image: url("../assets/Fundo%20casal.png");
  background-position: center top;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 13% 0 0; /* texto na área livre do mármore, acima do casal */
}
.panel--closing::before { /* escurece só a base para o rodapé ficar legível sobre a foto */
  background: linear-gradient(to top, rgba(60, 38, 15, .6), transparent 22%);
}
.panel--closing .content { padding: 0 13%; }
.panel--closing .deco,
.panel--closing .photo { display: none; } /* a arte já traz a foto do casal e as flores */
.panel--closing .title { margin-bottom: 1rem; }
.panel--closing .text { margin-bottom: 1.2rem; }
.closing-part { position: relative; } /* referência para as flores decorativas de cada bloco */
.closing-part--end { margin-top: 1.4rem; scroll-margin-top: 24px; }
.closing-part--end .ornament { margin-bottom: 1.2rem; }
.photo {
  position: relative;
  margin: 0;
  aspect-ratio: 896 / 1200;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 100%);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo::after { /* tom cinematográfico quente */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(60, 38, 15, .55), transparent 35%);
  pointer-events: none;
}
.footer {
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  z-index: 4;
  text-align: center;
  color: #fbf1dc;
}
.footer .caps { color: #f3e3c0; }
.footer__mono {
  margin: 0 0 .3rem;
  font-size: 1.8rem;
  letter-spacing: .1em;
}
.footer__mono em { font-family: var(--script); font-style: normal; margin: 0 .25em; color: var(--brown-light, #8e5436); }

/* ---------- Animações de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background-color: var(--champagne);
  transition: opacity .9s var(--ease), visibility .9s;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__mono {
  font-size: 2.6rem;
  letter-spacing: .12em;
  color: var(--ink);
}
.loader__mono em { font-family: var(--script); font-style: normal; color: var(--gold); margin: 0 .2em; }
.loader__line {
  width: 120px; height: 1px;
  background: var(--gold-grad);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
html:not(.js) .loader { display: none; }

/* ---------- Menu ---------- */
.menu-btn {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, calc((100vw - 540px) / 2 + 14px));
  z-index: 60;
  width: 46px; height: 46px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 246, 238, .78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px -8px rgba(110, 80, 30, .5), inset 0 0 0 1px rgba(184, 145, 63, .6);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn span {
  display: block;
  width: 18px; height: 1.4px;
  background: var(--gold-dark);
  transition: transform .4s var(--ease), opacity .3s;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.4px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  background: rgba(239, 228, 211, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.menu.is-open li { opacity: 1; transform: none; }
.menu.is-open li:nth-child(2) { transition-delay: .05s; }
.menu.is-open li:nth-child(3) { transition-delay: .1s; }
.menu.is-open li:nth-child(4) { transition-delay: .15s; }
.menu.is-open li:nth-child(5) { transition-delay: .2s; }
.menu.is-open li:nth-child(6) { transition-delay: .25s; }
.menu.is-open li:nth-child(7) { transition-delay: .3s; }
.menu a {
  display: inline-block;
  padding: 12px 20px;
  font-size: 1.05rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  transition: color .3s;
}
.menu a:hover, .menu a:focus-visible { color: var(--gold-dark); }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(60, 44, 24, .45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fadeIn .4s var(--ease);
}
.modal__card {
  position: relative;
  width: min(100%, 480px);
  max-height: min(86vh, 760px);
  display: flex;
  background-color: var(--champagne);
  border-radius: 4px;
  box-shadow: 0 30px 60px -20px rgba(40, 25, 10, .6);
  animation: rise .5s var(--ease);
}
.modal__card::before {
  content: "";
  position: absolute;
  inset: 8px;
  padding: 1px;
  background: var(--gold-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.modal__scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 52px 34px 40px;
  width: 100%;
}
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 246, 238, .9);
  box-shadow: inset 0 0 0 1px rgba(184, 145, 63, .6);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gold-dark);
  cursor: pointer;
}
.guide {
  list-style: none;
  counter-reset: g;
  margin: 0;
  padding: 0;
}
.guide li {
  counter-increment: g;
  position: relative;
  padding: 16px 0 16px 48px;
  border-top: 1px solid rgba(184, 145, 63, .35);
}
.guide li::before {
  content: counter(g, decimal-leading-zero);
  position: absolute;
  left: 0; top: 16px;
  font-size: 1.4rem;
  color: var(--brown, #4a2818);
  font-weight: 500;
}
.guide h3 {
  margin: 0 0 4px;
  font-size: .82rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 600;
}
.guide p { margin: 0; font-size: 1.04rem; color: var(--ink-soft); line-height: 1.5; }
.guide__end {
  margin: 1.6rem 0 0;
  text-align: center;
  font-style: italic;
  font-size: 1.1rem;
}
.guide__end span { display: block; font-family: var(--script); font-style: normal; font-size: 2rem; }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }

html.lock, html.lock body { overflow: hidden; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 90;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(95, 74, 48, .92);
  color: #fbf1dc;
  font-size: .9rem;
  letter-spacing: .08em;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsivo (100% Mobile & Tablet) ---------- */
@media (max-width: 480px) {
  .panel {
    padding-left: clamp(16px, 4.5vw, 24px);
    padding-right: clamp(16px, 4.5vw, 24px);
  }
  .modal {
    padding: max(10px, env(safe-area-inset-top)) 10px max(14px, env(safe-area-inset-bottom));
  }
  .modal__card {
    max-height: min(88svh, 86vh, 760px);
  }
  .modal__scroll {
    padding: 44px 20px max(24px, env(safe-area-inset-bottom));
  }
  .menu a {
    padding: 10px 16px;
    font-size: .95rem;
  }
}

@media (max-width: 360px) {
  .panel { padding-left: 14px; padding-right: 14px; }
  .countdown { gap: 4px; }
  .cd { padding: 12px 1px 8px; }
  .cd__num { font-size: 1.35rem; }
  .cd__lbl { font-size: .48rem; letter-spacing: .1em; }
  .schedule__item { padding: 10px 0; gap: 10px; }
  .schedule__icon { width: 34px; height: 34px; }
  .schedule__text strong { font-size: 1.25rem; }
  .btn { min-height: 48px; padding: 0 18px; font-size: .72rem; letter-spacing: .14em; }
  .swatches { gap: 8px; }
  .swatch i { width: 38px; height: 38px; }
}

@media (min-width: 600px) {
  body {
    background-color: #e9d2b8;
  }
  body::before { /* escurece levemente o fundo externo para destacar o convite */
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(120, 95, 60, .18);
    pointer-events: none;
  }
  .invite {
    margin: 0 auto;
    box-shadow: 0 40px 80px -30px rgba(70, 48, 20, .55), 0 0 0 1px rgba(184, 145, 63, .35);
  }
  .panel--cover { min-height: auto; }
}

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