/* ============================================================
   Abdullah & Alina Wedding Website
   Designed with love
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Montserrat:wght@200;300;400&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES — Nikkah Theme (default)
   ============================================================ */
:root {
  --bg:            #FAF6EF;
  --bg-alt:        #F2EAE0;
  --card:          #FFFCF8;
  --primary:       #6B0F1A;
  --primary-soft:  #8B1F2F;
  --accent:        #B8895A;
  --text:          #2C1810;
  --text-muted:    #8A7060;
  --border:        rgba(107, 15, 26, 0.14);
  --border-strong: rgba(107, 15, 26, 0.32);
  --botanical-color: #6B0F1A;
  --toggle-bg:     rgba(250, 246, 239, 0.95);
}

/* ============================================================
   Walima Theme Override
   ============================================================ */
body.walima-theme {
  --bg:            #FFFFFF;
  --bg-alt:        #F8F7F4;
  --card:          #FAFAFA;
  --primary:       #1C1C1C;
  --primary-soft:  #333333;
  --accent:        #C9A96E;
  --text:          #2D2D2D;
  --text-muted:    #6B6B6B;
  --border:        rgba(28, 28, 28, 0.10);
  --border-strong: rgba(28, 28, 28, 0.25);
  --botanical-color: #C9A96E;
  --toggle-bg:     rgba(255, 255, 255, 0.96);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
  transition:
    background-color 1.4s ease,
    color 1.4s ease;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.font-display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  color: var(--primary);
  transition: color 1.4s ease;
}

.font-arabic {
  font-family: 'Amiri', serif;
  direction: rtl;
}

/* ============================================================
   THEME TOGGLE (fixed, top-right)
   ============================================================ */
.theme-toggle {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 200;
  display: flex;
  background: var(--toggle-bg);
  border: 1px solid var(--border-strong);
  border-radius: 40px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: border-color 1.4s ease, background 1.4s ease;
}

.theme-toggle button {
  padding: 9px 22px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: background 0.35s ease, color 0.35s ease;
}

.theme-toggle button.active {
  background: var(--primary);
  color: #fff;
  border-radius: 40px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem 1.2rem;
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  transition: background-color 1.4s ease;
}

/* Botanical side ornaments */
.botanical-wrap {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.72;
  pointer-events: none;
  transition: color 1.4s ease, opacity 1.4s ease;
}

.botanical-wrap.left  { left:  clamp(0px, 3vw, 48px); color: var(--botanical-color); }
.botanical-wrap.right { right: clamp(0px, 3vw, 48px); color: var(--botanical-color); transform: translateY(-50%) scaleX(-1); }

body.walima-theme .botanical-wrap { opacity: 0.45; }

/* Bismillah */
.bismillah {
  font-family: 'Amiri', serif;
  font-size: 1.35rem;
  direction: rtl;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 1.2rem;
  transition: color 1.4s ease;
}

/* Nikkah hero — typographic */
.nikkah-hero-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(900px, 90vw);
  max-width: 100%;
  margin: 0 auto 1.6rem;
  text-align: center;
}

.couple-names-nikkah {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  letter-spacing: 0.05em;
  color: var(--primary);
  line-height: 1.05;
  white-space: nowrap;
  margin: 0.5rem 0 0.3rem;
  transition: color 1.4s ease;
}

.nikkah-name-rule {
  width: clamp(140px, 38vw, 260px);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  opacity: 0.45;
  margin: 0.6rem auto 1.5rem;
}

.nikkah-flourish {
  color: var(--primary);
  opacity: 0.55;
  margin: 0.4rem 0 0.9rem;
}

.nikkah-ceremony-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--primary);
  margin-top: 1rem;
  margin-bottom: 0.55rem;
  transition: color 1.4s ease;
}

.nikkah-hero-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0 0 0.35rem;
  transition: color 1.4s ease;
}

.nikkah-hero-date sup {
  font-size: 0.58em;
  vertical-align: super;
}

.nikkah-greeting {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 420px;
  margin: 0 auto 0;
  transition: color 1.4s ease;
}

/* Walima hero — typographic */
.walima-hero-text {
  display: none;
  flex-direction: column;
  align-items: center;
  max-width: 560px;
  margin: 0 auto 1.8rem;
}

