:root {
  --paper: #f7f2e8;
  --paper-2: #efe6d4;
  --card: #fbf7ee;
  --ink: #3c3627;
  --muted: #7a7059;
  --forest: #33402a;
  --forest-2: #46543a;
  --sage: #6b7746;
  --gold: #a9822f;
  --gold-2: #c19b4d;
  --gold-deep: #8a6829;
  --terra: #9a6a46;
  --danger: #a3382b;
  --danger-bg: rgba(163, 56, 43, 0.08);
  --line: rgba(60, 54, 39, 0.2);
  --line-strong: rgba(60, 54, 39, 0.42);
  --shadow: 0 24px 60px rgba(40, 50, 30, 0.2);
  --script: "Pinyon Script", "Great Vibes", cursive;
  --serif: "Baskervville", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold-deep);
  text-decoration: none;
}

a:hover {
  color: var(--forest);
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Header ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 210;
  width: 100%;
  height: 4px;
  background: rgba(169, 130, 47, 0.14);
}

.scroll-progress__bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
  transition: width 80ms linear;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress__bar {
    transition: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--forest);
  font-family: var(--script);
  font-size: 30px;
  line-height: 1;
  white-space: nowrap;
}

.brand__mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* ---------- Navegação: sempre um ícone que abre um painel lateral ---------- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--forest);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Painel lateral: desliza da direita para a esquerda */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: min(80vw, 300px);
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  padding: 78px 22px 28px;
  background: var(--paper);
  border-left: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.nav.is-open {
  transform: translateX(0);
}

.nav a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--gold-deep);
  outline: none;
}

/* Submenu: acordeão dentro do painel */
.nav-group {
  display: block;
}

.nav-group__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-group__toggle:hover,
.nav-group__toggle:focus-visible {
  color: var(--gold-deep);
  outline: none;
}

.nav-group__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
}

.nav-group.is-open .nav-group__caret {
  transform: rotate(180deg);
}

.nav-group__menu {
  display: none;
  min-width: 0;
  padding: 0 0 0 12px;
  border: 0;
  background: transparent;
}

.nav-group.is-open .nav-group__menu {
  display: grid;
}

.nav-group__menu a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.nav-group__menu a:hover,
.nav-group__menu a:focus-visible,
.nav-group__menu a[aria-current="page"] {
  color: var(--gold-deep);
}

/* Camada invisível atrás do painel (fecha ao clicar fora, sem escurecer a tela) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: transparent;
  opacity: 0;
  visibility: hidden;
}

.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* ---------- Hero (invitation card over watercolor) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 94svh;
  padding: clamp(30px, 7vw, 76px) 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(45, 56, 36, 0.16), rgba(45, 56, 36, 0.32)),
    url("../images/fazenda-morro-sao-pedro.jpeg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: clamp(12px, 2.4vw, 22px);
  z-index: 1;
  border: 1px solid rgba(247, 242, 232, 0.65);
  pointer-events: none;
}

.hero__card {
  position: relative;
  z-index: 2;
  width: min(700px, 100%);
  padding: clamp(38px, 6vw, 66px) clamp(26px, 5vw, 60px);
  background: rgba(251, 247, 238, 0.9);
  backdrop-filter: blur(3px);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
  text-align: center;
}

.hero__card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(169, 130, 47, 0.45);
  pointer-events: none;
}

.hero__quote {
  margin: 0 auto 14px;
  max-width: 480px;
  color: var(--muted);
  font-size: clamp(14px, 1.9vw, 17px);
  font-style: italic;
  line-height: 1.5;
}

.eyebrow {
  margin: 0;
  color: var(--gold-deep);
  font-size: clamp(11px, 1.5vw, 13px);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0.22em 0 0.08em;
  line-height: 0;
}

.hero__logotype {
  display: block;
  width: min(85%, 420px);
  height: auto;
  margin: 0 auto;
}

.hero__date {
  margin: 0.5em 0 0;
  color: var(--ink);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero__place {
  margin: 0.55em auto 0;
  max-width: 480px;
  color: var(--muted);
  font-size: clamp(13px, 1.8vw, 15px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.8vw, 16px);
  margin-top: clamp(22px, 3.4vw, 32px);
  padding-top: clamp(18px, 2.6vw, 24px);
  border-top: 1px solid var(--line);
}

.countdown__pre {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 2vw, 18px);
  width: 100%;
  max-width: 420px;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: clamp(8px, 1.6vw, 14px) 4px;
  border: 1px solid var(--line);
  background: rgba(169, 130, 47, 0.06);
}

.countdown__number {
  color: var(--gold);
  font-size: clamp(28px, 6.4vw, 48px);
  font-weight: 600;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  color: var(--muted);
  font-size: clamp(9px, 1.6vw, 12px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(56px, 9vw, 104px) 0;
}

.section--soft {
  background: var(--paper-2);
}

.section-head {
  text-align: center;
}

.section-title {
  margin: 0;
  color: var(--forest);
  font-family: var(--script);
  font-size: clamp(48px, 9vw, 84px);
  font-weight: 400;
  line-height: 1.22;
  padding-bottom: 0.06em;
}

.section-lead {
  max-width: 640px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 22px);
  font-style: italic;
  text-align: center;
}

/* ---------- Info panel (invitation grid) ---------- */
.info-frame {
  position: relative;
  margin-top: clamp(30px, 4.5vw, 48px);
  border: 1px solid var(--line-strong);
  background: var(--card);
}

