/* ═══════════════════════════════════════════════════════════════════════
   LUISA & KAWE — Wedding Website
   
   Design tokens drawn from the wedding's actual visual identity:
     Terracotta #924624 — monogram, ribbon, brand color
     Olive      #4f5438 — monogram variant, natural accent
     Parchment           — warm cream, like invitation paper

   Typography:
     Display — Cormorant Garamond  (matches invitation serif elegance)
     Body    — DM Sans             (clean geometric warmth)
   ═══════════════════════════════════════════════════════════════════════ */


/* ─── Design Tokens ──────────────────────────────────────────────────── */
:root {
  /* Surfaces — warm paper tones */
  --parchment:       #f5f0ea;
  --linen:           #faf7f3;
  --ivory:           #eee8e0;

  /* Brand — from the monogram */
  --terracotta:      #924624;
  --terracotta-warm: #a8593a;
  --terracotta-glow: rgba(146, 70, 36, 0.08);
  --terracotta-light: rgba(146, 70, 36, 0.05);

  /* Accent */
  --olive:           #4f5438;
  --olive-soft:      #6b7055;

  /* Gift card ribbon color (from reference box image — copper/bronze) */
  --ribbon:          #b3764f;
  --ribbon-light:    #c9936e;
  --ribbon-lighter:  #d9ad8e;
  --ribbon-lightest: #e6c5aa;

  /* Text hierarchy — warm brown scale */
  --espresso:        #3a2a1e;
  --walnut:          #5c4a3c;
  --driftwood:       #8c7a6c;
  --sandstone:       #b0a090;

  /* Borders — warm low-opacity */
  --silk:            rgba(58, 42, 30, 0.08);
  --silk-warm:       rgba(146, 70, 36, 0.12);
  --silk-strong:     rgba(58, 42, 30, 0.15);

  /* Functional */
  --copied:          #5a8a62;
  --overlay-bg:      rgba(26, 20, 16, 0.55);

  /* Typography */
  --ff-display:      'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ff-body:         'DM Sans', -apple-system, 'Segoe UI', sans-serif;

  /* Spacing — 8px base */
  --s-1:   4px;
  --s-2:   8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-8:  32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;

  /* Radius */
  --r-sm:  2px;
  --r-md:  4px;
  --r-lg:  8px;
  --r-xl: 16px;
  --r-full: 9999px;

  /* Shadows — warm-toned */
  --shadow-soft:  0  2px  8px rgba(58, 42, 30, 0.05);
  --shadow-mid:   0  4px 16px rgba(58, 42, 30, 0.07);
  --shadow-lift:  0  8px 30px rgba(58, 42, 30, 0.09);
  --shadow-float: 0 16px 48px rgba(58, 42, 30, 0.12);

  /* Motion */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.55, 1);
  --t-fast:   200ms;
  --t-normal: 400ms;
  --t-slow:   600ms;
}


/* ─── Reset & Base ───────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--espresso);
  background: var(--parchment);
  overflow-x: hidden;
}

::selection {
  background: rgba(146, 70, 36, 0.12);
  color: var(--espresso);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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


/* ─── Navigation ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: var(--s-4) var(--s-6);
  background: rgba(245, 240, 234, 0.0);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-normal) var(--ease-out), box-shadow var(--t-normal) ease, border-color var(--t-normal) ease;
}

.nav.is-scrolled {
  background: rgba(245, 240, 234, 0.88);
  border-bottom-color: var(--silk);
  box-shadow: var(--shadow-soft);
}

.nav__inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  min-height: 36px;
}

.nav__logo {
  grid-column: 1;
  justify-self: start;
}

.nav__logo-img {
  width: 36px;
  height: auto;
  opacity: 0.75;
  transition: opacity var(--t-fast) ease;
}

.nav__logo:hover .nav__logo-img { opacity: 1; }

.nav__links {
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  list-style: none;
  gap: var(--s-6);
  transform: translateY(-24px);
}

.nav__link {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--walnut);
  transition: color var(--t-fast) ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--terracotta);
  transition: width var(--t-normal) var(--ease-out);
}

.nav__link:hover { color: var(--terracotta); }
.nav__link:hover::after { width: 100%; }

.nav__toggle {
  grid-column: 3;
  justify-self: end;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--s-2);
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--walnut);
  transition: all var(--t-fast) ease;
}


/* ─── Section Divider (shared) ───────────────────────────────────────── */
.section-divider {
  width: 40px;
  height: 1px;
  background: var(--silk-warm);
  margin: 0 auto var(--s-6);
}


/* ─── Hero / Home (includes countdown) ───────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--s-16) var(--s-6) var(--s-12);
  background:
    radial-gradient(ellipse at 50% 35%, var(--terracotta-glow) 0%, transparent 65%),
    var(--parchment);
  position: relative;
  overflow: hidden;
}

@keyframes envelopeFloat {
  0%, 100% { transform: scale(1.05) translateY(0); }
  50%      { transform: scale(1.05) translateY(-8px); }
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 560px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Monogram logo */
.hero__logo {
  margin-bottom: var(--s-8);
  display: flex;
  justify-content: center;
}

.hero__logo-img {
  width: 72px;
  height: auto;
  opacity: 0.55;
  transition: opacity var(--t-normal) ease;
}

.hero__logo:hover .hero__logo-img {
  opacity: 0.75;
}

/* Arch window — the signature motif from the save-the-date */
.hero__arch {
  width: 280px;
  height: 370px;
  border-radius: 140px 140px 0 0;
  overflow: hidden;
  margin-bottom: var(--s-8);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--silk-warm);
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.hero__names {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--espresso);
  margin-bottom: var(--s-6);
}

.hero__ampersand {
  display: inline-block;
  font-style: italic;
  color: var(--terracotta);
  padding: 0 0.15em;
}

