/* ============================================================
   SHANU FARHAN & FATHIMA HANNA — NIKKAH INVITATION
   Refined Islamic Elegance — Emerald, Gold & Paper
   ============================================================ */

:root {
  /* Core palette */
  --paper:        #F6F1E2;
  --paper-deep:   #ECE1C3;
  --paper-mid:    #F1E8D4;

  --gold:         #A9812F;
  --gold-soft:    #CBA968;
  --gold-pale:    #E7D8AE;
  --gold-glow:    rgba(169,129,47,.35);
  --gold-faint:   rgba(169,129,47,.10);

  --ink:          #24322A;
  --ink-soft:     #4B5C4F;
  --ink-muted:    #7A8A7E;

  --emerald:      #2F4A3B;
  --emerald-deep: #1D3026;
  --plum:         #6B3A44;

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-script:  'Cormorant Garamond', Georgia, serif;
  --font-hero:    'Great Vibes', cursive;
  --font-body:    'Cormorant Garamond', Georgia, serif;
  --font-arabic:  'Scheherazade New', serif;

  --ease:       cubic-bezier(.22,.61,.36,1);
  --ease-out:   cubic-bezier(.16,1,.3,1);
  --container:  760px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw + 0.5rem, 1.15rem);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.locked { overflow: hidden; height: 100vh; }

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

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

/* ============================================================
   GRAIN / TEXTURE OVERLAY
   ============================================================ */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(0,0,0,.9) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}

/* ============================================================
   FLOATING PARTICLES
   ============================================================ */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold-soft);
  opacity: 0;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  10%  { opacity: .55; transform: translateY(-8vh) scale(1); }
  90%  { opacity: .2; }
  100% { opacity: 0; transform: translateY(-95vh) scale(.3); }
}

/* ============================================================
   TYPE HELPERS
   ============================================================ */
.eyebrow {
  font-family: var(--font-script);
  letter-spacing: .32em;
  text-transform: uppercase;
  font-size: .68rem;
  color: var(--gold);
  margin: 0 0 .3em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 500;
  margin: .15em 0 .45em;
  color: var(--emerald-deep);
  letter-spacing: .03em;
}

/* Ornamental divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  margin: .9em auto;
  width: min(220px, 60%);
}
.divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}
.divider span:last-child {
  background: linear-gradient(270deg, transparent, var(--gold-soft));
}
.divider i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  background: var(--paper);
}
.divider--small { width: 120px; margin: .6em auto; }

.amp {
  font-family: var(--font-hero);
  font-style: italic;
  color: var(--gold);
  font-size: .85em;
  padding: 0 .1em;
}

/* ============================================================
   GEOMETRIC ISLAMIC PATTERN (SVG background utility)
   ============================================================ */
.geo-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .04;
  z-index: 0;
  overflow: hidden;
}

/* ============================================================
   GATE BISMILLAH
   ============================================================ */
.gate__bismillah {
  margin: 0 0 .5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  opacity: 0;
  animation: gate-bismillah-enter 1.4s var(--ease) .3s forwards;
}

.gate__bismillah-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: var(--gold-soft);
  margin: 0;
  letter-spacing: .04em;
  line-height: 1.4;
  text-shadow: 0 0 32px rgba(169,129,47,.5);
}

.gate__bismillah-translit {
  font-family: var(--font-script);
  letter-spacing: .26em;
  text-transform: uppercase;
  font-size: .6rem;
  color: rgba(255,255,255,.5);
  margin: 0;
}

.gate__divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  width: min(160px, 50%);
  margin: .5rem auto .6rem;
  opacity: 0;
  animation: gate-fade-up 1s var(--ease) 1s forwards;
}
.gate__divider-ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(169,129,47,.4));
}
.gate__divider-ornament span:last-child {
  background: linear-gradient(270deg, transparent, rgba(169,129,47,.4));
}
.gate__divider-ornament i {
  width: 5px;
  height: 5px;
  border: 1px solid var(--gold-soft);
  transform: rotate(45deg);
  background: transparent;
}

