/* ========================================================================
   Divine Marriage Union — dmu.one
   Sister site to The Union Blueprint.
   Shared DNA: serif wordmark, editorial restraint, photo-led storytelling.
   Distinct: warm ivory palette, navigation, multi-section storytelling.
   ======================================================================== */

/* ---------- TYPE SCALE ---------- */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.75rem + 6.5vw, 7rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 1040px;
  --content-wide: 1280px;

  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;
}

/* ---------- COLOR — Warm Ivory & Ink (DMU palette) ---------- */
:root,
[data-theme='light'] {
  --color-bg: #FBF7F0;             /* warm ivory */
  --color-surface: #FFFFFF;
  --color-surface-2: #F5EFE5;      /* deeper ivory */
  --color-surface-offset: #EFE7D7; /* warm sand */
  --color-divider: #E8DFCC;
  --color-border: #D9CDB3;

  --color-text: #1F1A14;           /* deep ink */
  --color-text-muted: #6B6353;
  --color-text-faint: #A6997F;
  --color-text-inverse: #FBF7F0;

  --color-primary: #2F5D5A;        /* deep sage-teal */
  --color-primary-hover: #1F4441;
  --color-primary-active: #143230;
  --color-primary-highlight: #DDE6E2;

  --color-accent: #B9925A;         /* warm gold/brass for fine accents */
  --color-accent-hover: #957340;

  --shadow-sm: 0 1px 2px rgba(31, 26, 20, 0.06);
  --shadow-md: 0 6px 24px rgba(31, 26, 20, 0.08);
  --shadow-lg: 0 18px 48px rgba(31, 26, 20, 0.12);
}

[data-theme='dark'] {
  --color-bg: #15110D;
  --color-surface: #1B1814;
  --color-surface-2: #221E18;
  --color-surface-offset: #2A251D;
  --color-divider: #2F2A22;
  --color-border: #423A2D;

  --color-text: #EFE4D0;
  --color-text-muted: #998D74;
  --color-text-faint: #5F5747;
  --color-text-inverse: #15110D;

  --color-primary: #8AB5AC;
  --color-primary-hover: #A6C9C1;
  --color-primary-active: #BDD6CF;
  --color-primary-highlight: #2A3635;

  --color-accent: #D7B27D;
  --color-accent-hover: #E5C695;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #15110D;
    --color-surface: #1B1814;
    --color-surface-2: #221E18;
    --color-surface-offset: #2A251D;
    --color-divider: #2F2A22;
    --color-border: #423A2D;
    --color-text: #EFE4D0;
    --color-text-muted: #998D74;
    --color-text-faint: #5F5747;
    --color-text-inverse: #15110D;
    --color-primary: #8AB5AC;
    --color-primary-hover: #A6C9C1;
    --color-primary-active: #BDD6CF;
    --color-primary-highlight: #2A3635;
    --color-accent: #D7B27D;
    --color-accent-hover: #E5C695;
  }
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color 280ms ease, color 280ms ease;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--color-text);
}

p, li, figcaption {
  text-wrap: pretty;
  max-width: 68ch;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-interactive);
}

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

::selection { background: var(--color-primary-highlight); color: var(--color-text); }

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

