:root {
  --cream: #F4ECE2;
  --cream-soft: rgba(250, 244, 236, 0.94);
  --ink: #6E5442;
  --ink-soft: #8A7360;
  --rose: #C07558;
  --sage: #6B8A5E;
  --lavender: #9A86B4;
  --line: rgba(192, 117, 88, 0.20);
  --line-soft: rgba(192, 117, 88, 0.16);
  --serif: 'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  --script: 'Pinyon Script', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--serif);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

/* ── fundo aquarela desfocado ── */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("assets/invite-bg.webp");
  background-size: cover;
  background-position: center;
  filter: blur(7px) brightness(1.04);
  transform: scale(1.12);
}
.backdrop__veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(244, 236, 226, 0.62);
}

.shell {
  position: relative;
  z-index: 2;
  max-width: 660px;
  margin: 0 auto;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  padding-top: 16px;
  background: rgba(244, 236, 226, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid rgba(192, 117, 88, 0.22);
}
.nav__link {
  flex: 1 1 auto;
  min-width: 58px;
  padding: 0 6px 13px;
  margin-bottom: -0.5px;
  background: none;
  border: none;
  border-bottom: 1.5px solid transparent;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(8.5px, 2.2vw, 10px);
  letter-spacing: clamp(1.5px, 0.5vw, 3px);
  text-transform: uppercase;
  color: #C79A86;
  cursor: pointer;
  transition: all .25s;
  text-align: center;
}
.nav__link:hover { color: #8A7360; }
.nav__link.is-active {
  color: var(--ink);
  border-bottom-color: var(--sage);
}

/* ── panels ── */
.panel { display: none; padding: 34px clamp(16px, 5vw, 40px) 60px; }
.panel.is-active { display: block; animation: fade .4s ease; }
.panel[data-panel="inicio"] { padding-top: 26px; padding-bottom: 56px; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── INÍCIO ── */
.invite-frame {
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 14px 50px rgba(90, 70, 50, 0.20);
}
.invite-frame img { display: block; width: 100%; border-radius: 3px; }

.invite-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.link-underline {
  color: var(--rose);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 0.5px solid rgba(192, 117, 88, 0.4);
  padding-bottom: 2px;
}

.countdown__label {
  text-align: center;
  font-size: 8px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rose);
  margin: 34px 0 14px;
}
.countdown { display: flex; gap: 12px; justify-content: center; }
.countdown__item {
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  border: 0.5px solid var(--line-soft);
  border-radius: 5px;
  padding: 16px 20px;
  min-width: 74px;
}
.countdown__item strong {
  display: block;
  font-size: 32px;
  font-weight: 400;
  color: var(--rose);
  line-height: 1;
}
.countdown__item span {
  display: block;
  margin-top: 6px;
  font-size: 8px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--lavender);
}

/* ── card genérico ── */
.card {
  background: var(--cream-soft);
  border: 0.5px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 44px rgba(90, 70, 50, 0.14);
  padding: clamp(26px, 6vw, 44px) clamp(22px, 6vw, 40px);
}
.card--center { text-align: center; padding: clamp(30px, 7vw, 48px) clamp(22px, 6vw, 40px); }

.script-title {
  font-family: var(--script);
  font-size: clamp(34px, 9vw, 46px);
  color: var(--sage);
  text-align: center;
  line-height: 1.2;
  margin: 0 0 6px;
}
.script-title--lg { font-size: clamp(38px, 10vw, 52px); margin-bottom: 8px; }
.script-title--sm { font-size: 34px; margin: 10px 0 8px; }
.script-title--rose { color: var(--rose); font-size: 34px; margin: 0; }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 22px;
}
.divider span { display: block; height: 0.5px; width: 30px; background: rgba(192, 117, 88, 0.35); }
.divider i { color: var(--rose); font-size: 11px; font-style: normal; }
.card--center .divider span { width: 34px; }
.card--center .divider i { font-size: 12px; }