@keyframes gate-bismillah-enter {
  0%   { opacity: 0; transform: translateY(-14px) scale(.93); }
  60%  { opacity: 1; transform: translateY(2px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes gate-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   GATE / INTRO SCREEN
   ============================================================ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0d0d0d;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.55) 100%),
    url('../assets/Background.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: opacity 1.3s var(--ease);
}

.gate.is-open {
  pointer-events: none;
  opacity: 0;
}

/* Blur layer */
.gate::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(0,0,0,.22);
  transition: opacity 1.1s var(--ease);
}
.gate.is-open::before { opacity: 0; }

/* Islamic geometric overlay on gate */
.gate__geo {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .07;
  pointer-events: none;
  overflow: hidden;
}

.gate__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  transition: transform 1.4s var(--ease);
  z-index: 1;
}
.gate__panel--left  { left: 0; }
.gate__panel--right { right: 0; }
.gate__arch { width: 100%; height: 100%; }

.gate.is-open .gate__panel--left  { transform: translateX(-106%); }
.gate.is-open .gate__panel--right { transform: translateX(106%); }

.gate__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  max-width: 520px;
  width: 100%;
}
.gate.is-open .gate__content { opacity: 0; transform: translateY(-18px); }

.gate__nikkah-label {
  font-family: var(--font-script);
  letter-spacing: .5em;
  text-transform: uppercase;
  font-size: .65rem;
  color: #fff;
  margin: 0 0 .5rem;
  opacity: 0;
  animation: gate-fade-up 1s var(--ease) 1.35s forwards;
}

.gate__flourish {
  width: 100px;
  margin: 0 auto .8rem;
  opacity: 0;
  animation: gate-fade-up 1s var(--ease) 1.25s forwards;
}

.gate__eyebrow {
  font-family: var(--font-script);
  letter-spacing: .35em;
  text-transform: uppercase;
  font-size: .66rem;
  color: rgba(255,255,255,.6);
  margin: 0 0 .5em;
  opacity: 0;
  animation: gate-fade-up 1s var(--ease) 1.5s forwards;
}

.gate__names {
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: clamp(2.4rem, 8.5vw, 4.2rem);
  color: #fff;
  margin: 0 0 .15em;
  letter-spacing: .01em;
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0,0,0,.6);
  opacity: 0;
  animation: gate-fade-up 1s var(--ease) 1.7s forwards;
}

.gate__title {
  font-family: var(--font-display);
  letter-spacing: .45em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--gold-soft);
  margin: .15em 0 .4em;
  opacity: 0;
  animation: gate-fade-up 1s var(--ease) 1.9s forwards;
}

.gate__date {
  font-family: var(--font-display);
  letter-spacing: .2em;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  margin: 0 0 2rem;
  opacity: 0;
  animation: gate-fade-up 1s var(--ease) 2.1s forwards;
}
.gate__date .dot { color: var(--gold-soft); margin: 0 .4em; }

.gate__button {
  position: relative;
  font-family: var(--font-script);
  letter-spacing: .25em;
  text-transform: uppercase;
  font-size: .84rem;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.5);
  padding: 1rem 2.4rem;
  cursor: pointer;
  transition: color .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  opacity: 0;
  animation: gate-fade-up 1s var(--ease) 2.3s forwards;
}
.gate__button:hover {
  background: rgba(169,129,47,.15);
  border-color: var(--gold-soft);
  color: var(--gold-pale);
}

