/* ==========================================================================
   Afshan & Anjum — Nikkah Invitation
   Main Stylesheet — Green & Gold Theme
   ========================================================================== */

/* ---- Design Tokens ---- */
:root {
  /* Core palette — forest green + warm gold */
  --color-maroon:        #626D53;
  --color-maroon-deep:   #404A35;
  --color-maroon-light:  #8A9678;
  --color-maroon-pale:   #D4DBC8;

  --color-gold:          #C9A07A;
  --color-gold-dark:     #9A7040;
  --color-gold-light:    #E8D0AA;
  --color-gold-pale:     #F7EED8;

  --color-sage:          #7A9E7E;
  --color-sage-dark:     #4E7055;

  /* Backgrounds */
  --color-bg:            #FBF7F0;
  --color-bg-alt:        #F5EDE1;
  --color-bg-dark:       #1B2218;
  --color-cream:         #FFFDF8;

  /* Text */
  --color-text:          #5A4A3A;
  --color-text-light:    #8A7460;
  --color-text-on-dark:  #F5E8D0;

  /* Lines & borders */
  --color-line:          rgba(183, 140, 100, 0.3);
  --color-line-dark:     rgba(183, 140, 100, 0.5);

  /* Fonts */
  --font-display:  'Cinzel', 'Playfair Display', serif;
  --font-script:   'Great Vibes', cursive;
  --font-serif:    'Cormorant Garamond', Georgia, serif;
  --font-arabic:   'Amiri', serif;

  /* Spacing scale */
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  40px;
  --sp-5:  64px;
  --sp-6:  96px;
  --sp-7:  140px;

  /* Layout */
  --max-width:    1100px;
  --radius:       4px;
  --radius-lg:    12px;

  /* Easing */
  --ease-luxury:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Durations */
  --dur-fast:  0.35s;
  --dur-med:   0.7s;
  --dur-slow:  1.4s;
}

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

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
}

/* Handmade paper texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(123,45,62,0.04), transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(201,160,122,0.05), transparent 50%),
    repeating-linear-gradient(
      45deg,
      rgba(90,74,58,0.012) 0px,
      rgba(90,74,58,0.012) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: multiply;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-maroon-deep);
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.06em;
}

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

/* ---- Layout helpers ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.section {
  position: relative;
  padding: var(--sp-7) 0;
  z-index: 1;
}

.section--alt {
  background: var(--color-bg-alt);
}

/* ==========================================================================
   Typography helpers
   ========================================================================== */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: var(--sp-2);
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: var(--sp-2);
  color: var(--color-maroon-deep);
}

.section-sub {
  text-align: center;
  max-width: 540px;
  margin: 0 auto var(--sp-4);
  color: var(--color-text-light);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
}

.section-head {
  text-align: center;
  margin-bottom: var(--sp-5);
}

/* ---- Decorative Divider ---- */
.divider {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: var(--sp-3) auto 0;
  width: 240px;
}
.divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}
.divider__glyph {
  font-family: var(--font-display);
  color: var(--color-maroon);
  font-size: 1rem;
  transform: rotate(45deg);
  display: inline-block;
  flex-shrink: 0;
}
.divider--footer .divider__line {
  background: linear-gradient(90deg, transparent, rgba(201,160,122,0.6), transparent);
}
.divider--footer .divider__glyph {
  color: var(--color-gold);
  font-size: 1.2rem;
}

/* ==========================================================================
   Loader
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  transition:
    opacity var(--dur-slow) var(--ease-luxury),
    visibility var(--dur-slow) var(--ease-luxury);
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__monogram {
  font-family: var(--font-script);
  font-size: clamp(3rem, 8vw, 4.5rem);
  color: var(--color-maroon);
  opacity: 0;
  animation: loaderFadeUp 1.2s var(--ease-luxury) 0.2s forwards;
  line-height: 1;
}

.loader__tagline {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  opacity: 0;
  animation: loaderFadeUp 1.2s var(--ease-luxury) 0.6s forwards;
  margin-bottom: var(--sp-3);
}

.loader__bar-wrap {
  width: 180px;
  height: 1px;
  background: var(--color-line);
  position: relative;
  overflow: hidden;
}

.loader__bar {
  position: absolute;
  left: -40%;
  top: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--color-maroon), var(--color-gold), transparent);
  animation: loaderSweep 1.6s ease-in-out infinite;
}

@keyframes loaderFadeUp {
  0%   { opacity: 0; transform: translateY(12px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
@keyframes loaderSweep {
  0%   { left: -40%; }
  100% { left: 100%; }
}

/* ==========================================================================
   Gate / Intro Screen
   ========================================================================== */
