:root {
  --wine: #6c1426;
  --wine-dark: #480b18;
  --gold: #b78a43;
  --cream: #fbf7ef;
  --paper: #fffdf9;
  --ink: #2d2928;
  --muted: #6d6562;
  --line: rgba(108, 20, 38, .14);
  --shadow: 0 18px 55px rgba(72, 11, 24, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 86px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
nav { display: flex; justify-content: center; gap: clamp(1.4rem, 3.4vw, 4.1rem); }
nav a {
  color: #232830;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: .01em;
  text-decoration: none;
}
nav a:hover, nav a:focus-visible { color: var(--wine); }

.hero {
  position: relative;
  min-height: calc(100vh - 86px);
  padding: 80px 24px 70px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(rgba(15, 10, 12, .26), rgba(15, 10, 12, .58)),
    url("aliancas-e-flores.png") center 54% / cover no-repeat;
}
.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  text-shadow: 0 3px 22px rgba(0, 0, 0, .48);
}
.leaf-mark {
  margin-bottom: 4px;
  color: white;
  font: 400 4.8rem/1 Georgia, serif;
  transform: rotate(-12deg);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
}
h1, h2 {
  margin: 0;
  color: var(--wine);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.08;
}
h1 {
  color: white;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(3.8rem, 8vw, 7.2rem);
  letter-spacing: -.055em;
}
h1 span { font-size: .72em; font-weight: 400; }
.hero-message {
  max-width: 790px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, .96);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.95rem, 1.45vw, 1.12rem);
  font-style: italic;
  line-height: 1.6;
}
.hero-message p { margin: 0; }
.hero-message cite {
  display: block;
  margin-top: 9px;
  color: white;
  font-size: .9em;
  font-style: normal;
  font-weight: 700;
}
.hero-date {
  margin: 25px 0 2px;
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-place { margin: 0; font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; }
.couple {
  max-width: 780px;
  margin: 0 auto;
  padding: 96px 26px 90px;
  text-align: center;
}
.couple h2 { font-size: clamp(2.8rem, 6vw, 4.7rem); }
.hero-verse {
  margin: 28px 0 20px;
}
.hero-verse p {
  margin: 0;
  color: #756253;
  font-family: Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic;
  letter-spacing: .035em;
}
.hero-verse cite {
  display: block;
  margin-top: 7px;
  color: var(--gold);
  font-size: .74rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.couple-copy { max-width: 650px; margin: 28px auto 0; color: var(--muted); font-size: 1.05rem; }
.event-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.event-card { min-height: 360px; padding: 72px 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #efe6dc; }
.event-card-dark { color: white; background: var(--wine-dark); }
.event-card h2 { margin-bottom: 18px; font-size: clamp(2.2rem, 4vw, 3.5rem); }
.event-card-dark h2 { color: white; }
.event-card p { margin: 3px 0; }
.event-icon { color: var(--gold); font-size: 2rem; }
.map-frame {
  width: min(100%, 520px);
  aspect-ratio: 16 / 8;
  margin: 28px 0 18px;
  overflow: hidden;
  border: 1px solid rgba(108, 20, 38, .12);
  border-radius: 14px;
  background: #ddd;
  box-shadow: 0 14px 38px rgba(24, 11, 14, .13);
}
.map-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 21px;
  border: 1px solid var(--wine);
  border-radius: 999px;
  color: var(--wine);
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, color .2s ease, background .2s ease;
}
.map-button:hover, .map-button:focus-visible { color: white; background: var(--wine); transform: translateY(-2px); }
.map-button-light { border-color: rgba(255, 255, 255, .72); color: white; }
.map-button-light:hover, .map-button-light:focus-visible { color: var(--wine-dark); background: white; }
.hero-cta, .gift-button, .dialog-ok, .pix-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--wine);
  box-shadow: 0 8px 22px rgba(108, 20, 38, .18);
  font: 800 .88rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.hero-cta:hover, .gift-button:hover, .dialog-ok:hover, .pix-copy:hover { background: var(--wine-dark); transform: translateY(-2px); }

.gifts { max-width: 1220px; margin: 0 auto; padding: 88px 28px 110px; }
.section-heading { max-width: 690px; margin: 0 auto 52px; text-align: center; }
.section-heading h2 { font-size: clamp(2.8rem, 6vw, 5rem); }
.section-heading h2::after {
  content: "♥";
  display: block;
  margin: 16px auto 14px;
  color: var(--gold);
  font: 400 .85rem/1 system-ui;
  letter-spacing: 0;
}
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 1.05rem; }
.gift-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gift-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gift-card:hover { transform: translateY(-5px); box-shadow: 0 24px 65px rgba(72, 11, 24, .15); }
.gift-visual {
  aspect-ratio: 3 / 2;
  min-height: 168px;
  overflow: hidden;
  background: #eadfd2;
}
.gift-visual img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease; }
.gift-card:hover .gift-visual img { transform: scale(1.035); }
.gift-content { flex: 1; padding: 22px; display: flex; flex-direction: column; }
.gift-title { margin: 0 0 12px; color: var(--wine); font: 400 1.35rem/1.22 Georgia, serif; }
.gift-price { margin: auto 0 18px; padding-top: 12px; font-size: 1.38rem; font-weight: 850; }
.gift-button { width: 100%; }