a, button, [role='button'] {
  transition: color var(--transition-interactive),
              background var(--transition-interactive),
              border-color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ---------- LAYOUT HELPERS ---------- */
.container {
  width: min(100% - var(--space-8), var(--content-default));
  margin-inline: auto;
}
.container--wide {
  max-width: var(--content-wide);
  width: min(100% - var(--space-8), var(--content-wide));
}
.container--narrow { max-width: var(--content-narrow); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.divider-line {
  width: 56px;
  height: 1px;
  background: var(--color-accent);
  margin: var(--space-6) auto;
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: var(--space-5) 0;
  background: transparent;
  transition: background 320ms ease, padding 320ms ease, box-shadow 320ms ease;
}
.site-header[data-scrolled='true'] {
  background: color-mix(in oklab, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(12px);
  padding: var(--space-3) 0;
  box-shadow: 0 1px 0 var(--color-divider);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

/* Hero overlay variant: white logo + nav while over the photo */
.site-header[data-hero='true']:not([data-scrolled='true']) .logo,
.site-header[data-hero='true']:not([data-scrolled='true']) .site-nav a,
.site-header[data-hero='true']:not([data-scrolled='true']) .theme-toggle,
.site-header[data-hero='true']:not([data-scrolled='true']) .menu-toggle {
  color: #FBF7F0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.logo {
  display: inline-flex;
  align-items: center;
  color: var(--color-text);
  text-decoration: none;
}
.logo__img {
  display: none;
  height: 40px;
  width: auto;
  max-width: 100%;
  flex-shrink: 1;
}
/* Default state (scrolled light header): show DARK (aubergine) wordmark variant */
.logo__img--dark { display: block; }

/* Over the hero (transparent header on light mode): show LIGHT (ivory) wordmark variant */
.site-header[data-hero='true']:not([data-scrolled='true']) .logo__img--dark { display: none; }
.site-header[data-hero='true']:not([data-scrolled='true']) .logo__img--light { display: block; }

/* Dark mode: always use LIGHT (ivory) wordmark variant — reads on dark bg */
[data-theme='dark'] .logo__img--dark { display: none !important; }
[data-theme='dark'] .logo__img--light { display: block !important; }
[data-theme='dark'] .site-header[data-hero='true']:not([data-scrolled='true']) .logo__img--light { display: block !important; }

/* Tablet: shrink horizontal logo to fit alongside burger menu */
@media (max-width: 880px) {
  .logo__img { height: 32px; }
}
/* Mobile: shrink further so wordmark stays visible beside burger */
@media (max-width: 520px) {
  .logo__img { height: 26px; }
}
@media (max-width: 400px) {
  .logo__img { height: 22px; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.site-nav a {
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding: var(--space-2) 0;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .site-nav { gap: var(--space-4); }
  .site-nav a { font-size: 0.78rem; letter-spacing: 0.08em; }
  .logo__text { font-size: 0.82rem; letter-spacing: 0.22em; }
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width var(--transition-interactive);
}
.site-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.theme-toggle,
.menu-toggle {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: inherit;
}
.theme-toggle:hover,
.menu-toggle:hover { background: color-mix(in oklab, currentColor 10%, transparent); }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--color-primary);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-16) var(--space-8) var(--space-12);
    transform: translateX(100%);
    transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 49;
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.18);
  }
  .site-nav[data-open='true'] { transform: translateX(0); }

  /* Decorative top + bottom hairlines on the open panel */
  .site-nav::before,
  .site-nav::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 1px;
    background: var(--color-accent);
    opacity: 0.7;
  }
  .site-nav::before { top: var(--space-12); }
  .site-nav::after { bottom: var(--space-12); }

  .site-nav a {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 300;
    letter-spacing: 0.04em;
    text-transform: none;
    text-align: center;
    padding: var(--space-1) 0;
    line-height: 1.2;
  }

  .menu-toggle { display: inline-flex; z-index: 51; position: relative; }

  /* When nav is open: ivory text inside the sage panel (overrides hero variant) */
  .site-header[data-nav-open='true'][data-hero='true']:not([data-scrolled='true']) .site-nav a,
  .site-header[data-nav-open='true'] .site-nav a {
    color: var(--color-text-inverse);
    text-shadow: none;
  }
  .site-nav a::after { background: var(--color-accent); bottom: -4px; }
  .site-nav a:hover { color: var(--color-accent); }

  /* Keep the logo + toggle visible against the open sage panel */
  .site-header[data-nav-open='true'][data-hero='true']:not([data-scrolled='true']) .logo,
  .site-header[data-nav-open='true'][data-hero='true']:not([data-scrolled='true']) .menu-toggle,
  .site-header[data-nav-open='true'] .logo,
  .site-header[data-nav-open='true'] .menu-toggle {
    color: var(--color-text-inverse);
    text-shadow: none;
  }
  .site-header[data-nav-open='true'] .logo svg path,
  .site-header[data-nav-open='true'] .logo svg circle {
    stroke: var(--color-text-inverse);
  }
  .site-header[data-nav-open='true'] .menu-toggle:hover {
    background: color-mix(in oklab, var(--color-text-inverse) 14%, transparent);
  }

  /* Hide theme toggle while menu open to reduce clutter */
  .site-header[data-nav-open='true'] .theme-toggle { opacity: 0; pointer-events: none; }

  /* Body scroll lock while menu open */
  body:has(.site-nav[data-open='true']) { overflow: hidden; }

  /* Remove backdrop-filter on header while menu is open so the fixed nav panel
     escapes the header's containing block and covers the full viewport */
  .site-header[data-nav-open='true'] {
    backdrop-filter: none;
    background: transparent;
    box-shadow: none;
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #FBF7F0;
  overflow: hidden;
  isolation: isolate;
  padding: var(--space-32) var(--space-4) var(--space-24);
}
.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  will-change: opacity;
}
@media (max-width: 720px) {
  /* On narrow viewports the 16:9 hero gets heavily side-cropped — anchor each slide on its subjects */
  .hero__slide { background-position: center 55%; }
  .hero__slide:nth-child(1) { background-position: 22% 50%; } /* couple under arch, left */
  .hero__slide:nth-child(2) { background-position: 45% 50%; } /* ring exchange hands */
  .hero__slide:nth-child(3) { background-position: 48% 55%; } /* boardwalk couple */
  .hero__slide:nth-child(4) { background-position: 38% 50%; } /* vow exchange */
  .hero__slide:nth-child(5) { background-position: 28% 55%; } /* live-oak kiss, left */
}
.hero__slide.is-active {
  opacity: 1;
}
.hero__slide.is-active {
  animation: kenburns 14s ease-out forwards;
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    animation: none !important;
    transition: none;
  }
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(20, 14, 8, 0.35) 0%,
    rgba(20, 14, 8, 0.15) 35%,
    rgba(20, 14, 8, 0.55) 100%
  );
}
@keyframes kenburns {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}
@media (max-width: 720px) {
  @keyframes kenburns {
    from { transform: scale(1.04); }
    to   { transform: scale(1.0); }
  }
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #F5E7CD;
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeUp 1.2s 0.4s ease-out forwards;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-hero);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: #FBF7F0;
  max-width: 16ch;
  margin-inline: auto;
  opacity: 0;
  animation: fadeUp 1.3s 0.6s ease-out forwards;
}
.hero h1 em {
  font-style: italic;
  color: #F5E7CD;
  font-weight: 300;
}
.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: #F5E7CD;
  margin-top: var(--space-6);
  opacity: 0;
  animation: fadeUp 1.2s 0.9s ease-out forwards;
}
.hero__cta {
  margin-top: var(--space-10);
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  opacity: 0;
  animation: fadeUp 1.2s 1.2s ease-out forwards;
}
@media (max-width: 480px) {
  .hero__cta { flex-direction: column; width: 100%; max-width: 320px; }
  .hero__cta .btn { width: 100%; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  margin-left: 0;
  color: #F5E7CD;
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  animation: heroScrollIn 1.2s 1.6s ease-out forwards;
  transform: translateX(-50%);
}
@keyframes heroScrollIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.hero__scroll::after {
  content: '';
  width: 1px; height: 32px;
  background: currentColor;
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.5; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-sm);
  border: 1px solid currentColor;
  cursor: pointer;
}
.btn--primary {
  background: var(--color-primary);
  color: #FBF7F0;
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: #FBF7F0;
  border-color: rgba(251, 247, 240, 0.7);
}
.btn--ghost:hover {
  background: rgba(251, 247, 240, 0.12);
  border-color: #FBF7F0;
}
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: #FBF7F0;
  transform: translateY(-1px);
}

