/* ───────────────────────────────────────────────────────────────────────────
   DESIGN TOKENS — Boho Chic Manual
   Extracted from the couple's brand artefacts (invitations, manuals, palette).
   The system is intentionally restrained: terracotta carries the personality,
   sage carries the calm, cream carries the page.
   ─────────────────────────────────────────────────────────────────────────── */
:root {
  /* Palette */
  --terracotta: #b65a38;
  --terracotta-deep: #8b3d26;
  --terracotta-soft: #d88a6a;
  --cream: #fff8f1;
  --cream-warm: #f4ecdf;
  --cream-deeper: #eadfce;
  --sage: #7a9b85;
  --sage-deep: #5c7a68;
  --nude: #e3c9b3;
  --ink: #2f2620;
  --ink-soft: #6b5a4f;
  --ink-muted: #998676;
  --hairline: rgba(47, 38, 32, 0.12);
  --paper-shadow:
    0 1px 2px rgba(47, 38, 32, 0.04), 0 8px 24px rgba(47, 38, 32, 0.06);
  --paper-shadow-lg:
    0 4px 12px rgba(47, 38, 32, 0.06), 0 24px 48px rgba(47, 38, 32, 0.1);

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-script: "Pinyon Script", "Apple Chancery", cursive;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Scale */
  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.85rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.15vw, 1.05rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.75vw, 1.8rem);
  --step-3: clamp(1.85rem, 1.55rem + 1.5vw, 2.65rem);
  --step-4: clamp(2.5rem, 1.9rem + 3vw, 4rem);
  --step-5: clamp(3.2rem, 2.2rem + 5vw, 6rem);

  /* Layout */
  --container: min(1180px, 92vw);
  --container-narrow: min(820px, 92vw);
  --radius-sm: 3px;
  --radius: 6px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ───────────────────────────────────────────────────────────────────────────
   RESET / BASE
   ─────────────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

#cap2,
#cap3 {
  scroll-margin-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ───────────────────────────────────────────────────────────────────────────
   TYPOGRAPHY ATOMS
   The signature device: a small uppercase eyebrow with a hairline rule that
   echoes the "section dividers" in the printed manuals.
   ─────────────────────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: var(--terracotta);
}
.eyebrow.center {
  justify-content: center;
}
.eyebrow.center::after {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: var(--terracotta);
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--terracotta);
  line-height: 0.9;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.display.italic {
  font-style: italic;
  font-weight: 400;
}

.lede {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
}

.small-caps {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ───────────────────────────────────────────────────────────────────────────
   SITE HEADER — sticky, transparent over hero, solid on scroll
   ─────────────────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1.1rem 0;
  transition:
    background 0.35s var(--ease-out),
    backdrop-filter 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    padding 0.35s var(--ease-out);
}
.site-header.scrolled {
  background: rgba(255, 248, 241, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--hairline);
  padding: 0.65rem 0;
}
.header-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.brand-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}
.site-header:not(.scrolled) .brand-mark,
.site-header:not(.scrolled) .nav a,
.site-header:not(.scrolled) .nav-toggle {
  color: var(--cream);
}
.site-header:not(.scrolled) .nav a:hover {
  color: var(--cream);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}
.nav a {
  position: relative;
  padding: 0.4rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease-out);
}
.nav a:hover {
  color: var(--terracotta);
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 18px;
  height: 1px;
  background: currentColor;
}
.nav-cart {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--terracotta);
  color: var(--cream) !important;
  transition:
    background 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}
.nav-cart:hover {
  background: var(--terracotta-deep);
  transform: translateY(-1px);
}
.nav-cart .cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4em;
  height: 1.4em;
  padding: 0 0.4em;
  background: var(--cream);
  color: var(--terracotta);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
}
.site-header:not(.scrolled) .nav-cart {
  background: rgba(255, 248, 241, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 248, 241, 0.4);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

@media (max-width: 880px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    padding: 4rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-in-out);
    z-index: 60;
  }
  .nav.open {
    transform: translateX(0);
  }
  .nav a {
    color: var(--ink) !important;
    font-size: 1.05rem;
    font-family: var(--font-display);
    font-style: italic;
    letter-spacing: 0.06em;
    text-transform: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-cart {
    padding: 0.45rem 0.7rem;
    font-size: 0.7rem;
  }
  .nav-cart .label {
    display: none;
  }
}