/* Countdown — merged into hero */
.hero__countdown {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 560px;
}

.hero__countdown-date {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--s-1);
}

.hero__countdown-venue {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--driftwood);
  letter-spacing: 0.04em;
  margin-bottom: var(--s-8);
}

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--s-6);
}

.countdown__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
  padding: var(--s-5) var(--s-4);
  background: rgba(245, 240, 234, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r-lg);
  border: 1px solid var(--silk);
  box-shadow: var(--shadow-soft);
}

.countdown__number {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 300;
  color: var(--terracotta);
  line-height: 1;
  letter-spacing: 0.02em;
}

.countdown__label {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sandstone);
  margin-top: var(--s-2);
}

.countdown__dot {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  color: var(--sandstone);
  line-height: 1;
  padding-top: 16px;
  user-select: none;
}


/* ─── About (merged: Sobre Nós + Photos + Story) ────────────────────── */
.about {
  padding: var(--s-24) var(--s-6);
  display: flex;
  justify-content: center;
}

.about__inner {
  max-width: 720px;
  text-align: center;
  width: 100%;
}

.about__heading {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--espresso);
  margin-bottom: var(--s-6);
}

.about__text {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--walnut);
  margin-bottom: var(--s-16);
}

.about__story {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--walnut);
  font-style: italic;
  margin-top: var(--s-16);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}


/* ─── Proposal / O Pedido ───────────────────────────────────────────── */
.proposal {
  position: relative;
  overflow: hidden;
  padding: var(--s-24) var(--s-6) var(--s-20);
  background:
    linear-gradient(90deg, rgba(79, 84, 56, 0.055) 0%, transparent 34%, rgba(146, 70, 36, 0.045) 100%),
    linear-gradient(180deg, #efe5db 0%, #f7f2ec 44%, var(--parchment) 100%);
}

.proposal::before {
  content: '';
  position: absolute;
  top: 8%;
  right: max(-92px, -7vw);
  width: clamp(210px, 20vw, 320px);
  aspect-ratio: 1;
  background: url('../assets/flower-copper.svg') no-repeat center / contain;
  opacity: 0.18;
  pointer-events: none;
}

.proposal::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: var(--s-12);
  width: min(560px, calc(100vw - 48px));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(146, 70, 36, 0.22), transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.proposal__paper {
  position: absolute;
  inset: auto auto 4% -72px;
  width: clamp(240px, 26vw, 380px);
  opacity: 0.08;
  pointer-events: none;
  transform: rotate(-7deg);
}

.proposal__paper img {
  width: 100%;
  filter: sepia(0.12) saturate(0.75);
}

.proposal__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.proposal__header {
  text-align: center;
  display: flex;
  justify-content: center;
  margin-bottom: var(--s-10);
}

.proposal__heading {
  font-family: var(--ff-display);
  font-size: clamp(2.15rem, 4.4vw, 3.15rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--espresso);
  position: relative;
}

.proposal__heading::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  margin: var(--s-5) auto 0;
  background: rgba(146, 70, 36, 0.26);
}

.proposal__layout {
  display: flex;
  justify-content: center;
  align-items: center;
}

.proposal__carousel {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  outline: none;
}

.proposal__viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background:
    linear-gradient(180deg, rgba(250, 247, 243, 0.78), rgba(245, 240, 234, 0.92)),
    var(--linen);
  border: 1px solid rgba(250, 247, 243, 0.92);
  border-radius: 170px 170px var(--r-lg) var(--r-lg);
  box-shadow:
    0 28px 72px rgba(58, 42, 30, 0.15),
    0 0 0 14px rgba(250, 247, 243, 0.28),
    0 0 0 15px rgba(146, 70, 36, 0.05);
}

.proposal__viewport::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(58, 42, 30, 0.06);
  pointer-events: none;
}

.proposal__track {
  display: flex;
  height: 100%;
  transition: transform var(--t-normal) var(--ease-out);
}

.proposal__slide {
  flex: 0 0 100%;
  height: 100%;
}

.proposal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.proposal__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(250, 247, 243, 0.88);
  border: 1px solid rgba(146, 70, 36, 0.14);
  color: var(--walnut);
  box-shadow: 0 8px 22px rgba(58, 42, 30, 0.11);
  transform: translateY(-50%);
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast) ease, color var(--t-fast) ease;
}

.proposal__nav:hover {
  background: rgba(250, 247, 243, 0.96);
  color: var(--terracotta);
  transform: translateY(-50%) scale(1.04);
}

.proposal__nav:focus-visible,
.proposal__dot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(146, 70, 36, 0.14), var(--shadow-mid);
}

.proposal__nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proposal__nav--prev { left: -56px; }
.proposal__nav--next { right: -56px; }

.proposal__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-8);
}

.proposal__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(146, 70, 36, 0.24);
  transition: width var(--t-fast) var(--ease-out), border-radius var(--t-fast) ease, background var(--t-fast) ease;
}

.proposal__dot.is-active {
  width: 24px;
  border-radius: var(--r-full);
  background: var(--terracotta);
}

/* ─── Couple Photos (inside About) ───────────────────────────────────── */
.couple-photos__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-10);
  max-width: 700px;
  margin: 0 auto;
}

.couple-photos__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.couple-photos__img-wrap {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--silk-warm);
  box-shadow: var(--shadow-mid);
  margin-bottom: var(--s-4);
}

.couple-photos__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--t-slow) var(--ease-out);
}

/* Bride photo — zoom in & center face */
.couple-photos__img--bride {
  object-position: 100% 68%;
  transform: scale(1.26);
}

.couple-photos__card:hover .couple-photos__img {
  transform: scale(1.06);
}

.couple-photos__card:hover .couple-photos__img--bride {
  transform: scale(1.28);
}

