/* ============================================================
   Lucas & Heloisa — Lista de Presentes
   Paleta e tipografia isoladas em variáveis — fácil trocar
   depois se o casal tiver uma identidade visual própria.
   ============================================================ */

:root {
  --paper: #faf5ec;
  --sage-mist: #dce5db;
  --ink: #2c261f;
  --ink-soft: #5a5044;
  --accent: #3f6b4a;
  --accent-deep: #2c4a35;
  --sage: #8ba888;
  --sage-deep: #56684e;
  --gold: #b3903f;
  --texture-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  --line: rgba(44, 38, 31, 0.14);
  --line-strong: rgba(44, 38, 31, 0.28);

  --font-display: 'Beth Ellen', cursive;
  --font-body: 'Work Sans', -apple-system, sans-serif;
  --font-script: 'Homemade Apple', cursive;

  --radius: 18px;
  --shadow-soft: 0 12px 32px -16px rgba(44, 38, 31, 0.35);
  --shadow-lift: 0 20px 44px -14px rgba(44, 38, 31, 0.4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Textura sutil de grão sobre toda a página */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url('../assets/img/paper-texture.jpg');
  background-repeat: repeat;
  background-size: 340px auto;
}

.preview-banner {
  position: relative;
  z-index: 60;
  background: var(--accent);
  color: var(--paper);
  font-size: 0.82rem;
  text-align: center;
  padding: 0.6rem 1rem;
}
.preview-banner code {
  background: rgba(255, 255, 255, 0.18);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
}

/* ---------------- Nav ---------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
}

.site-nav__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.7rem;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 0.3rem 0.1rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--accent-deep);
  border-color: var(--accent-deep);
}

.site-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-left: auto;
}
.site-nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 760px) {
  .site-nav { justify-content: space-between; }
  .site-nav__toggle { display: flex; }
  .site-nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .site-nav.is-open .site-nav__list {
    max-height: 24rem;
    padding: 1.4rem 1rem 1.6rem;
  }
  .site-nav.is-open .site-nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-nav.is-open .site-nav__toggle span:nth-child(2) { opacity: 0; }
  .site-nav.is-open .site-nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: var(--paper);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0); }
.btn--small { padding: 0.5rem 1.1rem; font-size: 0.82rem; }
.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--outline:hover { background: var(--sage-mist); box-shadow: none; }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse 60% 45% at 50% 12%, rgba(179, 144, 63, 0.13), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(63, 107, 74, 0.14), transparent 70%),
    var(--paper);
}

/* Variante com foto real do casal de fundo (js/content.js liga esta classe
   quando SITE_CONFIG.heroPhoto está preenchido) */
.hero--photo {
  background-size: cover;
  background-position: center;
}
.hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 26, 20, 0.32) 0%, rgba(20, 26, 20, 0.5) 55%, rgba(20, 26, 20, 0.72) 100%);
}
.hero--photo > * { position: relative; z-index: 1; }
.hero--photo .hero__monogram,
.hero--photo .hero__date {
  color: var(--paper);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.hero--photo .hero__names img { filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.25)); }
.hero--photo .hero__date { color: rgba(250, 245, 236, 0.85); }
.hero--photo .hero__divider span { background: rgba(250, 245, 236, 0.55); }
.hero--photo .hero__scroll { border-color: rgba(250, 245, 236, 0.6); }

.hero__monogram {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 1.25rem;
}

.hero__names { margin: 0; }
.hero__names img {
  width: clamp(340px, 70vw, 980px);
  height: auto;
  display: block;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 42%, transparent 58%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 42%, transparent 58%, transparent 100%);
  -webkit-mask-size: 250% 100%;
  mask-size: 250% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  animation: writeName 2.4s cubic-bezier(.5, .05, .3, 1) forwards;
  animation-delay: 0.5s;
}
@keyframes writeName {
  to { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
}

.hero__divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.6rem 0 1.1rem;
}
.hero__divider span { display: block; height: 1px; width: 44px; background: var(--line-strong); }
.hero__divider i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: block; }

.hero__date {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 2.2rem;
}