/* ───────────────────────────────────────────────────────────────────────────
   PAGE / VIEW SYSTEM (client-side routing simulation)
   ─────────────────────────────────────────────────────────────────────────── */
.page {
  font-family: var(--font-display);
  display: none;
  animation: fadeIn 0.4s var(--ease-out) both;
}
.page.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.section.tight {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.container {
  width: var(--container);
  margin: 0 auto;
}
.container.narrow {
  width: var(--container-narrow);
}

/* ───────────────────────────────────────────────────────────────────────────
   HERO — the proposal video as the thesis of the page.
   The watercolor serves as the poster; a real <video> element wraps it.
   When a video file is supplied via the data-src attribute, it autoplays muted.
   ─────────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--cream);
  background: var(--ink);
}
.hero-media {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 1;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at center,
      transparent 30%,
      rgba(47, 38, 32, 0.55) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(47, 38, 32, 0.15) 0%,
      transparent 30%,
      transparent 60%,
      rgba(47, 38, 32, 0.5) 100%
    );
  pointer-events: none;
}
.hero-video,
.hero-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-poster {
  animation: heroPan 30s ease-in-out infinite alternate;
  filter: saturate(1.05);
}
@keyframes heroPan {
  0% {
    transform: scale(1.08) translate(0, 0);
  }
  100% {
    transform: scale(1.14) translate(-1.5%, -1.5%);
  }
}

.hero-play {
  position: absolute;
  z-index: 3;
  right: 4rem;
  bottom: 4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.7rem 0.65rem 1.4rem;
  border-radius: 999px;
  background: rgba(255, 248, 241, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 248, 241, 0.35);
  color: var(--cream);
  cursor: pointer;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition:
    transform 0.3s var(--ease-out),
    background 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.1s both;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.hero-play:hover {
  transform: translateY(-2px);
  background: rgba(255, 248, 241, 0.22);
  border-color: rgba(255, 248, 241, 0.6);
}
.hero-play .play-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--terracotta);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hero-play .play-icon svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}
.hero-play-hint {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-content > * {
  pointer-events: auto;
}

/* Fading Frosted Glass Wrappers */
.hero-monogram-wrapper {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.1s both;
}
.hero-monogram-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: rgba(255, 248, 241, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 248, 241, 0.35);
  color: var(--cream);
  cursor: pointer;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition:
    transform 0.3s var(--ease-out),
    background 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.1s both;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 70%; */
  /* -webkit-mask-image: radial-gradient(
    circle,
    rgb(50, 0, 0) 40%,
    rgba(0, 0, 0, 0) 90%
  );
  mask-image: radial-gradient(circle, rgb(50, 0, 0) 10%, rgba(0, 0, 0, 0) 60%);
  z-index: -1; */
}
.hero-monogram {
  width: 100px;
  height: auto;
  display: block;
}

.hero-names-wrapper {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 3rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.4s both;
}
.hero-names-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(47, 38, 32, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  -webkit-mask-image: radial-gradient(
    ellipse,
    rgba(0, 0, 0, 1) 25%,
    rgba(0, 0, 0, 0) 70%
  );
  mask-image: radial-gradient(
    ellipse,
    rgba(0, 0, 0, 1) 25%,
    rgba(0, 0, 0, 0) 70%
  );
  z-index: -1;
}
.hero-names {
  width: min(400px, 70vw);
  height: auto;
  display: block;
}

.hero-ampersand {
  font-style: italic;
  font-size: 0.7em;
  font-family: var(--font-display);
  color: var(--terracotta-soft);
  font-weight: 300;
  margin: 0 0.1em;
  vertical-align: 0.05em;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.8rem 1.6rem;
  border-top: 1px solid rgba(255, 248, 241, 0.5);
  border-bottom: 1px solid rgba(255, 248, 241, 0.5);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 248, 241, 0.95);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.7s both;
}
.hero-meta .dot {
  width: 4px;
  height: 4px;
  background: var(--terracotta-soft);
  border-radius: 50%;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 45%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 248, 241, 0.7);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.4s both;
}
.hero-scroll::after {
  content: "";
  display: block;
  margin: 0.7rem auto 0;
  width: 1px;
  height: 32px;
  background: rgba(255, 248, 241, 0.5);
  animation: scrollPulse 2s var(--ease-in-out) infinite;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes scrollPulse {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1.5);
    opacity: 1;
  }
}