.couple-photos__name {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--espresso);
  letter-spacing: 0.04em;
}

.couple-photos__heart {
  color: var(--terracotta);
  opacity: 0.4;
  animation: heartbeat 2.5s ease-in-out infinite;
}


/* ─── Ceremony & Reception ───────────────────────────────────────────── */
.ceremony {
  padding: var(--s-24) var(--s-6);
  display: flex;
  justify-content: center;
}

.ceremony__inner {
  max-width: 700px;
  text-align: center;
  width: 100%;
}

.ceremony__section-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-5);
  margin: 0 auto var(--s-12);
}

.ceremony__section-marker span {
  width: min(112px, 24vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(146, 70, 36, 0.28), transparent);
}

.ceremony__section-marker img {
  width: 42px;
  height: auto;
  opacity: 0.48;
}

.ceremony__decor {
  display: flex;
  justify-content: center;
  margin-bottom: var(--s-6);
}

.ceremony__decor.ceremony__section-marker {
  align-items: center;
  gap: var(--s-5);
  margin-bottom: var(--s-8);
}

.ceremony__flower {
  width: 48px;
  height: auto;
  opacity: 0.55;
}

.ceremony__heading {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--espresso);
  margin-bottom: var(--s-8);
}

/* Circular venue image (matching couple photos style) */
.ceremony__venue-img-wrap--circle {
  width: 240px;
  height: 240px;
  max-width: 240px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--s-8);
  border: 3px solid var(--silk-warm);
  box-shadow: var(--shadow-mid);
  background: var(--linen);
}

.ceremony__venue-img--circle {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: scale(1.08);
}

.ceremony__details {
  margin-bottom: var(--s-6);
}

.ceremony__venue-name {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--espresso);
  letter-spacing: 0.04em;
  margin-bottom: var(--s-1);
}

.ceremony__venue-address {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--driftwood);
  letter-spacing: 0.04em;
}

.ceremony__text {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--walnut);
  margin-bottom: var(--s-10);
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.ceremony__text strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.2em 0.2em;
  padding: 0.26em 0.5em;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(168, 89, 58, 0.92), rgba(146, 70, 36, 0.96));
  box-shadow: 0 10px 18px rgba(146, 70, 36, 0.14);
  font-family: var(--ff-body);
  font-size: 0.86em;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--linen);
}

.ceremony__map {
  width: min(100%, 640px);
  height: 320px;
  margin: 0 auto var(--s-5);
  padding: var(--s-2);
  border: 1px solid var(--silk-warm);
  border-radius: var(--r-sm);
  overflow: hidden;
  background:
    linear-gradient(var(--linen), var(--linen)) padding-box,
    linear-gradient(135deg, rgba(79, 84, 56, 0.28), rgba(146, 70, 36, 0.18)) border-box;
  box-shadow: var(--shadow-mid);
}

.ceremony__map iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--r-sm);
  filter: saturate(0.72) sepia(0.08);
}

.ceremony__map-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-8);
  padding-bottom: var(--s-1);
  border-bottom: 1px solid rgba(146, 70, 36, 0.22);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--terracotta);
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease, gap var(--t-fast) ease;
}

.ceremony__map-link:hover {
  color: var(--terracotta-warm);
  border-color: rgba(168, 89, 58, 0.42);
  gap: var(--s-3);
}

.ceremony__route-divider {
  width: min(100%, 480px);
  height: 1px;
  margin: 0 auto var(--s-8);
  background: linear-gradient(90deg, transparent, rgba(79, 84, 56, 0.26), transparent);
}

.ceremony__directions {
  width: min(100%, 540px);
  margin: 0 auto;
  padding: var(--s-3);
  border: 1px solid var(--silk);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-soft);
  background: rgba(250, 247, 243, 0.72);
}

.ceremony__directions-img {
  width: 100%;
  height: auto;
  border-radius: var(--r-sm);
  border: 1px solid rgba(58, 42, 30, 0.05);
}


/* ─── Gifts ──────────────────────────────────────────────────────────── */
.gifts {
  padding: var(--s-24) var(--s-6);
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    /* soft blush wash — organic flowing gradients inspired by reference */
    radial-gradient(ellipse 70% 50% at 15% 20%,  rgba(210, 170, 155, 0.13) 0%, transparent 70%),
    radial-gradient(ellipse 55% 65% at 80% 15%,  rgba(200, 155, 140, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 80% 45% at 50% 80%,  rgba(215, 180, 165, 0.11) 0%, transparent 60%),
    radial-gradient(ellipse 40% 55% at 90% 65%,  rgba(195, 150, 135, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 25% 70%,  rgba(220, 185, 170, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 90% 60% at 50% 45%,  rgba(235, 210, 200, 0.07) 0%, transparent 70%),
    linear-gradient(175deg, #f9f3f0 0%, #f5eeea 35%, #f2ebe6 65%, #f6f0ec 100%);
}

.gifts__inner {
  max-width: 1060px;
  width: 100%;
  text-align: center;
}

.gifts__decor {
  display: flex;
  justify-content: center;
  margin-bottom: var(--s-6);
}

.gifts__flower {
  width: 48px;
  height: auto;
  opacity: 0.55;
}

.gifts__heading {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--espresso);
  margin-bottom: var(--s-4);
}

.gifts__subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--driftwood);
  max-width: 480px;
  margin: 0 auto var(--s-12);
  line-height: 1.8;
}

.gifts__section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--espresso);
  margin: 0 0 var(--s-6);
}

.gifts__section-divider {
  width: 60px;
  height: 1px;
  margin: var(--s-12) auto var(--s-6);
  background: linear-gradient(90deg, transparent, var(--terracotta), transparent);
}