.gate {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition:
    opacity var(--dur-slow) var(--ease-luxury),
    filter var(--dur-slow) var(--ease-luxury),
    visibility var(--dur-slow) var(--ease-luxury);
}

.gate.is-open {
  opacity: 0;
  filter: blur(18px);
  visibility: hidden;
  pointer-events: none;
}

/* Floral corners on gate */
.gate__floral {
  position: absolute;
  pointer-events: none;
}
.gate__floral img {
  width: clamp(120px, 22vw, 240px);
  opacity: 0.75;
}
.gate__floral--tl {
  top: -15px;
  left: -20px;
}
.gate__floral--br {
  bottom: -15px;
  right: -20px;
  transform: rotate(180deg);
}

.gate__inner {
  padding: var(--sp-4) var(--sp-3);
  max-width: 520px;
  width: 100%;
}

.gate__arabic {
  font-family: var(--font-arabic);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--color-maroon);
  margin: 0 0 var(--sp-2);
  opacity: 0;
  animation: gateReveal 1s var(--ease-luxury) 0.1s forwards;
}

.gate__eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin: 0 0 var(--sp-2);
  opacity: 0;
  animation: gateReveal 1s var(--ease-luxury) 0.4s forwards;
}

.gate__names {
  font-family: var(--font-script);
  font-size: clamp(3rem, 9vw, 5rem);
  line-height: 1;
  margin: 0 0 var(--sp-2);
  color: var(--color-maroon-deep);
  opacity: 0;
  animation: gateReveal 1s var(--ease-luxury) 0.65s forwards;
}

.gate__amp {
  color: var(--color-gold);
  font-family: var(--font-script);
  padding: 0 0.1em;
}

.gate__invite-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 360px;
  margin: 0 auto var(--sp-2);
  opacity: 0;
  animation: gateReveal 1s var(--ease-luxury) 0.85s forwards;
}

.gate__date {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--color-text);
  margin: 0 0 var(--sp-3);
  opacity: 0;
  animation: gateReveal 1s var(--ease-luxury) 1s forwards;
}

.gate__venue {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin: -8px 0 var(--sp-3);
  opacity: 0;
  animation: gateReveal 1s var(--ease-luxury) 1.1s forwards;
}

.btn--gate {
  opacity: 0;
  animation: gateReveal 1s var(--ease-luxury) 1.3s forwards;
}

.gate__divider {
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 200px;
}
.gate__divider span:not(.gate__divider-glyph) {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  display: block;
}
.gate__divider-glyph {
  color: var(--color-maroon-pale);
  font-size: 1.1rem;
  flex-shrink: 0;
}

@keyframes gateReveal {
  0%   { opacity: 0; transform: translateY(16px); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-maroon-deep);
  background: transparent;
  border: 1px solid var(--color-gold);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    color var(--dur-fast) var(--ease-luxury),
    transform var(--dur-fast) var(--ease-luxury),
    box-shadow var(--dur-fast) var(--ease-luxury);
  margin-top: var(--sp-3);
  white-space: nowrap;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-maroon), var(--color-maroon-light));
  transform: translateY(102%);
  transition: transform var(--dur-med) var(--ease-luxury);
  z-index: -1;
  border-radius: 999px;
}

.btn:hover,
.btn:focus-visible {
  color: var(--color-cream);
  border-color: var(--color-maroon);
  box-shadow: 0 10px 34px rgba(123, 45, 62, 0.35);
  transform: translateY(-2px);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--color-maroon);
  outline-offset: 3px;
}