.info-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.info-card {
  padding: clamp(24px, 3.4vw, 34px) 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.info-card:first-child {
  border-top: none;
}

.info-card__label {
  margin: 0 0 9px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.info-card__value {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 2.6vw, 25px);
  font-weight: 500;
  line-height: 1.28;
}

.info-card__value a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* ---------- Deadline banner (confirmação até 05/08) ---------- */
.deadline-banner {
  margin-top: clamp(20px, 3.2vw, 28px);
  padding: clamp(22px, 4vw, 34px) clamp(20px, 4vw, 32px);
  border: 1px solid var(--terra);
  background: rgba(154, 106, 70, 0.08);
  text-align: center;
}

.deadline-banner__label {
  margin: 0;
  color: var(--terra);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.deadline-banner__value {
  margin: 8px 0 0;
  color: var(--forest);
  font-size: clamp(28px, 4.4vw, 38px);
  font-weight: 700;
  line-height: 1.15;
}

.deadline-banner__note {
  max-width: 480px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
}

/* ---------- Location map (mobile first) ---------- */
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-top: clamp(28px, 4.5vw, 44px);
  border: 1px solid var(--line-strong);
  background: var(--card);
}

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

.map-cta {
  display: flex;
  margin-top: 18px;
}

.map-cta .button {
  width: 100%;
}

@media (min-width: 620px) {
  .map-frame {
    aspect-ratio: 16 / 10;
  }

  .map-cta {
    justify-content: center;
  }

  .map-cta .button {
    width: auto;
    min-width: 260px;
  }
}

@media (min-width: 860px) {
  .map-frame {
    aspect-ratio: 21 / 9;
  }
}

/* ---------- Buttons ---------- */
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  width: min(560px, 100%);
  margin: clamp(30px, 4vw, 44px) auto 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 14px 24px;
  border: 1px solid var(--forest);
  cursor: pointer;
  background: var(--forest);
  color: #f7f2e8;
  font-family: var(--serif);
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: #f7f2e8;
  outline: none;
}

.button--secondary {
  border-color: var(--gold);
  background: transparent;
  color: var(--gold-deep);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: var(--forest);
  border-color: var(--forest);
  color: #f7f2e8;
}

.button:disabled {
  cursor: not-allowed;
  border-color: rgba(122, 112, 89, 0.3);
  background: rgba(122, 112, 89, 0.12);
  color: rgba(60, 54, 39, 0.5);
}

/* ---------- Page hero (secondary pages) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  text-align: center;
  padding: clamp(48px, 7vw, 88px) 18px clamp(38px, 5vw, 58px);
}

/* Variante com foto ao fundo (aparece com ~30% de opacidade).
   Basta trocar o src da imagem .page-hero__bg em cada página. */
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  pointer-events: none;
}

.page-hero h1 {
  margin: 0;
  color: var(--forest);
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(58px, 14vw, 108px);
  line-height: 1.14;
  padding: 0.04em 0;
}

.page-hero p {
  width: min(660px, calc(100% - 28px));
  margin: 12px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 22px);
  font-style: italic;
}

/* ---------- RSVP ---------- */
.frame-panel {
  position: relative;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line-strong);
  background: var(--card);
}

.frame-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.rsvp-layout {
  display: grid;
  gap: 28px;
}

.rsvp-form-col {
  display: grid;
  gap: 20px;
}

.rsvp-note {
  align-self: center;
  text-align: center;
}