.gifts__controls {
  width: min(100%, 270px);
  margin: 0 -48px var(--s-10) auto;
  position: relative;
  z-index: 80;
  isolation: isolate;
}

.gifts__sort {
  position: relative;
  width: 100%;
}

.gifts__sort.is-open {
  z-index: 120;
}

.gifts__sort-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 17px 22px;
  border-radius: 999px;
  border: 1px solid rgba(146, 70, 36, 0.28);
  background:
    linear-gradient(180deg, rgba(252, 249, 246, 0.98) 0%, rgba(245, 239, 233, 0.94) 100%);
  box-shadow:
    0 8px 24px rgba(58, 42, 30, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition:
    transform var(--t-fast) var(--ease-out),
    border-color var(--t-fast) ease,
    box-shadow var(--t-fast) ease,
    background var(--t-fast) ease;
}

.gifts__sort-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(146, 70, 36, 0.4);
  box-shadow:
    0 14px 28px rgba(58, 42, 30, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.gifts__sort-trigger:focus-visible {
  outline: none;
  border-color: var(--terracotta-warm);
  box-shadow:
    0 0 0 3px var(--terracotta-glow),
    0 14px 28px rgba(58, 42, 30, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.gifts__sort-current {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--espresso);
}

.gifts__sort.is-placeholder .gifts__sort-current {
  color: var(--driftwood);
}

.gifts__sort-menu {
  position: absolute;
  top: calc(100% + var(--s-2));
  right: 0;
  left: 0;
  display: grid;
  gap: var(--s-1);
  padding: var(--s-2);
  border: 1px solid rgba(146, 70, 36, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(252, 249, 246, 0.98) 0%, rgba(246, 240, 235, 0.97) 100%);
  box-shadow:
    0 20px 36px rgba(58, 42, 30, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity var(--t-fast) ease,
    transform var(--t-fast) var(--ease-out);
  z-index: 160;
}

.gifts__sort.is-open .gifts__sort-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.gifts__sort-option {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: 20px;
  font-family: var(--ff-display);
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--espresso);
  transition:
    background var(--t-fast) ease,
    color var(--t-fast) ease,
    transform var(--t-fast) var(--ease-out);
}

.gifts__sort-option:hover,
.gifts__sort-option:focus-visible {
  background: rgba(146, 70, 36, 0.08);
  color: var(--terracotta);
  outline: none;
}

.gifts__sort-option.is-selected {
  background: rgba(146, 70, 36, 0.11);
  color: var(--terracotta);
}

.gifts__sort.is-open .gifts__sort-trigger {
  border-color: rgba(146, 70, 36, 0.4);
  box-shadow:
    0 16px 32px rgba(58, 42, 30, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.gifts__sort-icon {
  color: var(--terracotta);
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease-out), color var(--t-fast) ease;
}

.gifts__sort:hover .gifts__sort-icon,
.gifts__sort:focus-within .gifts__sort-icon,
.gifts__sort.is-open .gifts__sort-icon {
  color: var(--terracotta-warm);
}

.gifts__sort.is-open .gifts__sort-icon {
  transform: rotate(180deg);
}

/* ─── Gift Card Row (always 4 columns) ───────────────────────────────── */
.gifts__giftcard-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  margin-bottom: var(--s-8);
}

/* ─── Product Grid ───────────────────────────────────────────────────── */
.gifts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
}

.product-card {
  cursor: pointer;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--linen);
  border: 1px solid var(--silk);
  /* Entrance: hidden initially */
  opacity: 0;
  transform: translateY(16px);
  /* Single transition covers entrance + hover */
  transition:
    opacity var(--t-slow) var(--ease-out),
    transform var(--t-normal) var(--ease-out),
    box-shadow var(--t-normal) var(--ease-out),
    border-color var(--t-fast) ease;
}

.product-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.product-card.is-revealed:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--silk-warm);
}

.product-card.is-revealed:active {
  transform: translateY(-2px) scale(0.99);
}

.product-card__img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ivory);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.product-card.is-revealed:hover .product-card__img {
  transform: scale(1.04);
}

.product-card__info {
  padding: var(--s-4) var(--s-3);
}

.product-card__name {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--espresso);
  letter-spacing: 0.02em;
  margin-bottom: var(--s-1);
}

.product-card__price {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--terracotta);
  letter-spacing: 0.02em;
}

/* Gift card ribbon accent bar on product card */
.product-card--giftcard .product-card__img-wrap {
  position: relative;
}

.product-card--giftcard .product-card__ribbon-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
}


/* ─── Honeymoon Experience Badge ─────────────────────────────────────── */
.product-card__badge {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-family: var(--ff-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, rgba(146, 70, 36, 0.88), rgba(168, 89, 58, 0.92));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--r-full);
  box-shadow: 0 2px 8px rgba(146, 70, 36, 0.22);
  pointer-events: none;
}

/* Pinned experience cards — subtle warm accent */
.product-card--pinned .product-card__img-wrap {
  position: relative;
}

.product-card--pinned.is-revealed {
  border-color: rgba(146, 70, 36, 0.14);
}

.product-card--pinned.is-revealed:hover {
  border-color: rgba(146, 70, 36, 0.28);
}

/* ─── Honeymoon Experience Section Heading ───────────────────────────── */
.gifts__experience-heading {
  grid-column: 1 / -1;
  text-align: center;
  position: relative;
  z-index: 90;
  padding: 0 0 var(--s-6);
}

.gifts__experience-heading .gifts__section-divider {
  margin-top: 0;
}

.gifts__experience-title {
  font-family: var(--ff-display);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--espresso);
  margin-bottom: var(--s-6);
}


/* ─── Expand Button ("Ver mais presentes") ───────────────────────────── */
.gifts__expand-wrap {
  display: flex;
  justify-content: center;
  padding: var(--s-10) 0 var(--s-4);
  transition: opacity var(--t-slow) var(--ease-out), max-height var(--t-slow) var(--ease-out);
  max-height: 120px;
  overflow: hidden;
}