.btn__icon {
  font-size: 0.7rem;
  color: var(--color-gold);
  transition: color var(--dur-fast);
  display: inline-block;
  transform: rotate(45deg);
}

.btn:hover .btn__icon,
.btn:focus-visible .btn__icon {
  color: var(--color-gold-light);
}

/* Hero button variant */
.btn--hero {
  background: rgba(251, 247, 240, 0.12);
  border-color: rgba(201, 160, 122, 0.7);
  color: var(--color-text-on-dark);
  backdrop-filter: blur(8px);
}

.btn--hero:hover,
.btn--hero:focus-visible {
  border-color: var(--color-maroon);
}

/* RSVP button variant */
.btn--rsvp {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-maroon), var(--color-maroon-light));
  color: var(--color-cream);
  border-color: transparent;
}
.btn--rsvp::before {
  background: linear-gradient(135deg, var(--color-maroon-deep), var(--color-maroon));
}
.btn--rsvp:hover,
.btn--rsvp:focus-visible {
  color: var(--color-cream);
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.5);
  transform: scale(0);
  animation: rippleAnim 0.65s var(--ease-luxury);
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--sp-4);
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
  transform: translateY(-100%);
  transition: transform var(--dur-med) var(--ease-luxury);
}

.nav.is-visible {
  transform: translateY(0);
}

.nav__brand {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--color-maroon);
  letter-spacing: 0.05em;
}

.nav__list {
  list-style: none;
  display: flex;
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: 0.67rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav__list a {
  position: relative;
  padding-bottom: 3px;
  color: var(--color-text);
  transition: color var(--dur-fast);
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--color-maroon);
  transition: right var(--dur-fast) var(--ease-luxury);
}

.nav__list a:hover,
.nav__list a:focus-visible {
  color: var(--color-maroon);
}

.nav__list a:hover::after,
.nav__list a:focus-visible::after {
  right: 0;
}

/* ==========================================================================
   Hero — full background photo with text overlay
   ========================================================================== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #1a1612;
}

/* Full-bleed background image */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Gradient overlay: reduced black fade for a clear background photo */
.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
}

/* Date badge — absolute top-right of hero */
.hero__date-badge {
  position: absolute;
  top: clamp(22px, 4vw, 48px);
  right: clamp(28px, 5vw, 72px);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 3;
  background: rgba(255, 253, 248, 0.85); /* Cream glassmorphism for legibility */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: 4px;
  border: 1px solid rgba(183, 140, 100, 0.15);
}

.hero__badge-date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--color-text-light);
  line-height: 1.6;
  text-transform: uppercase;
}

.hero__badge-day {
  font-size: 0.68rem;
  font-weight: 500;
}

.hero__badge-num {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
}

.hero__badge-year {
  font-size: 0.68rem;
  opacity: 0.85;
}

.hero__badge-divider {
  width: 1px;
  height: 52px;
  background: var(--color-line-dark);
}

.hero__badge-days-go {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.hero__days-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: #607254;
  line-height: 0.9;
}

.hero__days-label {
  font-family: var(--font-display);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-light);
  white-space: nowrap;
  margin-top: 6px;
}

/* Centered main content container */
.hero__container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(120px, 18vw, 180px) var(--sp-4) var(--sp-6);
  box-sizing: border-box;
}

/* Centered content block */
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 720px;
  width: 100%;
}

/* Names — luxury premium cursive font styled in olive-green */
.hero__names {
  font-family: var(--font-script); /* 'Great Vibes', cursive */
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: 1.2;
  margin: 0 0 var(--sp-1);
  color: #607254; /* Premium olive-green */
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.95);
  text-align: center;
  white-space: nowrap;
}

.hero__amp {
  font-family: var(--font-script);
  color: #607254;
  padding: 0 0.15em;
}

.hero__invite {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  color: var(--color-text-light);
  max-width: 480px;
  margin: 0 0 var(--sp-4);
  line-height: 1.85;
  text-align: center;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
}