.rsvp-note .script {
  margin: 0 0 6px;
  color: var(--gold);
  font-family: var(--script);
  font-size: clamp(52px, 9vw, 74px);
  line-height: 1.08;
}

.rsvp-note p {
  margin: 0 auto 12px;
  max-width: 380px;
  color: var(--ink);
  font-size: 18px;
  font-style: italic;
  line-height: 1.55;
}

.rsvp-note p:last-child {
  margin-bottom: 0;
}

.form-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.radio-group__label {
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line-strong);
  padding: 12px 14px;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(169, 130, 47, 0.2);
  outline-offset: 1px;
}

/* Formulário de mensagens */
.message-form {
  margin-top: clamp(28px, 4vw, 40px);
  text-align: left;
}

.message-success {
  margin-top: clamp(28px, 4vw, 40px);
}

.radio-group {
  display: grid;
  gap: 12px;
  border: 0;
  margin: 0;
  padding: 0;
}

.radio-options {
  display: grid;
  gap: 12px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  cursor: pointer;
  font-size: 18px;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.radio-card:has(input:checked) {
  border-color: var(--gold);
  background: rgba(169, 130, 47, 0.08);
}

.radio-card input {
  width: 19px;
  height: 19px;
  accent-color: var(--forest);
}

/* ---------- Guests / stepper ---------- */
.guests-block[hidden] {
  display: none;
}

.guests-block {
  display: grid;
  gap: 16px;
}

.stepper-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 4px;
}

.stepper__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--forest);
  color: #f7f2e8;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: background-color 160ms ease;
}

.stepper__btn:hover:not(:disabled),
.stepper__btn:focus-visible:not(:disabled) {
  background: var(--forest-2);
  outline: none;
}

.stepper__btn:disabled {
  background: rgba(122, 112, 89, 0.25);
  cursor: not-allowed;
}

.stepper__value {
  min-width: 28px;
  color: var(--forest);
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.guest-names {
  display: grid;
  gap: 16px;
}

.guest-names:empty {
  display: none;
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(154, 106, 70, 0.5);
  background: rgba(154, 106, 70, 0.1);
  color: var(--terra);
  font-size: 16px;
  font-style: italic;
}

.form-error[hidden] {
  display: none;
}

.rsvp-success[hidden] {
  display: none;
}

.rsvp-success {
  text-align: center;
}

.rsvp-success .script {
  margin: 0 0 6px;
  color: var(--gold);
  font-family: var(--script);
  font-size: clamp(52px, 9vw, 74px);
  line-height: 1.08;
}

.rsvp-success p:last-child {
  margin: 0 auto;
  max-width: 380px;
  color: var(--muted);
  font-size: 20px;
  font-style: italic;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(44px, 6vw, 68px) 0;
  background: var(--forest);
  color: #e7dfcc;
  text-align: center;
}

.footer-names {
  margin: 0;
  line-height: 0;
}

.footer-logotype {
  display: inline-block;
  width: clamp(220px, 34vw, 340px);
  height: auto;
}

.footer-meta {
  margin: 10px 0 0;
  color: rgba(231, 223, 204, 0.72);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-grid {
  display: grid;
  gap: 20px;
  text-align: center;
}

.footer-credit {
  margin: 0;
  color: rgba(231, 223, 204, 0.55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: end;
    text-align: left;
  }

  .footer-credit {
    text-align: right;
  }
}

.footer-credit a {
  color: rgba(231, 223, 204, 0.85);
  text-decoration: underline;
  text-decoration-color: var(--gold-2);
  text-underline-offset: 2px;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: #f2ead7;
}

/* ---------- Gifts ---------- */
.gift-toolbar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  margin-bottom: clamp(26px, 4vw, 42px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.gift-toolbar strong {
  color: var(--forest);
  font-weight: 700;
}

.gift-count__num {
  font-size: 2em;
  font-weight: 700;
  line-height: 1;
  vertical-align: -0.08em;
}

.gift-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto clamp(24px, 3.6vw, 34px);
}

@media (min-width: 620px) {
  .gift-filters {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line-strong);
  padding: 12px 14px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
}

.field select:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(169, 130, 47, 0.2);
  outline-offset: 1px;
}

.gift-empty {
  margin: 0 0 clamp(24px, 3.6vw, 34px);
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

.gift-grid {
  display: grid;
  gap: 22px;
}

.gift-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--card);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.gift-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.gift-card__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.gift-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gift-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.4vw, 24px);
}

