:root {
  color-scheme: light;
  --background: #f8f2ec;
  --card: #ffffff;
  --card-soft: #fefbf9;
  --terracotta: #c27652;
  --terracotta-dark: #8b4d2d;
  --terracotta-light: #f0d8cc;
  --accent: #e5aa83;
  --text: #402820;
  --muted: #7b5f53;
  --shadow-elegant: 0 25px 60px rgba(73, 31, 16, 0.18);
  --shadow-soft: 0 12px 35px rgba(82, 46, 29, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}

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

h1,
h2,
h3,
h4 {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  color: var(--terracotta-dark);
  margin: 0 0 0.7rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.4), transparent 60%),
    linear-gradient(135deg, #fef9f6, #f6dfd2 45%, #b65f36 140%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
}

.hero__panel {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2rem;
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  box-shadow: var(--shadow-elegant);
  backdrop-filter: blur(12px);
}

.hero__heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
}

.hero__heart svg {
  width: 32px;
  height: 32px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
}

.hero__lead {
  font-size: 1.2rem;
  max-width: 50ch;
  margin: 1rem auto 2rem;
  color: var(--muted);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.3rem;
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.hero__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--terracotta-light);
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero__icon svg {
  width: 20px;
  height: 20px;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: var(--muted);
  margin: 0;
}

.meta-value {
  margin: 0;
  font-weight: 600;
}

.hero__address {
  font-style: normal;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.4;
}

.hero__countdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.countdown__item {
  background: var(--card);
  border-radius: 1.4rem;
  padding: 1.4rem 1rem;
  box-shadow: var(--shadow-soft);
}

.countdown__value {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0;
  color: var(--terracotta);
  font-weight: 600;
}

.countdown__label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__actions .btn {
  min-width: 220px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

main {
  width: min(1200px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 4rem 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.location {
  background: var(--card);
  padding: 3rem;
  border-radius: 2rem;
  box-shadow: var(--shadow-elegant);
  margin-bottom: 4rem;
}

.location__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.location-card {
  background: var(--card-soft);
  border-radius: 1.4rem;
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
}

.location-card__meta {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.map-embed {
  position: relative;
  padding-top: 56%;
  border-radius: 1.2rem;
  overflow: hidden;
  margin-top: 1rem;
  box-shadow: var(--shadow-soft);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gifts {
  padding: 3rem;
  background: var(--card);
  border-radius: 2rem;
  box-shadow: var(--shadow-elegant);
}

.gifts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gift-card {
  background: var(--card-soft);
  border-radius: 1.4rem;
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 240px;
}

.gift-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--terracotta-light);
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  margin-bottom: 0.4rem;
}

.gift-card__icon svg {
  width: 26px;
  height: 26px;
}

.gift-card__value {
  color: var(--terracotta);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.gift-card__title {
  font-size: 1.4rem;
  margin: 0;
}

.gift-card button {
  margin-top: auto;
  width: 100%;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 1rem 1.8rem;
  font-weight: 600;
  font-size: 1rem;
  background: var(--terracotta);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 18px 30px rgba(194, 118, 82, 0.35);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 25px 40px rgba(194, 118, 82, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--terracotta);
  border: 1px solid var(--terracotta-light);
  box-shadow: none;
}

.footer {
  text-align: center;
  padding: 3rem 1rem 4rem;
  color: var(--muted);
}

.footer__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  border: none;
  border-radius: 2rem;
  padding: 0;
}

.modal::backdrop {
  background: rgba(29, 12, 5, 0.65);
}

.modal__content {
  position: relative;
  background: var(--card);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 3rem 2.5rem;
  width: min(420px, calc(100vw - 2rem));
  box-shadow: var(--shadow-soft);
}

.modal__qr {
  width: 220px;
  margin: 1.5rem auto;
}

.pix-key {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--terracotta-light);
  border-radius: 1rem;
  padding: 1rem;
  color: var(--terracotta-dark);
  margin-bottom: 1rem;
}

.pix-key code {
  font-size: 0.95rem;
  word-break: break-all;
}

.modal__close {
  border: none;
  background: transparent;
  font-size: 1.8rem;
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  color: var(--terracotta-dark);
  cursor: pointer;
}

@media (min-width: 640px) {
  .pix-key {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 720px) {
  main {
    width: calc(100% - 2rem);
  }

  .location,
  .gifts {
    padding: 2rem;
  }

  .hero__panel {
    padding: 2rem 1.5rem;
  }

  .hero__meta-item {
    width: 100%;
    justify-content: center;
  }
}
