/* ==========================================================================
   Khansa & Ammar — Luxury Islamic Wedding Invitation Stationery
   Inspired by thin double-line gold Mughal arch, sage silk drapery,
   ivory garden roses, white jasmine, baby's breath & olive calligraphy.
   ========================================================================== */

:root {
  color-scheme: only light;
  forced-color-adjust: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;

  --ivory: #faf6ea;
  --ivory-soft: #faf6ee;
  --ivory-warm: #f3ecdd;
  --ivory-card: #fcfaf3;
  --sage-soft: #edf1e8;
  --sage-mist: #e5ebe0;

  --olive-deep: #34422d;
  --olive-mid: #4c5b42;
  --olive-soft: #68775e;
  --sage-accent: #7a8d73;

  --gold: #b4924a;
  --gold-soft: #cbb174;
  --gold-pale: #e5d2a0;
  --gold-hairline: rgba(180, 146, 74, 0.42);

  --font-script: "Tangerine", "Great Vibes", cursive;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Lora", Georgia, serif;
  --font-arabic: "Amiri", "Noto Naskh Arabic", serif;

  --ease-luxury: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: only light;
  forced-color-adjust: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  color-scheme: only light;
  forced-color-adjust: none;
  margin: 0;
  padding: 0;
  background-color: var(--ivory);
  color: var(--olive-deep);
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  filter: none;
}

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

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

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

/* Cotton Paper Grain Overlay */
.paper-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  background-image: url("../assets/paper-texture.svg");
  background-repeat: repeat;
  opacity: 0.36;
  mix-blend-mode: normal;
}

/* Continuous Double-Line Champagne-Gold Stationery Hairline */
.invitation-scroll {
  position: relative;
  width: 100%;
  overflow-x: clip;
}

.scroll-hairline-frame {
  position: fixed;
  inset: 14px;
  border: 1px solid rgba(180, 146, 74, 0.32);
  pointer-events: none;
  z-index: 40;
}

.scroll-hairline-frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(180, 146, 74, 0.18);
}

/* ==========================================================================
   Minimal Floating Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 75;
  padding: 0.85rem 1.75rem;
  color: var(--olive-deep);
  background-color: transparent;
  transition: background-color 0.6s var(--ease-luxury),
    backdrop-filter 0.6s var(--ease-luxury),
    border-color 0.6s var(--ease-luxury),
    padding 0.5s var(--ease-luxury);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background-color: rgba(250, 246, 234, 0.96);
  color: var(--olive-deep);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(180, 146, 74, 0.24);
  padding: 0.58rem 1.75rem;
}

.site-nav {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-monogram {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--olive-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.25rem 0.45rem;
}

.nav-amp {
  font-family: var(--font-script);
  font-size: 1.45rem;
  color: var(--gold);
  margin: 0 0.08rem;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.nav-link {
  position: relative;
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-mid);
  padding: 0.35rem 0;
  transition: color 0.45s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-50%);
  transition: width 0.5s var(--ease-luxury);
}

.nav-link:hover,
.nav-link.active {
  color: var(--olive-deep);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background-color: rgba(250, 246, 234, 0.94);
  color: var(--olive-deep);
  border: 1px solid rgba(180, 146, 74, 0.48);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background-color 0.35s ease;
}

.nav-toggle:hover {
  background-color: rgba(180, 146, 74, 0.14);
}

.nav-toggle-line {
  width: 18px;
  height: 1.3px;
  background-color: var(--olive-deep);
  transition: transform 0.4s var(--ease-luxury), opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child {
  transform: translateY(3.15px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:last-child {
  transform: translateY(-3.15px) rotate(-45deg);
}

/* ==========================================================================
   Continuous Seamless Section Tones (Alternating Ivory & Soft Sage)
   ========================================================================== */
.section {
  position: relative;
  padding: clamp(4.2rem, 7vw, 6.2rem) clamp(1rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4.5rem);
  background-color: var(--ivory);
  color: var(--olive-deep);
  overflow: hidden;
  scroll-margin-top: 48px;
}

.tone-hero-ivory {
  background-color: #faf6ea;
  background-image: linear-gradient(180deg, var(--ivory) 0%, var(--ivory) 82%, var(--ivory-warm) 100%);
}

.tone-sage-blend {
  background-color: #edf1e8;
  background-image: linear-gradient(
    180deg,
    var(--ivory-warm) 0%,
    #f1f1e8 15%,
    var(--sage-soft) 50%,
    #eff1e8 85%,
    var(--ivory) 100%
  );
}