/* Legacy placeholders */
.hero__left { display: none; }
.hero__right { display: none; }
.hero__photo-card { display: none; }
.hero__photo-img { display: none; }

/* Hero scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--sp-3);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

.hero__scroll-text {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(201, 160, 122, 0.8);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(201, 160, 122, 0.3);
  overflow: hidden;
  position: relative;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--color-gold);
  animation: scrollSlide 1.8s ease-in-out infinite;
}

@keyframes scrollSlide {
  0%   { top: -100%; }
  65%  { top: 100%; }
  100% { top: 100%; }
}

/* ==========================================================================
   Countdown
   ========================================================================== */
.section--countdown {
  background: var(--color-bg);
  overflow: hidden;
}

.section__bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 10% 50%, rgba(123,45,62,0.04), transparent 45%),
    radial-gradient(circle at 90% 50%, rgba(201,160,122,0.05), transparent 45%);
  pointer-events: none;
}

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 0 var(--sp-3);
}

.countdown__card {
  width: clamp(80px, 14vw, 140px);
  height: clamp(80px, 14vw, 140px);
  background: var(--color-cream);
  border: 1px solid var(--color-line-dark);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 20px 50px -20px rgba(123, 45, 62, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.9);
  position: relative;
  overflow: hidden;
}

/* Inner glow on card */
.countdown__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  pointer-events: none;
}

/* Flip line */
.countdown__card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--color-line);
  z-index: 1;
}

.countdown__num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  color: var(--color-maroon-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.countdown__label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
}

.countdown__sep {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--color-maroon);
  opacity: 0.4;
  margin-top: clamp(20px, 3vw, 40px);
  animation: colonPulse 1s ease-in-out infinite;
}

@keyframes colonPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.15; }
}

/* Wedding date badge */
.wedding-date-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  padding: var(--sp-2) var(--sp-4);
  background: var(--color-maroon);
  border-radius: 999px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.badge__day {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--color-gold-light);
  line-height: 1;
}

.badge__info {
  display: flex;
  flex-direction: column;
}

.badge__month {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-on-dark);
}

.badge__weekday {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-gold);
}

/* ==========================================================================
   Story
   ========================================================================== */
.story {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.story__quote {
  font-family: var(--font-script);
  font-size: 8rem;
  color: var(--color-maroon-pale);
  line-height: 0.7;
  margin-bottom: var(--sp-2);
  user-select: none;
}

.story p {
  font-size: clamp(1rem, 2vw, 1.18rem);
  margin-bottom: var(--sp-2);
  color: var(--color-text);
  line-height: 1.85;
}

.story__signature {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--color-maroon);
  margin-top: var(--sp-3);
  margin-bottom: 0;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 4 / 5;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-luxury), filter 0.9s var(--ease-luxury);
  display: block;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.1);
  filter: brightness(0.88) saturate(1.1);
}

.gallery__caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--sp-2);
  background: linear-gradient(180deg, transparent 50%, rgba(42,14,26,0.65));
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-luxury);
}

.gallery__item:hover .gallery__caption,
.gallery__item:focus-visible .gallery__caption {
  opacity: 1;
}

.gallery__caption-inner {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-cream);
  transform: translateY(8px);
  transition: transform var(--dur-fast) var(--ease-luxury);
}

.gallery__item:hover .gallery__caption-inner,
.gallery__item:focus-visible .gallery__caption-inner {
  transform: translateY(0);
}

.gallery__item:focus-visible {
  outline: 2px solid var(--color-maroon);
  outline-offset: 2px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(26, 8, 16, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-luxury), visibility var(--dur-med) var(--ease-luxury);
}

.lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img-wrap {
  max-width: min(88vw, 760px);
  max-height: 84vh;
  transform: scale(0.88);
  transition: transform var(--dur-med) var(--ease-luxury);
}

.lightbox.is-active .lightbox__img-wrap {
  transform: scale(1);
}

.lightbox__img-wrap img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  color: var(--color-cream);
  font-size: 2rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: background var(--dur-fast), transform var(--dur-fast);
}