.card__lede {
  font-size: 15px;
  line-height: 2;
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 24px;
}
.card__lede em { color: var(--rose); font-style: italic; }
.card__note {
  text-align: center;
  font-size: 14px;
  font-style: italic;
  color: var(--lavender);
  line-height: 2;
  margin: 26px 0 0;
}
.card__note em { color: var(--rose); }

/* ── RSVP form ── */
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 8.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--lavender);
}
.field {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 0.5px solid rgba(192, 117, 88, 0.22);
  border-radius: 4px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, background .2s;
}
.field--area { resize: none; line-height: 1.7; margin-bottom: 22px; }
.field:focus { border-color: var(--rose); background: rgba(255, 255, 255, 0.92); }

.counter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.counter__label {
  flex: 1;
  font-size: 8.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--lavender);
}
.counter__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0.5px solid rgba(192, 117, 88, 0.3);
  background: transparent;
  color: var(--rose);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.counter__btn:hover { border-color: var(--rose); background: rgba(192, 117, 88, 0.08); }
.counter__value { min-width: 24px; text-align: center; font-size: 19px; color: var(--ink); }

/* ── botão principal ── */
.btn {
  border: none;
  border-radius: 3px;
  padding: 16px;
  background: var(--rose);
  color: #FBF5EC;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, opacity .2s;
}
.btn:hover { background: var(--sage); }
.btn:disabled { opacity: 0.7; cursor: wait; }
.btn--block { display: block; width: 100%; }
.invite-actions .btn--block { max-width: 340px; padding: 15px; box-shadow: 0 6px 20px rgba(192, 117, 88, 0.28); }

/* ── sucesso RSVP ── */
.rsvp-success { text-align: center; padding: 14px 0 8px; }
.rsvp-success__heart { font-size: 26px; color: var(--rose); letter-spacing: 6px; }

/* ── notices ── */
.notice { margin: 0 0 16px; padding: 12px 16px; border-radius: 6px; font-size: 13px; font-style: normal; }
.notice--warning { background: rgba(255, 234, 208, 0.7); color: #8b5e2c; }
.notice--error { background: rgba(201, 67, 67, 0.1); color: #9b2e2e; }

/* ── PRESENTES (wishlist) ── */
.wish {
  background: rgba(255, 255, 255, 0.55);
  border: 0.5px solid var(--line-soft);
  border-radius: 6px;
  padding: 15px 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.wish__icon { font-size: 22px; width: 34px; text-align: center; flex-shrink: 0; padding-top: 2px; }
.wish__name { font-size: 15.5px; color: var(--ink); margin-bottom: 3px; font-weight: 500; }
.wish__desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; font-style: italic; }
.tag {
  display: inline-block;
  margin-top: 7px;
  padding: 2px 9px;
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 3px;
}
.tag--rose { background: rgba(208, 144, 122, 0.16); color: var(--rose); }
.tag--sage { background: rgba(122, 144, 104, 0.14); color: var(--sage); }

/* ── SUGESTÕES (gift grid) ── */
.gift-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gift {
  margin: 0;
  background: #fff;
  border: 0.5px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(90, 70, 50, 0.07);
}
.gift__thumb {
  height: 150px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gift__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gift figcaption { padding: 12px 13px 14px; flex: 1; display: flex; flex-direction: column; }
.gift__name { font-size: 13.5px; color: var(--ink); font-weight: 500; line-height: 1.3; margin-bottom: 4px; }
.gift__desc { font-size: 11px; color: var(--ink-soft); font-style: italic; line-height: 1.5; margin-bottom: 9px; flex: 1; }
.gift .tag { align-self: flex-start; margin-top: 0; font-size: 11px; letter-spacing: .4px; text-transform: none; padding: 3px 9px; }

/* ── PIX ── */
.pix-box {
  background: rgba(255, 255, 255, 0.55);
  border: 0.5px solid var(--line-soft);
  border-radius: 8px;
  padding: 26px 24px;
  margin-bottom: 26px;
}
.pix-box p { margin: 0; font-size: 15px; font-style: italic; color: var(--ink-soft); line-height: 2.1; }

@media (max-width: 420px) {
  .gift-grid { gap: 10px; }
}
