/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:           #F8F4EE;
  --bg-2:         #EDE7DA;
  --bg-card:      #FFFFFF;
  --ink:          #1A1714;
  --ink-soft:     #3C3530;
  --ink-mute:     #7A7065;
  --gold:         #A8881E;
  --gold-light:   #C9A44D;
  --gold-line:    rgba(168,136,30,0.22);
  --line:         rgba(26,23,20,0.09);

  --serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --container:  min(1140px, 90vw);
  --section-py: clamp(5rem, 9vw, 8rem);
  --nav-h:      68px;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img  { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; }

::selection { background: var(--gold-light); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  padding: .6rem 1.2rem;
  background: var(--ink);
  color: var(--bg);
  z-index: 9999;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  border-radius: 2px;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: var(--container);
  margin-inline: auto;
}

.kicker {
  display: block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold);
}

/* =============================================================
   4. Typography
   ============================================================= */
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
}
.section-title em {
  font-style: italic;
  font-weight: 300;
}

.section-sub {
  margin-top: 0.65rem;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2.25rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.35s var(--ease-out),
    color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}

@media (hover: hover) {
  .btn:hover {
    background: var(--ink);
    color: var(--bg);
  }
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--ink-soft);
    border-color: var(--ink-soft);
  }
}

/* =============================================================
   6. Navigation
   ============================================================= */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  transition:
    background 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out),
    backdrop-filter 0.45s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.nav-logo-accent { color: var(--gold); }

.nav-cta {
  font-size: 0.625rem;
  padding: 0.7rem 1.5rem;
}

.nav.is-scrolled {
  background: rgba(248, 244, 238, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: clip;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 110%; /* extra height for parallax room */
  object-fit: cover;
  object-position: center 30%;
  transform-origin: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(248,244,238,0.97) 0%,
    rgba(248,244,238,0.91) 30%,
    rgba(248,244,238,0.86) 60%,
    rgba(248,244,238,0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: calc(var(--nav-h) + 3rem) 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 5.8vw, 5.6rem);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--ink);
  text-shadow: 0 1px 8px rgba(248,244,238,0.6);
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.015em;
}

.hero-body {
  font-family: var(--sans);
  font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
  font-weight: 300;
  color: var(--ink-mute);
  max-width: 46ch;
  line-height: 1.75;
}

.hero-cta { margin-top: 0.75rem; }

/* Scroll hint line */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(180deg, var(--gold-light) 0%, transparent 100%);
  margin: 0 auto;
  animation: scrollHint 2s var(--ease-soft) infinite;
}
@keyframes scrollHint {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* =============================================================
   8. Steps section
   ============================================================= */
.steps-section {
  padding-block: var(--section-py);
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 0;
}

@media (min-width: 720px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 4rem;
    align-items: start;
  }

  /* Gold hairline connector between steps */
  .step:not(:last-child) {
    position: relative;
  }
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2rem;
    right: -2rem;
    width: 4rem;
    height: 1px;
    background: var(--gold-line);
    pointer-events: none;
  }
}

.step {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.step-num {
  font-family: var(--serif);
  font-size: 3.8rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gold-line);
  line-height: 1;
  letter-spacing: -0.03em;
}

.step-icon {
  color: var(--ink-mute);
  flex-shrink: 0;
}

.step-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}

.step-desc {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--ink-mute);
  line-height: 1.75;
}

/* =============================================================
   9. Pricing section
   ============================================================= */
.pricing-section {
  padding-block: var(--section-py);
  background: var(--bg-2);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 720px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Plan C spans full width on 2-col layout until 3-col kicks in */
  .pricing-grid > :last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.625rem);
    justify-self: start;
  }
}

@media (min-width: 960px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .pricing-grid > :last-child {
    grid-column: auto;
    max-width: none;
    justify-self: auto;
  }
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

@media (hover: hover) {
  .plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 56px rgba(26,23,20,0.07);
  }
}

.plan-featured {
  border-top: 2px solid var(--gold);
}

.plan-badge {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: -0.75rem;
}

.plan-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.plan-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
}

.plan-amount {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
}

.plan-desc {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--ink-mute);
  line-height: 1.7;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.plan-features li {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.55;
  padding-left: 1.25rem;
  position: relative;
}
.plan-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold-light);
  font-weight: 300;
}

.plan-btn {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

.plan-btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
@media (hover: hover) {
  .plan-btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: #fff;
  }
}

.pricing-note {
  text-align: center;
  margin-top: 2rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-mute);
}

/* =============================================================
   10. Editorial break
   ============================================================= */
.editorial-break {
  position: relative;
  height: clamp(280px, 38vw, 560px);
  overflow: clip;
  margin: 0;
}

.editorial-break-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.editorial-break-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(248,244,238,0.60) 0%,
    rgba(248,244,238,0.30) 50%,
    rgba(248,244,238,0.60) 100%
  );
}