.gate__button-ring {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(169,129,47,.25);
  animation: pulse-ring 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse-ring {
  0%,100% { opacity: .6; transform: scale(1); }
  50%      { opacity: 0; transform: scale(1.1); }
}

/* ============================================================
   MAIN INVITATION WRAPPER
   ============================================================ */
.invitation { position: relative; background: var(--paper); }
.invitation[aria-hidden="true"] { visibility: hidden; }
.invitation.is-visible { visibility: visible; }

/* Fixed corner ornaments */
.corner {
  position: fixed;
  width: 88px;
  height: 88px;
  z-index: 5;
  pointer-events: none;
  opacity: .4;
}
.corner--tl { top: 0; left: 0; }
.corner--br { bottom: 0; right: 0; transform: rotate(180deg); }
@media (max-width: 640px) { .corner { width: 54px; height: 54px; } }

/* Section base */
.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7rem) 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .95s var(--ease), transform .95s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0 1.5rem 5rem;
  overflow: hidden;
  position: relative;
  background-color: #0d0d0d;
  background-image: url('../assets/Background.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.section.hero { padding: 0 1.5rem 5rem; }

.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.5) 100%),
    radial-gradient(ellipse at center, transparent 20%, rgba(0,0,0,.45) 100%);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  width: 100%;
  text-align: center;
}

/* Bismillah above names on hero */
.hero__bismillah {
  font-family: var(--font-arabic);
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  color: var(--gold-soft);
  margin: 0 0 .6em;
  text-shadow: 0 0 28px var(--gold-glow);
  letter-spacing: .04em;
  line-height: 1.5;
}

.hero__eyebrow {
  font-family: var(--font-script);
  letter-spacing: .32em;
  text-transform: uppercase;
  font-size: .72rem;
  color: rgba(255,255,255,.65);
  margin: 0 0 .6em;
}

.hero__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0 0 .3em;
  line-height: 1;
}

.hero__name-line {
  font-family: var(--font-hero);
  font-size: clamp(3.2rem, 11.5vw, 7rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.05;
  text-shadow:
    0 2px 28px rgba(0,0,0,.55),
    0 0 70px rgba(169,129,47,.12);
  display: block;
}

.hero__amp-line {
  font-family: var(--font-hero);
  font-size: clamp(2rem, 7vw, 4.2rem);
  color: var(--gold-soft);
  line-height: 1.1;
  display: block;
  text-shadow: 0 0 36px rgba(169,129,47,.45);
}

.hero__nikkah {
  font-family: var(--font-display);
  letter-spacing: .55em;
  text-transform: uppercase;
  font-size: clamp(.72rem, 1.6vw, .98rem);
  color: var(--gold);
  margin: .4em 0 .3em;
  display: block;
}

.hero__meta {
  font-family: var(--font-display);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  margin: .4em 0 1.8em;
}

.hero__cta {
  display: inline-block;
  font-family: var(--font-script);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .88rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
  padding: .95rem 2.4rem;
  text-decoration: none;
  transition: background .38s var(--ease), border-color .38s var(--ease);
  position: relative;
}
.hero__cta:hover {
  background: rgba(169,129,47,.18);
  border-color: var(--gold-soft);
  color: var(--gold-pale);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-script);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-cue__line {
  width: 1px;
  height: 34px;
  background: rgba(255,255,255,.2);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(169,129,47,.7);
  animation: cue-drop 1.9s ease-in-out infinite;
}
@keyframes cue-drop {
  0%   { top: -100%; }
  60%  { top: 100%; }
  100% { top: 100%; }
}

/* ============================================================
   AYAH / QURANIC VERSE
   ============================================================ */
.ayah {
  background: var(--emerald-deep);
  color: var(--paper);
  max-width: 100%;
  padding-inline: 1.5rem;
}
.ayah__frame {
  max-width: 640px;
  margin: 0 auto;
}
.glyph--star { width: 26px; margin: 0 auto 1.4rem; }

.ayah__arabic {
  font-family: var(--font-arabic);
  font-size: clamp(1.4rem, 3.4vw, 1.95rem);
  line-height: 2.1;
  color: var(--gold-pale);
  margin: 0;
}

.ayah .divider span {
  background: linear-gradient(90deg, transparent, rgba(169,129,47,.6));
}
.ayah .divider span:last-child {
  background: linear-gradient(270deg, transparent, rgba(169,129,47,.6));
}
.ayah .divider i { background: var(--emerald-deep); border-color: var(--gold-soft); }

.ayah__translation {
  font-family: var(--font-script);
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.8;
  color: var(--paper);
  opacity: .92;
  max-width: 46ch;
  margin: 0 auto;
}
.ayah__ref {
  margin-top: 1rem;
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-family: var(--font-script);
}

/* ============================================================
   THE COUPLE
   ============================================================ */
.couple { background: var(--paper); }

.couple__grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}