body.walima-theme .walima-hero-text { display: flex; }

.arabic-verse {
  font-family: 'Amiri', serif;
  font-size: clamp(2rem, 6vw, 3.4rem);
  direction: rtl;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 0.55rem;
  transition: color 1.4s ease;
}

.verse-translation {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 1.4s ease;
}

.verse-ref {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.2rem;
  margin-bottom: 1.6rem;
  transition: color 1.4s ease;
}

.couple-names-walima {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.8rem, 9vw, 5rem);
  letter-spacing: 0.04em;
  color: var(--primary);
  line-height: 1.1;
  margin: 0.4rem 0;
  transition: color 1.4s ease;
}

.monogram-badge {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 2.2rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0.6rem auto;
  transition: color 1.4s ease;
}

.monogram-badge .mono-sep {
  width: 1px;
  height: 2.4rem;
  background: var(--accent);
  margin: 0 0.55rem;
  display: block;
  transition: background 1.4s ease;
}

/* Hero event label */
.hero-event-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 0.3rem;
  transition: color 1.4s ease;
}

/* Hero date */
.hero-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.06em;
  margin: 0 0 1.1rem;
  transition: color 1.4s ease;
}

.hero-date sup {
  font-size: 0.58em;
  vertical-align: super;
}

/* ============================================================
   FLOURISH DIVIDER
   ============================================================ */
.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-strong);
  width: 100%;
  max-width: 320px;
  margin: 1.4rem auto;
  transition: color 1.4s ease;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown-wrap {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.countdown {
  display: inline-flex;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: flex-start;
}

.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.cd-item:not(:last-child)::after {
  content: ':';
  position: absolute;
  right: calc(-0.5 * clamp(1.5rem, 5vw, 3.5rem) - 0.1em);
  top: 0.1em;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  color: var(--border-strong);
  line-height: 1;
  transition: color 1.4s ease;
}

.cd-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 6.5vw, 4rem);
  font-weight: 400;
  color: var(--primary);
  line-height: 1;
  transition: color 1.4s ease;
}

.cd-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.4rem;
  transition: color 1.4s ease;
}

/* Legacy single-line message (fallback) */
.countdown-message {
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ---- Celebration card ---- */
@keyframes celebrationBloom {
  from { opacity: 0; transform: scale(0.94) translateY(14px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

@keyframes arabicPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

.countdown-celebration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  animation: celebrationBloom 1.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.celebration-arabic {
  font-family: 'Amiri', serif;
  font-size: clamp(2rem, 7vw, 3.6rem);
  direction: rtl;
  color: var(--primary);
  line-height: 1.3;
  animation: arabicPulse 3.5s ease-in-out infinite;
  animation-delay: 1.4s;
  transition: color 1.4s ease;
}

.celebration-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--text);
  transition: color 1.4s ease;
}

.celebration-rule {
  width: clamp(80px, 20vw, 140px);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  margin: 0.55rem auto;
  transition: background 1.4s ease;
}

.celebration-dua {
  font-family: 'Amiri', serif;
  font-size: clamp(0.95rem, 2.5vw, 1.3rem);
  direction: rtl;
  color: var(--accent);
  line-height: 1.6;
  transition: color 1.4s ease;
}

.celebration-dua-trans {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(0.78rem, 1.8vw, 0.9rem);
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: color 1.4s ease;
}

/* ============================================================
   SECTION BASE
   ============================================================ */
.section {
  padding: 5rem 2rem;
  background: var(--bg);
  transition: background 1.4s ease;
}

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

.container {
  max-width: 1060px;
  margin: 0 auto;
  width: 100%;
}

.container.narrow { max-width: 720px; }

.section-header {
  text-align: center;
  margin-bottom: 3.2rem;
}

.section-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: block;
  transition: color 1.4s ease;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--primary);
  line-height: 1.15;
  transition: color 1.4s ease;
}

/* ============================================================
   VENUE CARDS — NIKKAH (2-column grid)
   ============================================================ */
.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
}

.venue-card {
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: background 1.4s ease, border-color 1.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.venue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(0,0,0,0.08);
}

.venue-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.venue-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.venue-card:hover .venue-card__image img { transform: scale(1.04); }

