:root {
  --pink: #ef6094;
  --pink-soft: #f8c6d8;
  --purple: #452174;
  --purple-soft: #713b9e;
  --paper: #fffafb;
  --white: #ffffff;
  --line: #efc5d5;
  --shadow: rgba(80, 43, 92, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: #29174b;
  background:
    radial-gradient(circle at 50% 18%, #f9feff 0%, #eefafd 42%, #e5f6fa 100%);
  font-family: "Baloo 2", sans-serif;
  position: relative;
  isolation: isolate;
}

/*
 * O fundo é uma única ilustração vertical.
 * Mantemos a arte em largura fixa no centro para ela nunca ficar "esticada"
 * em monitores ultrawide. O espaço que sobra nas laterais recebe um fading
 * suave para o mesmo tom claro do fundo.
 */
/* ================= FUNDO MODULAR ================= */
body::before { content: none; }
body::after { content: none; }

.module-bg { pointer-events:none; }

.hero, .rsvp-section, .lower-module {
  position: relative;
  isolation: isolate;
}

.hero::before, .rsvp-section::before, .lower-module::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  transform: translateX(-50%);
  width: min(941px, 100vw);
  top: 0;
  bottom: 0;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 5%, #000 15%, #000 85%, rgba(0,0,0,.25) 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 5%, #000 15%, #000 85%, rgba(0,0,0,.25) 95%, transparent 100%);
}

.hero::before {
  background-image: url("images/hero-oceano.png");
}

.rsvp-section::before {
  background-image: url("images/fundo-formulario.png");
  top: -24px;
  bottom: -24px;
}

.lower-module::before {
  background-image: url("images/fundo-continuo.png");
  background-size: 100% auto;
  background-position: center top;
  background-color: #eaf8fb;
}

/* suaviza a junção entre um cenário e o seguinte sem criar faixa branca */
.rsvp-section::after, .lower-module::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  transform: translateX(-50%);
  width: min(941px, 100vw);
  top: 0;
  height: 48px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(239,251,255,.04), rgba(239,251,255,0));
}

img { max-width: 100%; }


/* ================= NAV ================= */
.site-nav {
  width: 100%;
  min-height: 62px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(22px, 4vw, 62px);
  border-bottom: 1px solid rgba(255,255,255,.75);
  background: rgba(255,255,255,.42);
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 10;
}
.site-nav a {
  color: #321366;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  transition: color .2s ease, transform .2s ease;
}
.site-nav a:hover { color: var(--pink); transform: translateY(-1px); }