.lightbox__close:hover {
  background: rgba(255,255,255,0.18);
  transform: rotate(90deg);
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-cream);
  font-size: 2.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-fast), transform var(--dur-fast);
  line-height: 1;
}

.lightbox__prev { left: var(--sp-3); }
.lightbox__next { right: var(--sp-3); }

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255,255,255,0.18);
}

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--color-line-dark) 10%, var(--color-line-dark) 90%, transparent);
  transform: translateX(-50%);
}

.timeline__item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: flex-start;
  margin-bottom: var(--sp-5);
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__dot-wrap {
  width: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-maroon);
  box-shadow:
    0 0 0 5px var(--color-bg-alt),
    0 0 0 7px rgba(123,45,62,0.3);
  flex-shrink: 0;
  display: block;
  position: relative;
  z-index: 1;
}

/* Glowing pulse on dot */
.timeline__dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--color-maroon);
  opacity: 0;
  animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1);   opacity: 0.5; }
  50%       { transform: scale(1.5); opacity: 0; }
}

.timeline__spacer {
  /* empty column filler */
}

/* Left-side items: content | dot | spacer */
.timeline__item--left .timeline__content {
  text-align: right;
  padding: 0 var(--sp-3) 0 0;
}

/* Right-side items: spacer | dot | content */
.timeline__item--right .timeline__content {
  text-align: left;
  padding: 0 0 0 var(--sp-3);
}

.timeline__time {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  margin: 0 0 6px;
}

.timeline__title {
  font-size: 1.4rem;
  margin: 0 0 8px;
  color: var(--color-maroon-deep);
}

.timeline__desc {
  font-size: 0.98rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.7;
}

/* ==========================================================================
   Venue
   ========================================================================== */
.venue {
  text-align: center;
}

.venue__map {
  max-width: 760px;
  margin: 0 auto var(--sp-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-line-dark);
  box-shadow: 0 30px 70px -40px rgba(123, 45, 62, 0.3);
}

.venue__map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
  filter: sepia(0.12) saturate(0.95);
}

.venue__details {
  max-width: 680px;
  margin: 0 auto var(--sp-3);
}

.venue__info-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
}

.venue__info-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.venue__info-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.venue__info-item > div {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.venue__info-item strong {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 2px;
}

.venue__info-item span {
  font-size: 0.95rem;
  color: var(--color-text);
}

.venue__actions {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   RSVP
   ========================================================================== */
.section--rsvp {
  position: relative;
}

.rsvp {
  max-width: 560px;
  margin: 0 auto;
}

.rsvp__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.rsvp__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rsvp__label {
  font-family: var(--font-display);
  font-size: 0.67rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
}

.rsvp__optional {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85em;
  color: var(--color-text-light);
}

.rsvp__input,
.rsvp__select,
.rsvp__textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-cream);
  border: 1px solid var(--color-line-dark);
  border-radius: var(--radius);
  outline: none;
  transition:
    border-color var(--dur-fast) var(--ease-luxury),
    box-shadow var(--dur-fast) var(--ease-luxury);
  -webkit-appearance: none;
}

.rsvp__input::placeholder,
.rsvp__textarea::placeholder {
  color: var(--color-text-light);
  font-style: italic;
}

.rsvp__input:focus,
.rsvp__select:focus,
.rsvp__textarea:focus {
  border-color: var(--color-maroon);
  box-shadow: 0 0 0 3px rgba(123, 45, 62, 0.12);
}

.rsvp__textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

/* Radio attendance choices */
.rsvp__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

.rsvp__choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px var(--sp-2);
  border: 1.5px solid var(--color-line-dark);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text);
  background: var(--color-cream);
  transition:
    border-color var(--dur-fast) var(--ease-luxury),
    background var(--dur-fast) var(--ease-luxury),
    color var(--dur-fast) var(--ease-luxury);
}

.rsvp__choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.rsvp__choice-icon {
  font-size: 0.7rem;
  transform: rotate(45deg);
  display: inline-block;
  color: var(--color-gold);
  transition: color var(--dur-fast);
}