@keyframes fadeUpMobile {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 600px) {
  .hero-meta {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.9rem 1.2rem;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
  }
  .hero-meta .dot {
    display: none;
  }
  .hero-play {
    position: absolute;
    left: 50%;
    bottom: 8rem;
    right: auto;
    transform: translateX(-50%);
    padding: 0.5rem 0.6rem 0.5rem 1rem;
    font-size: 0.88rem;
    gap: 0.6rem;
    margin-top: 0;
    animation: fadeUpMobile 0.8s var(--ease-out) 1.1s both;
  }
  .hero-play:hover {
    transform: translateX(-50%) translateY(-2px);
  }
  .hero-monogram {
    width: 64px;
  }
}

/* ───────────────────────────────────────────────────────────────────────────
   PAGE HEADER (used on non-home pages)
   ─────────────────────────────────────────────────────────────────────────── */
.page-head {
  padding: 10rem 0 3.5rem;
  text-align: center;
  position: relative;
  background: radial-gradient(
    ellipse at top,
    var(--cream-warm) 0%,
    var(--cream) 70%
  );
  padding-bottom: 0px;
}
.page-head h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-4);
  margin: 1rem 0 0.6rem;
  /* color: var(--ink); */
  color: var(--ink-soft);
  line-height: 1;
}
.page-head .page-head-script {
  display: block;
  font-family: var(--font-script);
  color: var(--terracotta);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 0.9;
  margin-bottom: -0.3em;
}
.page-head p {
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0.5rem auto 0;
  font-size: var(--step-0);
}

/* ───────────────────────────────────────────────────────────────────────────
   HOME: section dividers, info strip, "chapters" grid
   ─────────────────────────────────────────────────────────────────────────── */
.info-strip {
  background: var(--cream-warm);
  padding: 2.5rem 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.info-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: start;
}
.info-cell {
  text-align: center;
  position: relative;
}
.info-cell + .info-cell::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 70%;
  background: var(--hairline);
}
.info-cell .small-caps {
  display: block;
  margin-bottom: 0.5rem;
}
.info-cell .value {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.2;
}
.info-cell .value.italic {
  font-style: italic;
  font-weight: 400;
}
@media (max-width: 720px) {
  .info-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    row-gap: 1.8rem;
  }
  .info-cell + .info-cell::before {
    display: none;
  }
  .info-cell + .info-cell:nth-child(odd)::before {
    display: block;
    left: -0.75rem;
  }
}

/* Section header pattern */
.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-3);
  color: var(--ink-soft);
  margin: 0.8rem 0 0.5rem;
  line-height: 1.05;
}
.section-head .script-accent {
  display: block;
  font-family: var(--font-script);
  color: var(--terracotta);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.9;
  margin-bottom: -0.3em;
}
.section-head p {
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0.5rem auto 0;
}

/* ───────────────────────────────────────────────────────────────────────────
   STORY SECTION — proposal panel
   ─────────────────────────────────────────────────────────────────────────── */
.story {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.story-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-warm);
  aspect-ratio: 4 / 3;
  box-shadow: var(--paper-shadow-lg);
}
.story-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-figure .figure-caption {
  position: absolute;
  left: 1.4rem;
  bottom: 1.2rem;
  background: rgba(255, 248, 241, 0.92);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.story-text h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-3);
  font-weight: 500;
  color: var(--ink-soft);
  margin: 1rem 0 1.5rem;
  line-height: 1.05;
}
.story-text .script-accent {
  /* display: block; */
  font-family: var(--font-script);
  color: var(--terracotta);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: -0.3em;
}
.story-text p {
  font-size: var(--step-0);
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.story-text p strong {
  color: var(--ink);
  font-weight: 500;
}
.story-meta {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}
.story-meta div .small-caps {
  display: block;
  margin-bottom: 0.3rem;
}
.story-meta div strong {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--ink);
}
@media (max-width: 760px) {
  .story {
    grid-template-columns: 1fr;
  }
}

