/* =========================================
   Paleta inspirada no Vale Presente
   ========================================= */
:root {
  --bg: #fbe8e0;
  --bg-soft: #f9dcd2;
  --bg-card: #fff4ee;
  --rose: #c84765;
  --rose-deep: #a93450;
  --rose-soft: #e6a0ad;
  --gold: #caa14a;
  --gold-soft: #e6c977;
  --green: #8aae6e;
  --ink: #5a3b3b;
  --ink-soft: #8a6a6a;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --script: "Dancing Script", "Brush Script MT", cursive;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, #fff0e8 0%, transparent 40%),
    radial-gradient(circle at 90% 100%, #f8d4c8 0%, transparent 45%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.7;
  overflow-x: hidden;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
}

.hero-frame {
  position: relative;
  max-width: 880px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(202, 161, 74, 0.35);
  box-shadow:
    0 30px 80px rgba(168, 75, 95, 0.18),
    inset 0 0 0 8px rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  padding: 80px 40px 70px;
  text-align: center;
}

.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  left: 30px; right: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-frame::before { top: 30px; }
.hero-frame::after  { bottom: 30px; }

.kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  margin: 0 0 14px;
  text-transform: lowercase;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--rose);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 14px;
}

.hero-name {
  display: block;
  font-family: var(--script);
  font-weight: 700;
  color: var(--rose-deep);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  margin-top: 6px;
}

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink);
  margin: 18px auto 26px;
  max-width: 520px;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.ornament span {
  display: inline-block;
  width: 60px; height: 1px;
  background: var(--gold);
}

/* cantos decorativos com flores em SVG */
.corner {
  position: absolute;
  width: 110px; height: 110px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.95;
  pointer-events: none;
}
.corner-tl { top: -10px; left: -10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'><g fill='none'><path d='M10 60 Q30 30 60 35 T100 25' stroke='%238aae6e' stroke-width='2' fill='none' opacity='0.6'/><circle cx='30' cy='35' r='10' fill='%23e58a9a'/><circle cx='30' cy='35' r='3' fill='%23caa14a'/><circle cx='55' cy='25' r='8' fill='%23e6a0ad'/><circle cx='55' cy='25' r='2.5' fill='%23caa14a'/><ellipse cx='42' cy='50' rx='14' ry='6' fill='%238aae6e' opacity='0.5' transform='rotate(-25 42 50)'/><circle cx='80' cy='50' r='6' fill='%23e6a0ad' opacity='0.8'/><circle cx='80' cy='50' r='2' fill='%23caa14a'/></g></svg>");
}
.corner-tr { top: -10px; right: -10px; transform: scaleX(-1);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'><g fill='none'><path d='M10 60 Q30 30 60 35 T100 25' stroke='%238aae6e' stroke-width='2' fill='none' opacity='0.6'/><circle cx='30' cy='35' r='10' fill='%23e58a9a'/><circle cx='30' cy='35' r='3' fill='%23caa14a'/><circle cx='55' cy='25' r='8' fill='%23e6a0ad'/><circle cx='55' cy='25' r='2.5' fill='%23caa14a'/><ellipse cx='42' cy='50' rx='14' ry='6' fill='%238aae6e' opacity='0.5' transform='rotate(-25 42 50)'/><circle cx='80' cy='50' r='6' fill='%23e6a0ad' opacity='0.8'/><circle cx='80' cy='50' r='2' fill='%23caa14a'/></g></svg>");
}
.corner-bl { bottom: -10px; left: -10px; transform: scaleY(-1);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'><g fill='none'><circle cx='30' cy='40' r='8' fill='%23e6a0ad'/><circle cx='30' cy='40' r='2' fill='%23caa14a'/><circle cx='60' cy='30' r='6' fill='%23e58a9a'/><ellipse cx='50' cy='55' rx='10' ry='5' fill='%238aae6e' opacity='0.45' transform='rotate(20 50 55)'/><circle cx='85' cy='40' r='5' fill='%23e6a0ad' opacity='0.7'/></g></svg>");
}
.corner-br { bottom: -10px; right: -10px; transform: scale(-1, -1);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'><g fill='none'><circle cx='30' cy='40' r='8' fill='%23e6a0ad'/><circle cx='30' cy='40' r='2' fill='%23caa14a'/><circle cx='60' cy='30' r='6' fill='%23e58a9a'/><ellipse cx='50' cy='55' rx='10' ry='5' fill='%238aae6e' opacity='0.45' transform='rotate(20 50 55)'/><circle cx='85' cy='40' r='5' fill='%23e6a0ad' opacity='0.7'/></g></svg>");
}