.tone-ivory-blend {
  background-color: #faf6ea;
  background-image: linear-gradient(
    180deg,
    var(--ivory) 0%,
    #fcfaf2 50%,
    #f2f2e9 86%,
    var(--ivory-warm) 100%
  );
}

.tone-sage-finish {
  background-color: #edf1e8;
  background-image: linear-gradient(
    180deg,
    var(--ivory-warm) 0%,
    #f0f2e9 18%,
    var(--sage-soft) 66%,
    var(--sage-mist) 100%
  );
}

.section-inner {
  position: relative;
  z-index: 12;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* ==========================================================================
   Typography & Arabic Calligraphy
   ========================================================================== */
.arabic-text {
  font-family: var(--font-arabic);
  direction: rtl;
  unicode-bidi: isolate;
  color: var(--olive-deep);
  font-weight: 400;
}

.section-kicker {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.15rem, 4.4vw, 3.15rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.18;
  color: var(--olive-deep);
  margin: 0;
}

.ornamental-rule {
  width: min(280px, 76%);
  margin: 1.15rem auto;
}

.divider-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.crescent-shape {
  animation: goldShimmer 6.5s ease-in-out infinite;
}

/* ==========================================================================
   Fine-Art Botanical PNG Decorations & Gentle Ambient Leaves
   ========================================================================== */
.botanical-img {
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.botanical-img.flipped {
  transform: scaleX(-1);
}

.botanical-img.flipped-both {
  transform: scale(-1);
}

.floral-edge {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(135px, 18vw, 245px);
  pointer-events: none;
  z-index: 5;
  opacity: 0.92;
}

.floral-edge-left {
  left: max(0px, 1.2vw);
}

.floral-edge-right {
  right: max(0px, 1.2vw);
}

.corner-flourish {
  position: absolute;
  width: clamp(190px, 26vw, 350px);
  pointer-events: none;
  z-index: 5;
  opacity: 0.96;
}

.corner-flourish-tl {
  top: clamp(14px, 3vw, 32px);
  left: clamp(8px, 2vw, 28px);
}

.corner-flourish-br {
  bottom: clamp(14px, 3vw, 32px);
  right: clamp(8px, 2vw, 28px);
}

.sway-ambient {
  transform-origin: top left;
  animation: gentleSway 8s ease-in-out infinite alternate;
}

.sway-ambient-alt {
  transform-origin: top right;
  animation: gentleSwayFlipped 8.8s ease-in-out infinite alternate;
}

.ambient-leaves {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 35;
  overflow: hidden;
}

.float-leaf {
  position: absolute;
  width: 10px;
  height: 17px;
  border-radius: 0 100% 0 100%;
  background: linear-gradient(135deg, rgba(138, 156, 126, 0.24), rgba(90, 110, 82, 0.14));
  opacity: 0;
  animation: leafFloat 20s linear infinite;
}

.leaf-1 { left: 9%; animation-delay: 0s; animation-duration: 22s; }
.leaf-2 { left: 27%; animation-delay: 6s; animation-duration: 25s; width: 8px; height: 14px; }
.leaf-3 { left: 73%; animation-delay: 3s; animation-duration: 21s; }
.leaf-4 { left: 90%; animation-delay: 9s; animation-duration: 24s; width: 9px; height: 15px; }

/* ==========================================================================
   SECTION 1: OPENING / HERO
   (Full-bleed thin double-line gold arch + sage silk drapes + glowing lanterns + roses)
   ========================================================================== */
.section-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3.75rem, 6vh, 4.75rem) clamp(0.75rem, 3vw, 2rem) clamp(1.75rem, 3vh, 2.75rem);
}

.hero-arch-stage {
  position: relative;
  width: min(620px, 95vw);
  min-height: min(94svh, 940px);
  container-type: inline-size;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color: var(--ivory);
  overflow: hidden;
}

.hero-arch-artwork {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  /* Softly feather edges into the warm ivory canvas on wide screens */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to bottom, #000 0%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to bottom, #000 0%, #000 94%, transparent 100%);
  mask-composite: intersect;
}

.hero-arch-top,
.hero-arch-bottom {
  width: 100%;
  height: auto;
  flex: 0 0 auto;
  display: block;
}

.hero-arch-mid {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  background-image: url("../assets/hero-tile.jpg");
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: top center;
}