.venue-card__body {
  padding: 1.8rem 2rem 2.2rem;
}

.venue-card__tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
  transition: color 1.4s ease;
}

.venue-card__name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
  line-height: 1.2;
  transition: color 1.4s ease;
}

.venue-card__subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: -0.2rem 0 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 1.4s ease;
}

.venue-card__address {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  line-height: 1.6;
  transition: color 1.4s ease;
}

.venue-card__time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  margin: 0.6rem 0;
  transition: color 1.4s ease;
}

.venue-card__note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.4rem;
  transition: color 1.4s ease;
}

.btn-directions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--border-strong);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 1.4s ease;
}

.btn-directions:hover {
  background: var(--primary);
  color: #fff;
}

/* ============================================================
   WALIMA VENUE — full-width estate
   ============================================================ */
.walima-venue-hero {
  position: relative;
  width: 100%;
  max-height: 520px;
  overflow: hidden;
}

.walima-venue-hero img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.walima-venue-hero:hover img { transform: scale(1.02); }

.walima-venue-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.12) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.8rem 3rem;
  color: #fff;
}

.walima-venue-overlay h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #fff;
  line-height: 1.1;
}

.walima-venue-overlay p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-top: 0.4rem;
}

.walima-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  transition: border-color 1.4s ease;
}

.walima-detail-block {
  padding: 2.2rem 2rem;
  border-right: 1px solid var(--border);
  transition: border-color 1.4s ease;
  text-align: center;
}

.walima-detail-block:last-child { border-right: none; }

.walima-detail-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
  transition: color 1.4s ease;
}

.walima-detail-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  transition: color 1.4s ease;
}

.walima-detail-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  line-height: 1.5;
  transition: color 1.4s ease;
}

/* ============================================================
   SCHEDULE / TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--border);
  transition: background 1.4s ease;
}

.tl-item {
  display: flex;
  gap: 1.8rem;
  margin-bottom: 2.4rem;
  align-items: flex-start;
  position: relative;
}

.tl-item:last-child { margin-bottom: 0; }

.tl-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--primary);
  min-width: 4.6rem;
  text-align: right;
  padding-top: 0.15rem;
  transition: color 1.4s ease;
}

.tl-dot {
  position: relative;
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--card);
  border: 1.5px solid var(--primary);
  margin-top: 0.35rem;
  z-index: 1;
  transition: background 1.4s ease, border-color 1.4s ease;
}

.tl-content h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.15rem;
  line-height: 1.2;
  transition: color 1.4s ease;
}

.tl-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: color 1.4s ease;
}

/* ============================================================
   LIVESTREAM SECTION
   ============================================================ */
.stream-section { background: var(--bg); transition: background 1.4s ease; }

.stream-gate {
  border: 1px solid var(--border);
  padding: 3.4rem 2rem;
  text-align: center;
  background: var(--card);
  max-width: 480px;
  margin: 0 auto;
  transition: background 1.4s ease, border-color 1.4s ease;
}

.stream-lock {
  color: var(--border-strong);
  margin: 0 auto 1.5rem;
  transition: color 1.4s ease;
}

.stream-gate__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 0.4rem;
  transition: color 1.4s ease;
}

.stream-gate__sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  transition: color 1.4s ease;
}

.stream-gate__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  max-width: 300px;
  margin: 0 auto;
}

.stream-gate__input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  text-align: center;
  letter-spacing: 0.12em;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s ease, background 1.4s ease, color 1.4s ease;
}

.stream-gate__input:focus { border-color: var(--primary); }

.stream-gate__btn {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: opacity 0.3s ease, background 1.4s ease;
}

.stream-gate__btn:hover { opacity: 0.88; }

.stream-gate__error {
  font-size: 0.78rem;
  color: #c0392b;
  margin-top: 0.5rem;
  display: none;
}

.stream-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1.2rem;
  transition: color 1.4s ease;
}

.stream-player { max-width: 760px; margin: 0 auto; }

.stream-player-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}

.stream-player-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.stream-offline {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  color: #fff;
  text-align: center;
  padding: 2rem;
}

.stream-offline h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: #fff;
  margin-bottom: 0.5rem;
}

.stream-offline p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ============================================================
   ORDER OF THE DAY — "to be confirmed" blur overlay
   ============================================================ */