.hero__scroll {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* Reveal sequence on load (hero only) */
.reveal-1, .reveal-2, .reveal-3, .reveal-4, .reveal-5, .reveal-6 {
  opacity: 0;
  animation: heroIn 0.9s cubic-bezier(.16,.9,.28,1) forwards;
}
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.2s; }
.reveal-3 { animation-delay: 0.42s; }
.reveal-4 { animation-delay: 0.55s; }
.reveal-5 { animation-delay: 0.68s; }
.reveal-6 { animation-delay: 0.9s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Generic scroll-reveal for below-the-fold content (driven by js/reveal.js) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------- Contagem regressiva ---------------- */

.countdown {
  display: flex;
  justify-content: center;
  padding: 5.5rem 1.5rem 6rem;
  background: var(--paper);
  position: relative;
  z-index: 2;
}
.countdown__grid {
  display: flex;
  gap: clamp(1.2rem, 5vw, 2.8rem);
}
.countdown__unit { display: flex; flex-direction: column; align-items: center; }
.countdown__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--accent-deep);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.countdown__done {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-deep);
  text-align: center;
  margin: 0;
}

/* ---------------- Boas-vindas (versículo + mensagem) ---------------- */

.welcome-block {
  position: relative;
  background: var(--accent-deep);
  padding: 6rem 1.5rem 6rem;
}
.welcome-block__texture {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: var(--texture-noise);
}
.welcome-block__lace,
.hero__lace,
.countdown__lace,
.couple__lace,
.reception__lace {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4.5rem;
  transform: translateY(45%);
  background-image: url('../assets/img/lace-ribbon.png');
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: auto 100%;
  z-index: 3;
  pointer-events: none;
}
.welcome-block__inner {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
}

.welcome-block__verse { margin-bottom: 2.2rem; }
.welcome-block__verse .quote-block__ornament {
  width: 52px;
  height: auto;
  opacity: 0.95;
  margin-bottom: 1rem;
}
.welcome-block__verse-text {
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  line-height: 1.4;
  color: var(--paper);
  margin: 0 0 0.4rem;
}
.welcome-block__verse-reference {
  font-family: var(--font-script);
  font-size: 1.15rem;
  color: var(--gold);
  margin: 0;
}

.welcome-block__message {
  color: rgba(250, 245, 236, 0.85);
  font-size: 1rem;
  line-height: 1.7;
}
.welcome-block__message p { margin: 0 0 1rem; }
.welcome-block__message p:last-child { margin-bottom: 0; }

/* ---------------- O casal ---------------- */

.couple {
  position: relative;
}
.couple__inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 4rem;
  text-align: center;
}
.couple__heading { margin-bottom: 3rem; }
.couple__heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4rem);
  margin: 0;
}

.our-story {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.75rem;
  margin-bottom: 3.5rem;
}

.our-story__frame {
  position: relative;
  width: min(20rem, 72vw);
  aspect-ratio: 1338 / 1628;
}
/* Percentuais calculados a partir do recorte transparente real do PNG
   (assets/img/couple-frame.png) — mantém a foto exatamente dentro do
   buraco da moldura em qualquer tamanho de tela. */
.our-story__photo {
  position: absolute;
  left: 16%;
  top: 13.97%;
  width: 67%;
  height: 72.33%;
  object-fit: cover;
  border-radius: 50%;
}
.our-story__lace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(44, 38, 31, 0.18));
}

.our-story__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}
.our-story__arrow img { width: 44px; height: auto; display: block; }
.our-story__arrow:hover { opacity: 1; }
.our-story__arrow--prev { left: -4rem; }
.our-story__arrow--prev img { transform: scaleX(-1); }
.our-story__arrow--prev:hover { transform: translateY(-50%) translateX(-3px); }
.our-story__arrow--next { right: -4rem; }
.our-story__arrow--next:hover { transform: translateY(-50%) translateX(3px); }

@media (max-width: 480px) {
  .our-story__arrow img { width: 34px; }
  .our-story__arrow--prev { left: -2.8rem; }
  .our-story__arrow--next { right: -2.8rem; }
}

.our-story__text {
  max-width: 36rem;
  text-align: left;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}
.our-story__text p { margin: 0 0 1.1rem; }
.our-story__text p:last-child { margin-bottom: 0; }