/* Text calibrated with a unified, rhythmic editorial spacing scale across all viewports */
.hero-content {
  position: relative;
  z-index: 6;
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  text-align: center;
  padding: clamp(7.4rem, 36.5cqw, 13.5rem) 4cqw clamp(5.8rem, 23cqw, 8.5rem);
}

.hero-top-group,
.hero-center-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-top-group {
  margin-bottom: clamp(0.85rem, 3.2cqw, 1.45rem);
}

.hero-center-group {
  margin-bottom: auto;
}

.hero-crescent {
  width: 7cqw;
  min-width: 26px;
  max-width: 44px;
  margin: 0 auto clamp(1.2rem, 6.4cqw, 2.5rem);
}

.crescent-svg {
  width: 100%;
  height: auto;
}

.hero-bismillah-wrap {
  width: clamp(142px, 39.5cqw, 246px);
  max-width: 78%;
  margin: 0 auto clamp(0.6rem, 2.4cqw, 1.1rem);
}

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

.hero-bismillah-tr {
  font-family: var(--font-heading);
  font-size: clamp(0.8rem, 2.35cqw, 0.98rem);
  font-style: italic;
  letter-spacing: 0.05em;
  color: var(--olive-soft);
  max-width: 54cqw;
  margin: 0 auto;
  line-height: 1.35;
}

.hero-rule {
  margin: clamp(0.65rem, 2.2cqw, 1.1rem) auto 0;
  width: 30cqw;
  max-width: 185px;
}

.hero-prelude {
  font-family: var(--font-heading);
  font-size: clamp(0.76rem, 2.2cqw, 0.94rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive-mid);
  max-width: 62cqw;
  margin: 0 auto clamp(0.8rem, 3cqw, 1.35rem);
  line-height: 1.35;
}

.hero-names {
  margin: 0 auto clamp(0.85rem, 3.1cqw, 1.4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 76cqw;
  font-weight: 700;
}

.couple-name {
  display: inline-block;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(3.85rem, 18.2cqw, 6.4rem);
  line-height: 0.92;
  color: var(--olive-deep);
  padding: 0.02em 0.3rem 0.06em;
  text-shadow: 0 2px 14px rgba(180, 146, 74, 0.12);
}

.couple-ampersand {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(2.1rem, 8.2cqw, 3.1rem);
  line-height: 0.84;
  color: var(--gold);
  margin: -0.7cqw 0 -0.5cqw;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 3.2cqw, 1.34rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-mid);
  max-width: 58cqw;
  margin: 0 auto clamp(0.45rem, 1.6cqw, 0.75rem);
}

.hero-date-whisper {
  font-family: var(--font-body);
  font-size: clamp(0.84rem, 2.35cqw, 0.96rem);
  font-style: italic;
  color: var(--olive-soft);
  max-width: 62cqw;
  margin: 0 auto;
}

.scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55cqw;
  margin-top: clamp(1rem, 4.5cqw, 2rem);
  padding-top: 0;
  max-width: 44cqw;
  color: var(--olive-soft);
  transition: color 0.4s ease;
}

.scroll-indicator:hover {
  color: var(--olive-deep);
}

.scroll-label {
  font-family: var(--font-heading);
  font-size: clamp(0.68rem, 1.95cqw, 0.78rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.scroll-stem {
  position: relative;
  width: 1px;
  height: clamp(10px, 2.2cqw, 15px);
  background: linear-gradient(180deg, var(--gold), rgba(180, 146, 74, 0.2));
}

.scroll-stem::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 5px;
  height: 5px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: translateX(-50%) rotate(45deg);
  animation: scrollPulse 2.8s ease-in-out infinite;
}

/* ==========================================================================
   SECTION 2: BISMILLAH AND QUR'ANIC VERSE
   ========================================================================== */
.verse-bismillah-wrap {
  width: min(275px, 66%);
  margin: 0 auto 0.65rem;
}

.transliteration {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.2vw, 1.48rem);
  font-style: italic;
  font-weight: 500;
  color: var(--olive-mid);
  letter-spacing: 0.05em;
  margin: 0 0 0.35rem;
}

.translation {
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.7vw, 1.08rem);
  color: var(--olive-soft);
  max-width: 520px;
  margin: 0 auto;
}

.quran-verse {
  margin: 1.5rem auto;
  padding: 0.5rem;
  max-width: 620px;
}