.gifts__expand-wrap.is-hidden {
  opacity: 0;
  max-height: 0;
  padding: 0;
  pointer-events: none;
}

.gifts__expand-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-8);
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--terracotta);
  border: none;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-mid);
  cursor: pointer;
  transition:
    background var(--t-fast) ease,
    transform var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) ease;
}

.gifts__expand-btn:hover {
  background: var(--terracotta-warm);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.gifts__expand-btn:active {
  transform: translateY(0) scale(0.98);
}

.gifts__expand-icon {
  transition: transform var(--t-normal) var(--ease-out);
}

.gifts__expand-btn:hover .gifts__expand-icon {
  transform: translateY(2px);
}

/* ─── Extra Products Grid (hidden until expanded) ───────────────────── */
.gifts__extra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.8s var(--ease-out),
    opacity 0.6s var(--ease-out) 0.1s;
}

.gifts__extra-grid.is-expanded {
  max-height: 4000px;
  opacity: 1;
  overflow: visible;
  padding-top: var(--s-6);
}

/* ─── Pinned Honeymoon Experiences ─────────────────────────────────── */
.gifts__pinned-section {
  margin-top: 0;
  padding-top: var(--s-24);
}

.gifts__pinned-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
}

/* ─── Modal ──────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
}

.modal.is-open {
  pointer-events: auto;
  visibility: visible;
}

/* Backdrop */
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity var(--t-normal) var(--ease-out);
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

/* Sheet — desktop: centered card */
.modal__sheet {
  position: relative;
  background: var(--linen);
  width: 90%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-float);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition:
    opacity var(--t-normal) var(--ease-out),
    transform var(--t-normal) var(--ease-out);
}

.modal.is-open .modal__sheet {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Scrollbar */
.modal__sheet::-webkit-scrollbar { width: 3px; }
.modal__sheet::-webkit-scrollbar-track { background: transparent; }
.modal__sheet::-webkit-scrollbar-thumb { background: var(--silk-strong); border-radius: 2px; }

/* Close button */
.modal__close {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(250, 247, 243, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--walnut);
  transition:
    background var(--t-fast) ease,
    color var(--t-fast) ease,
    transform var(--t-normal) var(--ease-out);
}

.modal__close:hover {
  background: rgba(250, 247, 243, 0.95);
  color: var(--espresso);
  transform: rotate(90deg);
}

/* Product image area */
.modal__hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory);
  padding: var(--s-10) var(--s-8);
  min-height: 220px;
}

.modal__img {
  max-width: 85%;
  max-height: 260px;
  object-fit: contain;
}

/* Body */
.modal__body {
  padding: var(--s-6) var(--s-6) var(--s-8);
}

.modal__title {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--espresso);
  margin-bottom: var(--s-2);
  text-align: center;
  letter-spacing: 0.02em;
}

.modal__price {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--terracotta);
  text-align: center;
  margin-bottom: var(--s-6);
  letter-spacing: 0.02em;
}


/* ── Modal: Pix Section ──────────────────────────────────────────── */
.modal__section { margin-bottom: var(--s-5); }

.modal__section-label {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--terracotta);
  margin-bottom: var(--s-2);
  letter-spacing: 0.02em;
}

.modal__section-note {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--driftwood);
  line-height: 1.6;
  margin-bottom: var(--s-4);
}

.modal__pix {
  display: flex;
  gap: var(--s-5);
  align-items: flex-start;
}

.modal__qr {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  padding: var(--s-2);
  border: 1px solid var(--silk);
}

.modal__qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal__key-group { flex: 1; min-width: 0; }

.modal__key-label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sandstone);
  display: block;
  margin-bottom: var(--s-2);
}

.modal__key-row {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--parchment);
  border: 1px solid var(--silk);
  border-radius: var(--r-md);
  padding: var(--s-2) var(--s-3);
}

.modal__key-value {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--espresso);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
}

.modal__key-copy {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta);
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-sm);
  transition: background var(--t-fast) ease, color var(--t-fast) ease;
  white-space: nowrap;
}

.modal__key-copy:hover { background: var(--terracotta-glow); }
.modal__key-copy.is-copied { color: var(--copied); }


/* ─── RSVP ───────────────────────────────────────────────────────────── */
.rsvp {
  padding: var(--s-24) var(--s-6);
  display: flex;
  justify-content: center;
}

.rsvp__inner {
  max-width: 620px;
  width: 100%;
  text-align: center;
}

.rsvp__section-divider {
  width: 60px;
  height: 1px;
  margin: 0 auto var(--s-16);
  background: linear-gradient(90deg, transparent, var(--terracotta), transparent);
}

.rsvp__heading {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--espresso);
  margin-bottom: var(--s-4);
}

.rsvp__subtitle {
  max-width: 520px;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--driftwood);
  line-height: 1.8;
  margin: 0 auto var(--s-10);
}

.rsvp__heading:empty,
.rsvp__subtitle:empty {
  display: none;
}

.rsvp__card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at top left, rgba(107, 112, 85, 0.08), transparent 34%),
    radial-gradient(circle at bottom right, rgba(146, 70, 36, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(250, 247, 243, 0.98), rgba(245, 240, 234, 0.96));
  border: 1px solid var(--silk-warm);
  border-radius: 28px;
  padding: var(--s-10) var(--s-8);
  box-shadow: var(--shadow-lift);
  text-align: center;
}

.rsvp__card::before {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 22px;
  border: 1px solid rgba(58, 42, 30, 0.08);
  pointer-events: none;
}

.rsvp__card::after {
  content: '';
  position: absolute;
  right: -56px;
  bottom: -72px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(146, 70, 36, 0.14), transparent 68%);
  pointer-events: none;
}