.rsvp__choice--yes:has(input:checked),
.rsvp__choice--yes.is-selected {
  background: var(--color-maroon);
  border-color: var(--color-maroon);
  color: var(--color-cream);
}

.rsvp__choice--yes:has(input:checked) .rsvp__choice-icon,
.rsvp__choice--yes.is-selected .rsvp__choice-icon {
  color: var(--color-gold-light);
}

.rsvp__choice--no:has(input:checked),
.rsvp__choice--no.is-selected {
  background: var(--color-bg-alt);
  border-color: var(--color-text-light);
  color: var(--color-text);
}

.rsvp__choice:hover {
  border-color: var(--color-maroon-light);
}

/* RSVP success state */
.rsvp__success {
  text-align: center;
  padding: var(--sp-5) var(--sp-3);
}

.rsvp__success-icon {
  font-size: 2.5rem;
  color: var(--color-maroon);
  transform: rotate(45deg);
  display: inline-block;
  margin-bottom: var(--sp-3);
  animation: successPop 0.6s var(--ease-spring) forwards;
}

@keyframes successPop {
  0%   { transform: rotate(45deg) scale(0); opacity: 0; }
  60%  { transform: rotate(45deg) scale(1.2); opacity: 1; }
  100% { transform: rotate(45deg) scale(1);   opacity: 1; }
}

.rsvp__success h3 {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--color-maroon);
  margin-bottom: var(--sp-2);
}

.rsvp__success p {
  font-style: italic;
  color: var(--color-text-light);
}

/* ==========================================================================
   Music Toggle
   ========================================================================== */
.music-toggle {
  position: fixed;
  bottom: var(--sp-3);
  right: var(--sp-3);
  z-index: 600;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-cream);
  border: 1px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 8px 28px rgba(123, 45, 62, 0.25),
    0 2px 8px rgba(0,0,0,0.1);
  padding: 0;
  overflow: visible;
  transition: transform var(--dur-fast) var(--ease-luxury), box-shadow var(--dur-fast);
}

.music-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 36px rgba(123, 45, 62, 0.35);
}

.music-toggle__disc {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-maroon), var(--color-maroon-light));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-med);
}

.music-toggle.is-playing .music-toggle__disc {
  animation: spinDisc 8s linear infinite;
}

.music-toggle__icon {
  width: 18px;
  height: 18px;
  color: var(--color-gold-light);
}

/* Sound waves */
.music-toggle__waves {
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  opacity: 0;
  transition: opacity var(--dur-fast);
}

.music-toggle.is-playing .music-toggle__waves {
  opacity: 1;
}

.music-toggle__waves span {
  display: block;
  width: 3px;
  background: var(--color-maroon);
  border-radius: 99px;
}

.music-toggle__waves span:nth-child(1) {
  height: 10px;
  animation: waveBar 0.9s ease-in-out infinite 0s;
}
.music-toggle__waves span:nth-child(2) {
  height: 18px;
  animation: waveBar 0.9s ease-in-out infinite 0.15s;
}
.music-toggle__waves span:nth-child(3) {
  height: 10px;
  animation: waveBar 0.9s ease-in-out infinite 0.3s;
}

@keyframes waveBar {
  0%, 100% { transform: scaleY(0.4); }
  50%       { transform: scaleY(1); }
}

@keyframes spinDisc {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  text-align: center;
  padding: var(--sp-6) var(--sp-3) var(--sp-4);
  color: var(--color-text);
  overflow: hidden;
}

.footer__florals {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.footer__floral {
  position: absolute;
  width: clamp(100px, 18vw, 200px);
  opacity: 0.3;
}

.footer__floral--l {
  bottom: -15px;
  left: -20px;
  transform: scaleX(-1) rotate(180deg);
}

.footer__floral--r {
  bottom: -15px;
  right: -20px;
  transform: rotate(180deg) scaleX(-1);
}

.footer__inner {
  position: relative;
  z-index: 1;
}

.footer__arabic {
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  color: var(--color-maroon);
  margin: var(--sp-3) 0 var(--sp-2);
  opacity: 0.7;
}

.footer__names {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--color-maroon);
  margin: var(--sp-2) 0 var(--sp-1);
}