.quran-ar {
  font-size: clamp(1.38rem, 2.7vw, 1.85rem);
  line-height: 2.15;
  color: var(--olive-mid);
  margin: 0 0 1.15rem;
}

.quran-en {
  font-family: var(--font-heading);
  font-size: clamp(1.32rem, 2.5vw, 1.72rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.65;
  color: var(--olive-deep);
  margin: 0 0 1rem;
}

.quran-ref {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ==========================================================================
   SECTION 3: FAMILY INVITATION & COUPLE INTRODUCTION
   ========================================================================== */
.family-stationery {
  max-width: 580px;
  margin: 0 auto;
}

.family-rule {
  margin: 1.05rem auto 1.2rem;
  width: min(210px, 64%);
}

.family-rule-bottom {
  margin: 1.3rem auto 0;
  width: min(210px, 64%);
}

.invitation-lead {
  display: block;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.06rem, 2.1vw, 1.35rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--olive-soft);
  max-width: 100%;
  margin: 0.35rem auto 0.55rem;
}

.allah-honorific-unit {
  display: inline-block;
  white-space: nowrap;
}

.subhanahu-mark {
  display: inline-block;
  height: 1.28em;
  width: auto;
  vertical-align: -0.22em;
  margin: 0 0.05em 0 0.24em;
  opacity: 0.88;
}

.lead-comma {
  display: inline;
}

.host-name {
  font-family: var(--font-heading);
  font-size: clamp(1.42rem, 2.8vw, 2.02rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--olive-deep);
  margin: 0 0 0.4rem;
}

.invitation-phrase {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.7vw, 1.06rem);
  color: var(--olive-mid);
  margin: 0;
}

.person-block {
  margin: 0.3rem auto;
}

.calligraphy-name {
  font-family: var(--font-script);
  font-size: clamp(3.35rem, 9vw, 5.4rem);
  font-weight: 700;
  line-height: 1.02;
  color: var(--olive-deep);
  margin: 0 0 0.35rem;
  padding: 0.04em 0.25rem 0.06em;
  overflow: visible;
  text-shadow: 0 2px 14px rgba(180, 146, 74, 0.12);
}

.parents-block {
  margin-top: 0;
}

.relation-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-style: italic;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 0.25rem;
}

.relation-tick {
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

.parent-names {
  font-family: var(--font-heading);
  font-size: clamp(1.16rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.48;
  color: var(--olive-deep);
  margin: 0;
}

.union-conjunction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.15rem auto;
  max-width: 290px;
}

.conjunction-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

.conjunction-sprig {
  width: 18px;
  opacity: 0.78;
}

.conjunction-word {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-style: italic;
  letter-spacing: 0.16em;
  color: var(--gold);
}

/* ==========================================================================
   Editorial Schedule Split (Date | Gold Olive Sprig | Time)
   ========================================================================== */
.schedule-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(0.85rem, 2.5vw, 1.75rem);
  max-width: 540px;
  margin: 1.6rem auto 2.5rem;
}

.schedule-col {
  text-align: center;
}

