:root {
  --bg: #fbf4ec;
  --bg-soft: #fffaf5;
  --cream: #f6eadf;
  --blush: #efd1cc;
  --blush-dark: #c99894;
  --sage: #8da89d;
  --sage-soft: #dce9e4;
  --ink: #5d4741;
  --muted: #836f68;
  --gold: #b79472;
  --shadow: 0 20px 60px rgba(94, 71, 65, .14);
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
  --script: "Parisienne", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(239, 209, 204, .34), transparent 34rem),
    radial-gradient(circle at 80% 22rem, rgba(220, 233, 228, .55), transparent 28rem),
    var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
}
.skip-link:focus { left: 12px; }

.top-nav {
  position: absolute;
  inset: 18px 18px auto auto;
  z-index: 3;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100% - 36px);
}
.top-nav a {
  text-decoration: none;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid rgba(93, 71, 65, .16);
  background: rgba(255, 250, 245, .72);
  backdrop-filter: blur(8px);
  border-radius: 999px;
}
.top-nav a:hover { border-color: rgba(93, 71, 65, .36); }

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 92px 0 0;
  background: linear-gradient(180deg, rgba(255,250,245,.88), rgba(251,244,236,.92));
}
.decor, .leaf {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: .94;
}
.decor-left { left: -42px; top: -42px; width: min(36vw, 380px); }
.decor-right { right: -58px; top: 140px; width: min(32vw, 330px); transform: scaleX(-1) rotate(-4deg); }
.leaf-left { left: 18%; top: 350px; width: 118px; opacity: .48; transform: rotate(210deg); }
.leaf-right { right: 12%; top: 68px; width: 120px; opacity: .55; transform: rotate(18deg); }

.hero-card {
  position: relative;
  z-index: 1;
  width: min(940px, calc(100% - 32px));
  margin: 0 auto 30px;
  padding: clamp(24px, 4vw, 56px) 20px 24px;
  text-align: center;
}
.monogram {
  width: clamp(96px, 14vw, 150px);
  margin: 0 auto 10px;
  filter: drop-shadow(0 10px 14px rgba(91, 64, 58, .08));
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
}
h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
}
h1 {
  margin: 0;
  font-size: clamp(3.8rem, 11vw, 9.5rem);
  letter-spacing: .22em;
  text-transform: uppercase;
}
h2 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}
.event-date {
  margin: 14px 0 26px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  letter-spacing: .08em;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(68px, 1fr));
  gap: 12px;
  width: min(520px, 100%);
  margin: 0 auto;
}
.countdown div {
  padding: 14px 8px 12px;
  background: rgba(255, 250, 245, .76);
  border: 1px solid rgba(183, 148, 114, .26);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(93, 71, 65, .08);
}
.countdown strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1;
}
.countdown span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-photo-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 720px;
  overflow: hidden;
  border-top: 1px solid rgba(183, 148, 114, .18);
  border-bottom: 1px solid rgba(183, 148, 114, .18);
}
.hero-photo {
  width: 100%;
  height: auto;
  min-height: 460px;
  object-fit: cover;
  object-position: center 46%;
}

.section { padding: clamp(58px, 8vw, 110px) 18px; }
.section-inner { width: min(1120px, 100%); margin: 0 auto; }
.narrow { width: min(880px, 100%); }
.decorated-card, .notice-card, .place-card, .rsvp-card {
  position: relative;
  background: rgba(255, 250, 245, .76);
  border: 1px solid rgba(183, 148, 114, .18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.decorated-card { padding: clamp(36px, 7vw, 80px); overflow: hidden; }
.decorated-card::before, .decorated-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(239, 209, 204, .18);
  filter: blur(4px);
  z-index: 0;
}
.decorated-card::before { left: -80px; top: -80px; }
.decorated-card::after { right: -100px; bottom: -100px; background: rgba(220, 233, 228, .28); }
.decorated-card > * { position: relative; z-index: 1; }
.mini-logo { width: 82px; opacity: .32; }
.top-right { position: absolute; top: 24px; right: 24px; }
.bottom-left { position: absolute; bottom: 24px; left: 24px; }
.script {
  margin: 0 0 14px;
  color: var(--blush-dark);
  font-family: var(--script);
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 1;
  text-align: center;
}
.script.small { font-size: clamp(2rem, 5vw, 3.4rem); }
.text-block { max-width: 720px; margin: 0 auto; color: var(--muted); }
.text-block p { margin: 0 0 16px; }
.signature {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  text-align: right;
}

.gallery {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: clamp(16px, 3vw, 34px);
}
.three-cols { grid-template-columns: repeat(3, 1fr); }
.two-cols { grid-template-columns: repeat(2, 1fr); }
.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 18px 46px rgba(93, 71, 65, .13);
  background: var(--bg-soft);
}
.gallery img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  transition: transform .75s ease;
}
.three-cols figure:nth-child(2) img { object-position: center top; }
.gallery figure:hover img { transform: scale(1.035); }