.gift-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.gift-card h2 {
  min-width: 0;
  margin: 0;
  color: var(--forest);
  font-size: clamp(17px, 1.9vw, 19px);
  font-weight: 700;
  line-height: 1.18;
}

.gift-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
}

.gift-card__price {
  color: var(--gold-deep);
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.status {
  flex: 0 0 auto;
  padding: 5px 11px;
  border: 1px solid rgba(107, 119, 70, 0.4);
  border-radius: 999px;
  color: var(--sage);
  background: rgba(107, 119, 70, 0.09);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.status--reserved {
  border-color: rgba(122, 112, 89, 0.4);
  color: var(--muted);
  background: rgba(122, 112, 89, 0.1);
}

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

.gift-card .gift-card__price {
  margin-top: auto;
}

/* ---------- Checkout modal ---------- */
.modal-open {
  overflow: hidden;
}

.checkout-modal[hidden] {
  display: none;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
}

.checkout-modal__backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(45, 56, 36, 0.62);
  cursor: pointer;
}

.checkout-modal__panel {
  position: relative;
  z-index: 1;
  width: min(940px, 100%);
  max-height: min(94svh, 880px);
  margin: 0 auto;
  overflow: auto;
  border: 1px solid var(--gold);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.checkout-modal__inner {
  padding: clamp(22px, 4vw, 40px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--gold);
  color: var(--gold-deep);
  outline: none;
}

.checkout-title {
  margin: 0 44px 4px 0;
  color: var(--forest);
  font-family: var(--script);
  font-size: clamp(44px, 7vw, 60px);
  font-weight: 400;
  line-height: 1.12;
}

.checkout-subtitle {
  margin: 0 44px 20px 0;
  color: var(--muted);
  font-style: italic;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.checkout-steps li {
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.checkout-steps .is-active {
  border-color: var(--gold);
  background: rgba(169, 130, 47, 0.1);
  color: var(--gold-deep);
}

.checkout-layout {
  display: grid;
  gap: 18px;
}

.checkout-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  text-align: left;
}

.checkout-summary img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-bottom: 4px;
}

.checkout-summary h3 {
  margin: 0;
  color: var(--forest);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.checkout-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-style: italic;
}

.checkout-summary .gift-card__price {
  margin: 0;
  font-size: clamp(23px, 3vw, 27px);
  font-style: normal;
}

.pix-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  background: var(--card);
}

.qr-box {
  display: grid;
  place-items: center;
  padding: 4px;
}

.qr-box svg {
  width: min(100%, 360px);
  height: auto;
}

.pix-hint {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
  text-align: center;
}

@media (max-width: 620px) {
  .qr-box {
    display: none;
  }
}

.pix-code {
  width: 100%;
  min-height: 108px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  padding: 12px;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.pix-actions {
  display: grid;
  gap: 12px;
}

.config-warning {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(169, 130, 47, 0.4);
  background: rgba(169, 130, 47, 0.1);
  color: var(--gold-deep);
  font-size: 16px;
  font-style: italic;
}

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

/* ---------- Modal de avisos importantes ---------- */
.notice-modal[hidden] {
  display: none;
}

.notice-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  align-items: center;
  padding: 18px;
}

.notice-modal__backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(45, 56, 36, 0.62);
  cursor: pointer;
}

.notice-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(94svh, 640px);
  margin: 0 auto;
  overflow: auto;
  border: 1px solid var(--gold);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.notice-modal__inner {
  padding: clamp(26px, 5vw, 38px);
  text-align: center;
}

