:root {
  color-scheme: light;
  --bg-top: #c9ad8f;
  --bg-base: #b08e6b;
  --bg-bottom: #967555;
  --surface: #ffffff;
  --text: #4a3f45;
  --text-on-dark: #fff8f2;
  --text-muted-on-dark: #f5ebe3;
  --muted: #6b5d52;
  --accent: #c9819a;
  --accent-dark: #b56b86;
  --accent-soft: #f6e4eb;
  --border: #e8ddd2;
  --danger: #b42318;
  --success: #2f7a55;
  --shadow: 0 16px 40px rgba(60, 45, 30, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  font-family: "Nunito", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-base) 45%, var(--bg-bottom) 100%);
  min-height: 100vh;
}

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

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  opacity: 0.45;
}

.blob-one {
  width: 280px;
  height: 280px;
  top: -80px;
  left: -60px;
  background: radial-gradient(circle, #d4b896 0%, transparent 70%);
}

.blob-two {
  width: 320px;
  height: 320px;
  top: 120px;
  right: -100px;
  background: radial-gradient(circle, #8a6848 0%, transparent 70%);
}

.side-decor-scatter {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.decor-scatter-item {
  position: absolute;
  height: auto;
  opacity: 0.72;
  filter:
    brightness(1.15)
    contrast(3.2)
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.45))
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.side-decor-scatter img.is-hidden,
.hero-photos img.is-hidden {
  display: none;
}

.hero-photos {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero-photo {
  width: 200px;
  height: 250px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

.page-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.section {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 2rem 1.25rem 1.5rem;
  text-align: center;
}

.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 920px;
  margin: 0 auto;
}

.hero-mascot {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.hero-title-wrap {
  flex: 1;
  min-width: 0;
}

.hero-title {
  margin: 0;
  font-family: "Dancing Script", cursive;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff5ec;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-couple {
  margin: 0.5rem 0 0;
  font-family: "Dancing Script", cursive;
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
  color: #fff5ec;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
  margin: 0.75rem 0 0;
  color: var(--text-muted-on-dark);
  font-size: 1rem;
  line-height: 1.5;
}

.gifts-section,
.options-section,
.footer {
  padding: 0 1.25rem 2rem;
}

.options-section {
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}

.options-grid {
  display: grid;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}

.section-heading {
  max-width: 960px;
  margin: 0 auto 1.25rem;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  color: var(--text-on-dark);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.section-heading p {
  margin: 0;
  color: var(--text-muted-on-dark);
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: var(--accent-soft);
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.card-purchase-link {
  display: block;
  width: 100%;
  padding: 0.55rem 1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.card-purchase-link:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.card-choose-button {
  margin-top: auto;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
}

.pix-card,
.delivery-card {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.pix-card .section-heading h2,
.delivery-card .section-heading h2 {
  color: var(--text);
  text-shadow: none;
  font-size: 1.35rem;
}

.pix-card .section-heading p,
.delivery-card .section-heading p {
  color: var(--muted);
}

.delivery-address {
  margin: 0 0 1.25rem;
  font-style: normal;
  line-height: 1.6;
  font-size: 0.95rem;
}

.delivery-address p {
  margin: 0 0 0.35rem;
}

.delivery-address p:last-child {
  margin-bottom: 0;
}

.delivery-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.delivery-actions .button {
  width: 100%;
  text-align: center;
  text-decoration: none;
}

#copy-address-button {
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

.pix-details {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}

.pix-details div {
  display: grid;
  gap: 0.2rem;
}

.pix-details dt {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pix-details dd {
  margin: 0;
  font-size: 0.95rem;
}

.button {
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.8rem 1.15rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

#copy-pix-button {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

.footer {
  padding-bottom: 2.5rem;
  text-align: center;
  color: var(--text-muted-on-dark);
}

.footer p {
  margin: 0;
}

.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
  z-index: 1000;
}

.toast {
  width: min(100%, 420px);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
  text-align: center;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-color: #b9dcc6;
  background: #f3fbf6;
  color: var(--success);
}

.toast.error {
  border-color: #f0c7c3;
  background: #fff5f4;
  color: var(--danger);
}

.dialog {
  border: none;
  border-radius: var(--radius-md);
  padding: 0;
  width: min(92vw, 420px);
  box-shadow: var(--shadow);
}

.dialog::backdrop {
  background: rgba(74, 63, 69, 0.45);
}

#reserve-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dialog-step {
  padding: 1.25rem;
}

.reserve-success {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.reserve-success h2 {
  margin: 0;
  font-size: 1.35rem;
}

.reserve-success p {
  margin: 0;
  color: var(--muted);
}

.reserve-success-summary {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.reserve-success-summary div {
  display: grid;
  gap: 0.2rem;
}

.reserve-success-summary dt {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reserve-success-summary dd {
  margin: 0;
  font-size: 1rem;
}

#reserve-form label {
  font-weight: 700;
}

#reserve-form input,
#guest-phone {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
}

#guest-phone.input-error {
  border-color: var(--danger);
}

.button-full {
  width: 100%;
}

.button-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8rem 1.15rem;
  border-radius: var(--radius-pill);
  background: #25d366;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.button-whatsapp:hover {
  transform: translateY(-1px);
  background: #1ebe57;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 899px) {
  .side-decor-scatter {
    display: none;
  }

  .hero-photo {
    width: 150px;
    height: 190px;
  }
}

@media (min-width: 768px) {
  .options-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}

@media (min-width: 900px) {
  .pix-details {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .hero {
    padding-top: 2.5rem;
  }

  .hero-mascot {
    width: 96px;
    height: 96px;
  }

  .toast-container {
    left: auto;
    align-items: flex-end;
  }
}

@media (max-width: 520px) {
  .hero-title-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-mascot {
    width: 64px;
    height: 64px;
  }
}
