/* Lívia & Jemerson — azul-marinho e prata */
:root {
  --navy-950: #0a1428;
  --navy-900: #0f1f3f;
  --navy-800: #172b54;
  --navy-600: #2c4379;
  --silver-400: #a9b2c3;
  --silver-300: #c5ccd8;
  --silver-200: #dce1e9;
  --silver-100: #eef1f6;
  --white: #fbfcfe;
  --ink: #1a2540;
  --muted: #56627b;
  --danger: #8f2d3b;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(15, 31, 63, .06), 0 10px 28px -14px rgba(15, 31, 63, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--silver-100);
}
img, svg { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--navy-600); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .foot :focus-visible { outline-color: var(--silver-200); }

.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- topo ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  padding: clamp(3.5rem, 12vw, 7rem) 1.25rem clamp(3.5rem, 11vw, 6.5rem);
  background:
    radial-gradient(60rem 28rem at 50% -12%, rgba(197, 204, 216, .22), transparent 70%),
    radial-gradient(30rem 20rem at 8% 100%, rgba(44, 67, 121, .55), transparent 70%),
    linear-gradient(170deg, var(--navy-800), var(--navy-950) 78%);
}
.hero::after { /* fio de prata na base */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver-300), transparent);
}
.hero__inner { position: relative; max-width: 40rem; margin: 0 auto; }

.rings { width: 7.5rem; height: auto; margin: 0 auto 1.1rem; fill: none; stroke: var(--silver-300); stroke-width: 1.4; }
.ring { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 2.2s ease-out .15s forwards; }
.ring--b { animation-delay: .7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.names {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3.1rem, 14vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  background: linear-gradient(180deg, #ffffff 10%, var(--silver-300) 55%, #8f9bb3 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  opacity: 0; animation: rise 1.4s ease-out 1.1s forwards;
}
.title {
  margin: .7rem 0 0;
  font-weight: 300;
  font-size: clamp(1.15rem, 4.2vw, 1.6rem);
  letter-spacing: .06em;
  color: var(--silver-200);
  opacity: 0; animation: rise 1.2s ease-out 1.5s forwards;
}
.intro {
  margin: 1.4rem auto 0; max-width: 30rem;
  color: var(--silver-300); font-weight: 300;
  opacity: 0; animation: rise 1.2s ease-out 1.8s forwards;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2rem;
  opacity: 0; animation: rise 1.2s ease-out 2s forwards;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.9rem; padding: .6rem 1.5rem;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--silver { background: var(--silver-200); color: var(--navy-900); }
.btn--silver:hover { background: #fff; }
.btn--ghost { background: transparent; color: var(--silver-200); border-color: rgba(197, 204, 216, .55); }
.btn--ghost:hover { border-color: var(--silver-200); background: rgba(255, 255, 255, .07); }
.btn--navy { background: var(--navy-900); color: var(--white); }
.btn--navy:hover { background: var(--navy-600); }
.btn--plain { background: transparent; color: var(--navy-800); border-color: var(--silver-300); }
.btn--plain:hover { background: var(--silver-100); }
.btn[disabled], .btn[aria-disabled='true'] { cursor: not-allowed; background: var(--silver-200); color: var(--muted); border-color: transparent; }
.link { background: none; border: 0; padding: .25rem; color: var(--silver-200); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- lista ---------- */
.list { max-width: 72rem; margin: 0 auto; padding: 0 1rem 3rem; }

.filters {
  position: sticky; top: 0; z-index: 20;
  margin: 0 -1rem; padding: .8rem 1rem .7rem;
  background: rgba(238, 241, 246, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--silver-200);
}
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .1rem; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; min-height: 2.5rem; padding: .35rem 1rem;
  border: 1px solid var(--silver-300); border-radius: 999px;
  background: var(--white); color: var(--navy-800); font-weight: 500; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.chip:hover { background: var(--silver-200); }
.chip[aria-pressed='true'] { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

.toggle { display: inline-flex; align-items: center; gap: .55rem; margin-top: .6rem; font-size: .93rem; color: var(--muted); cursor: pointer; }
.toggle input { width: 1.15rem; height: 1.15rem; accent-color: var(--navy-800); }

.status { text-align: center; color: var(--muted); margin: 2rem 0 0; }
.status:empty { display: none; }

.section { margin-top: 2.4rem; }
.section__title {
  display: flex; align-items: center; gap: .9rem;
  margin: 0 0 1.1rem;
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 5vw, 2.15rem); color: var(--navy-900);
}
.section__title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--silver-300), transparent); }

.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 36rem) { .grid { grid-template-columns: repeat(2, 1fr); gap: 1.15rem; } }
@media (min-width: 62rem) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--silver-200); border-radius: 18px;
  box-shadow: var(--shadow);
}
.card__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(22rem 12rem at 50% 0%, rgba(197, 204, 216, .28), transparent 70%),
    linear-gradient(160deg, var(--navy-800), var(--navy-950));
}
.card__media::before { /* moldura fina de prata */
  content: ''; position: absolute; inset: 10px; border: 1px solid rgba(197, 204, 216, .35); border-radius: 12px; pointer-events: none;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__icon { width: 4.2rem; height: 4.2rem; fill: none; stroke: var(--silver-200); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.card__body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.15rem; flex: 1; }
.card__cat { margin: 0; font-size: .88rem; color: var(--muted); }
.card__name { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.15; color: var(--navy-900); }
.card__qty { margin: .15rem 0 0; font-size: .95rem; color: var(--ink); }

.meter { height: 4px; border-radius: 4px; background: var(--silver-200); overflow: hidden; margin-top: .45rem; }
.meter > i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy-600), var(--silver-400)); transition: width .5s ease; }
.card__avail { margin: .3rem 0 0; font-size: .9rem; color: var(--muted); }
.card__avail strong { color: var(--navy-800); font-weight: 600; }
.card .btn { margin-top: auto; width: 100%; }
.card__body > .btn { margin-top: auto; }
.card__avail { margin-bottom: .9rem; }