/* Couple (portrait) — frame bride's back and warm reception glow */
.editorial-break:not(.editorial-break--ceremony) .editorial-break-img {
  object-position: center 30%;
}

/* Ceremony (landscape) — keep couple at altar centered */
.editorial-break--ceremony .editorial-break-img {
  object-position: center 55%;
}
.editorial-break--ceremony {
  height: clamp(240px, 32vw, 480px);
}

/* =============================================================
   11. Audience section
   ============================================================= */
.audience-section {
  padding-block: var(--section-py);
  background: var(--bg);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 0;
  column-gap: 5rem;
}

@media (min-width: 720px) {
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.audience-item {
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.audience-mark {
  font-size: 0.45rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.audience-role {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}

.audience-desc {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--ink-mute);
  line-height: 1.7;
}

/* =============================================================
   12. FAQ section
   ============================================================= */
.faq-section {
  padding-block: var(--section-py);
  background: var(--bg-2);
}

.faq-container {
  max-width: 740px;
}

.faq-list { margin-top: 0; }

.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.4rem 0;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ink);
  text-align: left;
  line-height: 1.5;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.25s;
}
@media (hover: hover) {
  .faq-question:hover { color: var(--ink-soft); }
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(26,23,20,0.20);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-style: normal;
  color: var(--ink-mute);
  transition:
    transform 0.38s var(--ease-out),
    border-color 0.25s,
    color 0.25s;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  border-color: var(--gold);
  color: var(--gold);
}

/* CSS grid trick for smooth accordion — no max-height */
.faq-answer {
  display: grid;
  grid-template-rows: 1fr; /* open by default (no JS) */
  overflow: hidden;
  transition: grid-template-rows 0.42s var(--ease-out);
}
.faq-answer.is-init {
  grid-template-rows: 0fr;
}
.faq-answer.is-open {
  grid-template-rows: 1fr;
}
.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
  padding-bottom: 1.5rem;
}
.faq-answer-inner p {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--ink-mute);
  line-height: 1.8;
}

/* =============================================================
   13. Footer
   ============================================================= */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding-block: 3.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.footer-logo {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--bg);
  letter-spacing: 0.01em;
  transition: opacity 0.25s;
}
@media (hover: hover) {
  .footer-logo:hover { opacity: 0.75; }
}

.footer-contact {
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 300;
  color: rgba(248,244,238,0.5);
}
.footer-contact a {
  color: rgba(248,244,238,0.7);
  transition: color 0.25s;
}
@media (hover: hover) {
  .footer-contact a:hover { color: var(--bg); }
}

.footer-legal {
  text-align: left;
}
@media (min-width: 720px) {
  .footer-legal { text-align: right; }
}

.footer-copy {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 300;
  color: rgba(248,244,238,0.4);
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 300;
  color: rgba(248,244,238,0.5);
  transition: color 0.25s;
  letter-spacing: 0.04em;
}
@media (hover: hover) {
  .footer-links a:hover { color: var(--bg); }
}

/* =============================================================
   14. Reveal effects
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Mandatory safety: data-split elements must never be opacity 0 */
.reveal[data-split] {
  opacity: 1;
  transform: none;
}

/* Staggered children group */
.reveal-group > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}
.reveal-group.is-visible > *:nth-child(1) { transition-delay: 0s;     }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: 0.11s;  }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: 0.22s;  }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: 0.33s;  }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: 0.44s;  }
.reveal-group.is-visible > * {
  opacity: 1;
  transform: none;
}

/* =============================================================
   15. Responsive
   ============================================================= */
@media (min-width: 540px) {
  :root { --nav-h: 72px; }
}

@media (max-width: 540px) {
  .plan-card { padding: 1.75rem; }
  .hero-content { gap: 1rem; }
  .hero-scroll-hint { display: none; }
}

/* =============================================================
   16. WhatsApp floating button
   ============================================================= */
.whatsapp-btn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.85rem 1.35rem 0.85rem 1rem;
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(26,23,20,0.18);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    background 0.25s;
}

@media (hover: hover) {
  .whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(26,23,20,0.24);
    background: var(--ink-soft);
  }
}

.whatsapp-btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #25D366;
}

@media (max-width: 540px) {
  /* On mobile: show icon only, expand on tap */
  .whatsapp-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.9rem;
    border-radius: 50%;
  }
  .whatsapp-btn-text { display: none; }
  .whatsapp-btn-icon { width: 22px; height: 22px; }
}

/* =============================================================
   17. Reduced-motion (intrusive effects only)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  /* Stop the scroll hint animation — it's a loop */
  .hero-scroll-hint span { animation: none; opacity: 0; }
  /* Stop GSAP parallax if applied */
  .hero-img { transform: none !important; }
}