.quote-block {
  max-width: 32rem;
  margin: 0 auto;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.quote-block__ornament { width: 60px; height: auto; opacity: 0.9; margin-bottom: 1rem; }
.quote-block__text {
  font-family: var(--font-script);
  font-size: clamp(1.25rem, 3.2vw, 1.55rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 0.4rem;
}
.quote-block__reference {
  font-family: var(--font-script);
  font-size: 1.1rem;
  color: var(--accent-deep);
  margin: 0;
}

/* ---------------- Recepção ---------------- */

.reception {
  position: relative;
  background-color: var(--accent-deep);
  background-image: var(--texture-noise);
  background-blend-mode: overlay;
  padding: 4.5rem 1.5rem 7rem;
  display: flex;
  justify-content: center;
}
.reception__card { text-align: center; max-width: 34rem; width: 100%; }
.reception__venue {
  font-family: 'Fraunces', 'Iowan Old Style', serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  color: var(--paper);
  margin: 0 0 0.6rem;
}
.reception__address { color: rgba(250, 245, 236, 0.85); margin: 0 0 0.3rem; }
.reception__datetime {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0 0 1.5rem;
}

.reception__map:not([hidden]) {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-top: 1.25rem;
  border: 1px solid rgba(250, 245, 236, 0.3);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}
.reception__map-link {
  display: inline-block;
  margin-top: 2rem;
  background: var(--paper);
  color: var(--accent-deep);
  border-color: var(--paper);
}
.reception__map-link:hover { background: rgba(250, 245, 236, 0.85); }

/* ---------------- Gifts grid ---------------- */

.gifts-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 6rem;
  position: relative;
  z-index: 2;
  background: rgba(250, 245, 236, 0.65);
}
.gifts-section__heading { text-align: center; margin-bottom: 1.5rem; }
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 0.5rem;
}
.reception .eyebrow, .rsvp .eyebrow { color: var(--gold); }
.gifts-section__heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0;
}

.gifts-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 2rem;
}

.cart-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.cart-toggle:hover { border-color: var(--line-strong); }
.cart-toggle__icon { width: 20px; height: 20px; color: currentColor; flex-shrink: 0; }
.cart-toggle--filled {
  color: var(--accent-deep);
  border-color: var(--accent);
  background: rgba(63, 107, 74, 0.06);
}

.gifts-search {
  flex: 1;
  min-width: 180px;
  max-width: 22rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}
.gifts-search:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.gifts-sort {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.gifts-sort select {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent-deep);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45rem 2rem 0.45rem 1rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%232c4a35' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 12px;
}
.gifts-sort select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.gifts-section__intro {
  max-width: 34rem;
  margin: 3.5rem auto 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.gifts-group + .gifts-group { margin-top: 3.5rem; }
.gifts-group__more { display: block; margin: 1.75rem auto 0; }
.gifts-group__more[hidden] { display: none; }
.gifts-group__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent-deep);
  text-align: center;
  margin: 0 0 1.5rem;
}

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

.gift-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(.16,.9,.28,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.gift-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: transparent; }