.schedule-caption {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.schedule-sprig {
  width: 34px;
  margin: 0 auto;
}

.sprig-svg {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   SECTION 4: NIKAH DETAILS & INLINE QR CODE
   ========================================================================== */
.ceremony-date {
  font-family: var(--font-heading);
  font-size: clamp(1.38rem, 2.6vw, 1.78rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--olive-deep);
  margin: 0;
}

.ceremony-time-en {
  font-family: var(--font-heading);
  font-size: clamp(1.22rem, 2.3vw, 1.52rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  color: var(--olive-mid);
  margin: 0 0 0.2rem;
}

.ceremony-time-ar {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  line-height: 1.75;
  color: var(--olive-deep);
  margin: 0;
}

/* ==========================================================================
   Editorial Nikah Date Block (InshaAllah / Saturday / MAY 01 2027 / Hijri)
   ========================================================================== */
.nikah-editorial-date {
  max-width: 400px;
  margin: 0 auto 1rem;
  text-align: center;
}

.date-inshaallah {
  font-family: var(--font-heading);
  font-size: clamp(1.12rem, 2.3vw, 1.45rem);
  font-style: italic;
  font-weight: 500;
  color: var(--olive-mid);
  margin: 0 0 0.12rem;
}

.date-weekday {
  font-family: var(--font-heading);
  font-size: clamp(1.32rem, 2.6vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--olive-deep);
  margin: 0 0 0.45rem;
}

.date-ribbon {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(0.7rem, 2.6vw, 1.4rem);
  max-width: 320px;
  margin: 0 auto 0.55rem;
}

.ribbon-side {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.32rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-deep);
  padding: 0.35rem 0.3rem;
  border-top: 1px solid rgba(76, 91, 66, 0.48);
  border-bottom: 1px solid rgba(76, 91, 66, 0.48);
}

.ribbon-day {
  font-family: var(--font-heading);
  font-size: clamp(2.55rem, 6vw, 3.85rem);
  font-weight: 600;
  line-height: 0.95;
  color: var(--olive-deep);
  padding: 0 0.15rem;
}

.date-hijri-ur {
  font-size: clamp(1.26rem, 2.6vw, 1.68rem);
  line-height: 1.75;
  color: var(--olive-deep);
  margin: 0.15rem 0 0.3rem;
}

.venue-mosque-icon {
  width: 44px;
  margin: 0 0 0.35rem;
}

.mosque-svg {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Seamless Blended Mughal Arch Frames (Consistent Proportions Across Sections)
   ========================================================================== */
.stationery-suite-card,
.reception-card {
  position: relative;
  max-width: 610px;
  margin: 0 auto;
  padding: clamp(5.2rem, 9.5vw, 6.6rem) clamp(1.8rem, 5.5vw, 3.8rem) clamp(3.8rem, 7vw, 5rem);
  background: transparent;
  box-shadow: none;
}

.card-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin: 0 auto 0.65rem;
}

.card-section-header .section-title {
  text-align: center;
  margin: 0 auto;
  padding-left: 0.04em;
  max-width: 100%;
}

.card-title-rule {
  margin: 0.7rem auto 0.95rem;
  width: min(230px, 68%);
}

.reception-card {
  background: radial-gradient(
    ellipse at 50% 45%,
    rgba(252, 250, 243, 0.58) 0%,
    rgba(250, 246, 234, 0.2) 72%,
    transparent 100%
  );
}

.verse-card,
.family-card,
.nikah-card {
  margin-top: 0;
}

.suite-arch-border,
.reception-arch-border {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.reception-arch-svg {
  width: 100%;
  height: 100%;
}

.card-floral {
  position: absolute;
  width: clamp(118px, 24vw, 200px);
  height: auto;
  pointer-events: none;
  z-index: 4;
}

.card-floral-tl {
  top: 2px;
  left: -8px;
}

.card-floral-br {
  bottom: -10px;
  right: -10px;
  transform: scale(-1);
}

.suite-card-body,
.reception-card-body {
  position: relative;
  z-index: 5;
}

.suite-card-body .section-kicker,
.reception-card-body .section-kicker {
  max-width: 72%;
  margin: 0 auto 0.3rem;
  line-height: 1.4;
}

.venue-folio {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.4rem);
  max-width: 520px;
  margin: 0 auto;
  padding-top: 0.45rem;
}

.venue-info {
  text-align: left;
}

.detail-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.venue-name {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--olive-deep);
  margin: 0 0 0.55rem;
}

.venue-address {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--olive-mid);
  margin: 0 0 1.4rem;
}

.qr-frame {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.qr-inner {
  padding: 10px;
  background-color: var(--ivory-card);
  border: 1px solid rgba(180, 146, 74, 0.45);
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(44, 59, 43, 0.06);
}

.qr-inner img {
  width: clamp(122px, 32vw, 152px);
  height: clamp(122px, 32vw, 152px);
  display: block;
}

.qr-caption {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive-soft);
  margin: 0;
}

.btn-stationery {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: min(230px, 84%);
  padding: 0.74rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive-deep);
  background-color: rgba(252, 250, 243, 0.92);
  border: 1px solid var(--gold);
  border-radius: 2px;
  transition: background-color 0.45s var(--ease-luxury),
    color 0.45s var(--ease-luxury),
    transform 0.45s var(--ease-luxury),
    box-shadow 0.45s var(--ease-luxury);
}