/* ───────────────────────────────────────────────────────────────────────────
   CRONOGRAMA — vertical timeline with terracotta tick marks
   ─────────────────────────────────────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding-left: 5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 3.5rem;
  top: 0.6em;
  bottom: 0.6em;
  width: 1px;
  background: var(--hairline);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 1.4rem 0;
  align-items: baseline;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 1.85rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--terracotta);
}
.timeline-time {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-2);
  color: var(--terracotta);
  font-variant-numeric: tabular-nums;
}
.timeline-event h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-1);
  margin: 0;
  color: var(--ink);
}
.timeline-event p {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

@media (max-width: 500px) {
  .timeline {
    padding-left: 0;
  }
  .timeline::before {
    left: 4.2rem;
  }
  .timeline-item {
    grid-template-columns: 4rem 1fr;
    gap: 1.5rem;
    padding-left: 0;
  }
  .timeline-item::before {
    left: 3.85rem;
  }
}

/* ───────────────────────────────────────────────────────────────────────────
   MANUAL — the printed rules card
   ─────────────────────────────────────────────────────────────────────────── */
.manual {
  background: var(--terracotta);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.manual::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: url("../img/leaves_trasparent.png") center/contain no-repeat;
  opacity: 0.15;
  transform: rotate(20deg);
  pointer-events: none;
}
.manual-head {
  margin-bottom: 2rem;
}
.manual-head h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-3);
  color: var(--ink-soft);
  margin: 0.5rem 0 0;
  line-height: 1;
}
.manual-head .script-accent {
  display: block;
  font-family: var(--font-script);
  color: var(--cream);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 0.9;
  margin-bottom: -0.4em;
  opacity: 0.95;
}
.manual-head .eyebrow {
  color: rgba(255, 248, 241, 0.75);
}
.manual-head .eyebrow::before,
.manual-head .eyebrow::after {
  background: var(--cream);
}
.manual-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.manual-list li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 248, 241, 0.18);
}
.manual-list li .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--cream-warm);
  font-variant-numeric: tabular-nums;
}
.manual-list li .rule {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.35;
  color: var(--cream);
}
@media (max-width: 720px) {
  .manual-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ───────────────────────────────────────────────────────────────────────────
   CHAPTER CARDS GRID
   ─────────────────────────────────────────────────────────────────────────── */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.chapter-card {
  display: block;
  padding: 2.5rem 2rem 2rem;
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  text-align: left;
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.chapter-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--paper-shadow);
  border-color: var(--terracotta-soft);
}
.chapter-card .chapter-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--terracotta);
  letter-spacing: 0.04em;
}
.chapter-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-2);
  margin: 0.5rem 0 0.8rem;
  line-height: 1.1;
  color: var(--ink);
}
.chapter-card p {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}
.chapter-card .chapter-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--terracotta);
}
.chapter-card .chapter-cta::after {
  content: "→";
  font-size: 1.1em;
  transition: transform 0.3s var(--ease-out);
}
.chapter-card:hover .chapter-cta::after {
  transform: translateX(4px);
}

/* ───────────────────────────────────────────────────────────────────────────
   ADDRESS / VENUE PAGE
   ─────────────────────────────────────────────────────────────────────────── */
.venue {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.venue-info h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-2);
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.venue-info .address-block {
  margin: 1.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink);
}
.venue-info .address-block span {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.venue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.25s var(--ease-out),
    color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--terracotta-deep);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn-ghost {
  color: var(--terracotta);
  border-color: currentColor;
}
.btn-ghost:hover {
  background: var(--terracotta);
  color: var(--cream);
}
.btn-block {
  display: flex;
  width: 100%;
}