.couple-card {
  flex: 1 1 220px;
  max-width: 280px;
  padding: 2.4rem 1.8rem 2rem;
  text-align: center;
  border: 1px solid var(--gold-pale);
  background: var(--paper-deep);
  position: relative;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.couple-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px -18px rgba(36,50,42,.28);
}

.couple-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

.couple-card__badge {
  width: 56px;
  height: 56px;
  border: 1px solid var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: var(--paper);
}

.couple-card__role {
  font-family: var(--font-script);
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: .7rem;
  color: var(--gold);
  margin: 0 0 .3em;
}

.couple-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 500;
  color: var(--emerald-deep);
  margin: 0 0 .2em;
  letter-spacing: .02em;
}

.couple-card__relation {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: .7em 0 .15em;
}

.couple-card__parents {
  font-family: var(--font-script);
  font-size: .98rem;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 .4em;
  line-height: 1.6;
}

/* vertical separator between cards */
.couple__sep {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 0 .8rem;
  align-self: stretch;
}
.couple__sep-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-soft), transparent);
  min-height: 40px;
}
.couple__sep-icon { opacity: .7; }

@media (max-width: 600px) {
  .couple__grid { flex-direction: column; align-items: center; gap: 0; }
  .couple-card { max-width: 340px; width: 100%; }
  .couple__sep {
    flex-direction: row;
    padding: .6rem 0;
    width: min(200px, 70%);
    align-self: center;
  }
  .couple__sep-line {
    flex: 1; width: auto; height: 1px; min-height: unset;
    background: linear-gradient(to right, transparent, var(--gold-soft), transparent);
  }
}

/* ============================================================
   INVITATION MESSAGE SECTION
   ============================================================ */
.message {
  background:
    radial-gradient(ellipse at 60% 40%, rgba(169,129,47,.06) 0%, transparent 65%),
    var(--paper);
  position: relative;
  overflow: hidden;
}

.message__inner {
  max-width: 580px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 5vw, 3.5rem);
  position: relative;
  border: 1px solid var(--gold-pale);
  background: var(--paper-deep);
}

/* Glassmorphism corners */
.message__inner::before,
.message__inner::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--gold-soft);
  border-style: solid;
}
.message__inner::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}
.message__inner::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.message__text {
  font-family: var(--font-script);
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 2;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto;
  letter-spacing: .015em;
}

/* ============================================================
   MEDALLION / MONOGRAM
   ============================================================ */
.medallion-section {
  background:
    radial-gradient(ellipse at 60% 40%, rgba(235,224,196,.45) 0%, transparent 65%),
    radial-gradient(ellipse at 30% 70%, rgba(169,129,47,.08) 0%, transparent 55%),
    var(--paper);
  max-width: 100%;
  padding-inline: 1.5rem;
}

.medallion {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 3rem;
}

.medallion__rings,
.medallion__petals-svg,
.medallion__initials-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.medallion__petals {
  transform-origin: 160px 160px;
  animation: petals-turn 28s linear infinite;
}
@keyframes petals-turn { to { transform: rotate(360deg); } }

.medallion__text {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  fill: var(--gold);
  letter-spacing: .06em;
}

@media (prefers-reduced-motion: reduce) {
  .medallion__petals { animation: none; }
}

/* ============================================================
   DETAILS / COUNTDOWN
   ============================================================ */