.btn-stationery:hover {
  background-color: var(--olive-deep);
  color: var(--ivory);
  border-color: var(--olive-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(44, 59, 43, 0.14);
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   SECTION 5: WEDDING RECEPTION (Uses shared .reception-card suite styling above)
   ========================================================================== */

.reception-split {
  grid-template-columns: minmax(0, 0.94fr) auto minmax(0, 1.06fr);
  align-items: stretch;
  margin: 0.25rem auto 0.85rem;
}

.reception-split .schedule-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reception-split .schedule-sprig {
  align-self: center;
}

.reception-meta-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.28rem;
}

.reception-date {
  font-family: var(--font-heading);
  font-size: clamp(1.12rem, 2.4vw, 1.52rem);
  font-weight: 500;
  font-variant-numeric: lining-nums;
  line-height: 1.3;
  color: var(--olive-deep);
  margin: 0;
}

.reception-time {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  font-family: var(--font-heading);
  font-size: clamp(1.14rem, 2.4vw, 1.56rem);
  font-weight: 500;
  font-style: italic;
  font-variant-numeric: lining-nums;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--olive-mid);
  margin: 0;
}

.reception-time strong {
  white-space: nowrap;
  font-weight: 700;
}

.card-rule {
  margin: 0.9rem auto;
  width: min(240px, 68%);
}

.reception-venue-name {
  font-family: var(--font-heading);
  font-size: clamp(1.95rem, 4.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--olive-deep);
  margin: 0.1rem 0 0.35rem;
}

.reception-venue-location {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--olive-mid);
  margin: 0 0 1.1rem;
}

.reception-qr-block {
  margin: 0 auto 1.15rem;
}

/* ==========================================================================
   SECTION 6: CLOSING / DUA
   ========================================================================== */
.section-closing {
  padding-top: clamp(4.2rem, 8vw, 6.2rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.closing-crescent {
  width: 64px;
  margin: 0 auto 0.65rem;
}

.closing-heading {
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  font-style: italic;
  margin-bottom: 0.9rem;
}

.closing-message {
  font-family: var(--font-body);
  font-size: clamp(0.96rem, 1.8vw, 1.12rem);
  line-height: 1.75;
  color: var(--olive-mid);
  max-width: 540px;
  margin: 0 auto 1.15rem;
}

.closing-dua-ar {
  font-size: clamp(1.55rem, 3.6vw, 2.25rem);
  line-height: 1.95;
  color: var(--olive-deep);
  margin: 0 auto 0.55rem;
}

.closing-names {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(3.3rem, 8vw, 4.8rem);
  line-height: 1.06;
  padding: 0.04em 0.35rem 0.1em;
  color: var(--olive-deep);
  margin: 0.5rem 0 0.2rem;
}

.closing-amp {
  color: var(--gold);
  margin: 0 0.15rem;
}

.closing-tagline {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--olive-soft);
  margin: 0 0 1.25rem;
}

.back-to-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.2rem;
  margin: 0 auto 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive-mid);
  border: 1px solid rgba(180, 146, 74, 0.45);
  border-radius: 999px;
  background-color: rgba(252, 250, 243, 0.72);
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.back-to-top-link:hover {
  background-color: var(--olive-deep);
  color: var(--ivory);
  border-color: var(--olive-deep);
  transform: translateY(-2px);
}

.back-to-top-arrow {
  font-size: 0.95rem;
  line-height: 1;
}

.closing-garland {
  width: min(760px, 100%);
  margin: 0 auto;
}

.closing-garland-img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ==========================================================================
   Fallback Reveal States & Keyframes
   ========================================================================== */
.reveal-ready {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.35s var(--ease-luxury), transform 1.35s var(--ease-luxury);
}

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

@keyframes gentleSway {
  0% {
    transform: rotate(-1.1deg);
  }
  100% {
    transform: rotate(1.1deg);
  }
}

@keyframes gentleSwayFlipped {
  0% {
    transform: scaleX(-1) rotate(-1.1deg);
  }
  100% {
    transform: scaleX(-1) rotate(1.1deg);
  }
}

@keyframes goldShimmer {
  0%,
  100% {
    filter: drop-shadow(0 0 2px rgba(215, 190, 130, 0.25));
    opacity: 0.94;
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(223, 200, 142, 0.62));
    opacity: 1;
  }
}

@keyframes scrollPulse {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(45deg);
    opacity: 0.45;
  }
  50% {
    transform: translateX(-50%) translateY(5px) rotate(45deg);
    opacity: 1;
  }
}

