/* ==========================================================================
   Beatriz & Neto — Convite Digital
   Paleta: cinza claro / preto / branco — old money, monocromático
   ========================================================================== */

:root {
  --bg: #efeeec;
  --bg-alt: #e6e4e1;
  --ink: #1c1c1a;
  --ink-soft: #4a4844;
  --line: rgba(28, 28, 26, 0.18);
  --white: #ffffff;

  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-script: 'Parisienne', cursive;

  --section-pad-x: clamp(1.5rem, 8vw, 3rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

/* ---------- Reveal animations ---------- */
.reveal,
.reveal-on-load {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.22,.61,.36,1), transform 0.9s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible,
.reveal-on-load.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-on-load {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Botão de música ---------- */
.music-toggle {
  position: fixed;
  top: max(1.2rem, env(safe-area-inset-top));
  right: 1.2rem;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(239, 238, 236, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.2s ease;
}
.music-toggle:active { transform: scale(0.94); }
.music-toggle svg { width: 20px; height: 20px; }
.music-toggle .icon-playing { display: none; }
.music-toggle[aria-pressed="true"] .icon-muted { display: none; }
.music-toggle[aria-pressed="true"] .icon-playing { display: block; }
.music-toggle[aria-pressed="false"] {
  animation: music-pulse 2.4s ease-in-out infinite;
}
@keyframes music-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(28,28,26,0.14); }
  50% { box-shadow: 0 0 0 6px rgba(28,28,26,0); }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: grayscale(0.15) contrast(1.02);
  transform: scale(1.06);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,20,18,0.12) 0%,
    rgba(20,20,18,0.02) 35%,
    rgba(20,20,18,0.05) 60%,
    rgba(20,20,18,0.55) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 1.5rem clamp(3rem, 10vh, 5rem);
  display: flex;
  justify-content: center;
}
.hero__names {
  width: min(78vw, 420px);
  filter: brightness(0) invert(1);
  transition-delay: 0.3s;
}
.hero__scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  transition-delay: 0.9s;
}
.hero__scroll-cue span {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.9), transparent);
  animation: scroll-cue-move 2.2s ease-in-out infinite;
}
@keyframes scroll-cue-move {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(8px); }
}

/* ---------- Seções gerais ---------- */
section:not(.hero) {
  padding: clamp(4.5rem, 14vh, 7rem) var(--section-pad-x);
  text-align: center;
}

/* ---------- Monograma ---------- */
.monogram-section {
  background: var(--bg-alt);
  padding-top: clamp(4rem, 12vh, 6rem);
  padding-bottom: clamp(4rem, 12vh, 6rem);
}
.monogram-section__mark {
  width: min(38vw, 150px);
  margin: 0 auto;
  opacity: 0.92;
}

/* ---------- Convite / Data ---------- */
.invite-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.invite-section__blessing {
  font-size: clamp(1rem, 3vw, 1.15rem);
  letter-spacing: 0.04em;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 2.6rem;
}
.invite-section__parents {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 4rem);
  margin-bottom: 2.8rem;
  font-size: clamp(0.82rem, 2.4vw, 0.95rem);
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.invite-section__parents-col p { margin: 0.15rem 0; }
.invite-section__text {
  font-size: clamp(1.05rem, 3.2vw, 1.3rem);
  line-height: 1.6;
  max-width: 26ch;
  margin: 0 0 2.4rem;
}
.invite-section__date {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  line-height: 1;
  margin: 0 0 0.6rem;
}
.invite-section__time {
  font-size: clamp(1rem, 3vw, 1.2rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Cerimônia ---------- */
.ceremony-section {
  background: var(--bg-alt);
}
.ceremony-section__icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 1.4rem;
  color: var(--ink);
}
.ceremony-section__icon svg { width: 100%; height: 100%; }
.ceremony-section__title {
  font-weight: 500;
  font-size: clamp(1.4rem, 4.5vw, 1.8rem);
  letter-spacing: 0.06em;
  margin: 0 0 1.4rem;
}
.ceremony-section__place {
  font-size: clamp(1.1rem, 3.4vw, 1.3rem);
  margin: 0 0 0.5rem;
}
.ceremony-section__address {
  font-size: clamp(0.92rem, 2.8vw, 1.05rem);
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 2rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: background 0.3s ease, color 0.3s ease;
}
.btn:active { transform: scale(0.98); }
.btn--outline {
  background: transparent;
  color: var(--ink);
}

/* ---------- Contagem regressiva ---------- */
.countdown-section__label {
  font-style: italic;
  font-size: clamp(1rem, 3vw, 1.15rem);
  color: var(--ink-soft);
  margin: 0 0 2rem;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(0.6rem, 3vw, 1.1rem);
  flex-wrap: nowrap;
}
.countdown__box {
  background: var(--ink);
  color: var(--white);
  width: clamp(60px, 20vw, 84px);
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.countdown__number {
  font-size: clamp(1.3rem, 5.5vw, 1.9rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__unit {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ---------- Ações ---------- */
.actions-section {
  background: var(--bg-alt);
}
.actions-section__intro {
  font-size: clamp(1rem, 3vw, 1.15rem);
  color: var(--ink-soft);
  margin: 0 0 1.8rem;
}

/* ---------- Rodapé ---------- */
.footer {
  padding: clamp(3.5rem, 10vh, 5rem) var(--section-pad-x) clamp(2.5rem, 8vh, 3.5rem);
  text-align: center;
}
.footer__names {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 6vw, 2.3rem);
  margin: 0 0 0.6rem;
}
.footer__date {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}
.footer__credit {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(28,28,26,0.35);
  margin: 0;
}

/* ---------- Dividers between sections ---------- */
.invite-section,
.countdown-section {
  position: relative;
}
.invite-section::after,
.ceremony-section::after {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  background: var(--line);
  margin: clamp(3rem, 10vh, 4.5rem) auto 0;
}