.info-section { padding-top: 18px; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .8fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: stretch;
}
.notice-card, .place-card { padding: clamp(28px, 5vw, 54px); }
.notice-card h2 { font-style: italic; }
.notice-card p, .place-card p { color: var(--muted); margin: 0 0 14px; }
.place-card { text-align: center; }
.place-card h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.map {
  width: 100%;
  max-width: 390px;
  margin: 22px auto 0;
  border-radius: 18px;
  border: 1px solid rgba(183, 148, 114, .22);
}
.outline-button, .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.outline-button {
  margin-top: 8px;
  border: 1px solid rgba(183, 148, 114, .48);
  color: var(--ink);
  background: rgba(255, 255, 255, .42);
}
.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--blush-dark), var(--gold));
  box-shadow: 0 16px 34px rgba(183, 148, 114, .26);
}
.outline-button:hover, .primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(93, 71, 65, .17);
}

.wide-photo { overflow: hidden; }
.wide-photo img {
  width: 100%;
  height: auto;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}
.dress-section { background: rgba(255, 250, 245, .42); }
.dress-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: center;
}
.paint-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}
.paint-card img {
  width: min(360px, 90%);
  opacity: .82;
  filter: drop-shadow(0 14px 22px rgba(93, 71, 65, .06));
}
.paint-card span {
  position: absolute;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  /*transform: rotate(-8deg);*/
}
.dress-grid article {
  padding: clamp(10px, 2vw, 30px) 0;
}
.dress-grid p { color: var(--muted); margin: 0 0 16px; }
.obs {
  padding: 18px 20px;
  border-left: 3px solid var(--blush-dark);
  background: rgba(255, 250, 245, .66);
  border-radius: 0 18px 18px 0;
}

.gifts-section { text-align: center; }
.gifts-text { text-align: left; }
.pix-box {
  margin: 28px auto;
  padding: 24px 18px;
  max-width: 520px;
  text-align: center;
  border: 1px solid rgba(183, 148, 114, .32);
  border-radius: var(--radius);
  background: rgba(255, 250, 245, .82);
  box-shadow: 0 16px 42px rgba(93, 71, 65, .09);
}
.pix-box span, .pix-box small {
  display: block;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pix-box span { font-size: .46rem; }
.pix-box strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: .06em;
}
.pix-box small { font-size: .68rem; }
.final-gallery { padding-top: 0; }
.final-gallery img { height: 330px; }

.rsvp-section { padding-top: 12px; }
.rsvp-card {
  padding: clamp(36px, 7vw, 72px);
  text-align: center;
  overflow: hidden;
}
.rsvp-card::before {
  content: "";
  position: absolute;
  inset: -80px auto auto -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(239, 209, 204, .28);
}
.rsvp-card .mini-logo { margin: 0 auto 8px; opacity: .48; }
.rsvp-card p:not(.script) { color: var(--muted); margin: 0 0 24px; }
.site-footer {
  padding: 26px 18px 38px;
  color: var(--muted);
  text-align: center;
  font-family: var(--serif);
  letter-spacing: .08em;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .top-nav { position: relative; inset: auto; justify-content: center; margin: -64px auto 18px; padding: 0 16px; }
  .hero { padding-top: 84px; }
  h1 { letter-spacing: .14em; }
  .decor-left { width: 250px; left: -70px; top: -50px; }
  .decor-right { width: 220px; right: -80px; top: 180px; }
  .hero-photo { min-height: 420px; }
  .three-cols, .two-cols, .split, .dress-grid { grid-template-columns: 1fr; }
  .gallery img, .final-gallery img { height: 380px; }
  .dress-grid { gap: 10px; }
  .paint-card { min-height: 260px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .top-nav a { font-size: .68rem; padding: 7px 10px; }
  .countdown { gap: 8px; }
  .countdown div { padding: 11px 5px 9px; border-radius: 14px; }
  .hero-photo { min-height: 360px; height: 56vh; }
  .section { padding-left: 14px; padding-right: 14px; }
  .decorated-card, .notice-card, .place-card, .rsvp-card { border-radius: 22px; }
  .decorated-card { padding: 34px 20px; }
  .mini-logo { width: 58px; }
  .gallery { gap: 16px; }
  .gallery img, .final-gallery img { height: 340px; }
  .wide-photo img { min-height: 340px; height: 54vh; }
  .pix-box strong { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.pix-cpf {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
  font-size: 1.05rem!important;
}

.pix-cpf:active {
  opacity: 0.7;
}

.pix-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(60, 45, 40, 0.95);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
}

.pix-toast.visivel {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.pix-texto{font-size:.76rem!important;}
body.intro-ativa {
  overflow: hidden;
}

.intro-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.intro-video-overlay.saindo {
  opacity: 0;
  visibility: hidden;
}

.intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Botão opcional para o usuário não ficar preso */
.intro-skip-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100000;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.82);
  color: #6f4e43;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.intro-skip-btn:active {
  transform: scale(0.96);
}

/* Em telas largas, mantém o vídeo vertical bonito sem distorcer */
@media (min-width: 768px) {
  .intro-video {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
  }

  .intro-video-overlay {
    background: #f8eee8;
  }
}
.titulo-boas-vindas {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.18;
  color: #9c6f5c;
  text-align: center;
  letter-spacing: 0.2px;
  margin-bottom: 24px;
}
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

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

img {
  height: auto;
  display: block;
}

section {
  width: 100%;
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  section {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 72px);
    line-height: 1;
  }

  h2 {
    font-size: clamp(28px, 8vw, 42px);
    line-height: 1.15;
  }

  p {
    font-size: 16px;
    line-height: 1.65;
  }

  .menu,
  nav {
    gap: 12px;
    flex-wrap: wrap;
  }

  .btn,
  button,
  a[href*="wa.me"] {
    min-height: 48px;
  }
}