footer {
  padding: 58px 24px;
  text-align: center;
  color: #f8eee5;
  background: var(--wine-dark);
}
footer span { color: var(--gold); }
footer p { margin: 8px 0 3px; font: 400 1.5rem/1 Georgia, serif; }
footer small { letter-spacing: .2em; opacity: .72; }

dialog {
  width: min(92vw, 460px);
  max-height: 92vh;
  padding: 38px;
  border: 1px solid rgba(183, 138, 67, .35);
  border-radius: 24px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 100px rgba(35, 7, 14, .32);
  text-align: center;
  overflow-y: auto;
}
dialog::backdrop { background: rgba(45, 20, 25, .62); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; color: var(--muted); font-size: 2rem; cursor: pointer; }
dialog h2 { font-size: 2rem; }
.dialog-price { margin: 12px 0; color: var(--wine); font-size: 1.55rem; font-weight: 850; }
.pix-panel { margin: 20px 0 22px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.pix-heading { margin: 0 0 14px; color: var(--wine); font-weight: 850; }
.pix-qrcode { width: min(100%, 250px); aspect-ratio: 1; margin: 0 auto 14px; padding: 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: white; }
.pix-qrcode img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.dialog-note { margin: 0 0 15px; color: var(--muted); }
.pix-copy { width: 100%; }
.copy-feedback { min-height: 1.4em; margin: 8px 0 0; color: #2f6c3d; font-size: .88rem; font-weight: 750; }
.pix-recipient { margin: 10px 0 0; color: var(--ink); font-size: .88rem; font-weight: 700; }
.pix-installment { margin: 8px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.dialog-ok { width: 100%; }

@media (max-width: 850px) {
  .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 700px; }
}
@media (max-width: 620px) {
  .topbar { min-height: 66px; padding: 0; overflow-x: auto; justify-content: flex-start; }
  nav { width: max-content; padding: 0 18px; justify-content: flex-start; gap: 24px; }
  nav a { white-space: nowrap; font-size: .84rem; }
  .hero { min-height: calc(100svh - 66px); padding: 70px 22px; }
  h1 { font-size: clamp(3.15rem, 17vw, 5rem); }
  .leaf-mark { font-size: 4rem; }
  .hero-message { margin-top: 18px; font-size: .93rem; line-height: 1.48; }
  .hero-date { margin-top: 20px; font-size: .9rem; }
  .hero-place { font-size: .82rem; }
  .couple { padding: 72px 22px 68px; }
  .event-section { grid-template-columns: 1fr; }
  .event-card { min-height: 320px; padding: 58px 18px; }
  .map-frame { aspect-ratio: 4 / 3; margin-top: 24px; }
  .gifts { padding: 70px 16px 82px; }
  .gift-grid { grid-template-columns: 1fr; gap: 16px; }
  .gift-card { display: grid; grid-template-columns: 112px 1fr; border-radius: 16px; }
  .gift-visual { min-height: 100%; aspect-ratio: auto; }
  .gift-content { padding: 17px; }
  .gift-title { font-size: 1.16rem; }
  .gift-price { margin: 0 0 12px; padding-top: 0; font-size: 1.18rem; }
  .gift-button { min-height: 44px; }
  dialog { padding: 34px 24px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