/* ---------- SECTION FRAMING ---------- */
.section {
  padding-block: clamp(var(--space-20), 10vw, var(--space-32));
}
.section--surface { background: var(--color-surface-2); }
.section--ink     { background: var(--color-text); color: var(--color-text-inverse); }
.section--ink h2, .section--ink h3 { color: var(--color-text-inverse); }
.section__head {
  text-align: center;
  margin-bottom: var(--space-16);
  max-width: 640px;
  margin-inline: auto;
}
.section__head h2 {
  font-size: var(--text-2xl);
  font-weight: 300;
  font-style: italic;
}
.section__head h2 em { font-style: normal; color: var(--color-primary); }
.section__head p {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 56ch;
  margin-inline: auto;
}

/* ---------- STORY SECTION ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.story__media {
  position: relative;
}
.story__media img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.story__media::before {
  content: '';
  position: absolute;
  inset: -16px -16px -16px -16px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  z-index: -1;
}
.story__body p {
  margin-bottom: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
.story__body .story__lede::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  float: left;
  line-height: 0.85;
  margin: 0.08em var(--space-3) 0 0;
  color: var(--color-primary);
  font-style: italic;
}
.story__body .story__lede { margin-top: var(--space-2); }
.story__signature {
  margin-top: var(--space-6);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-text);
}
.story__credentials {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

@media (max-width: 820px) {
  .story { grid-template-columns: 1fr; gap: var(--space-12); }
  .story__media::before { inset: -10px; }
}

/* ---------- SERVICES STRIP ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.service-card {
  text-align: center;
  padding: var(--space-8);
  border-top: 1px solid var(--color-border);
}
.service-card__icon {
  width: 48px; height: 48px;
  margin: 0 auto var(--space-6);
  color: var(--color-primary);
}
.service-card h3 {
  font-size: var(--text-lg);
  font-weight: 400;
  font-style: italic;
  margin-bottom: var(--space-3);
}
.service-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-inline: auto;
}
@media (max-width: 820px) {
  .services { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* ---------- PRICING ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  max-width: 920px;
  margin: 0 auto;
}
.tier {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tier--popular {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-md);
}
.tier__badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #FBF7F0;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.tier__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.tier__sublabel {
  font-family: var(--font-body);
  font-size: var(--text-2xs, 0.7rem);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-accent);
  margin: calc(-1 * var(--space-1)) 0 var(--space-4);
}
.tier__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  min-height: 3rem;
  margin-bottom: var(--space-6);
}
.tier__price {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--color-text);
  line-height: 1;
}
.tier__price-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: var(--space-2) 0 var(--space-8);
}
.tier__list {
  list-style: none;
  margin-bottom: var(--space-8);
  flex-grow: 1;
}
.tier__list li {
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-divider);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.tier__list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  margin-top: 9px;
}
.tier__list li:last-child { border-bottom: 0; }
.tier .btn {
  width: 100%;
  margin-top: auto;
}

.pricing-footnote {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-10);
  max-width: 60ch;
  margin-inline: auto;
}
.pricing-footnote--accent {
  margin-top: var(--space-4);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--text-base);
  line-height: 1.6;
}
.pricing-footnote--accent a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; gap: var(--space-10); }
}

/* ---------- DETAILS / VISUAL BREAK ---------- */
.visual-break {
  position: relative;
  height: clamp(320px, 50vw, 560px);
  background-image: url('../assets/img/ceremony_details.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .visual-break { background-attachment: fixed; }
}
.visual-break::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31,26,20,0.30), rgba(31,26,20,0.15));
}
.visual-break__quote {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: #FBF7F0;
  padding: var(--space-8);
  z-index: 2;
}
.visual-break__quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  max-width: 22ch;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.visual-break__quote cite {
  display: block;
  margin-top: var(--space-6);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #F5E7CD;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
}
.testimonial__stars {
  color: var(--color-accent);
  font-size: var(--text-sm);
  letter-spacing: 0.2em;
  margin-bottom: var(--space-4);
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}
.testimonial cite {
  font-style: normal;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.testimonial cite strong {
  display: block;
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: var(--space-1);
}
@media (max-width: 920px) {
  .testimonials { grid-template-columns: 1fr; }
}

/* ---------- CONTACT ---------- */
/* Closing section is intentionally inverted (dark ink with cream text) in BOTH themes. */
.contact {
  background: #1F1A14;
  color: #FBF7F0;
}
.contact .section__head h2 {
  color: #FBF7F0;
}
.contact .section__head p { color: rgba(251, 247, 240, 0.78); }
.contact .divider-line { background: var(--color-accent); }

.contact-form {
  max-width: 580px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-5);
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.contact-form label {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.6);
  margin-bottom: var(--space-2);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: rgba(251, 247, 240, 0.05);
  border: 1px solid rgba(251, 247, 240, 0.18);
  color: #FBF7F0;
  padding: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(251, 247, 240, 0.35);
}