.card--gone .card__media { filter: grayscale(.85) brightness(.85); }
.card--gone .card__name { color: var(--muted); }
.card--gone .card__media::after {
  content: 'Presente esgotado'; position: absolute; right: 14px; top: 14px; z-index: 1;
  background: var(--silver-100); color: var(--navy-900);
  padding: .2rem .75rem; border-radius: 999px; font-size: .85rem; font-weight: 500;
}

/* ---------- caixa de reserva ---------- */
.dialog {
  width: min(28rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem);
  padding: 0; border: 0; border-radius: 22px; color: var(--ink); background: var(--white);
  box-shadow: 0 30px 80px -20px rgba(10, 20, 40, .55);
}
.dialog::backdrop { background: rgba(10, 20, 40, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dialog form { position: relative; padding: 1.6rem 1.4rem 1.4rem; }
.dialog__close { position: absolute; right: .6rem; top: .6rem; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; }
.dialog__close:hover { background: var(--silver-100); }
.dialog__close svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: var(--navy-800); stroke-width: 1.8; stroke-linecap: round; }
.dialog__title { margin: 0 2.5rem .2rem 0; font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--navy-900); line-height: 1.1; }
.dialog__gift { margin: 0 0 1.2rem; color: var(--muted); }
.dialog__gift strong { color: var(--navy-800); }

.field { display: block; margin-bottom: 1.1rem; }
.field > span { display: block; margin-bottom: .35rem; font-weight: 500; color: var(--navy-800); }
.field input[type='text'], .field input[type='url'], .field input[type='number'], .field input[type='password'], .field select {
  width: 100%; min-height: 3rem; padding: .6rem .9rem;
  border: 1px solid var(--silver-300); border-radius: 12px; background: #fff;
}
.field input:focus, .field select:focus { border-color: var(--navy-600); outline: 3px solid rgba(44, 67, 121, .25); outline-offset: 0; }
.field small { display: block; margin-top: .4rem; color: var(--muted); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--silver-300); border-radius: 999px; overflow: hidden; background: #fff; }
.stepper button { width: 3rem; height: 3rem; border: 0; background: transparent; font-size: 1.4rem; color: var(--navy-800); cursor: pointer; }
.stepper button:hover:not([disabled]) { background: var(--silver-100); }
.stepper button[disabled] { color: var(--silver-400); cursor: not-allowed; }
.stepper output { min-width: 3rem; text-align: center; font-weight: 600; font-size: 1.15rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 12px; background: #f8e9ec; color: var(--danger); }
.form-msg[hidden] { display: none; }
.dialog__actions { display: grid; gap: .6rem; }

/* ---------- rodapé e aviso ---------- */
.foot { text-align: center; padding: 3rem 1.25rem 3.5rem; color: var(--silver-300); background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); }
.foot p { margin: 0 0 .6rem; }
.foot__names { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--silver-200); }

.toast {
  position: fixed; left: 50%; bottom: max(1.2rem, env(safe-area-inset-bottom)); transform: translateX(-50%);
  max-width: calc(100vw - 2rem); padding: .75rem 1.25rem; border-radius: 999px;
  background: var(--navy-900); color: var(--white); box-shadow: var(--shadow); z-index: 60;
}
.toast[hidden] { display: none; }

/* ---------- confirmação ---------- */
.thanks { min-height: 100dvh; display: grid; place-items: center; padding: 1.25rem; background: linear-gradient(170deg, var(--navy-800), var(--navy-950)); }
.thanks__card { width: min(32rem, 100%); padding: 2.2rem 1.5rem 1.8rem; border-radius: 24px; background: var(--white); text-align: center; box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .6); }
.thanks__check { width: 4.2rem; height: 4.2rem; margin: 0 auto 1rem; fill: none; stroke: var(--navy-800); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.thanks__check .tick { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw-tick .8s ease-out .3s forwards; }
@keyframes draw-tick { to { stroke-dashoffset: 0; } }
.thanks h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3rem); line-height: 1.05; color: var(--navy-900); }
.thanks p { margin: .8rem 0 0; color: var(--muted); }
.summary { margin: 1.4rem 0; padding: 1rem 1.1rem; border: 1px solid var(--silver-200); border-radius: 16px; background: var(--silver-100); text-align: left; }
.summary dt { font-size: .88rem; color: var(--muted); }
.summary dd { margin: 0 0 .7rem; font-weight: 500; color: var(--navy-900); }
.summary dd:last-child { margin-bottom: 0; }
.summary .code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 1.25rem; letter-spacing: .12em; }
.thanks__actions { display: grid; gap: .6rem; margin-top: 1.2rem; }
.thanks__small { font-size: .9rem; }
.thanks .link { color: var(--navy-800); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring, .names, .title, .intro, .hero__actions { animation: none; opacity: 1; stroke-dashoffset: 0; }
  .thanks__check .tick { animation: none; stroke-dashoffset: 0; }
  .meter > i { transition: none; }
}

/* ---------- observações, subtítulos e rodapé ---------- */
.card__note {
  margin: .25rem 0 0; padding-left: .65rem;
  border-left: 2px solid var(--silver-300);
  font-size: .9rem; line-height: 1.4; color: var(--muted);
}
.subhead {
  margin: 1.6rem 0 .8rem; font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 1.35rem; color: var(--navy-600);
}
.section .subhead:first-of-type { margin-top: .2rem; }
.foot__links { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.foot__links .link { font-size: 1rem; }