.details { background: var(--paper); }

.event-card {
  padding: 2.6rem 1.8rem;
  border: 1px solid var(--gold-pale);
  background: var(--paper-deep);
  text-align: center;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
  position: relative;
  overflow: hidden;
}
.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -20px rgba(36,50,42,.3);
  border-color: var(--gold);
}

.event-card__icon { width: 40px; margin: 0 auto 1.2rem; }
.event-card__label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--emerald-deep);
  margin: 0 0 .5em;
  letter-spacing: .03em;
}
.event-card__time {
  font-family: var(--font-script);
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 .25em;
}
.event-card__sub {
  font-family: var(--font-script);
  font-size: .86rem;
  letter-spacing: .04em;
  color: var(--ink-soft);
  margin: .35em 0 0;
  line-height: 1.65;
}

/* Countdown */
.countdown { margin-top: 3.4rem; }
.countdown__label {
  font-family: var(--font-script);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--gold);
  margin: 0 0 1.6rem;
}
.countdown__grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(.5rem, 3vw, 1.8rem);
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  min-width: 68px;
  padding: 1.2rem .8rem;
  border: 1px solid var(--gold-pale);
  background: var(--paper-deep);
}
.countdown__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3rem);
  color: var(--emerald-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.countdown__word {
  font-family: var(--font-script);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================================================
   VENUE SECTION
   ============================================================ */
.venue {
  background:
    radial-gradient(ellipse at 40% 60%, rgba(169,129,47,.05) 0%, transparent 65%),
    var(--paper-deep);
  max-width: 100%;
  padding-inline: 1.5rem;
}

.venue__inner { max-width: var(--container); margin: 0 auto; text-align: center; }
.venue__head { max-width: var(--container); margin: 0 auto 2.5rem; }

.venue-card {
  max-width: 560px;
  margin: 0 auto 2.4rem;
  padding: 2.4rem 2rem;
  border: 1px solid var(--gold-pale);
  background: var(--paper);
  position: relative;
}
.venue-card::before,
.venue-card::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--gold);
  border-style: solid;
}
.venue-card::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}
.venue-card::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

.venue-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 500;
  color: var(--emerald-deep);
  margin: 0 0 .4em;
  letter-spacing: .02em;
}
.venue-card__address {
  font-family: var(--font-script);
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.8;
}

/* ============================================================
   VENUE MAP EMBED
   ============================================================ */
.venue-map {
  max-width: 560px;
  margin: 0 auto 2rem;
  border: 1px solid var(--gold-pale);
  overflow: hidden;
  position: relative;
}
.venue-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  filter: grayscale(20%) sepia(10%);
  transition: filter .4s ease;
}
.venue-map:hover iframe {
  filter: grayscale(0%) sepia(0%);
}

.button {
  display: inline-block;
  font-family: var(--font-script);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .9rem;
  padding: 1rem 2.2rem;
  text-decoration: none;
  transition: all .4s var(--ease);
}
.button--gold {
  color: var(--emerald-deep);
  border: 1px solid var(--gold);
  background: transparent;
}
.button--gold:hover {
  background: var(--emerald-deep);
  border-color: var(--emerald-deep);
  color: var(--paper);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  background: var(--paper);
}

.timeline__item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  padding: 2rem;
  border: 1px solid var(--gold-pale);
  background:
    linear-gradient(135deg, rgba(169,129,47,.08) 0%, transparent 60%),
    var(--paper-deep);
  position: relative;
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold-soft), transparent);
}

.timeline__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(169,129,47,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(169,129,47,.06);
}

.timeline__body {}
.timeline__event {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--emerald-deep);
  margin: 0 0 .2em;
  letter-spacing: .03em;
}
.timeline__day {
  font-family: var(--font-script);
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 .1em;
}
.timeline__date-line {
  font-family: var(--font-display);
  font-size: .88rem;
  letter-spacing: .12em;
  color: var(--gold);
  margin: 0;
  text-transform: uppercase;
}