/* ================= HERO ================= */
.hero {
  min-height: 570px;
  position: relative;
  background: transparent;
}
.hero-content {
  width: min(1040px, calc(100% - 40px));
  min-height: 500px;
  margin: 0 auto;
  padding: 65px 0 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(35px, 6vw, 75px);
  position: relative;
  z-index: 2;
}
.hero-photo {
  flex: 0 0 auto;
  width: 235px;
  height: 290px;
  object-fit: cover;
  object-position: center;
  border-radius: 47% 47% 24% 24%;
  border: 7px solid #ffeaf3;
  box-shadow: 0 10px 20px rgba(111,67,151,.40);
}
.hero-copy {
  width: min(500px, 100%);
  text-align: center;
}
.crown {
  display: block;
  margin: 0 auto -2px;
  color: #ffbd38;
  font-size: clamp(48px, 5vw, 66px);
  line-height: .55;
  transform: rotate(-18deg);
}
.hero h1 {
  margin: 0;
  color: #ed5c92;
  font: clamp(50px, 6vw, 76px) Pacifico, cursive;
  text-shadow: 2px 2px #fff, 4px 4px #de9bbc;
}
.hero h2,
.facts h2,
.memories h2 {
  color: var(--purple-soft);
  font: italic 600 clamp(24px, 3vw, 32px) "Playfair Display", serif;
  text-shadow: 0 1px 0 rgba(255,255,255,.98), 0 0 4px rgba(255,255,255,.98), 0 0 11px rgba(255,255,255,.86), 0 0 20px rgba(255,255,255,.58);
}
.hero h2 { margin: 22px 0 15px; }
.hero h2 b,
.memories h2 b { color: #fb6198; }
.hero p {
  width: min(370px, 100%);
  margin: auto;
  color: #201f2d;
  line-height: 1.48;
  font-size: 16px;
  text-shadow: 0 1px 0 #fff, 0 0 5px rgba(255,255,255,.98), 0 0 12px rgba(255,255,255,.9), 0 0 22px rgba(255,255,255,.62);
}

/* ================= RSVP ================= */
.rsvp-section {
  position: relative;
  padding: 62px 18px 52px;
  background: transparent;
}
.rsvp-card {
  position: relative;
  width: min(780px, 100%);
  margin: auto;
  padding: 0 clamp(18px, 4vw, 36px) 28px;
  border: 2px solid #f5c2d3;
  border-radius: 28px;
  background: rgba(255,250,253,.98);
  box-shadow: 0 12px 30px var(--shadow);
}
.shell {
  width: 76px;
  height: 68px;
  margin: -31px auto 4px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
}
.shell img {
  width: 76px;
  height: 68px;
  object-fit: contain;
}
.rsvp-card h2 {
  margin: 0;
  text-align: center;
  color: var(--pink);
  font: clamp(27px, 4vw, 34px) Pacifico, cursive;
}
.rsvp-card > p {
  margin: 3px 0 20px;
  text-align: center;
  color: var(--purple);
  font-size: 15px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
}
label {
  min-width: 0;
  color: #3d2173;
  font-size: 13px;
  font-weight: 800;
}
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
input, select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  height: 44px;
  margin-top: 5px;
  padding: 0 12px;
  border: 1px solid #cbd0d7;
  border-radius: 8px;
  background: #fff;
  color: #30203f;
  font: 14px "Baloo 2", sans-serif;
}
textarea { height: 58px; padding-top: 8px; resize: vertical; }
.rsvp-card button {
  display: block;
  width: min(325px, 100%);
  margin: 19px auto 0;
  border: 0;
  border-radius: 10px;
  padding: 12px;
  background: linear-gradient(90deg, #f35d91, #f77aa8);
  box-shadow: 0 4px 8px rgba(189,79,112,.30);
  color: #fff;
  font: 800 18px "Baloo 2", sans-serif;
  cursor: pointer;
}
output {
  display: block;
  min-height: 19px;
  margin-top: 8px;
  text-align: center;
  color: #25854c;
  font-weight: 800;
}

/* ================= MÓDULO INFERIOR ================= */
.lower-module {
  position: relative;
  overflow: hidden;
}

/* ================= CURIOSIDADES ================= */
.facts {
  padding: 58px 18px 62px;
  background: transparent;
  text-align: center;
}
.section-inner { width: min(1000px, 100%); margin: auto; }
.facts h2 { margin: 0 0 28px; }
.fact-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
  width: min(850px, 100%);
  margin: auto;
}
.fact-list article {
  min-height: 218px;
  padding: 12px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: rgba(255,250,252,.98);
  border: 2px solid #f3c7d8;
  border-radius: 15px;
  box-shadow: 0 5px 12px rgba(188,131,147,.18);
}
.fact-list i {
  height: 74px;
  margin-bottom: 4px;
  display: grid;
  place-items: center;
  font-style: normal;
}
.fact-list i img {
  width: 70px;
  height: 65px;
  object-fit: contain;
}
.fact-list h3 {
  margin: 4px 0 7px;
  color: #43217d;
  font-size: 16px;
  line-height: 1.12;
}
.fact-list p {
  margin: 8px 0 0;
  color: #33233f;
  font-size: 14px;
  line-height: 1.28;
}