.notice-modal__eyebrow {
  margin: 0 0 4px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.notice-modal__title {
  margin: 0 0 22px;
  color: var(--forest);
  font-family: var(--script);
  font-size: clamp(34px, 5.5vw, 44px);
  font-weight: 400;
  line-height: 1.1;
}

.notice-list {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.notice-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  background: var(--card);
}

.notice-item__icon {
  font-size: 22px;
  line-height: 1.3;
}

.notice-item__title {
  margin: 0 0 4px;
  color: var(--forest);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.notice-item__text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.notice-item--warning {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.notice-item--warning .notice-item__title {
  color: var(--danger);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---------- Alerta inline (avisos permanentes numa página) ---------- */
.alert-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  max-width: 620px;
  margin: 18px auto 0;
  padding: 16px 18px;
  border: 1px solid var(--danger);
  background: var(--danger-bg);
  text-align: left;
}

.alert-box__icon {
  font-size: 22px;
  line-height: 1.3;
}

.alert-box__title {
  margin: 0 0 4px;
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.alert-box__text {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .brand {
    font-size: 26px;
  }
}

@media (min-width: 620px) {
  .cta-row,
  .radio-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-row {
    display: grid;
  }

  .gift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .info-card {
    border-top: none;
    border-left: 1px solid var(--line);
  }

  .info-card:first-child {
    border-left: none;
  }

  .rsvp-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .rsvp-note {
    text-align: left;
  }

  .rsvp-note p {
    margin: 0 0 12px;
  }

  .rsvp-note p:last-child {
    margin-bottom: 0;
  }

  .gift-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .checkout-modal {
    align-items: center;
    padding: 28px;
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  }
}

@media (min-width: 1120px) {
  .gift-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Widescreen / large desktops */
@media (min-width: 1600px) {
  .container {
    width: min(1320px, calc(100% - 40px));
  }

  .header-inner {
    width: min(1320px, calc(100% - 36px));
  }
}

/* ---------- Pix hint (QR desktop / código mobile) ---------- */
.pix-hint--code {
  display: none;
}

@media (max-width: 620px) {
  .pix-hint--qr {
    display: none;
  }

  .pix-hint--code {
    display: block;
  }
}

/* ---------- Página de conteúdo (Padrinhos / Dicas) ---------- */
.page-content {
  max-width: 760px;
  margin: 0 auto;
}

.page-content--intro {
  margin-bottom: clamp(32px, 5vw, 48px);
}

.page-content > * + * {
  margin-top: 18px;
}

.page-content__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: clamp(28px, 4.5vw, 44px);
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
}

.page-content__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-content__body {
  display: grid;
  gap: 18px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.75;
  text-align: center;
}

.page-content__body p {
  margin: 0;
}

.page-content__signature {
  margin-top: 8px;
  color: var(--gold-deep);
  font-family: var(--script);
  font-size: clamp(32px, 5vw, 42px);
  line-height: 1;
}

.page-content__subhead {
  margin: 6px 0 0;
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Grade de horários (translado) — reaproveita o visual de .info-card */
.transfer-frame {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.transfer-frame .info-frame {
  margin-top: 10px;
}

.page-content__note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
}

.transfer-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.transfer-grid--times {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 860px) {
  .transfer-grid--times {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.info-card--highlight .info-card__label,
.info-card--highlight .info-card__value {
  color: var(--terra);
}

/* ---------- Dicas (hospedagem / salão) ---------- */
.tips-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 22px;
  margin-top: clamp(26px, 4vw, 40px);
}

/* Cards com largura fixa (não a grid) para que uma última linha incompleta
   (ex.: 2 de 5 cards) fique centralizada em vez de esticar ou colar à esquerda. */
.tips-grid .tip-card {
  flex: 1 1 100%;
}

@media (min-width: 720px) {
  .tips-grid .tip-card {
    flex: 0 1 calc((100% - 44px) / 3);
  }

  /* Seção com um único card (salão) fica centralizada, sem esticar */
  .tips-grid--solo .tip-card {
    flex: 0 1 380px;
  }
}

.tip-card {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3.4vw, 30px);
  border: 1px solid var(--line-strong);
  background: var(--card);
}

.tip-card__kicker {
  margin: 0 0 6px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tip-card h3 {
  margin: 0 0 8px;
  color: var(--forest);
  font-size: clamp(21px, 2.6vw, 25px);
  font-weight: 700;
  line-height: 1.2;
}

.tip-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.tip-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.tip-card__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.tip-card__links a:hover,
.tip-card__links a:focus-visible {
  background: var(--forest);
  border-color: var(--forest);
  color: #f7f2e8;
}

/* ---------- Padrinhos ---------- */
.godparents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (min-width: 620px) {
  .godparents-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (min-width: 860px) {
  .godparents-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.godparent-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--card);
  aspect-ratio: 1 / 1;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.godparent-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.godparent-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Parallax ---------- */
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .hero {
    background-attachment: fixed;
  }
}

/* ---------- Scroll reveal ---------- */
.js-fx .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.js-fx .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-fx .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Toast (confirmação rápida) ---------- */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 200;
  max-width: calc(100% - 32px);
  padding: 14px 22px;
  border: 1px solid var(--gold);
  background: var(--forest);
  box-shadow: var(--shadow);
  color: #f7f2e8;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