/* ============================================================
   BLESSINGS SECTION
   ============================================================ */
.blessings {
  background:
    linear-gradient(180deg, var(--paper-mid) 0%, var(--paper-deep) 100%);
  max-width: 100%;
  padding-inline: 1.5rem;
}

.blessings__inner {
  max-width: 580px;
  margin: 0 auto;
}

.blessings__quote {
  font-family: var(--font-script);
  font-style: italic;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  line-height: 1.85;
  color: var(--ink);
  margin: 0 0 .8em;
  position: relative;
  padding: 1.5rem 2rem;
  border-left: 2px solid var(--gold-soft);
  text-align: left;
}
.blessings__quote::before {
  content: '\201C';
  position: absolute;
  top: -.2em;
  left: .6rem;
  font-family: var(--font-hero);
  font-size: 3rem;
  color: var(--gold-soft);
  opacity: .4;
  line-height: 1;
}

.blessings__ameen {
  font-family: var(--font-arabic);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--gold);
  margin: 1rem 0 0;
  letter-spacing: .04em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--emerald-deep);
  color: var(--paper);
  max-width: 100%;
  padding-inline: 1.5rem;
}
.footer__inner { max-width: 520px; margin: 0 auto; }
.footer__names {
  font-family: var(--font-hero);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  color: var(--gold-pale);
  margin: 0 0 .15em;
}
.footer .amp { color: var(--gold); }
.footer__nikkah {
  font-family: var(--font-display);
  letter-spacing: .5em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--gold-soft);
  margin: 0 0 .4em;
}
.footer__date {
  font-family: var(--font-display);
  letter-spacing: .28em;
  font-size: .78rem;
  color: var(--paper);
  opacity: .8;
  margin: 0 0 1.8rem;
  text-transform: uppercase;
}
.footer .divider span { background: linear-gradient(90deg, transparent, rgba(169,129,47,.6)); }
.footer .divider span:last-child { background: linear-gradient(270deg, transparent, rgba(169,129,47,.6)); }
.footer .divider i { background: var(--emerald-deep); border-color: var(--gold-soft); }
.footer__note {
  font-family: var(--font-script);
  font-size: 1rem;
  color: var(--paper);
  opacity: .75;
  line-height: 1.9;
  margin: 1.2rem 0 0;
}

/* ============================================================
   MUSIC BUTTON
   ============================================================ */
.mute-btn {
  position: fixed;
  bottom: 1.6rem;
  left: 1.6rem;
  z-index: 10000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(169,129,47,.35);
  background: rgba(8,6,4,.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease);
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.mute-btn:hover {
  background: rgba(8,6,4,.85);
  border-color: var(--gold-soft);
  color: var(--gold-soft);
  transform: scale(1.08);
}
.mute-btn:active { transform: scale(.94); }
.mute-btn::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(169,129,47,.3);
  animation: mute-pulse 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes mute-pulse {
  0%,100% { opacity: .65; transform: scale(1); }
  50%      { opacity: 0; transform: scale(1.22); }
}

/* ============================================================
   FOCUS STATES (accessibility)
   ============================================================ */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .gate__names         { font-size: 2.1rem; }
  .section             { padding-inline: 1.1rem; }
  .hero__name-line     { font-size: 2.8rem; }
  .hero__amp-line      { font-size: 1.9rem; }
  .countdown__unit     { min-width: 54px; padding: .9rem .6rem; }
  .countdown__num      { font-size: 1.7rem; }
  .timeline__item      { flex-direction: column; gap: 1rem; }
}

@media (max-height: 700px) {
  .hero__name-line { font-size: clamp(2.4rem, 9vw, 5rem); }
  .hero__amp-line  { font-size: clamp(1.6rem, 5vw, 3rem); }
  .hero__meta      { margin-bottom: 1rem; }
  .scroll-cue      { bottom: .8rem; }
}