.gift-card__media {
  aspect-ratio: 4 / 3;
  background: var(--sage-mist);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gift-card__img { width: 100%; height: 100%; object-fit: cover; }
.gift-card__icon {
  font-size: 2.6rem;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px var(--line);
}

.gift-card__body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.gift-card__name {
  font-family: 'Fraunces', 'Iowan Old Style', serif;
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0;
}
.gift-card__desc { font-size: 0.88rem; color: var(--ink-soft); margin: 0; flex: 1; }
.gift-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.6rem;
  gap: 0.75rem;
}
.gift-card__price { font-weight: 600; color: var(--accent-deep); }
.gift-card__badge {
  font-size: 0.78rem;
  color: var(--sage-deep);
  background: rgba(116, 129, 95, 0.14);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.gift-card__undo {
  display: block;
  margin-top: 0.4rem;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 0.74rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.gift-card__undo:hover { color: var(--accent-deep); }

.cart-stores {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-stores__label {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
}
.cart-stores__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.store-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.store-link:hover { background: #fff; border-color: var(--line-strong); }
.store-link__icon { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; object-fit: contain; }

.gift-card--taken { opacity: 0.65; }
.gift-card--taken:hover { transform: none; box-shadow: none; border-color: var(--line); }

.empty-state { text-align: center; color: var(--ink-soft); grid-column: 1 / -1; }

/* ---------------- RSVP ---------------- */

.rsvp {
  background-color: var(--accent-deep);
  background-image: var(--texture-noise);
  background-blend-mode: overlay;
  padding: 5rem 1.5rem;
  display: flex;
  justify-content: center;
}
.rsvp__inner { max-width: 28rem; width: 100%; text-align: center; }
.rsvp__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--paper);
  margin: 0.2rem 0 2rem;
}

.rsvp__form, .recados__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
}

.recados__avatar-picker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  align-self: flex-start;
}
.recados__avatar-preview {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px dashed var(--line);
  background: var(--sage-mist);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.recados__avatar-label { font-size: 0.82rem; color: var(--ink-soft); }

.rsvp__radio-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  font-size: 0.92rem;
  color: rgba(250, 245, 236, 0.85);
  margin: 0.2rem 0;
}
.rsvp__radio { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }

.rsvp__field-label {
  font-size: 0.82rem;
  color: rgba(250, 245, 236, 0.85);
  margin-top: 0.3rem;
  display: block;
}

.rsvp__count-row {
  display: flex;
  gap: 1rem;
}
.rsvp__count-row > div { flex: 1; }

.rsvp__textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  resize: vertical;
}

.rsvp .btn, .recados .btn { align-self: center; margin-top: 0.4rem; }

/* ---------------- Recados ---------------- */

.recados { padding: 5rem 1.5rem; display: flex; justify-content: center; }
.recados__inner { max-width: 30rem; width: 100%; text-align: center; }
.recados__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0.2rem 0 2rem;
}

.messages-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
.message-card {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.message-card__avatar {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sage-mist);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.message-card__bubble {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  border-top-left-radius: 4px;
  padding: 0.7rem 1rem;
}
.message-card__bubble-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}
.message-card__text { margin: 0; color: var(--ink); font-size: 0.94rem; }
.message-card__author {
  margin: 0;
  font-size: 0.8rem;
  color: var(--sage-deep);
  font-weight: 700;
}
.message-card__delete {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.2rem;
  line-height: 0;
}
.message-card__delete svg { width: 1.05rem; height: 1.05rem; }
.message-card__delete:hover { color: var(--accent-deep); }

/* ---------------- S.O.S Noivos ---------------- */