.venue-map {
  background: var(--cream-warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  border: 1px solid var(--hairline);
}
.venue-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}
.travel-card {
  padding: 1.5rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--cream);
}
.travel-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--cream-warm);
  display: grid;
  place-items: center;
  color: var(--terracotta);
  margin-bottom: 0.8rem;
}
.travel-card h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  margin: 0 0 0.3rem;
  font-size: var(--step-1);
}
.travel-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .venue {
    grid-template-columns: 1fr;
  }
}

/* ───────────────────────────────────────────────────────────────────────────
   RSVP / CONFIRMAÇÃO
   ─────────────────────────────────────────────────────────────────────────── */
.rsvp-card {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--paper-shadow);
}
.rsvp-deadline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: var(--cream-warm);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  font-weight: 500;
  margin-bottom: 2rem;
}
.rsvp-form {
  display: grid;
  gap: 1.5rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: var(--step-0);
  padding: 0.9rem 1rem;
  background: var(--cream-warm);
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink);
  transition:
    border-color 0.2s var(--ease-out),
    background 0.2s var(--ease-out);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  background: var(--cream);
  border-color: var(--terracotta);
  outline: none;
}
.field textarea {
  resize: vertical;
  min-height: 100px;
  font-family: var(--font-body);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 540px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.radio-pill {
  position: relative;
  padding: 1.1rem 1rem;
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  background: var(--cream);
  transition: all 0.2s var(--ease-out);
}
.radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-pill .pill-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--ink);
}
.radio-pill .pill-sub {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}
.radio-pill:has(input:checked) {
  border-color: var(--terracotta);
  background: var(--cream-warm);
}
.radio-pill:has(input:checked) .pill-label {
  color: var(--terracotta-deep);
}
.radio-pill:hover {
  border-color: var(--terracotta-soft);
}

.rsvp-success {
  text-align: center;
  padding: 3rem 1rem;
  display: none;
}
.rsvp-success.active {
  display: block;
  animation: fadeUp 0.6s var(--ease-out);
}
.rsvp-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--cream-warm);
  color: var(--sage-deep);
  display: grid;
  place-items: center;
}
.rsvp-success h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-2);
  margin: 0 0 0.5rem;
}
.rsvp-success p {
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 28rem;
}

/* ───────────────────────────────────────────────────────────────────────────
   MENU / CARDÁPIO
   ─────────────────────────────────────────────────────────────────────────── */
.menu-section + .menu-section {
  margin-top: 5rem;
}
.menu-section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
}
.menu-section-head h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-3);
  color: var(--ink-soft);
  margin: 0.5rem 0 0;
  line-height: 1;
}
.menu-section-head .script-accent {
  display: block;
  font-family: var(--font-script);
  color: var(--terracotta);
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: -0.3em;
  line-height: 0.9;
}
.menu-section-head .served {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: var(--step-0);
  white-space: nowrap;
  margin-top: -20px;
}
@media (max-width: 540px) {
  .menu-section-head {
    grid-template-columns: 1fr;
  }
  .menu-section-head .served {
    text-align: left;
  }
}

.menu-items {
  display: grid;
  gap: 1.5rem;
}
.menu-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1.75rem;
  align-items: start;
  padding: 1.25rem 0;
}
.menu-item + .menu-item {
  border-top: 1px dashed var(--hairline);
}
.menu-item-img {
  width: 110px;
  height: 110px;
  border-radius: var(--radius);
  background: var(--cream-warm);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--terracotta-soft);
  position: relative;
}
.menu-item-img svg {
  width: 50%;
  height: 50%;
  opacity: 0.65;
}
.menu-item-img.has-photo {
  background-size: cover;
  background-position: center;
}
.menu-item-img.has-photo svg {
  display: none;
}
.menu-item-body h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-1);
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.menu-item-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}
.menu-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--cream-warm);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.tag.sage {
  background: rgba(122, 155, 133, 0.15);
  color: var(--sage-deep);
}
.tag.terracotta {
  background: rgba(182, 90, 56, 0.12);
  color: var(--terracotta-deep);
}
.menu-item-meta {
  align-self: start;
  text-align: right;
}
.menu-item-meta .small-caps {
  display: block;
  font-size: 0.66rem;
}
.menu-item-meta strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
  font-size: var(--step-1);
  margin-top: 0.2rem;
}