@keyframes leafFloat {
  0% {
    transform: translateY(-8vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.42;
  }
  50% {
    transform: translateY(48vh) translateX(20px) rotate(95deg);
    opacity: 0.32;
  }
  88% {
    opacity: 0.26;
  }
  100% {
    transform: translateY(104vh) translateX(-14px) rotate(190deg);
    opacity: 0;
  }
}

/* ==========================================================================
   Responsive Design (Tablets, iPhones, Android Phones)
   ========================================================================== */
@media (max-width: 1120px) {
  /* Hide side branches below 1120px so they never overlap central arch cards or mobile text */
  .floral-edge {
    display: none;
  }
}

@media (max-width: 768px) {
  .scroll-hairline-frame {
    inset: 8px;
  }

  .scroll-hairline-frame::after {
    inset: 4px;
  }

  .site-header {
    padding: 0.55rem 1rem;
    min-height: 52px;
  }

  .site-header.is-scrolled {
    padding: 0.48rem 1rem;
  }

  .section:not(#hero) {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.6rem clamp(0.45rem, 2vw, 0.9rem) 1.65rem;
  }

  .section-closing {
    padding-bottom: 2.25rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    background-color: #faf6ea;
    color: var(--olive-deep);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(180, 146, 74, 0.35);
    border-radius: 6px;
    box-shadow: 0 18px 40px rgba(44, 59, 43, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.4s var(--ease-luxury),
      transform 0.4s var(--ease-luxury),
      visibility 0.4s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.55rem 0;
  }

  /* Hero Arch fills 100% of mobile screen height seamlessly (no blank gap at bottom) */
  .section-hero {
    padding: 0;
    min-height: 100svh;
    align-items: stretch;
  }

  .hero-arch-stage {
    width: 100%;
    min-height: 100svh;
  }

  .hero-arch-artwork {
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 94%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 94%, transparent 100%);
  }

  .hero-content {
    padding: clamp(7.4rem, 36.5cqw, 10.2rem) 3cqw clamp(5.8rem, 23cqw, 8rem);
    justify-content: flex-start;
  }

  .family-stationery {
    padding: 0;
  }

  .venue-mosque-icon {
    margin: 0 auto 0.3rem;
  }

  .corner-flourish {
    width: 120px;
    opacity: 0.72;
  }

  /* Preserve sleek 2-column Date | Sprig | Time split on Reception across 360px-430px phones */
  .schedule-split {
    grid-template-columns: minmax(0, 0.94fr) auto minmax(0, 1.06fr);
    gap: 0.45rem;
    margin: 0.4rem auto 0.9rem;
  }

  .schedule-sprig {
    width: 22px;
    transform: none;
    margin: 0 auto;
  }

  .reception-date {
    font-size: clamp(0.98rem, 3.9vw, 1.24rem);
  }

  .reception-time {
    font-size: clamp(0.96rem, 3.8vw, 1.24rem);
  }

  .venue-folio {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
    padding: 0.35rem 0 0;
  }

  .venue-info {
    text-align: center;
  }

  .venue-address {
    margin: 0 0 1rem;
    font-size: 0.94rem;
  }

  .stationery-suite-card,
  .reception-card {
    width: min(610px, calc(100% - 0.5rem));
    margin: 0 auto;
    padding: clamp(5.05rem, 16.5vw, 5.8rem) clamp(1.05rem, 3.8vw, 1.55rem) clamp(3.6rem, 12vw, 4.4rem);
  }

  .suite-card-body .section-kicker,
  .reception-card-body .section-kicker {
    max-width: 68%;
    font-size: clamp(0.68rem, 2.1vw, 0.78rem);
    letter-spacing: 0.14em;
  }

  .section-title {
    font-size: clamp(1.75rem, 6.6vw, 2.4rem);
  }

  .card-section-header .section-title {
    font-size: clamp(1.56rem, 5.7vw, 2.25rem);
  }

  .quran-verse {
    margin: 0.85rem auto;
    padding: 0.2rem;
  }

  .quran-ar {
    font-size: clamp(1.18rem, 4.4vw, 1.55rem);
    line-height: 1.95;
    margin-bottom: 0.7rem;
  }

  .quran-en {
    font-size: clamp(1.08rem, 4vw, 1.38rem);
    line-height: 1.55;
    margin-bottom: 0.65rem;
  }

  .card-floral {
    width: clamp(90px, 23vw, 118px);
  }

  .card-floral-tl {
    top: 2px;
    left: -2px;
  }

  .card-floral-br {
    bottom: -4px;
    right: -2px;
  }
}

@media (max-width: 420px) {
  .calligraphy-name {
    font-size: clamp(3rem, 12.5vw, 3.6rem);
  }

  .qr-inner img {
    width: 122px;
    height: 122px;
  }
}

@media (max-width: 360px) {
  .schedule-split {
    gap: 0.35rem;
  }

  .schedule-sprig {
    width: 18px;
  }

  .reception-date,
  .reception-time {
    font-size: 0.92rem;
  }
}

/* ==========================================================================
   Force Light Stationery Palette Even When Device Uses Dark Mode / Forced Colors
   ========================================================================== */
@media (prefers-color-scheme: dark), (forced-colors: active) {
  :root,
  html,
  body,
  .invitation-scroll {
    color-scheme: only light;
    forced-color-adjust: none;
    background-color: #faf6ea !important;
    color: #34422d !important;
  }

  .section,
  .hero-arch-stage,
  .stationery-suite-card,
  .reception-card {
    color: #34422d !important;
  }

  .scroll-hairline-frame {
    border-color: rgba(180, 146, 74, 0.32) !important;
  }

  .tone-hero-ivory {
    background-color: #faf6ea !important;
    background-image: linear-gradient(180deg, #faf6ea 0%, #faf6ea 82%, #f3ecdd 100%) !important;
  }

  .tone-sage-blend {
    background-color: #edf1e8 !important;
    background-image: linear-gradient(
      180deg,
      #f3ecdd 0%,
      #f1f1e8 15%,
      #edf1e8 50%,
      #eff1e8 85%,
      #faf6ea 100%
    ) !important;
  }

  .tone-ivory-blend {
    background-color: #faf6ea !important;
    background-image: linear-gradient(
      180deg,
      #faf6ea 0%,
      #fcfaf2 50%,
      #f2f2e9 86%,
      #f3ecdd 100%
    ) !important;
  }

  .tone-sage-finish {
    background-color: #edf1e8 !important;
    background-image: linear-gradient(
      180deg,
      #f3ecdd 0%,
      #f0f2e9 18%,
      #edf1e8 66%,
      #e5ebe0 100%
    ) !important;
  }

  .site-header {
    color: #34422d !important;
  }

  .site-header.is-scrolled {
    background-color: rgba(250, 246, 234, 0.96) !important;
    border-bottom-color: rgba(180, 146, 74, 0.24) !important;
  }

  .nav-monogram,
  .section-title,
  .couple-name,
  .calligraphy-name,
  .arabic-text,
  .quran-en,
  .host-name,
  .parent-names,
  .date-weekday,
  .ribbon-side,
  .ribbon-day,
  .venue-name,
  .reception-date,
  .reception-venue-name,
  .closing-names {
    color: #34422d !important;
  }

  .nav-link,
  .hero-prelude,
  .hero-subtitle,
  .transliteration,
  .quran-ar,
  .invitation-phrase,
  .ceremony-time-en,
  .date-inshaallah,
  .venue-address,
  .reception-time,
  .reception-venue-location,
  .closing-message {
    color: #4c5b42 !important;
  }

  .hero-bismillah-tr,
  .hero-date-whisper,
  .scroll-indicator,
  .translation,
  .invitation-lead,
  .qr-caption,
  .closing-tagline {
    color: #68775e !important;
  }

  .nav-amp,
  .couple-ampersand,
  .section-kicker,
  .quran-ref,
  .relation-label,
  .conjunction-word,
  .detail-label,
  .reception-meta-label,
  .closing-amp {
    color: #b4924a !important;
  }

  .nav-toggle {
    background-color: #faf6ea !important;
    border-color: rgba(180, 146, 74, 0.48) !important;
  }

  .nav-toggle-line {
    background-color: #34422d !important;
  }

  .nav-links {
    background-color: #faf6ea !important;
    border-color: rgba(180, 146, 74, 0.35) !important;
  }

  .qr-inner,
  .btn-stationery,
  .back-to-top-link {
    background-color: #fcfaf3 !important;
    color: #34422d !important;
    border-color: #b4924a !important;
  }

  .btn-stationery:hover,
  .back-to-top-link:hover {
    background-color: #34422d !important;
    color: #faf6ea !important;
  }

  img {
    filter: none !important;
  }
}

/* ==========================================================================
   Reduced Motion Accessibility
   ========================================================================== */
@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;
  }

  .ambient-leaves {
    display: none;
  }

  .reveal-ready {
    opacity: 1 !important;
    transform: none !important;
  }
}