/* Custom select dropdown — fully styled, dark-readable on all browsers */
.custom-select {
  position: relative;
  width: 100%;
}
.custom-select__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: rgba(251, 247, 240, 0.05);
  border: 1px solid rgba(251, 247, 240, 0.18);
  color: #FBF7F0;
  padding: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
}
.custom-select__btn:hover { border-color: rgba(251, 247, 240, 0.3); }
.custom-select__btn:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(251, 247, 240, 0.08);
}
.custom-select__label { color: #FBF7F0; }
.custom-select__label[data-empty='true'] { color: rgba(251, 247, 240, 0.45); }
.custom-select__chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23B9925A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 200ms ease;
}
.custom-select[data-open='true'] .custom-select__chevron { transform: rotate(180deg); }

.custom-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #1F1A14;
  border: 1px solid rgba(185, 146, 90, 0.3);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  list-style: none;
  margin: 0;
  padding: var(--space-2);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  max-height: 280px;
  overflow-y: auto;
}
.custom-select[data-open='true'] .custom-select__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s;
}
.custom-select__menu li {
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: #FBF7F0;
  border-radius: 2px;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.custom-select__menu li:hover,
.custom-select__menu li:focus-visible,
.custom-select__menu li[aria-selected='true'] {
  background: rgba(185, 146, 90, 0.18);
  color: var(--color-accent);
  outline: none;
}

/* -------- Custom Date Picker (cross-platform, self-contained) -------- */
.custom-date {
  position: relative;
  width: 100%;
}
.custom-date__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 0.875rem 1rem;
  background: #1F1A14;
  color: #FBF7F0;
  border: 1px solid rgba(185, 146, 90, 0.35);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.3;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.custom-date__btn:hover,
.custom-date__btn:focus-visible {
  border-color: #B9925A;
  outline: none;
}
.custom-date__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-date__label[data-empty='true'] {
  color: rgba(251, 247, 240, 0.5);
}
.custom-date__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: inline-block;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B9925A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.custom-date__popover {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 50;
  width: min(320px, calc(100vw - 32px));
  background: #1F1A14;
  border: 1px solid rgba(185, 146, 90, 0.4);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  padding: 12px;
  display: none;
}
.custom-date[data-open='true'] .custom-date__popover {
  display: block;
}
.custom-date__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.custom-date__nav {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid rgba(185, 146, 90, 0.3);
  border-radius: 4px;
  color: #B9925A;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.custom-date__nav:hover,
.custom-date__nav:focus-visible {
  background: rgba(185, 146, 90, 0.12);
  border-color: #B9925A;
  outline: none;
}
.custom-date__title {
  font-family: var(--font-display, serif);
  font-size: 1rem;
  color: #FBF7F0;
  letter-spacing: 0.04em;
}
.custom-date__weekdays,
.custom-date__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.custom-date__weekdays span {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(251, 247, 240, 0.5);
  text-transform: uppercase;
  padding: 4px 0;
}
.custom-date__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #FBF7F0;
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.custom-date__day:hover:not(:disabled),
.custom-date__day:focus-visible {
  background: rgba(185, 146, 90, 0.18);
  border-color: #B9925A;
  outline: none;
}
.custom-date__day[data-other-month='true'] {
  color: rgba(251, 247, 240, 0.25);
}
.custom-date__day[data-today='true'] {
  border-color: rgba(185, 146, 90, 0.5);
}
.custom-date__day[data-selected='true'] {
  background: #B9925A;
  color: #1F1A14;
  border-color: #B9925A;
  font-weight: 600;
}
.custom-date__day:disabled {
  color: rgba(251, 247, 240, 0.15);
  cursor: not-allowed;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(251, 247, 240, 0.08);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form__hint {
  font-size: var(--text-xs);
  color: rgba(251, 247, 240, 0.5);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin-left: var(--space-2);
}
.contact-form__status {
  min-height: 1.5em;
  font-size: var(--text-sm);
  line-height: 1.5;
  margin: var(--space-2) 0 0;
  color: rgba(251, 247, 240, 0.7);
}
.contact-form__status[data-kind="success"] { color: #B9925A; }
.contact-form__status[data-kind="error"]   { color: #E59A8A; }
.contact-form__row--single { grid-template-columns: 1fr !important; max-width: 100%; }
.contact-form .btn {
  justify-self: center;
  margin-top: var(--space-2);
  min-width: 200px;
}
@media (max-width: 640px) {
  .contact-form__row { grid-template-columns: 1fr; }
}

.contact-meta {
  margin-top: var(--space-16);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(251, 247, 240, 0.7);
}
.contact-meta p {
  margin: 0;
  max-width: 56ch;
}
.contact-meta a { color: var(--color-accent); }
.contact-meta a:hover { color: #FBF7F0; }

/* ---------- LOVE STORY SHOWCASE ---------- */
.showcase {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  margin-top: var(--space-16);
}
.showcase__couple {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.showcase__couple--reverse {
  grid-template-columns: 1fr 1.1fr;
}
.showcase__couple--reverse .showcase__media {
  order: 2;
}
.showcase__couple--reverse .showcase__body {
  order: 1;
}
.showcase__media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.showcase__media::before {
  content: '';
  position: absolute;
  inset: 10px -10px -10px 10px;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.7;
}
.showcase__media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 4px;
}
.showcase__couple:nth-of-type(1) .showcase__media img { object-position: 50% 0%; }
.showcase__couple:nth-of-type(2) .showcase__media img { object-position: 50% 28%; }
.showcase__couple:nth-of-type(3) .showcase__media img { object-position: 50% 32%; }
.showcase__body .eyebrow {
  font-size: var(--text-sm);
  letter-spacing: 0.18em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.showcase__story {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  line-height: 1.45;
  color: var(--color-text);
  margin: 0 0 var(--space-8) 0;
  padding: 0;
  border: none;
  font-weight: 300;
}
.showcase__quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border, rgba(31, 26, 20, 0.1));
}
.showcase__quote p:not(.showcase__quote-label) {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-muted, rgba(31, 26, 20, 0.78));
  font-style: italic;
  margin: 0;
}
.showcase__quote-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-2) 0;
  font-weight: 500;
}
@media (max-width: 860px) {
  .showcase__couple,
  .showcase__couple--reverse {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .showcase__couple--reverse .showcase__media { order: 1; }
  .showcase__couple--reverse .showcase__body { order: 2; }
  .showcase__media::before { inset: -10px -10px 10px 10px; }
  .showcase__quotes { grid-template-columns: 1fr; gap: var(--space-4); }
  .showcase__story { font-size: var(--text-lg); }
}

/* ---------- FAQ ---------- */
.faq {
  margin-top: var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.faq__item {
  border-bottom: 1px solid var(--color-border, rgba(31, 26, 20, 0.1));
  padding: var(--space-2) 0;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  transition: color 0.25s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--color-primary); }
.faq__icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--color-primary);
  transition: transform 0.3s ease;
}
.faq__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  margin-top: -0.5px;
}
.faq__icon::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  margin-left: -0.5px;
}
.faq__item[open] .faq__icon::after {
  transform: scaleY(0);
}
.faq__answer {
  padding: 0 0 var(--space-6) 0;
  max-width: 64ch;
}
.faq__answer p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-muted, rgba(31, 26, 20, 0.78));
  margin: 0;
}
.faq__answer p + p,
.faq__answer p + ul,
.faq__answer ul + p {
  margin-top: var(--space-3);
}
.faq__partners {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.faq__partners li {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-muted);
  padding-left: var(--space-4);
  position: relative;
}
.faq__partners li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}
.faq__partners li strong {
  color: var(--color-text);
  font-weight: 600;
}
.faq__partners-note {
  margin-top: var(--space-3);
  font-style: italic;
  color: var(--color-text-faint, rgba(31, 26, 20, 0.6));
}
.faq__answer a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- FOOTER ---------- */
/* Footer is intentionally dark-inverted in BOTH light and dark themes. */
.site-footer {
  background: #1F1A14;
  color: rgba(251, 247, 240, 0.72);
  padding: var(--space-8) 0 var(--space-10);
  border-top: 1px solid rgba(251, 247, 240, 0.08);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
}
.site-footer__brand {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(251, 247, 240, 0.9);
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  white-space: nowrap;
}
.site-footer__brand svg {
  flex-shrink: 0;
  margin-right: 0 !important;
}
.site-footer__sister {
  margin-top: var(--space-1);
}
.site-footer__sister a {
  color: var(--color-accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.site-footer__sister a:hover { color: #FBF7F0; }

/* ---------- REVEAL ON SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Honeypot anti-spam field — hidden from humans, visible to bots ===== */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