@media (max-width: 600px) {
  .menu-item {
    grid-template-columns: 72px 1fr;
    grid-template-areas: "img body" "img meta";
    gap: 1rem;
  }
  .menu-item-img {
    width: 72px;
    height: 72px;
    grid-area: img;
  }
  .menu-item-body {
    grid-area: body;
  }
  .menu-item-meta {
    grid-area: meta;
    text-align: left;
  }
}

/* ───────────────────────────────────────────────────────────────────────────
   GIFT LIST / PRESENTES — e-commerce style grid
   ─────────────────────────────────────────────────────────────────────────── */
.gift-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
}
.filter-chip {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: transparent;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.filter-chip:hover {
  color: var(--terracotta);
  border-color: var(--terracotta-soft);
}
.filter-chip.active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}
.gift-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
  position: relative;
  cursor: pointer;
}
.gift-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--paper-shadow);
  border-color: var(--terracotta-soft);
}
.btn-in-cart {
  background: var(--sage-deep) !important;
  border-color: var(--sage-deep) !important;
}
.gift-icon {
  aspect-ratio: 16 / 11;
  background: var(--cream-warm);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.gift-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 70% 30%,
      rgba(182, 90, 56, 0.06),
      transparent 50%
    ),
    radial-gradient(
      circle at 30% 70%,
      rgba(122, 155, 133, 0.05),
      transparent 50%
    );
}
.gift-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.gift-tier {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 248, 241, 0.95);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  z-index: 2;
}
.gift-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.gift-body h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0 0 1rem;
  line-height: 1.3;
  color: var(--ink);
}
.gift-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 1rem;
}
.gift-price {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-1);
  color: var(--terracotta);
}
.gift-price .currency {
  font-size: 0.7em;
  opacity: 0.7;
  margin-right: 0.15em;
}
.gift-add {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    background 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}
.gift-add:hover {
  background: var(--terracotta);
  transform: scale(1.03);
}
.gift-card.in-cart .gift-add {
  background: var(--sage-deep);
}
.gift-card.in-cart .gift-add::after {
  content: " ✓";
  margin-left: 0.2em;
}

.gift-empty-cart {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-style: italic;
}

/* ───────────────────────────────────────────────────────────────────────────
   GIFT DETAIL MODAL
   ─────────────────────────────────────────────────────────────────────────── */
.gift-detail-modal {
  width: min(580px, 100%);
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gift-detail-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-warm);
  flex-shrink: 0;
}
.gift-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.gift-detail-modal:hover .gift-detail-img img {
  transform: scale(1.03);
}
.gift-detail-img::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--cream), transparent);
  pointer-events: none;
}
.gift-detail-content {
  padding: 1.75rem 2rem 2rem;
  overflow-y: auto;
}
.gift-detail-content .gift-detail-tier {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: rgba(182, 90, 56, 0.1);
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: 0.85rem;
}
.gift-detail-content h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-3);
  margin: 0 0 0.5rem;
  line-height: 1.15;
  color: var(--ink);
}
.gift-detail-content .gift-detail-id {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}
.gift-detail-content .gift-detail-price {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-4);
  color: var(--terracotta);
  margin-bottom: 1.75rem;
  line-height: 1;
}
.gift-detail-content .gift-detail-price .currency {
  font-size: 0.55em;
  opacity: 0.7;
  margin-right: 0.1em;
}
.gift-detail-actions {
  display: flex;
  gap: 0.75rem;
}
.gift-detail-actions .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
}
@media (max-width: 540px) {
  .gift-detail-modal {
    max-height: 95vh;
  }
  .gift-detail-img {
    aspect-ratio: 16 / 10;
  }
  .gift-detail-content {
    padding: 1.25rem 1.5rem 1.5rem;
  }
  .gift-detail-actions {
    flex-direction: column;
  }
}