.scroll-hint {
  display: inline-block;
  margin-top: 36px;
  width: 26px; height: 42px;
  border: 2px solid var(--rose-soft);
  border-radius: 14px;
  position: relative;
}
.scroll-hint span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--rose);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translate(-50%, 0); opacity: 1; }
  70%  { transform: translate(-50%, 14px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

.scroll-text {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--rose);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  opacity: 0.85;
  animation: scrollTextPulse 2.4s ease-in-out infinite;
}
@keyframes scrollTextPulse {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50%      { opacity: 1;    transform: translateY(3px); }
}

/* =========================================
   SECTIONS GERAIS
   ========================================= */
.section-title {
  font-family: var(--serif);
  color: var(--rose);
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  margin: 0 0 8px;
  font-weight: 500;
}
.section-sub {
  font-family: var(--serif);
  font-style: italic;
  text-align: center;
  color: var(--ink-soft);
  margin: 0 auto 40px;
  max-width: 600px;
}

/* =========================================
   CARTA
   ========================================= */
.letter {
  max-width: 720px;
  margin: 60px auto;
  padding: 50px 30px;
  text-align: center;
}
.letter h2.section-title {
  font-family: var(--script);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: var(--rose-deep);
  margin-bottom: 24px;
}
.letter p {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--ink);
  margin: 0 0 18px;
}
.letter .signature {
  font-family: var(--script);
  color: var(--gold);
  font-size: 1.4rem;
  margin-top: 24px;
}

/* =========================================
   GALERIA
   ========================================= */
.gallery {
  max-width: 1100px;
  margin: 80px auto 60px;
  padding: 0 24px;
}
.moment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin: 70px 0;
}
.moment.reverse { direction: rtl; }
.moment.reverse > * { direction: ltr; }

.moment-photo {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(168, 75, 95, 0.25),
    0 0 0 10px #fff,
    0 0 0 11px rgba(202, 161, 74, 0.4);
  transform: rotate(-1deg);
  transition: transform 0.5s ease;
}
.moment.reverse .moment-photo { transform: rotate(1.2deg); }
.moment-photo:hover { transform: rotate(0deg) scale(1.02); }

.moment-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.moment-text h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--rose);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 16px;
  line-height: 1.2;
}
.moment-text p {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0;
}

/* =========================================
   MENSAGEM FINAL
   ========================================= */
.message {
  display: flex;
  justify-content: center;
  padding: 60px 24px;
}
.message-card {
  max-width: 720px;
  background: var(--bg-card);
  border: 1px solid rgba(202, 161, 74, 0.35);
  border-radius: 14px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(168, 75, 95, 0.15);
  position: relative;
}
.message-card::before,
.message-card::after {
  content: "";
  position: absolute;
  left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.message-card::before { top: 24px; }
.message-card::after { bottom: 24px; }

.message-card h2 {
  font-family: var(--serif);
  color: var(--rose);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 0 0 24px;
  font-weight: 500;
}
.message-card p {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin: 0 0 16px;
}
.message-card .closing {
  font-family: var(--script);
  color: var(--rose-deep);
  font-size: 1.6rem;
  margin-top: 24px;
}

/* =========================================
   GIFT BUTTON
   ========================================= */
.gift {
  text-align: center;
  padding: 60px 20px 100px;
}
.gift-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  color: #fff;
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  border: none;
  padding: 20px 44px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    0 14px 30px rgba(168, 75, 95, 0.4),
    inset 0 0 0 2px rgba(255,255,255,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  letter-spacing: 0.02em;
  position: relative;
}
.gift-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 20px 40px rgba(168, 75, 95, 0.5),
    inset 0 0 0 2px rgba(255,255,255,0.3);
}
.gift-btn:active { transform: translateY(0) scale(1.0); }
.gift-btn .heart {
  display: inline-block;
  font-size: 1.2rem;
  animation: beat 1.4s ease-in-out infinite;
}
@keyframes beat {
  0%, 100% { transform: scale(1); }
  20%      { transform: scale(1.25); }
  40%      { transform: scale(0.95); }
}

