﻿:root {
  --bg: #fff8ef;
  --surface: #ffffff;
  --surface-2: #fff3db;
  --text: #2f2a26;
  --muted: #7f746c;
  --primary: #ff8b5e;
  --primary-strong: #ef6f43;
  --secondary: #2fb7a4;
  --outline: #ffd8c7;
  --shadow: 0 16px 40px rgba(70, 42, 21, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: #fff8ef;
  min-height: 100vh;
  line-height: 1.5;
  position: relative;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.2);
  z-index: 1;
  pointer-events: none;
}

h1,
h2,
h3 {
  font-family: 'Baloo 2', cursive;
  line-height: 1.1;
  margin: 0;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.bg-shapes {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

body.has-video .bg-shapes {
  display: none;
}

header,
main,
footer {
  position: relative;
  z-index: 3;
}

.shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
}

.shape-1 {
  width: 380px;
  height: 380px;
  background: rgba(255, 139, 94, 0.2);
  top: -90px;
  left: -100px;
}

.shape-2 {
  width: 260px;
  height: 260px;
  background: rgba(47, 183, 164, 0.18);
  bottom: 10%;
  right: -70px;
}

.shape-3 {
  width: 170px;
  height: 170px;
  background: rgba(255, 207, 117, 0.3);
  top: 42%;
  left: 55%;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
}

.brand {
  text-decoration: none;
  font-family: 'Baloo 2', cursive;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.brand span {
  color: #fff;
}

.hero {
  padding-bottom: 48px;
}

.hero-content {
  max-width: 640px;
  margin-top: 28px;
}

.eyebrow {
  display: inline-block;
  background: #ffe6cf;
  color: #8f4d30;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 14px;
}

#heroTitle {
  color: #fff;
}

.lead {
  font-size: 1.1rem;
  color: #fff;
  max-width: 58ch;
}

.gift-invite {
  margin-top: 10px;
  margin-bottom: 4px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  font-family: 'Nunito', sans-serif;
  transition: 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  opacity: 1;
}

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

.btn-primary {
  background: #ff8b5e;
  background: var(--primary, #ff8b5e);
  color: #fff;
  border: 2px solid #ff8b5e;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-outline {
  border: 2px solid var(--outline);
  color: var(--text);
  background: #fff9f3;
}

.btn-light {
  background: #fff;
  color: var(--text);
  border: 2px solid #ffe3d3;
}

.hero-actions .btn {
  visibility: visible;
}

.hero-card {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid #ffe7d8;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  max-width: 560px;
}

.hero-card h2 {
  margin-bottom: 16px;
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.small {
  color: var(--muted);
  margin-top: 12px;
  font-weight: 900;
}

.highlights {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 8px;
  margin-bottom: 50px;
}

.cta-section {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.highlight-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid #ffe7d8;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(62, 37, 18, 0.08);
}

.highlight-card p {
  color: var(--muted);
}

.footer {
  padding: 10px 0 28px;
  color: #fff;
  font-size: 1.1rem;
}

.page-title {
  margin-top: 38px;
  margin-bottom: 14px;
}

#giftsTitle {
  color: #fff;
}

.page-subtitle {
  color: #fff;
  max-width: 68ch;
}

.back-home-wrap {
  margin-top: 12px;
}

.gifts-grid {
  margin-top: 28px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gifts-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 28px;
  flex-wrap: wrap;
}

.gifts-pager .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.page-indicator {
  margin: 0;
  font-weight: 800;
  color: #fff;
}

.gift-card {
  background: var(--surface);
  border: 1px solid #ffe3d3;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 8px 18px rgba(62, 37, 18, 0.08);
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  gap: 10px;
  height: 100%;
  min-height: 320px;
}

.gift-card .tag {
  display: inline-block;
  width: fit-content;
  background: #e7fff8;
  color: #1f7f73;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.gift-card h3 {
  font-size: 1.38rem;
  margin: 0;
  line-height: 1.2;
}

.gift-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.35;
}

.gift-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: #914027;
  margin-top: auto;
  margin-bottom: 4px;
}

.gift-card .gift-pay-btn {
  margin-top: 0;
  width: 100%;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
}

.gift-pay-label,
.gift-pay-value {
  display: block;
}

.gift-pay-label {
  font-size: 1.05rem;
}

.gift-pay-value {
  font-size: 1.1rem;
  font-weight: 900;
}

.pix-box {
  margin: 36px 0 48px;
  background: var(--surface-2);
  border: 1px dashed #f5b392;
  border-radius: var(--radius-md);
  padding: 18px;
}

.pix-box code {
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  word-break: break-word;
}

.pix-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.note {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 10px;
}

@media (max-width: 1024px) {
  .container {
    width: min(1100px, 94vw);
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-card {
    max-width: 100%;
  }

  .shape-1 {
    width: 300px;
    height: 300px;
  }

  .shape-2 {
    width: 220px;
    height: 220px;
  }

  .bg-overlay {
    background: rgba(10, 10, 20, 0.24);
  }
}

@media (max-width: 768px) {
  .top-nav {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    font-size: 1.25rem;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .lead {
    font-size: 1.03rem;
  }

  .hero {
    padding-bottom: 36px;
  }

  .hero-content {
    margin-top: 18px;
  }

  .hero-card {
    margin-top: 28px;
    padding: 18px;
  }

  .highlights {
    grid-template-columns: 1fr;
    margin-top: 4px;
    margin-bottom: 30px;
  }

  .highlight-card,
  .gift-card,
  .pix-box {
    padding: 16px;
  }

  .cta-section {
    margin-bottom: 22px;
  }

  .gifts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
    margin-bottom: 28px;
  }

  .pix-row {
    align-items: stretch;
  }

  .pix-row code {
    width: 100%;
  }

  .pix-row .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .top-nav {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .container {
    width: min(1100px, 95vw);
  }

  .eyebrow {
    font-size: 0.95rem;
  }

  h1 {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }

  .hero-card {
    border-radius: 18px;
  }

  .btn {
    width: 100%;
  }

  .top-nav .btn {
    width: auto;
  }

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

  .footer {
    padding-bottom: 20px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .bg-overlay {
    background: rgba(10, 10, 20, 0.28);
  }
}

body.video-fallback .bg-overlay {
  background: rgba(255, 248, 239, 0.9);
}

.pix-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
}

.pix-modal.is-open {
  display: block;
}

.pix-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 20, 0.6);
}

.pix-modal-content {
  position: relative;
  width: min(92vw, 520px);
  margin: 12vh auto 0;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  border: 1px solid #ffe3d3;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

.pix-modal-content h2 {
  margin-bottom: 10px;
}

.pix-modal-content p {
  margin: 0 0 12px;
  color: var(--text);
}

.pix-modal-amount {
  font-size: 1.05rem;
}

.pix-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #75422d;
}
