:root {
  --bg-dark: #1d3f34;
  --bg-overlay: rgba(23, 42, 34, 0.58);
  --paper: rgba(255, 250, 246, 0.82);
  --paper-strong: rgba(255, 251, 248, 0.9);
  --white: #fffdfb;
  --text: #29443b;
  --text-soft: #5c7269;
  --emerald: #2f6b4f;
  --emerald-dark: #1f4d3a;
  --gold: #c9a24a;
  --gold-light: #e6c979;
  --rose: #f1d9d7;
  --rose-strong: #dba4ac;
  --shadow-soft: 0 18px 46px rgba(65, 46, 39, 0.12);
  --shadow-strong: 0 24px 70px rgba(28, 20, 17, 0.22);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
  --transition: 0.45s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  background: linear-gradient(180deg, #f9f1ec 0%, #f5ebe7 100%);
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.site-background,
.site-background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.site-background {
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(18, 33, 27, 0.3), rgba(19, 35, 29, 0.52)),
    url("./assets/fundo-geral.jpg") center center / cover no-repeat;
  transform: scale(1.03);
}

.site-background-glow {
  z-index: -2;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.18), transparent 22%),
    radial-gradient(circle at center, rgba(232, 199, 195, 0.1), transparent 36%),
    linear-gradient(90deg, rgba(47, 107, 79, 0.18), transparent 18%, transparent 82%, rgba(47, 107, 79, 0.18));
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 1.78rem;
  font-weight: 700;
  color: var(--gold);
}

.glass-panel,
.section-card,
.info-box,
.cover-card,
.photo-frame,
.confirmation-card {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition), background var(--transition);
  font-weight: 600;
  line-height: 1;
}

.button:hover {
  transform: translateY(-2px);
}

.button--gold {
  color: #4d3814;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 14px 30px rgba(201, 162, 74, 0.28);
}

.button--ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.button--ghost-dark {
  color: var(--emerald-dark);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(201, 162, 74, 0.2);
}

.button--small {
  min-height: 46px;
  padding: 12px 20px;
}

.audio-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 251, 247, 0.82);
  color: var(--emerald-dark);
  box-shadow: 0 12px 28px rgba(31, 77, 58, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.audio-toggle.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.audio-toggle:hover {
  transform: translateY(-2px);
}

.audio-toggle.is-paused {
  background: rgba(31, 77, 58, 0.78);
  color: var(--white);
}

.audio-toggle__icon {
  font-size: 1rem;
  line-height: 1;
}

.audio-toggle__label {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
}

.cover-screen,
.video-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.cover-screen.is-active,
.video-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cover-screen__backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(22, 39, 31, 0.72), rgba(22, 39, 31, 0.82));
}

.cover-card {
  position: relative;
  width: min(1350px, calc(100vw - 28px));
  height: min(88vh, 860px);
  border-radius: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-strong);
  background: rgba(255, 250, 246, 0.08);
}

.cover-card__image,
.cover-card__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cover-card__image {
  object-fit: cover;
  object-position: center center;
}

.cover-card__overlay {
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(31, 77, 58, 0.08), rgba(31, 77, 58, 0.16) 40%, rgba(26, 43, 35, 0.55)),
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.18), transparent 26%);
}

.cover-card__content {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vw, 54px);
  transform: translateX(-50%);
  width: min(820px, calc(100% - 28px));
  text-align: center;
  padding: clamp(20px, 4vw, 34px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 251, 248, 0.12), rgba(28, 51, 41, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.cover-card__content h1,
.hero__name,
.section-heading h3,
.info-box h4,
.confirmation-card h4,
.footer__inner strong,
.video-overlay__fallback h2,
.photo-showcase__content h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.cover-card__content h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(3.5rem, 8vw, 6.4rem);
  font-weight: 500;
  line-height: 0.9;
}

.cover-card__text {
  max-width: 520px;
  margin: 14px auto 22px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.75;
  font-size: 1.05rem;
}

.cover-card__actions,
.video-overlay__actions,
.hero__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.video-overlay {
  padding: 0;
  background: #000;
  overflow: hidden;
  will-change: opacity;
}

.video-overlay.is-finishing {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
}

.video-overlay__media {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

.video-overlay__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #000;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: opacity, transform, filter;
  transition: opacity 0.85s ease, transform 0.85s ease, filter 0.85s ease;
}

.video-overlay.is-finishing .video-overlay__video {
  opacity: 0;
  transform: scale(1.012);
  filter: brightness(0.96);
}

.video-overlay__video--mobile {
  display: none;
}

