@charset "utf-8";
:root {
  --bg: #f4efe4;
  --paper: #faf7ef;
  --card: #fffdf8;
  --ink: #2e2f1c;
  --muted: #7a7660;
  --line: #e2dccb;
  --olive: #5c6034;
  --olive-dark: #424121;
  --olive-soft: #e9e6d2;
  --ok: #4f6b2f;
  --warn: #a0731c;
  --bad: #a3412f;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", "Brush Script MT", cursive;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(1000px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(640px, 100% - 32px); }
.stack { display: grid; gap: 40px; padding-block: 40px 72px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.link { text-decoration: underline; text-underline-offset: 3px; }
.danger { color: var(--bad); }
.eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
}

/* ---------- Topo ---------- */
.topbar {
  width: min(1240px, 100% - 32px);
  margin-inline: auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  color: var(--olive-dark);
}
.topbar__brand { display: grid; line-height: 1.2; }
.topbar__names { font-family: var(--script); font-size: 30px; color: var(--olive-dark); }
.topbar__date { font-size: 13px; color: var(--muted); }
.topbar__date::first-letter { text-transform: uppercase; }
.topbar__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 30px; }
.topbar__nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar__nav a:hover, .topbar__nav a[aria-current="page"] { border-color: currentColor; }
@media (max-width: 760px) {
  .topbar { flex-direction: column; align-items: flex-start; padding: 16px 0 12px; }
  .topbar__nav { justify-content: flex-start; gap: 4px 18px; }
  .topbar__nav a { font-size: 11px; letter-spacing: .1em; }
}

.hero { width: min(1240px, 100% - 32px); margin-inline: auto; }
.hero__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.hero__band {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 18px;
  padding: 22px 16px 6px;
  font-family: var(--serif); font-size: 22px; color: var(--olive-dark); font-style: italic;
}
.hero__band .dot { color: var(--olive); font-style: normal; font-size: 14px; }

.banner { width: min(1240px, 100% - 32px); margin-inline: auto; }
.banner img { width: 100%; height: auto; aspect-ratio: 3 / 2; max-height: 520px; object-fit: cover; }