.sos { padding: 4rem 1.5rem; text-align: center; }
.sos__inner { max-width: 28rem; margin: 0 auto; }
.sos__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0.2rem 0 0.8rem;
}
.sos__text { color: var(--ink-soft); margin: 0 0 1.5rem; }
.sos__buttons { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.sos__btn { display: inline-flex; align-items: center; gap: 0.5rem; }
.sos__btn-icon { width: 18px; height: 18px; color: #25D366; flex-shrink: 0; }

/* ---------------- Footer ---------------- */

.site-footer {
  text-align: center;
  padding: 3.5rem 1.5rem 4rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.site-footer .hero__monogram { margin-bottom: 0.6rem; }

/* ---------------- Barra flutuante do carrinho ---------------- */
/* Fica fixa na tela (sem precisar rolar até o topo) sempre que há
   item no carrinho, com um botão grande de finalizar — pensada para
   ser simples de usar em qualquer idade. */

.cart-float[hidden] { display: none; }
.cart-float {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-deep);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.5rem 0.5rem 0.5rem 1.1rem;
  box-shadow: var(--shadow-lift);
  max-width: calc(100vw - 1.5rem);
  animation: cartFloatIn 0.3s cubic-bezier(.16,.9,.28,1);
}
@keyframes cartFloatIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cart-float__info {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: none;
  color: inherit;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 0.4rem 0.3rem;
  text-align: left;
}
.cart-float__info .cart-toggle__icon { width: 22px; height: 22px; flex-shrink: 0; }
.cart-float__info span > span { display: block; line-height: 1.25; }
#cart-float-label { font-weight: 600; font-size: 0.94rem; }
#cart-float-total { font-size: 0.8rem; color: var(--paper); }

.cart-float__btn {
  background: var(--paper);
  color: var(--accent-deep);
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.cart-float__btn:hover { transform: translateY(-1px); }

@media (max-width: 420px) {
  .cart-float { padding: 0.45rem 0.45rem 0.45rem 0.9rem; gap: 0.4rem; }
  #cart-float-total { display: none; }
  .cart-float__btn { padding: 0.7rem 1.05rem; font-size: 0.88rem; }
}

/* ---------------- Modal ---------------- */

.gift-modal, .cart-panel, .app-dialog {
  border: none;
  border-radius: var(--radius);
  padding: 2rem 1.75rem 2.25rem;
  width: min(420px, calc(100vw - 2.5rem));
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-lift);
}
.cart-panel { width: min(480px, calc(100vw - 2.5rem)); }
.app-dialog { width: min(360px, calc(100vw - 2.5rem)); padding: 1.75rem; }
.gift-modal::backdrop, .cart-panel::backdrop, .app-dialog::backdrop { background: rgba(44, 38, 31, 0.45); backdrop-filter: blur(2px); }
.app-dialog[open] { animation: modalIn 0.3s cubic-bezier(.16,.9,.28,1); }
.app-dialog__message { margin: 0 0 1.5rem; font-size: 0.96rem; line-height: 1.5; text-align: center; }
.app-dialog__actions { display: flex; gap: 0.7rem; justify-content: center; }
.cart-panel[open] { animation: modalIn 0.3s cubic-bezier(.16,.9,.28,1); }

.cart-panel__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 1.25rem;
  padding-right: 1.5rem;
}
.cart-panel__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
}
.cart-items { display: flex; flex-direction: column; }
.cart-items__divider {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 1.1rem 0 0.3rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.cart-items__divider:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-item__media {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--sage-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.cart-item__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: 0.92rem; margin: 0 0 0.2rem; }
.cart-item__remove {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  color: #b5473f;
  text-decoration: underline;
  cursor: pointer;
}
.cart-item__price { font-size: 0.92rem; font-weight: 600; white-space: nowrap; padding-top: 0.15rem; }
.cart-panel__empty { color: var(--ink-soft); text-align: center; padding: 2rem 0; }

.cart-panel__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
  padding: 1.1rem 0 1.4rem;
}
.cart-panel__total span:last-child { font-size: 1.15rem; color: var(--accent-deep); }

.cart-panel__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.cart-panel__actions .btn { flex: 1; min-width: 9rem; }
.gift-modal[open] { animation: modalIn 0.3s cubic-bezier(.16,.9,.28,1); }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.gift-modal__close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}
.gift-modal__close:hover { color: var(--ink); }

.gift-modal__name {
  font-family: 'Fraunces', 'Iowan Old Style', serif;
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 0.15rem;
  padding-right: 1.5rem;
}
.gift-modal__price { color: var(--accent-deep); font-weight: 600; margin: 0 0 1.25rem; }

.gift-modal__qr {
  display: flex;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: inset 0 0 0 1px var(--line);
}
.gift-modal__qr svg { width: 100%; max-width: 220px; height: auto; }
.gift-modal__hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0.6rem 0 1.3rem;
}

.gift-modal__code-row { display: flex; gap: 0.5rem; }
.gift-modal__code {
  flex: 1;
  min-width: 0;
  font-family: monospace;
  font-size: 0.72rem;
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-soft);
}

.gift-modal__sep { border: none; border-top: 1px solid var(--line); margin: 1.4rem 0; }