/* ================= MEMÓRIAS ================= */
.memories {
  padding: 0 18px 72px;
  background: transparent;
  text-align: center;
}
.memory-panel {
  width: min(1060px, 100%);
  margin: 0 auto;
  padding: 48px clamp(18px, 4vw, 48px) 42px;
  background: rgba(255,255,255,.96);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(80,43,92,.14);
  border: 1px solid rgba(255,255,255,.95);
}
.memories h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
}
.memory-subtitle {
  margin: 0 0 28px;
  color: #6e4c82;
  font-size: 14px;
}
.gallery {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
  align-items: start;
}
.gallery figure {
  min-width: 0;
  margin: 0;
}
.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 145 / 166;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 15px;
  box-shadow: 0 0 0 2px #e6b4c6, 0 5px 10px rgba(119,90,112,.22);
}
.gallery figcaption {
  margin-top: 9px;
  color: #422074;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}
.gallery figcaption span { color: #fb6198; }

/* ================= FOOTER ================= */
footer {
  padding: 22px 15px 42px;
  text-align: center;
  color: #4b257a;
  background: linear-gradient(rgba(255,241,216,.88) 70%, #f36f9f 70%);
}
footer p { margin: 0 0 8px; font-size: 18px; }
footer div { display: flex; justify-content: center; gap: 14px; }
footer a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f16799;
  border: 2px solid white;
  color: white;
  text-decoration: none;
  font-size: 22px;
}
footer small {
  position: relative;
  top: 21px;
  color: white;
}

/* ================= BOLHAS ================= */
.bubbles {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
}
.bubbles span {
  position: absolute;
  left: var(--x);
  bottom: -45px;
  width: var(--s);
  height: var(--s);
  border: 1.8px solid rgba(255,255,255,.75);
  border-radius: 50%;
  box-shadow: inset -3px -4px 5px rgba(120,199,224,.53), 1px 2px 3px rgba(92,145,180,.47);
  animation: rise var(--d) linear var(--delay) infinite;
}
.bubbles span::after {
  content: "";
  position: absolute;
  width: 25%;
  height: 25%;
  top: 18%;
  left: 23%;
  border-radius: 50%;
  background: rgba(255,255,255,.6);
}
@keyframes rise {
  to { transform: translateY(-115vh) translateX(28px); opacity: .1; }
}

/* ================= TABLET ================= */
@media (max-width: 900px) {
  .hero-content { gap: 35px; }
  .hero-photo { width: 210px; height: 265px; }
  .fact-list { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

/* ================= CELULAR ================= */
@media (max-width: 650px) {
  body { background-attachment: scroll; }

  .site-nav {
    min-height: 58px;
    justify-content: flex-start;
    gap: 18px;
    padding: 0 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { font-size: 12px; }

  .hero { min-height: auto; }
  .hero::before, .rsvp-section::before, .lower-module::before { width: min(941px, 100vw); }
  .rsvp-section::before { top: -16px; bottom: -16px; }
  .hero-content {
    width: min(100% - 28px, 520px);
    min-height: 0;
    padding: 42px 0 58px;
    flex-direction: column;
    gap: 18px;
  }
  .hero-photo {
    width: min(190px, 58vw);
    height: min(235px, 72vw);
    border-width: 6px;
  }
  .hero-copy { width: 100%; }
  .crown { font-size: 48px; }
  .hero h1 { font-size: clamp(45px, 14vw, 62px); }
  .hero h2 { margin: 14px 0 12px; font-size: 21px; }
  .hero p { width: min(340px, 94%); font-size: 14px; }

  .rsvp-section { padding: 52px 12px 40px; }
  .rsvp-card { border-radius: 22px; padding: 0 14px 22px; }
  .rsvp-card h2 { font-size: 26px; }
  .rsvp-card > p { font-size: 13px; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .span-2, .span-3 { grid-column: span 1; }
  input, select { height: 44px; }

  .facts { padding: 42px 12px 48px; }
  .facts h2 { font-size: 25px; line-height: 1.2; }
  .fact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }
  .fact-list article { min-height: 195px; padding: 10px 8px; }
  .fact-list article:last-child { grid-column: 1 / -1; width: min(170px, 50%); justify-self: center; }
  .fact-list h3 { font-size: 15px; }
  .fact-list p { font-size: 13px; }

  .memories { padding: 0 10px 45px; }
  .memory-panel {
    padding: 35px 12px 30px;
    border-radius: 22px;
  }
  .memories h2 { font-size: 27px; line-height: 1.15; }
  .memory-subtitle { font-size: 13px; margin-bottom: 22px; }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }
  .gallery figcaption { font-size: 12px; }

  footer { padding-bottom: 40px; }
  footer p { font-size: 15px; }
}

@media (max-width: 380px) {
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 11px; }
  .fact-list article { min-height: 185px; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