/* ───────────────────────────────────────────────────────────────────────────
   CART DRAWER
   ─────────────────────────────────────────────────────────────────────────── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(47, 38, 32, 0.5);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: var(--cream);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-in-out);
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 48px rgba(47, 38, 32, 0.1);
}
.drawer.open {
  transform: translateX(0);
}
.drawer-head {
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-head h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-2);
  margin: 0;
}
.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream-warm);
  color: var(--ink);
  transition: background 0.2s var(--ease-out);
}
.drawer-close:hover {
  background: var(--cream-deeper);
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}
.drawer-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-soft);
}
.drawer-empty svg {
  width: 56px;
  opacity: 0.4;
  margin-bottom: 1rem;
  color: var(--terracotta);
}
.drawer-empty p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  margin: 0 0 0.5rem;
}
.drawer-empty small {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--hairline);
  align-items: center;
}
.cart-item-icon {
  width: 56px;
  height: 56px;
  background: var(--cream-warm);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--terracotta);
}
.cart-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.cart-item-body h5 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  line-height: 1.3;
}
.cart-item-body small {
  color: var(--ink-soft);
  font-size: 0.8rem;
}
.cart-item-remove {
  align-self: start;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted);
  display: grid;
  place-items: center;
  transition: all 0.2s var(--ease-out);
}
.cart-item-remove:hover {
  background: rgba(139, 61, 38, 0.1);
  color: var(--terracotta-deep);
}
.cart-item-price {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
  margin-top: 0.25rem;
  display: block;
}

.drawer-foot {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--hairline);
  background: var(--cream-warm);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
}
.cart-total .label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cart-total .amount {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-3);
  color: var(--terracotta);
}

/* ───────────────────────────────────────────────────────────────────────────
   CHECKOUT MODAL
   ─────────────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(47, 38, 32, 0.65);
  backdrop-filter: blur(6px);
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
  overflow-y: auto;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--cream);
  border-radius: var(--radius-lg);
  width: min(540px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.35s var(--ease-out);
  box-shadow: var(--paper-shadow-lg);
}
.modal-backdrop.open .modal {
  transform: none;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream-warm);
  display: grid;
  place-items: center;
  z-index: 2;
}
.modal-close:hover {
  background: var(--cream-deeper);
}
.modal-content {
  padding: clamp(2rem, 5vw, 3rem);
}
.modal-content .eyebrow {
  margin-bottom: 0.8rem;
}
.modal-content h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-2);
  margin: 0 0 0.4rem;
  line-height: 1.1;
}
.modal-content > p {
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

.checkout-steps {
  display: contents;
}
.checkout-step {
  display: none;
}
.checkout-step.active {
  display: block;
  animation: fadeUp 0.4s var(--ease-out);
}

.qr-block {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  background: var(--cream-warm);
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.qr-block .qr-canvas {
  width: 240px;
  height: 240px;
  margin: 0 auto 1.25rem;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 0.75rem;
  display: grid;
  place-items: center;
  box-shadow: var(--paper-shadow);
}
.qr-block .qr-canvas svg,
.qr-block .qr-canvas img {
  width: 100%;
  height: auto;
}
.qr-block .qr-amount {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-3);
  color: var(--terracotta);
  margin: 0;
  line-height: 1;
}
.qr-block .qr-amount-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0.25rem 0 0;
}

.pix-copy {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin: 1rem 0 1.5rem;
}
.pix-copy code {
  font-family: "SF Mono", Consolas, monospace;
  font-size: 0.72rem;
  color: var(--ink-soft);
  word-break: break-all;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.pix-copy button {
  padding: 0.45rem 0.85rem;
  background: var(--terracotta);
  color: var(--cream);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

.pix-instructions {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.pix-instructions ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.pix-instructions ol li {
  padding-left: 0.3rem;
}
.pix-instructions strong {
  color: var(--ink);
}

/* Video modal */
.video-modal .modal {
  width: min(960px, 100%);
  background: var(--ink);
  padding: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.video-modal .modal-close {
  background: rgba(255, 248, 241, 0.15);
  color: var(--cream);
  backdrop-filter: blur(8px);
}
.video-modal video,
.video-modal .video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-modal .video-placeholder {
  background: url("../img/proposal.jpg") center/cover;
  display: grid;
  place-items: center;
  color: var(--cream);
  text-align: center;
}
.video-modal .video-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(47, 38, 32, 0.55);
}
.video-modal .video-placeholder > div {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 28rem;
}
.video-modal .video-placeholder svg {
  width: 56px;
  margin: 0 auto 1rem;
  opacity: 0.9;
}
.video-modal .video-placeholder p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  margin: 0;
  line-height: 1.4;
}
.video-modal .video-placeholder small {
  font-size: 0.78rem;
  opacity: 0.75;
  display: block;
  margin-top: 0.75rem;
}