/* =========================================
   MODAL
   ========================================= */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(90, 59, 59, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  background: transparent;
  text-align: center;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn {
  0%   { transform: scale(0.7) rotate(-6deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.gift-img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.modal-note {
  font-family: var(--script);
  color: #fff;
  font-size: 1.4rem;
  margin-top: 18px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.modal-close {
  position: absolute;
  top: -10px; right: -10px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--rose-deep);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 2;
}
.modal-close:hover { background: var(--rose); color: #fff; }

/* =========================================
   PÉTALAS CAINDO
   ========================================= */
.petals {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.petals span {
  position: absolute;
  top: -40px;
  width: 14px; height: 14px;
  background: var(--rose-soft);
  border-radius: 50% 0 50% 0;
  opacity: 0.7;
  animation: fall linear infinite;
}
.petals span:nth-child(1)  { left: 5%;  width:10px; height:10px; animation-duration: 14s; animation-delay: 0s; background: var(--rose-soft); }
.petals span:nth-child(2)  { left: 12%; width:16px; height:16px; animation-duration: 18s; animation-delay: 2s; background: #f5b8c2; }
.petals span:nth-child(3)  { left: 22%; width:12px; height:12px; animation-duration: 16s; animation-delay: 4s; background: var(--rose); opacity:.5; }
.petals span:nth-child(4)  { left: 30%; width:14px; height:14px; animation-duration: 20s; animation-delay: 1s; background: #f5b8c2; }
.petals span:nth-child(5)  { left: 40%; width: 9px; height: 9px; animation-duration: 13s; animation-delay: 3s; background: var(--rose-soft); }
.petals span:nth-child(6)  { left: 50%; width:16px; height:16px; animation-duration: 22s; animation-delay: 5s; background: var(--gold-soft); opacity:.5; }
.petals span:nth-child(7)  { left: 58%; width:11px; height:11px; animation-duration: 17s; animation-delay: 0.5s; background: var(--rose); opacity:.5; }
.petals span:nth-child(8)  { left: 66%; width:14px; height:14px; animation-duration: 19s; animation-delay: 6s; background: #f5b8c2; }
.petals span:nth-child(9)  { left: 74%; width: 8px; height: 8px; animation-duration: 12s; animation-delay: 2s; background: var(--rose-soft); }
.petals span:nth-child(10) { left: 82%; width:15px; height:15px; animation-duration: 21s; animation-delay: 4s; background: var(--gold-soft); opacity:.4; }
.petals span:nth-child(11) { left: 90%; width:12px; height:12px; animation-duration: 16s; animation-delay: 1s; background: var(--rose-soft); }
.petals span:nth-child(12) { left: 95%; width:10px; height:10px; animation-duration: 15s; animation-delay: 3.5s; background: var(--rose); opacity:.5; }
.petals span:nth-child(13) { left: 18%; width:13px; height:13px; animation-duration: 23s; animation-delay: 7s; background: #f5b8c2; }
.petals span:nth-child(14) { left: 45%; width:11px; height:11px; animation-duration: 14s; animation-delay: 5s; background: var(--rose-soft); }
.petals span:nth-child(15) { left: 70%; width:14px; height:14px; animation-duration: 20s; animation-delay: 2.5s; background: #f5b8c2; }

@keyframes fall {
  0%   { transform: translateY(-40px) rotate(0deg);   opacity: 0; }
  10%  { opacity: .8; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  text-align: center;
  padding: 40px 20px 30px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

/* =========================================
   REVEAL (scroll animations)
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .petals { display: none; }
  .scroll-hint span { animation: none; }
  .scroll-text { animation: none; opacity: 0.85; }
  .gift-btn .heart { animation: none; }
}

/* =========================================
   RESPONSIVO
   ========================================= */
@media (max-width: 760px) {
  .hero-frame { padding: 60px 24px 50px; }
  .hero-frame::before, .hero-frame::after { left: 18px; right: 18px; }
  .hero-frame::before { top: 18px; }
  .hero-frame::after  { bottom: 18px; }
  .corner { width: 80px; height: 80px; }

  .moment {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 50px 0;
  }
  .moment.reverse { direction: ltr; }
  .moment-photo { transform: rotate(0); max-width: 380px; margin: 0 auto; }
  .moment.reverse .moment-photo { transform: rotate(0); }

  .gift-btn { font-size: 1.15rem; padding: 16px 32px; }
  .modal-close { top: 4px; right: 4px; }

  .letter { padding: 30px 16px; }
  .message-card { padding: 40px 24px; }
}