.rsvp__crest {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

.rsvp__crest-line {
  width: clamp(56px, 12vw, 88px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silk-strong), transparent);
}

.rsvp__crest-flower {
  width: 28px;
  height: auto;
  opacity: 0.62;
  flex-shrink: 0;
}

.rsvp__eyebrow {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-soft);
  margin-bottom: var(--s-3);
}

.rsvp__card-title {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto var(--s-4);
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: var(--espresso);
}

.rsvp__card-text {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 0 auto var(--s-8);
  font-size: 0.94rem;
  font-weight: 300;
  color: var(--walnut);
  line-height: 1.85;
}

.rsvp__meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-8);
}

.rsvp__meta-item {
  background: rgba(250, 247, 243, 0.7);
  border: 1px solid var(--silk);
  border-radius: 18px;
  padding: var(--s-4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.rsvp__meta-label {
  display: block;
  margin-bottom: var(--s-1);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sandstone);
}

.rsvp__meta-value {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--espresso);
}

.rsvp__submit {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  width: 100%;
  max-width: 360px;
  padding: var(--s-4) var(--s-6);
  margin: 0 auto;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--linen);
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-warm));
  border: none;
  border-radius: var(--r-full);
  box-shadow: 0 18px 40px rgba(146, 70, 36, 0.16);
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease, filter var(--t-fast) ease;
}

.rsvp__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(146, 70, 36, 0.2);
  filter: saturate(1.05);
}

.rsvp__submit:active {
  transform: translateY(0);
}

.rsvp__submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(146, 70, 36, 0.14), 0 22px 44px rgba(146, 70, 36, 0.2);
}

.rsvp__submit--link {
  text-decoration: none;
}

.rsvp__submit-icon {
  flex-shrink: 0;
}

.rsvp__note {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: var(--s-4) auto 0;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--driftwood);
  line-height: 1.75;
}


/* ─── Footer ─────────────────────────────────────────────────────────── */
.footer {
  padding: var(--s-16) var(--s-6) var(--s-12);
  text-align: center;
  border-top: 1px solid var(--silk);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
}

.footer__mono {
  width: 48px;
  height: auto;
  opacity: 0.30;
}

.footer__line {
  font-family: var(--ff-display);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--driftwood);
}

.footer__love {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--sandstone);
  font-style: italic;
}


/* ─── Keyframes ──────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25%      { transform: scale(1.15); }
  50%      { transform: scale(1); }
  75%      { transform: scale(1.1); }
}


/* ─── Hero entrance animation ────────────────────────────────────── */
.anim-entry {
  opacity: 0;
  transform: translateY(16px);
}

.anim-entry.is-visible {
  animation: fadeInUp var(--t-slow) var(--ease-out) forwards;
}


/* ─── Scroll reveal ──────────────────────────────────────────────── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
}

.scroll-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ─── Body lock ──────────────────────────────────────────────────── */
body.modal-open { overflow: hidden; }


/* ─── Responsive ─────────────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 900px) {
  .gifts__controls {
    margin-right: 0;
  }

  .gifts__giftcard-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-4);
  }

  .gifts__grid,
  .gifts__pinned-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-5);
  }

  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  /* Mobile nav open */
  .nav.is-menu-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(245, 240, 234, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: var(--s-6);
    gap: var(--s-5);
    transform: none;
    border-bottom: 1px solid var(--silk);
    box-shadow: var(--shadow-mid);
  }

  .nav.is-menu-open .nav__toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav.is-menu-open .nav__toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.is-menu-open .nav__toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .hero {
    padding: var(--s-12) var(--s-5) var(--s-8);
  }

  .hero__arch {
    width: 230px;
    height: 300px;
    border-radius: 115px 115px 0 0;
  }

  .countdown { gap: var(--s-3); }
  .countdown__block { min-width: 60px; padding: var(--s-4) var(--s-3); }
  .countdown__number { font-size: 1.8rem; }

  .about { padding: var(--s-16) var(--s-5); }

  .couple-photos__inner {
    flex-direction: column;
    gap: var(--s-6);
  }

  .couple-photos__img-wrap {
    width: 160px;
    height: 160px;
  }

  .ceremony { padding: var(--s-16) var(--s-5); }
  .ceremony__map {
    height: 240px;
    padding: var(--s-1);
  }

  .ceremony__directions {
    padding: var(--s-2);
  }

  .ceremony__venue-img-wrap--circle {
    width: 180px;
    height: 180px;
    max-width: 180px;
  }

  .proposal {
    padding: var(--s-16) var(--s-5) var(--s-14);
  }

  .proposal::before {
    width: 190px;
    right: -82px;
    opacity: 0.14;
  }

  .proposal__paper {
    width: 210px;
    left: -96px;
    bottom: 12%;
    opacity: 0.06;
  }

  .proposal__header {
    margin-bottom: var(--s-8);
  }

  .proposal__layout {
    display: block;
  }

  .proposal__carousel {
    max-width: min(100%, 360px);
  }

  .proposal__viewport {
    border-radius: 128px 128px var(--r-lg) var(--r-lg);
    box-shadow:
      0 20px 52px rgba(58, 42, 30, 0.13),
      0 0 0 9px rgba(250, 247, 243, 0.28),
      0 0 0 10px rgba(146, 70, 36, 0.05);
  }

  .proposal__nav {
    width: 36px;
    height: 36px;
    background: rgba(250, 247, 243, 0.9);
  }

  .proposal__nav--prev { left: var(--s-3); }
  .proposal__nav--next { right: var(--s-3); }

  .proposal__dots {
    margin-top: var(--s-6);
  }
  .gifts { padding: var(--s-16) var(--s-4); }

  .gifts__controls {
    width: 100%;
    max-width: 260px;
    margin: 0 0 var(--s-8) auto;
  }

  .gifts__sort {
    width: 100%;
    max-width: 260px;
    min-width: 0;
  }

  .gifts__giftcard-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-3);
  }

  .gifts__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-3);
  }

  .gifts__extra-grid,
  .gifts__pinned-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-3);
  }

  .product-card__name {
    font-size: 0.88rem;
  }

  .product-card__info {
    padding: var(--s-3) var(--s-2);
  }

  .rsvp { padding: var(--s-16) var(--s-5); }
  .rsvp__card {
    border-radius: 24px;
    padding: var(--s-8) var(--s-5);
  }

  .rsvp__card::before {
    inset: 12px;
    border-radius: 18px;
  }

  .rsvp__meta {
    grid-template-columns: 1fr;
  }

  .rsvp__submit {
    max-width: none;
  }

  /* Modal → bottom sheet on mobile */
  .modal { align-items: flex-end; }

  .modal__sheet {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    transform: translateY(100%);
    opacity: 1;
  }

  .modal.is-open .modal__sheet {
    transform: translateY(0);
  }

  .modal__pix {
    flex-direction: column;
    align-items: center;
  }

  .modal__qr {
    width: 150px;
    height: 150px;
  }

  .modal__key-group { width: 100%; }
}