.tbc-wrap {
  position: relative;
}

.tbc-blur {
  filter: blur(5px);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.tbc-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.tbc-badge span {
  background: var(--card);
  border: 1px solid var(--border-strong);
  padding: 0.9rem 1.8rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--primary);
  box-shadow: 0 6px 28px rgba(0,0,0,0.10);
  transition: background 1.4s ease, border-color 1.4s ease, color 1.4s ease;
}

/* ============================================================
   WATCH LIVE — direct link under countdown
   ============================================================ */
.watch-live-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem auto 0;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease, border-color 1.4s ease;
}

.watch-live-link svg { color: #c0392b; }

.watch-live-link:hover {
  background: var(--primary);
  color: #fff;
}

/* ============================================================
   LIVESTREAM CTA (index page — links out to livestream.html)
   ============================================================ */
.stream-cta {
  border: 1px solid var(--border);
  padding: 3.4rem 2rem;
  text-align: center;
  background: var(--card);
  max-width: 480px;
  margin: 0 auto;
  transition: background 1.4s ease, border-color 1.4s ease;
}

.stream-cta__btn {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.85rem 2rem;
  background: var(--primary);
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: opacity 0.3s ease, background 1.4s ease;
}

.stream-cta__btn:hover { opacity: 0.88; }

/* ============================================================
   LIVESTREAM PAGE — dedicated static page
   ============================================================ */
.livestream-page-header {
  text-align: center;
  padding: 3.5rem 1.5rem 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.back-link:hover { color: var(--primary); }

.livestream-page-header .couple-names-nikkah {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 3rem;
  text-align: center;
  transition: background 1.4s ease, border-color 1.4s ease;
}

.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.9rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
  transition: color 1.4s ease;
}

.footer-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  transition: color 1.4s ease;
}

.footer-dua {
  font-family: 'Amiri', serif;
  font-size: 1.3rem;
  direction: rtl;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  transition: color 1.4s ease;
}

.footer-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  transition: color 1.4s ease;
}

/* ============================================================
   SHOW / HIDE BY THEME
   ============================================================ */
.nikkah-only { display: block; }
.walima-only  { display: none;  }

body.walima-theme .nikkah-only { display: none;  }
body.walima-theme .walima-only { display: block; }

/* flex-based overrides */
.walima-only.flex-row { display: none; }
body.walima-theme .walima-only.flex-row { display: flex; }

/* ============================================================
   ENTRANCE ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-fade-up { animation: fadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) both; }

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.35s; }
.delay-3 { animation-delay: 0.55s; }
.delay-4 { animation-delay: 0.75s; }
.delay-5 { animation-delay: 0.95s; }
.delay-6 { animation-delay: 1.15s; }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  .botanical-wrap { display: none; }

  .venue-grid {
    grid-template-columns: 1fr;
  }

  .walima-details-grid {
    grid-template-columns: 1fr;
  }

  .walima-detail-block {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .walima-detail-block:last-child { border-bottom: none; }

  .timeline::before { left: 4.8rem; }

  .countdown { gap: 1.4rem; }

  .cd-item:not(:last-child)::after {
    right: calc(-0.5 * 1.4rem - 0.1em);
  }

  .walima-venue-overlay { padding: 1.6rem; }
  .walima-venue-overlay h2 { font-size: 1.8rem; }

  .theme-toggle button { padding: 8px 15px; font-size: 0.95rem; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .hero { padding: 5rem 1.4rem 2.4rem; }

  .bismillah { font-size: 1.15rem; }

  .arabic-verse { font-size: 1.9rem; }

  .cd-num { font-size: 2.2rem; }
  .countdown { gap: 1rem; }

  .cd-item:not(:last-child)::after {
    right: calc(-0.5 * 1rem - 0.1em);
    font-size: 2rem;
  }

  .tl-time { min-width: 3.8rem; font-size: 0.95rem; }
  .timeline::before { left: 4.2rem; }

  .section { padding: 3.8rem 1.4rem; }

  .venue-card__body { padding: 1.4rem 1.4rem 1.8rem; }

  .walima-venue-hero img { height: 340px; }

  footer { padding: 3rem 1.4rem 2rem; }
}