.footer__note {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--color-text-light);
  margin: 4px 0;
}

.footer__divider-line {
  width: 80px;
  height: 1px;
  background: var(--color-line-dark);
  margin: var(--sp-3) auto var(--sp-2);
}

.footer__brand {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
  opacity: 0.6;
}

/* ==========================================================================
   Scroll Reveal Utilities
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(4px);
  transition:
    opacity 1s var(--ease-luxury),
    transform 1s var(--ease-luxury),
    filter 1s var(--ease-luxury);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.93);
  transition:
    opacity 1s var(--ease-luxury),
    transform 1s var(--ease-luxury);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Cursor glow (desktop only) */
.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  background: radial-gradient(circle, rgba(123,45,62,0.1), transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
}

/* ==========================================================================
   Couple Cards — Bride & Groom
   ========================================================================== */

/* ── Section wrapper ── */
.couple-section {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.couple-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 50%, rgba(98,109,83,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(201,160,122,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Cards row ── */
.couple-cards {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin-top: var(--sp-4);
  flex-wrap: wrap;
}

/* ── Single card ── */
.couple-card {
  position: relative;
  flex: 0 1 320px;
  background: var(--color-maroon-deep);       /* dark forest green */
  border: 1px solid rgba(201,160,122,0.35);   /* gold border */
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  overflow: hidden;
  transition:
    transform 0.45s var(--ease-luxury),
    box-shadow 0.45s var(--ease-luxury);
}

.couple-card::before {
  /* shimmer border highlight */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(201,160,122,0.12) 0%,
    transparent 40%,
    transparent 60%,
    rgba(232,208,170,0.08) 100%
  );
  pointer-events: none;
}

.couple-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 60px -16px rgba(27,34,24,0.5),
    0 0 0 1px rgba(201,160,122,0.5);
}

/* ── Decorative floral SVG (top corner) ── */
.couple-card__floral {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 80px;
  height: 80px;
  pointer-events: none;
  animation: floatY 10s ease-in-out infinite;
}
.couple-card--groom .couple-card__floral {
  right: auto;
  left: -10px;
  animation-direction: alternate-reverse;
}

/* ── Avatar block removed ── */


/* ── Card text body ── */
.couple-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.couple-card__role {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-light);   /* light gold on dark bg */
  opacity: 0.9;
  margin: 0;
}

.couple-card__name {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--color-gold);         /* warm gold name */
  margin: 0;
  line-height: 1.1;
}

.couple-card__divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: var(--sp-1) auto;
}

.couple-card__parents-label {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--color-gold-pale);    /* pale gold on dark bg */
  margin: 0;
}

.couple-card__parents {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-cream);        /* cream white on dark bg */
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.couple-card__parent-amp {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--color-gold);
  line-height: 1;
}

/* ── Bottom ornament glyph ── */
.couple-card__ornament {
  font-size: 1.1rem;
  color: var(--color-gold);
  opacity: 0.7;
  margin-top: auto;
  animation: floatY 6s ease-in-out infinite;
}

/* ── Centre Arabic "و" connector ── */
.couple-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-2);
  flex-shrink: 0;
}

.couple-connector__line {
  display: block;
  width: 1px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(180deg, transparent, var(--color-gold), transparent);
}

.couple-connector__glyph {
  font-family: var(--font-arabic);
  font-size: 2.4rem;
  color: var(--color-gold-dark);
  line-height: 1;
  text-shadow: 0 2px 12px rgba(154,112,64,0.25);
}

/* ── Responsive stacking ── */
@media (max-width: 720px) {
  .couple-cards {
    flex-direction: column;
    align-items: center;
  }

  .couple-card {
    flex: 0 1 auto;
    width: 100%;
    max-width: 340px;
  }

  .couple-connector {
    flex-direction: row;
    padding: var(--sp-2) 0;
    width: 100%;
    max-width: 340px;
  }

  .couple-connector__line {
    min-height: 1px;
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  }
}