/* Small phones */
@media (max-width: 380px) {
  .hero__names { font-size: 2rem; }

  .gifts__giftcard-row {
    grid-template-columns: 1fr 1fr;
    max-width: 280px;
    margin: 0 auto var(--s-6);
  }

  .gifts__grid {
    grid-template-columns: 1fr;
    max-width: 260px;
    margin: 0 auto;
  }

  .gifts__extra-grid,
  .gifts__pinned-grid {
    grid-template-columns: 1fr;
    max-width: 260px;
    margin: 0 auto;
  }

  .countdown { gap: var(--s-2); }
  .countdown__block { min-width: 52px; }
}


/* Hero refresh overrides */
.hero {
  align-items: center;
  padding: calc(var(--s-24) + var(--s-10)) var(--s-6) var(--s-20);
  background:
    radial-gradient(ellipse 42% 54% at 35% 46%, rgba(223, 205, 190, 0.54) 0%, rgba(223, 205, 190, 0.2) 36%, rgba(223, 205, 190, 0) 72%),
    radial-gradient(ellipse 36% 46% at 39% 32%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 66%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 28%),
    radial-gradient(circle at 86% 14%, rgba(168, 89, 58, 0.12) 0%, rgba(168, 89, 58, 0) 25%),
    linear-gradient(180deg, #f8f3ed 0%, #f3ebe3 60%, #efe5db 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(238, 232, 224, 0), rgba(238, 232, 224, 0.92));
  pointer-events: none;
  z-index: 0;
}

.hero__ornament {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero__ornament-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero__ornament--mist {
  top: 84px;
  left: -148px;
  width: clamp(300px, 33vw, 470px);
  opacity: 0.24;
  mix-blend-mode: multiply;
}

.hero__ornament--copper {
  right: -112px;
  bottom: 72px;
  width: clamp(300px, 37vw, 520px);
  opacity: 0.96;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(300px, 0.76fr);
  align-items: center;
  gap: clamp(36px, 6vw, 76px);
  max-width: 1240px;
}

.hero__media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: clamp(440px, 54vw, 740px);
  padding: 48px 16px 0;
}

.hero__media::before,
.hero__media::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

.hero__media::before {
  width: min(86%, 650px);
  aspect-ratio: 0.72;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(250, 247, 243, 0.86) 0%, rgba(250, 247, 243, 0.42) 44%, rgba(250, 247, 243, 0) 72%);
  filter: blur(26px);
  opacity: 0.94;
}

.hero__media::after {
  width: min(92%, 720px);
  aspect-ratio: 0.86;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(168, 89, 58, 0) 48%, rgba(168, 89, 58, 0.08) 74%, rgba(168, 89, 58, 0) 100%);
  filter: blur(18px);
  opacity: 0.7;
}

.hero__photo-frame {
  position: relative;
  width: min(100%, 760px);
  aspect-ratio: 0.78;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid rgba(250, 247, 243, 0.76);
  box-shadow:
    0 30px 80px rgba(58, 42, 30, 0.14),
    0 12px 26px rgba(58, 42, 30, 0.06),
    0 0 0 18px rgba(250, 247, 243, 0.16),
    0 0 86px rgba(198, 160, 138, 0.24);
  background: var(--linen);
  z-index: 1;
}

.hero__photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 -42px 58px rgba(58, 42, 30, 0.06);
  pointer-events: none;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 390px;
  padding-right: clamp(0px, 1.5vw, 24px);
}

.hero__content::before {
  display: none;
}

.hero__logo {
  margin-bottom: var(--s-6);
  justify-content: flex-start;
}

.hero__logo-img {
  width: 76px;
  opacity: 0.62;
}

.hero__logo:hover .hero__logo-img {
  opacity: 0.82;
}

.hero__photo {
  object-position: center center;
  transform: scale(1.03);
}

.hero__copy {
  position: relative;
  padding-left: 36px;
}

.hero__copy::before,
.hero__copy::after {
  content: '';
  position: absolute;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(168, 89, 58, 0.9), rgba(168, 89, 58, 0.22));
}

.hero__copy::before {
  top: 12px;
  height: 138px;
}

.hero__copy::after {
  bottom: 14px;
  height: 154px;
}

.hero__eyebrow {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--s-5);
}

.hero__names {
  font-size: clamp(3.5rem, 7.1vw, 5.9rem);
  letter-spacing: 0.01em;
  line-height: 0.9;
  margin-bottom: var(--s-8);
}