.video-overlay__fallback {
  position: absolute;
  width: min(760px, calc(100% - 24px));
  padding: clamp(22px, 4vw, 34px);
  text-align: center;
  border-radius: 28px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(255, 251, 247, 0.15), rgba(255, 247, 243, 0.08)),
    linear-gradient(135deg, rgba(232, 199, 195, 0.12), rgba(47, 107, 79, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.video-overlay__fallback h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
}

.video-overlay__fallback p {
  margin: 16px auto 0;
  max-width: 520px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.site-shell {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.95s ease, transform 0.95s ease;
  padding: 24px 0 42px;
}

.site-shell.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero {
  padding-top: 4px;
}

.hero__content,
.footer__inner {
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
  border-radius: 32px;
  padding: clamp(22px, 4vw, 38px);
  background:
    linear-gradient(180deg, rgba(255, 252, 249, 0.84), rgba(255, 245, 240, 0.74)),
    radial-gradient(circle at top left, rgba(232, 199, 195, 0.24), transparent 30%);
  border: 1px solid rgba(201, 162, 74, 0.16);
  box-shadow: var(--shadow-soft);
}

.hero__name {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.9;
  color: var(--emerald-dark);
  font-weight: 500;
}

.hero__name span {
  display: block;
  margin-top: 6px;
  color: var(--rose-strong);
}

.hero__message {
  max-width: 600px;
  margin: 18px auto 0;
  color: var(--text-soft);
  line-height: 1.85;
}

.section {
  margin-top: 22px;
}

.section-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(22px, 4vw, 36px);
  background:
    linear-gradient(180deg, rgba(255, 252, 249, 0.92), rgba(255, 247, 241, 0.84)),
    radial-gradient(circle at top right, rgba(232, 199, 195, 0.24), transparent 28%);
  border: 1px solid rgba(201, 162, 74, 0.16);
  box-shadow: var(--shadow-soft);
}

.section-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(230, 201, 121, 0.14), transparent 68%);
}

.section-heading {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.section-heading h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--emerald-dark);
  font-weight: 500;
}

.section-text {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.info-grid,
.gift-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.info-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gift-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-box,
.confirmation-card,
.photo-frame,
.map-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 251, 248, 0.7));
  border: 1px solid rgba(201, 162, 74, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 28px rgba(111, 79, 60, 0.06);
}

.info-box {
  padding: 22px;
}

.info-box--accent {
  background:
    linear-gradient(135deg, rgba(232, 199, 195, 0.24), rgba(255, 255, 255, 0.84)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 246, 0.7));
}

.info-box__label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  font-weight: 700;
}

.info-box h4,
.confirmation-card h4,
.photo-showcase__content h3 {
  margin: 0 0 8px;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--emerald-dark);
}

.info-box p,
.confirmation-card p,
.clean-list,
.photo-showcase__content p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.78;
}

.clean-list {
  padding-left: 18px;
}

.clean-list li+li {
  margin-top: 8px;
}

.map-emphasis {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 18px;
  margin-top: 24px;
}

.map-card--large {
  min-height: 520px;
  overflow: hidden;
}

.map-card--large iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
}

.map-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.photo-showcase {
  margin-top: 22px;
}

.photo-showcase__grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 430px);
  gap: 18px;
  align-items: center;
}

.photo-showcase--reverse .photo-showcase__grid {
  grid-template-columns: minmax(300px, 430px) 1fr;
}

.photo-showcase__content {
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 252, 249, 0.88), rgba(255, 246, 241, 0.78)),
    radial-gradient(circle at top right, rgba(232, 199, 195, 0.18), transparent 28%);
  border: 1px solid rgba(201, 162, 74, 0.16);
  box-shadow: var(--shadow-soft);
}

.photo-frame {
  padding: 12px;
  border-radius: 28px;
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
}

.confirmation-card {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.confirmation-card .button {
  position: relative;
  z-index: 3;
}

.footer {
  margin-top: 24px;
}

.footer__inner p {
  margin: 0;
  color: var(--text-soft);
}

.footer__inner strong {
  display: block;
  margin-top: 8px;
  font-size: 1.6rem;
  color: var(--emerald-dark);
  font-weight: 500;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {

  .gift-grid,
  .map-emphasis,
  .photo-showcase__grid,
  .photo-showcase--reverse .photo-showcase__grid {
    grid-template-columns: 1fr;
  }

  .map-card--large,
  .map-card--large iframe {
    min-height: 380px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 18px));
  }

  .cover-card {
    height: min(92vh, 880px);
    border-radius: 28px;
  }

  /*
    Ajuste principal da capa no celular.
    Diminua ou aumente a porcentagem para mover a boneca
    mais para o centro ou mais para a esquerda/direita.
  */
  .cover-card__image {
    object-position: 26% center;
  }

  .cover-card__content,
  .hero__content,
  .section-card,
  .photo-showcase__content,
  .footer__inner,
  .video-overlay__fallback {
    border-radius: 24px;
  }

  .button,
  .cover-card__actions .button,
  .hero__actions .button,
  .confirmation-card .button,
  .video-overlay__actions .button {
    width: 100%;
  }

  .cover-card__actions,
  .hero__actions,
  .video-overlay__actions {
    flex-direction: column;
  }

  .info-grid--two {
    grid-template-columns: 1fr;
  }

  .gift-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cover-card__content {
    width: calc(100% - 16px);
    bottom: 10px;
    padding: 18px;
  }

  .cover-card__image {
    object-position: 23% center;
  }

  .cover-card__text,
  .hero__message,
  .section-text,
  .photo-showcase__content p {
    font-size: 0.95rem;
    line-height: 1.72;
  }

  .map-card--large,
  .map-card--large iframe {
    min-height: 300px;
  }

  .site-shell {
    padding-top: 18px;
  }

  .audio-toggle {
    right: 12px;
    bottom: 12px;
    min-height: 44px;
    padding: 11px 14px;
  }

  .audio-toggle__label {
    font-size: 0.84rem;
  }
}

@media (max-width: 767px) {
  .video-overlay__video--desktop {
    display: none;
  }

  .video-overlay__video--mobile {
    display: block;
  }
}

@media (min-width: 768px) {
  .video-overlay__video--desktop {
    display: block;
  }

  .video-overlay__video--mobile {
    display: none;
  }
}