.page-title { text-align: center; padding: 40px 16px 8px; color: var(--olive-dark); }
.page-title__kicker { margin: 0; font-family: var(--serif); font-size: clamp(20px, 3vw, 28px); letter-spacing: .28em; text-transform: uppercase; }
.page-title__script { margin: -6px 0 0; font-family: var(--script); font-weight: 400; font-size: clamp(64px, 11vw, 112px); line-height: 1.1; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 4px 0 0; color: var(--olive); font-size: 14px; }
.ornament span { width: 120px; height: 1px; background: var(--olive); opacity: .6; }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--line); background: var(--card); padding: 40px; }
@media (max-width: 600px) { .card { padding: 24px 20px; } }
.event__title { margin: 0 0 20px; font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.15; color: var(--olive-dark); }
.timeline { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 30px; bottom: 30px; border-left: 1px dashed var(--line); }
.timeline li { display: flex; align-items: center; gap: 14px; position: relative; }
.timeline small { display: block; color: var(--muted); }
.timeline__icon {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--olive-soft); color: var(--olive-dark);
}
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0 0 12px; color: var(--olive-dark); }
.prose p { margin: 0 0 12px; }
.intro { font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--olive-dark); margin: 0 0 12px; }
.section-title { font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--olive-dark); margin: 0 0 18px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border: 1px solid transparent; border-radius: 0;
  font-size: 14px; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase;
  transition: opacity .2s, background .2s;
}
.btn:disabled { opacity: .6; cursor: progress; }
.btn--dark { background: var(--olive); color: #fff; }
.btn--dark:hover { opacity: .85; }
.btn--light { background: #fff; color: var(--olive-dark); }
.btn--outline { background: transparent; border-color: var(--olive); color: var(--olive-dark); }
.btn--outline:hover { background: var(--olive); color: #fff; }
.btn--block { width: 100%; padding-block: 20px; }
.btn--sm { padding: 8px 14px; font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* ---------- Atalhos (home) ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.feature { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(66, 65, 33, .12); }
.feature__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.feature__img--gifts { object-position: center 72%; }
.feature__body { padding: 20px 24px 24px; display: grid; gap: 10px; text-align: center; flex: 1; align-content: start; }
.feature__body p { margin: 0; color: var(--muted); font-size: 15px; }
.feature__kicker { font-family: var(--serif); letter-spacing: .28em; text-transform: uppercase; color: var(--olive-dark) !important; font-size: 18px !important; }
.feature__script { margin: -14px 0 0; font-family: var(--script); font-weight: 400; font-size: 58px; line-height: 1.1; color: var(--olive-dark); }
.feature .btn { justify-self: center; margin-top: 6px; }

/* ---------- Presentes ---------- */
.gifts-intro { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; }
.gifts-intro img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
@media (max-width: 720px) {
  .gifts-intro { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .gifts-intro img { aspect-ratio: 4 / 3; object-position: center 70%; }
  .chips { justify-content: center; }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips button { border: 1px solid var(--olive); background: transparent; color: var(--olive-dark); padding: 8px 16px; border-radius: 99px; font-size: 14px; }
.chips button[aria-pressed="true"] { background: var(--olive); color: #fff; }
#gifts { display: grid; gap: 48px; }
.gifts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.gift { border: 1px solid var(--line); display: flex; flex-direction: column; background: var(--card); }
.gift.is-sold { opacity: .6; }
.gift__media { aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 56px; background: var(--olive-soft); }
.gift__body { padding: 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.gift__body h3 { margin: 0; font-size: 16px; font-weight: 500; }
.gift__body p { margin: 0; font-size: 14px; }
.gift__body .btn { margin-top: auto; padding-block: 13px; }
.gift__price { font-weight: 500; font-size: 22px !important; margin: 8px 0 0 !important; color: var(--olive-dark); }
.gift__price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.gift__inst { color: var(--muted); margin-bottom: 12px !important; }
.quota { display: grid; gap: 6px; margin-bottom: 14px; }
.quota__bar { height: 4px; background: var(--olive-soft); border-radius: 4px; overflow: hidden; }
.quota__bar span { display: block; height: 100%; background: var(--olive); }
.quota small { font-size: 12px; color: var(--muted); }
.btn--sold { background: var(--olive-soft); color: var(--olive-dark); cursor: default; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(46,47,28,.55); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal__box { position: relative; background: var(--card); width: min(480px, 100%); max-height: 92vh; overflow: auto; padding: 32px 28px; }
.modal__close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--muted); }
.modal .gift__price { margin: 0 !important; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; margin-top: 20px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span { font-size: 14px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border: 1px solid #d8d1bd; background: #fff; border-radius: 0; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--olive); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .choice { grid-template-columns: 1fr; } }
.choice label { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid #d8d1bd; background: #fff; cursor: pointer; font-size: 15px; }
.choice label.is-on { border-color: var(--olive); background: var(--olive-soft); }
.choice input { accent-color: var(--olive); }
.error { color: var(--bad); margin: 0; font-size: 14px; }
.ok { color: var(--ok); margin: 0; font-size: 14px; }
.success { text-align: center; padding: 24px 0 8px; font-size: 18px; }
.success__emoji { font-size: 48px; margin: 0 0 8px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.form--grid { grid-template-columns: 2fr 1fr 1fr; align-items: end; }
.form--grid .field--wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .form--grid { grid-template-columns: 1fr; } }

/* ---------- Mural ---------- */
.wall { columns: 3 260px; column-gap: 20px; }
.note { break-inside: avoid; margin-bottom: 20px; padding: 24px; background: var(--card); border: 1px solid var(--line); }
.note p { margin: 0 0 12px; font-family: var(--serif); font-size: 21px; color: var(--olive-dark); line-height: 1.45; white-space: pre-line; }
.note footer { font-size: 14px; color: var(--muted); }

/* ---------- Rodapé ---------- */
.footer { background: var(--olive-dark); color: #f4efe4; padding: 56px 0 36px; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__names { font-family: var(--script); font-size: 44px; margin: 0; line-height: 1.1; }
.footer__date { margin: 4px 0 0; color: #cfc9b2; }
.footer__links { display: grid; gap: 6px; color: #cfc9b2; font-size: 15px; }
.footer__links a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; color: #b9b39b; }
.footer__bottom a:hover { color: #fff; }
.footer__credit { color: #e6e0c8; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Admin ---------- */
.admin { width: min(1200px, 100% - 32px); margin: 0 auto; padding: 40px 0 80px; display: grid; gap: 24px; }
.admin--login { width: min(420px, 100% - 32px); padding-top: 12vh; }
.admin__head { display: flex; justify-content: space-between; align-items: flex-end; }
.admin__head .event__title { margin: 0; font-size: 34px; }
.admin__tabs { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.admin__tabs a:hover { text-decoration: underline; }
.admin__section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.admin__section-head h2 { margin: 0; font-weight: 500; font-size: 20px; }
.admin .card { padding: 24px; }
.notice { background: #fff8e6; border: 1px solid #f0dca8; padding: 14px 18px; font-size: 14px; }
.notice p { margin: 4px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }
.stats div { border: 1px solid var(--line); background: var(--card); padding: 18px; display: grid; }
.stats strong { font-size: 30px; font-weight: 500; color: var(--olive-dark); }
.stats span { font-size: 13px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
th { font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
td.wrap { white-space: normal; min-width: 200px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; background: #eee; }
.pill--ok, .pill--approved { background: #e3f3e8; color: var(--ok); }
.pill--no, .pill--rejected, .pill--cancelled { background: #f8e5e5; color: var(--bad); }
.pill--pending { background: #fdf1dc; color: var(--warn); }
.pill--demo { background: #ecebf7; color: #5048a0; }
.icon-btn { border: 0; background: none; color: var(--muted); padding: 4px 8px; font-size: 15px; }
.icon-btn:hover { color: var(--bad); }
form.inline { display: inline; }
.gift-edit { border-top: 1px solid var(--line); padding: 12px 0; }
.gift-edit summary { cursor: pointer; display: flex; justify-content: space-between; gap: 12px; list-style: none; }
.gift-edit summary::-webkit-details-marker { display: none; }
.gift-edit--new summary { font-weight: 500; }
.gift-edit .form { margin-top: 12px; }
.gift-edit__delete { margin-top: 12px; }
.gift-edit__delete button { border: 0; background: none; padding: 0; font-size: 14px; }
.msg-list { list-style: none; margin: 0; padding: 0; }
.msg-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.msg-list li p { margin: 0 0 4px; white-space: pre-line; }
.msg-list li.is-hidden { opacity: .55; }
.pill--pago { background: #e3f3e8; color: var(--ok); }
.pill--pendente { background: #fdf1dc; color: var(--warn); }
.pix { margin-top: 16px; padding: 16px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 8px; text-align: left; }
.pix code { font-size: 15px; word-break: break-all; }
#gift-pay { display: grid; gap: 12px; margin-top: 16px; text-align: center; }
.form--inline { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.form--inline input { flex: 1; min-width: 220px; padding: 10px 12px; border: 1px solid #d8d1bd; background: #fff; }
.pill--cancelado { background: #f3e2dd; color: var(--bad); }
.thanked { font-size: 12px; color: var(--ok); }
#flash { padding: 10px 14px; background: #eaf1df; border: 1px solid #cfdcb9; }
#flash.is-error { background: #f6e4df; border-color: #e6c3b8; color: var(--bad); }
.checks { list-style: none; margin: 0 0 16px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; }
#test-status { margin: 12px 0 0; }
.msg-list li.is-pending { background: #fbf6e6; margin: 0 -12px; padding-inline: 12px; }
#pending-count { color: var(--warn); }
.event__links { margin: -16px 0 28px 52px; font-size: 14px; color: var(--olive-dark); }
.map { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--line); overflow: hidden; background: var(--olive-soft); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card .actions { justify-content: flex-start; }