.gift-modal__claim-label { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 0.6rem; }
.gift-modal__radio-row {
  display: flex;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
.gift-modal__radio { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.gift-modal__claim-row { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; }
.gift-modal__claim-btn { width: 100%; }
.gift-modal__input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.identity-reset {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 0.76rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin: 0.3rem 0 0.5rem;
}
.identity-reset:hover { color: var(--accent-deep); }
.rsvp .identity-reset { color: rgba(250, 245, 236, 0.7); }
.rsvp .identity-reset:hover { color: var(--gold); }

.feedback { min-height: 1.1rem; font-size: 0.82rem; margin: 0.5rem 0 0; }
.feedback--ok { color: var(--sage-deep); }
.feedback--error { color: var(--accent-deep); }

/* Dentro do .rsvp o fundo é verde-escuro (var(--accent-deep)) — as cores
   padrão do .feedback ficam ilegíveis nele (a de erro é literalmente a
   mesma cor do fundo), então usa branco/dourado aqui, igual ao resto do
   texto dessa seção. */
.rsvp .feedback--ok { color: var(--paper); }
.rsvp .feedback--error { color: var(--gold); }

@media (max-width: 480px) {
  .gift-modal__code-row, .gift-modal__claim-row { flex-direction: column; }
  .rsvp__count-row { flex-direction: column; gap: 0.85rem; }

  /* Grade compacta de 3 colunas — os cards viravam gigantes (1 por linha)
     nessa largura com o layout normal, então essa versão só de celular
     esconde a descrição e encolhe tudo pra caber lado a lado. 4 colunas
     ficava ilegível demais, reduzido pra 3. */
  .gifts-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .gift-card__media { aspect-ratio: 1 / 1; }
  .gift-card__icon { width: 2.4rem; height: 2.4rem; font-size: 1.3rem; }
  .gift-card__body { padding: 0.45rem 0.4rem; gap: 0.2rem; }
  .gift-card__name {
    font-size: 0.7rem;
    line-height: 1.3;
    display: block;
    overflow: visible;
  }
  .gift-card__desc { display: none; }
  .gift-card__footer { flex-direction: column; align-items: flex-start; gap: 0.35rem; margin-top: 0.3rem; }
  .gift-card__price { font-size: 0.7rem; }
  .gift-card .btn--small { font-size: 0.62rem; padding: 0.35rem 0.5rem; width: 100%; text-align: center; }
  .gift-card__badge { font-size: 0.6rem; padding: 0.25rem 0.45rem; }
  .gift-card__undo { font-size: 0.56rem; }
}

/* ---------------- Admin (admin.html) ---------------- */

.admin-body {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.admin-notice {
  max-width: 26rem;
  text-align: center;
  color: var(--ink-soft);
  background: var(--sage-mist);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.admin-notice code {
  background: rgba(44, 38, 31, 0.08);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
}

.admin-login__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: min(24rem, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.admin-login__form h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.admin-dashboard {
  width: min(64rem, 100%);
  margin: 0 auto;
}
.admin-dashboard__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.admin-dashboard__header h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0.2rem 0 0;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.admin-tabs__btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.7rem 0.3rem;
  margin-bottom: -1px;
  color: var(--ink-soft);
  cursor: pointer;
}
.admin-tabs__btn.is-active { color: var(--accent-deep); border-color: var(--accent-deep); }

.admin-gift-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  max-width: 28rem;
}
.admin-gift-form h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.2rem;
}
.admin-gift-form__actions { display: flex; gap: 0.6rem; align-items: center; }

.admin-gift-link { display: flex; gap: 0.5rem; }
.admin-gift-link input { flex: 1; min-width: 0; }
.admin-gift-link .btn { flex-shrink: 0; padding: 0.7rem 1rem; font-size: 0.82rem; }

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.3rem;
  text-align: center;
}
.admin-card__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 2rem);
  color: var(--accent-deep);
}
.admin-card__label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.admin-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem;
  overflow-x: auto;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.admin-table th { color: var(--ink-soft); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-table td:nth-child(6) { white-space: normal; min-width: 12rem; }
#admin-recados-table-body td:nth-child(4) { white-space: normal; min-width: 16rem; }
.admin-table__avatar { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; display: block; }
.admin-table__delete {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}
.admin-table__delete:hover { color: var(--accent-deep); }

.admin-gifts-search { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.admin-gifts-search input, .admin-gifts-search select { flex: 1; min-width: 9rem; }
.admin-gifts-search #gifts-price-min, .admin-gifts-search #gifts-price-max { flex: 0 1 8rem; }

.admin-gifts-filter { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.admin-filter__btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.admin-filter__btn.is-active { background: var(--accent-deep); color: #fff; border-color: var(--accent-deep); }