/* ───────────────────────────────────────────────────────────────────────────
   FOOTER
   ─────────────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255, 248, 241, 0.8);
  padding: 5rem 0 2rem;
  text-align: center;
}
.site-footer img.footer-monogram {
  width: 80px;
  margin: 0 auto 1.5rem;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.site-footer img.footer-names {
  max-width: min(350px, 60vw);
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}
.site-footer .date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  margin: 0 0 3rem;
  color: rgba(255, 248, 241, 0.9);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: left;
  margin-bottom: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 248, 241, 0.1);
}
.footer-grid h5 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 1rem;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-grid li {
  margin-bottom: 0.5rem;
}
.footer-grid a {
  font-size: 0.92rem;
  color: rgba(255, 248, 241, 0.7);
  transition: color 0.2s var(--ease-out);
}
.footer-grid a:hover {
  color: var(--terracotta-soft);
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 248, 241, 0.1);
  font-size: 0.78rem;
  color: rgba(255, 248, 241, 0.5);
}

/* ───────────────────────────────────────────────────────────────────────────
   TOAST
   ─────────────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--cream);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 8px 24px rgba(47, 38, 32, 0.25);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Print-friendly */
@media print {
  .site-header,
  .hero-play,
  .hero-scroll,
  .nav-cart,
  .drawer-backdrop,
  .drawer,
  .modal-backdrop {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCTION ADDITIONS (Hostinger build)
   Small, additive rules for the lazily-loaded proposal <video> element and a
   couple of progressive-enhancement states. Kept separate from the design
   prototype above so the original tokens remain untouched.
   ═══════════════════════════════════════════════════════════════════════════ */
.video-modal .modal-video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* never crop the couple's video */
  background: #000;
  display: block;
}
/* The .video-placeholder rule uses display:grid, which would defeat the [hidden]
   attribute — restore intended hiding behaviour. */
.video-modal .video-placeholder[hidden] {
  display: none !important;
}

/* Hero <video> fades in once it can actually play, so the poster never flashes. */
.hero-video {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-video.is-playing {
  opacity: 1;
}

/* Inline form error / status line for RSVP and checkout (accessible, unobtrusive). */
.form-status {
  font-size: 0.85rem;
  margin-top: 0.85rem;
  line-height: 1.45;
}
.form-status[data-state="error"] {
  color: #b3402e;
}
.form-status[data-state="loading"] {
  color: var(--ink-soft);
}
.form-status[data-state="success"] {
  color: #3f7d52;
}
.btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

/* ── Close (X) button inside the mobile menu overlay ── */
.nav-close {
  display: none;
}

/* ── Mobile navigation fix (self-contained, overrides earlier rules) ── */
@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex !important;
  } /* show hamburger */

  .nav {
    position: fixed !important;
    inset: 0 !important;
    background: #fff8f1 !important; /* solid cream panel */
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.2rem !important;
    padding: 4rem 1.5rem !important;
    transform: translateX(100%); /* hidden off-screen */
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 60 !important;
  }
  .nav.open {
    transform: translateX(0) !important;
  } /* slides in when open */

  .nav a {
    color: #2f2620 !important;
    font-size: 1.15rem !important;
    font-style: italic;
  }

  .site-header.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.1rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #2f2620;
    /* ink — matches the menu links */
  }

  .nav-close svg {
    width: 24px;
    height: 24px;
  }
}
/* ── Center the "role para baixo" scroll hint (desktop + mobile) ── */
@keyframes fadeUpScroll {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.hero-scroll {
  left: 50%;
  transform: translateX(-50%);
  animation: fadeUpScroll 1s var(--ease-out) 1.4s both;
}