.hero__name {
  display: block;
}

.hero__ampersand {
  display: block;
  font-size: 0.54em;
  padding: 0.06em 0 0.12em;
}

.hero__details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-5);
  margin-bottom: 0;
}

/* Date — large serif in terracotta */
.hero__event-date {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  line-height: 1.2;
}

/* Time — highlighted pill for prominence */
.hero__event-time {
  display: inline-flex;
  align-items: center;
  padding: 0.55em 1.2em;
  background: linear-gradient(135deg, var(--terracotta-warm), var(--terracotta));
  box-shadow: 0 6px 18px rgba(146, 70, 36, 0.2);
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 2.8vw, 1.65rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--linen);
  line-height: 1;
}

/* Dress code — prominent uppercase */
.hero__event-dress {
  font-family: var(--ff-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--espresso);
}

/* Venue — clear and readable */
.hero__event-venue {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--walnut);
  line-height: 1.55;
  max-width: 320px;
}

.hero__countdown-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin-top: clamp(36px, 5vw, 64px);
}

.hero__countdown-shell {
  position: relative;
  padding: clamp(24px, 3vw, 38px);
  background: linear-gradient(135deg, rgba(250, 247, 243, 0.95), rgba(238, 232, 224, 0.95));
  border: 1px solid rgba(146, 70, 36, 0.12);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.hero__countdown-shell::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(146, 70, 36, 0.18), rgba(146, 70, 36, 0.82), rgba(146, 70, 36, 0.18));
}

.hero__countdown-shell::after {
  content: '';
  position: absolute;
  right: -34px;
  bottom: -38px;
  width: 186px;
  height: 186px;
  background: url('../assets/flower-driftwood.svg') no-repeat center / contain;
  opacity: 0.16;
  pointer-events: none;
}

.hero__countdown-kicker {
  font-family: var(--ff-body);
  font-size: clamp(0.98rem, 1.45vw, 1.28rem);
  font-weight: 600;
  letter-spacing: 0.26em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: clamp(18px, 2vw, 28px);
  text-align: center;
}

.hero__countdown {
  text-align: center;
  width: 100%;
  max-width: none;
  padding: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.hero__countdown-legacy {
  display: none;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
}

.countdown__block {
  min-width: 0;
  min-height: 124px;
  padding: var(--s-6) var(--s-4);
  border-radius: 0;
  border: 0;
  background: linear-gradient(180deg, rgba(168, 89, 58, 0.92), rgba(146, 70, 36, 0.96));
  box-shadow: 0 16px 26px rgba(146, 70, 36, 0.15);
  text-align: center;
}

.countdown__number {
  font-size: clamp(2.25rem, 4.6vw, 3rem);
  color: var(--linen);
}

.countdown__label {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(250, 247, 243, 0.82);
}

.countdown__dot {
  display: none;
}

@media (max-width: 900px) {
  .hero {
    padding: calc(var(--s-24) + var(--s-6)) var(--s-6) var(--s-16);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--s-8);
    max-width: 820px;
  }

  .hero__media {
    min-height: auto;
    padding: 34px 12px 0;
  }

  .hero__photo-frame {
    width: min(100%, 720px);
  }

  .hero__content {
    max-width: 100%;
    align-items: center;
    text-align: center;
    padding-right: 0;
  }

  .hero__copy {
    padding: 30px 0 0;
    text-align: center;
  }

  .hero__copy::before,
  .hero__copy::after {
    left: 50%;
    width: 92px;
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(168, 89, 58, 0.14), rgba(168, 89, 58, 0.9), rgba(168, 89, 58, 0.14));
  }

  .hero__copy::before {
    top: 0;
  }

  .hero__copy::after {
    bottom: 0;
  }

  .hero__logo {
    justify-content: center;
  }

  .hero__details {
    align-items: center;
  }

  .hero__countdown-stage {
    margin-top: var(--s-12);
  }

  .hero__countdown-shell {
    text-align: center;
  }

  .hero__countdown {
    text-align: center;
  }

  .hero__ornament--mist {
    left: -96px;
    top: 88px;
    width: clamp(240px, 36vw, 400px);
  }

  .hero__ornament--copper {
    right: -116px;
    bottom: 170px;
    width: clamp(240px, 38vw, 420px);
    opacity: 0.82;
  }

}

@media (max-width: 600px) {
  .hero {
    padding: calc(var(--s-20) + var(--s-6)) var(--s-4) var(--s-12);
  }

  .hero__inner {
    gap: var(--s-8);
  }

  .hero__media {
    padding: 26px 6px 0;
  }

  .hero__photo-frame {
    width: 100%;
    aspect-ratio: 0.86;
  }

  .hero__ornament--mist {
    width: 240px;
    left: -118px;
    top: 92px;
    opacity: 0.18;
  }

  .hero__ornament--copper {
    width: 270px;
    right: -128px;
    bottom: 210px;
  }

  .hero__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.28em;
  }

  .hero__names {
    font-size: clamp(2.9rem, 14vw, 4.25rem);
  }

  .hero__event-date {
    font-size: 1.05rem;
    letter-spacing: 0.1em;
  }

  .hero__event-time {
    font-size: 1.15rem;
    padding: 0.5em 1em;
  }

  .hero__event-dress {
    font-size: 0.72rem;
  }

  .hero__event-venue {
    font-size: 0.8rem;
    max-width: 260px;
  }

  .hero__countdown-shell {
    padding: var(--s-5);
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-3);
  }

  .countdown__block {
    min-height: 110px;
    padding: var(--s-5) var(--s-3);
  }
}

@media (max-width: 380px) {
  .hero__names {
    font-size: 2.55rem;
  }

  .hero__copy {
    padding-top: 26px;
  }

  .countdown__number {
    font-size: 1.95rem;
  }
}
