/* ============================================
   S & K — Lista de Presentes
   ============================================ */

:root {
  --navy: #2b3d5c;
  --navy-dark: #1e2c45;
  --blue: #3e5c8a;
  --blue-light: #7d9bc1;
  --powder: #a9c0da;
  --cream: #f8f7f4;
  --white: #ffffff;
  --ink: #2c2c2c;
  --gray: #6b7280;

  --font-title: "Playfair Display", serif;
  --font-body: "Poppins", sans-serif;

  --radius: 16px;
  --shadow: 0 10px 30px rgba(30, 44, 69, 0.10);
  --shadow-hover: 0 16px 40px rgba(30, 44, 69, 0.18);
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn--primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(248, 247, 244, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
  border-bottom: 1px solid rgba(43, 61, 92, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.logo__amp {
  color: var(--blue-light);
  font-style: italic;
  margin: 0 2px;
}

.nav { display: flex; gap: 36px; }
.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0%;
  height: 2px;
  background: var(--blue-light);
  transition: var(--transition);
}
.nav__link:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--blue) 55%, var(--blue-light) 100%);
  z-index: -2;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08) 0, transparent 40%),
    radial-gradient(circle at 80% 75%, rgba(255,255,255,0.10) 0, transparent 45%);
  z-index: -1;
}

.hero__content { padding: 0 20px; max-width: 780px; }

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--powder);
  margin-bottom: 22px;
}

.hero__monogram {
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 600;
  line-height: 1.1;
}
.hero__monogram span {
  font-style: italic;
  color: var(--powder);
  padding: 0 12px;
}

.hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 30px 0 22px;
}
.hero__divider span {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.4);
}
.hero__divider i {
  font-style: normal;
  color: var(--powder);
  font-size: 1rem;
}

.hero__date {
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  color: var(--powder);
  margin-bottom: 44px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 20px;
}
.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: var(--white);
  border-radius: 50%;
  animation: scrollDown 1.8s infinite;
}
@keyframes scrollDown {
  0% { top: 8px; opacity: 1; }
  70% { top: 24px; opacity: 0; }
  100% { top: 24px; opacity: 0; }
}

/* ---------- Section shared ---------- */
.section__eyebrow {
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-light);
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 20px;
}

/* ---------- Story ---------- */
.story { padding: 120px 0 90px; }
.story__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.story__text {
  font-size: 1.05rem;
  color: var(--gray);
  margin-top: 10px;
}

.story__photo {
  margin: 44px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.story__photo img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
@media (max-width: 640px) {
  .story__photo img { aspect-ratio: 4 / 5; }
}

/* ---------- How it works ---------- */
.how { padding: 60px 0 100px; }
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}
.how__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.how__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.how__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 20px;
}
.how__card h3 {
  font-family: var(--font-title);
  color: var(--navy);
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.how__card p { color: var(--gray); font-size: 0.94rem; }

/* ---------- Gifts ---------- */
.gifts { padding: 40px 0 120px; }
.gifts__subtitle {
  text-align: center;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 40px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}
.filter__btn {
  padding: 10px 22px;
  border-radius: 50px;
  border: 1.5px solid rgba(62, 92, 138, 0.25);
  background: transparent;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.filter__btn:hover { border-color: var(--blue); }
.filter__btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

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

.gift-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.gift-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.gift-card__media {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--powder), var(--blue-light));
  color: var(--white);
}

.gift-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gift-card__category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--blue-light);
  font-weight: 600;
  margin-bottom: 8px;
}

.gift-card__name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 8px;
}

.gift-card__price {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 20px;
}
.gift-card__price small {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray);
  margin-right: 4px;
  vertical-align: middle;
}

.gift-card__actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.pay-btn {
  flex: 1;
  padding: 11px 0;
  border-radius: 10px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.pay-btn--pix {
  background: rgba(62, 92, 138, 0.1);
  color: var(--navy);
}
.pay-btn--pix:hover { background: var(--navy); color: var(--white); }

.pay-btn--card {
  background: var(--navy);
  color: var(--white);
}
.pay-btn--card:hover { background: var(--navy-dark); }

.gift-card.is-hidden { display: none; }

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

.gifts__loading {
  text-align: center;
  color: var(--gray);
  padding: 40px 0;
  grid-column: 1 / -1;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 60px 0 40px;
  text-align: center;
}
.footer__monogram {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.footer__monogram span { color: var(--powder); font-style: italic; }
.footer__text { color: var(--powder); margin-bottom: 6px; font-size: 0.95rem; }
.footer__thanks { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal.is-open { display: flex; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 44, 69, 0.55);
  backdrop-filter: blur(4px);
}

.modal__box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px 36px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--gray);
  cursor: pointer;
  line-height: 1;
}

.modal__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 18px;
}

.modal__box h3 {
  font-family: var(--font-title);
  color: var(--navy);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.modal__box p {
  color: var(--gray);
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.modal__loader {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(62,92,138,0.2);
  border-top-color: var(--blue);
  border-radius: 50%;
  margin: 18px auto 0;
  animation: spin 0.8s linear infinite;
  display: none;
}
.modal__loader.is-active { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal__icon--error { background: linear-gradient(135deg, #c0575c, #8a3a3e); }

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  text-align: left;
}
.modal__form input {
  padding: 12px 14px;
  border: 1.5px solid rgba(62, 92, 138, 0.25);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  transition: var(--transition);
}
.modal__form input:focus {
  outline: none;
  border-color: var(--blue);
}
.modal__submit {
  margin-top: 6px;
  width: 100%;
  background: var(--navy);
  color: var(--white);
  box-shadow: none;
}
.modal__submit:hover { background: var(--navy-dark); transform: none; }
.modal__error {
  color: #b3434a;
  font-size: 0.82rem;
  min-height: 1em;
  text-align: center;
}

.modal__qr {
  width: 200px;
  height: 200px;
  margin: 10px auto;
  border-radius: 12px;
  border: 1px solid rgba(62, 92, 138, 0.15);
}

.modal__hint {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 10px;
}

.modal__copy-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.modal__copy-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1.5px solid rgba(62, 92, 138, 0.25);
  border-radius: 10px;
  font-size: 0.78rem;
  color: var(--gray);
  background: var(--cream);
}
.modal__copy-btn {
  padding: 10px 18px;
  font-size: 0.85rem;
  white-space: nowrap;
  background: var(--navy);
  color: var(--white);
}

.modal__status {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .how__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  }
  .nav.is-open { max-height: 300px; padding: 16px 0; }
  .nav__link { padding: 14px 0; width: 100%; text-align: center; }
  .nav-toggle { display: flex; }
}

@media (max-width: 480px) {
  .gifts__grid { grid-template-columns: 1fr 1fr; }
  .gift-card__actions { flex-direction: column; }
}
