
/* ==========================================================================
   Shaheed & Shahana — Wedding Website
   Design tokens
   --------------------------------------------------------------------------
   Palette   : espresso black / antique gold / ivory / deep wine
   Display   : "Playfair Display" — carved, high-contrast serif for names
   Script    : "Parisienne" — the couple's monogram & signature accents
   Body      : "Manrope" — quiet, modern, legible at small sizes
   Signature : the gold wax-seal monogram (S & S) used as nav mark,
               section divider and hero centerpiece; thin-line hearts
               drift upward through the hero as ambient motion.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500;1,600&family=Parisienne&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg: #0c0a09;
  --bg-alt: #151210;
  --bg-panel: #1a1613;
  --bg-glass: rgba(26, 22, 19, 0.55);
  --border-glass: rgba(201, 161, 90, 0.18);

  --gold: #c9a15a;
  --gold-light: #e8cf9c;
  --gold-dim: #8a713f;
  --ivory: #f6f1e7;
  --ivory-dim: #cfc6b4;
  --wine: #6c2430;
  --wine-light: #a5495a;

  --text-primary: var(--ivory);
  --text-muted: #b3a793;
  --text-faint: #7d7263;

  /* Type */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-script: 'Parisienne', cursive;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --nav-height: 84px;

  /* Motion */
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.25s;
  --dur-med: 0.6s;
  --dur-slow: 1.1s;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

::selection { background: var(--gold); color: var(--bg); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Background texture: faint gold grain + vignette, sits behind all pages */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201, 161, 90, 0.07), transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(108, 36, 48, 0.10), transparent 55%),
    var(--bg);
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; color: var(--ivory); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.eyebrow::after { background: linear-gradient(90deg, var(--gold-dim), transparent); }

.script { font-family: var(--font-script); color: var(--gold-light); font-weight: 400; }

.section-title {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  margin-top: 0.5rem;
}
.section-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--ivory-dim);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin-top: 0.9rem;
  max-width: 46ch;
}

.section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  position: relative;
}
.section-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
  transition: background var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft), box-shadow var(--dur-fast) var(--ease-soft);
  white-space: nowrap;
}
.btn:hover {
  background: var(--gold);
  color: #1a1410;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(201, 161, 90, 0.55);
}
.btn-solid {
  background: var(--gold);
  color: #1a1410;
}
.btn-solid:hover { background: var(--gold-light); }
.btn-ghost {
  border-color: var(--border-glass);
  color: var(--text-muted);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(201, 161, 90, 0.08);
  box-shadow: none;
}
.btn svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Glassmorphism panels
   -------------------------------------------------------------------------- */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

/* --------------------------------------------------------------------------
   Monogram seal (signature element)
   -------------------------------------------------------------------------- */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--gold-light);
  position: relative;
  flex: none;
}
.seal::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201, 161, 90, 0.35);
  border-radius: 50%;
}
.seal-lg { width: 108px; height: 108px; font-size: 2.6rem; }
.seal-lg::before { inset: 10px; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--dur-fast) var(--ease-soft), border-color var(--dur-fast) var(--ease-soft), height var(--dur-fast) var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
  background: rgba(12, 10, 9, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-glass);
  height: 68px;
}
.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ivory);
}
.brand .seal { width: 38px; height: 38px; font-size: 1.05rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
}
.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--dur-fast) var(--ease-soft);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1px;
  background: var(--gold);
  transition: width var(--dur-fast) var(--ease-soft);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-light); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(12, 10, 9, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-med) var(--ease-soft);
  }
  .nav-links.is-open { max-height: 420px; }
  .nav-links a {
    width: 100%;
    padding: 1rem var(--gutter);
    border-top: 1px solid var(--border-glass);
  }
  .nav-toggle { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.9) brightness(0.62);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(12,10,9,0.55) 0%, rgba(12,10,9,0.35) 35%, rgba(12,10,9,0.85) 100%),
    radial-gradient(ellipse at center 40%, transparent 0%, rgba(12,10,9,0.65) 78%);
}

/* Floating hearts ambience */
.hearts-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hearts-field svg.heart {
  position: absolute;
  bottom: -10%;
  opacity: 0;
  color: var(--gold);
  animation-name: float-heart;
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
}
@keyframes float-heart {
  0%   { opacity: 0; transform: translateY(0) translateX(0) rotate(0deg) scale(0.7); }
  10%  { opacity: 0.55; }
  85%  { opacity: 0.35; }
  100% { opacity: 0; transform: translateY(-115vh) translateX(var(--drift, 30px)) rotate(20deg) scale(1); }
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 0 var(--gutter);
  max-width: 900px;
}
.hero-eyebrow {
  opacity: 0;
  animation: fade-up var(--dur-med) var(--ease-soft) 0.15s forwards;
}
/* .hero-names {
  font-size: clamp(2.1rem, 9vw, 6.4rem);
  line-height: 1;
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.2rem);
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up var(--dur-slow) var(--ease-soft) 0.35s forwards;
} */
 .hero-names {
  font-size: clamp(1.6rem, 6vw, 4rem);
  line-height: 1;
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.2rem);
  flex-wrap: nowrap; /* Keep names on one line */
  opacity: 0;
  animation: fade-up var(--dur-slow) var(--ease-soft) 0.35s forwards;
}
.hero-names .amp {
  font-family: var(--font-script);
  color: var(--gold);
  font-size: 0.62em;
  line-height: 1;
  transform: translateY(0.08em);
}
.hero-subtitle {
  margin: 1.6rem auto 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ivory-dim);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  max-width: 42ch;
  opacity: 0;
  animation: fade-up var(--dur-med) var(--ease-soft) 0.6s forwards;
}
.hero-date {
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: fade-up var(--dur-med) var(--ease-soft) 0.75s forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Countdown */
.countdown {
  margin: 2.6rem auto 0;
  display: flex;
  justify-content: center;
  gap: clamp(0.6rem, 2vw, 1.1rem);
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up var(--dur-med) var(--ease-soft) 0.9s forwards;
}
.countdown-unit {
  width: clamp(64px, 18vw, 92px);
  padding: 0.9rem 0.4rem 0.8rem;
  text-align: center;
}
.countdown-num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero-cta {
  margin-top: 2.6rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up var(--dur-med) var(--ease-soft) 1.05s forwards;
}

.scroll-cue {
  position: absolute;
  bottom: clamp(1.2rem, 3vw, 2.2rem);
  left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  opacity: 0.7;
}
.scroll-cue::before {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  background: var(--gold-light);
  border-radius: 50%;
  animation: scroll-cue-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-cue-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { opacity: 0.2; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll utility
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }

/* --------------------------------------------------------------------------
   Divider with seal
   -------------------------------------------------------------------------- */
.seal-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto;
}
.seal-divider .line {
  height: 1px;
  width: clamp(40px, 10vw, 120px);
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.seal-divider .line:last-child { background: linear-gradient(90deg, var(--gold-dim), transparent); }

/* --------------------------------------------------------------------------
   Preview strip (home page teaser grid)
   -------------------------------------------------------------------------- */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.preview-grid a {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}
.preview-grid a:nth-child(2), .preview-grid a:nth-child(3) { aspect-ratio: 3/4.6; margin-top: -1.2rem; }
.preview-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-soft); }
.preview-grid a:hover img { transform: scale(1.06); }
.preview-grid a::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12,10,9,0.75));
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-soft);
}
.preview-grid a:hover::after { opacity: 1; }

@media (max-width: 760px) {
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-grid a:nth-child(2), .preview-grid a:nth-child(3) { margin-top: 0; }
}

/* --------------------------------------------------------------------------
   Gallery page
   -------------------------------------------------------------------------- */
   /* ===============================
   Story Images
=================================*/

.story-photo{
    position: relative;
    width: 100%;
    margin-bottom: 22px;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255,255,255,.06);
    box-shadow: 0 15px 35px rgba(0,0,0,.18);
}

.story-photo img{
    width:100%;
    height:320px;
    display:block;
    object-fit:cover;
    transition:transform .6s ease, filter .6s ease;
}

.story-photo::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.25),
        transparent 50%
    );
    opacity:0;
    transition:.5s;
}

.story-photo:hover img{
    transform:scale(1.08);
    filter:brightness(1.05);
}

.story-photo:hover::after{
    opacity:1;
}

/* ===============================
   Gallery Toolbar
=================================*/

.gallery-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1.5rem;
    flex-wrap:wrap;
    margin-bottom:2.5rem;
    padding:18px 22px;
    border-radius:18px;
    background:rgba(255,255,255,.06);
    backdrop-filter:blur(16px);
    border:1px solid rgba(255,255,255,.12);
    box-shadow:0 10px 30px rgba(0,0,0,.12);
}

/* ===============================
   Search Box
=================================*/

.search-field{
    position:relative;
    flex:1;
    min-width:260px;
    max-width:480px;
}

.search-field svg{
    position:absolute;
    left:18px;
    top:50%;
    width:18px;
    height:18px;
    transform:translateY(-50%);
    color:rgba(255,255,255,.6);
    pointer-events:none;
}

.search-field input{
    width:100%;
    padding:15px 22px 15px 52px;
    border:none;
    outline:none;
    border-radius:50px;
    background:rgba(255,255,255,.08);
    color:#fff;
    font-size:.95rem;
    font-weight:500;
    transition:.35s ease;
    border:1px solid rgba(255,255,255,.12);
}

.search-field input::placeholder{
    color:rgba(255,255,255,.55);
}

.search-field input:focus{
    background:rgba(255,255,255,.12);
    border-color:#d4af37;
    box-shadow:0 0 0 4px rgba(212,175,55,.18);
}

/* ===============================
   Gallery Count
=================================*/

.gallery-count{
    padding:12px 22px;
    border-radius:40px;
    background:linear-gradient(135deg,#d4af37,#f7d774);
    color:#111;
    font-weight:700;
    letter-spacing:.4px;
    box-shadow:0 8px 18px rgba(212,175,55,.25);
}
.search-field input::placeholder { color: var(--text-faint); }
.search-field input:focus { outline: none; border-color: var(--gold); }
.search-field svg {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-faint);
}
.gallery-count { font-size: 0.8rem; color: var(--text-faint); letter-spacing: 0.06em; }

.masonry {
  columns: 4 240px;
  column-gap: 1rem;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-glass);
  cursor: zoom-in;
  background: var(--bg-panel);
}
.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s var(--ease-soft), filter 0.5s var(--ease-soft);
  opacity: 0;
}
.masonry-item img.is-loaded { opacity: 1; }
.masonry-item:hover img { transform: scale(1.045); }
.masonry-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem 0.9rem 0.7rem;
  background: linear-gradient(180deg, transparent, rgba(12,10,9,0.88));
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--ivory-dim);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft);
}
.masonry-item:hover .cap { opacity: 1; transform: translateY(0); }

.media-skeleton {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(100deg, var(--bg-panel) 30%, #241d17 50%, var(--bg-panel) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.state-msg {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-muted);
}
.state-msg .seal { margin: 0 auto 1.2rem; }
.state-msg h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--ivory); }
.state-msg p { max-width: 44ch; margin: 0 auto; font-size: 0.92rem; color: var(--text-muted); }
.state-msg code {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.2rem 0.55rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--gold-light);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 5, 4, 0.94);
  backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; }
.lightbox-stage {
  position: relative;
  width: min(92vw, 1100px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  opacity: 0;
  transform: scale(0.97);
  animation: lb-in var(--dur-fast) var(--ease-soft) forwards;
}
@keyframes lb-in { to { opacity: 1; transform: scale(1); } }
.lightbox-caption {
  position: absolute;
  bottom: -2.4rem;
  left: 0; right: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: rgba(21, 18, 16, 0.65);
  color: var(--ivory);
  transition: background var(--dur-fast) var(--ease-soft), border-color var(--dur-fast) var(--ease-soft);
}
.lightbox-close:hover, .lightbox-nav:hover { border-color: var(--gold); background: rgba(201,161,90,0.14); }
.lightbox-close { top: clamp(0.8rem, 2vw, 1.8rem); right: clamp(0.8rem, 2vw, 1.8rem); }
.lightbox-nav svg, .lightbox-close svg { width: 20px; height: 20px; }
.lightbox-prev { left: clamp(0.4rem, 2vw, 1.4rem); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(0.4rem, 2vw, 1.4rem); top: 50%; transform: translateY(-50%); }

@media (max-width: 760px) {
  .masonry { columns: 2 160px; }
}

/* --------------------------------------------------------------------------
   Videos page
   -------------------------------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.6rem;
}
.video-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: var(--bg-panel);
  transition: transform var(--dur-fast) var(--ease-soft), border-color var(--dur-fast) var(--ease-soft);
}
.video-card:hover { transform: translateY(-4px); border-color: var(--gold-dim); }
.video-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  cursor: pointer;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.video-thumb .play-btn span {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(12,10,9,0.55);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft);
}
.video-thumb .play-btn svg { width: 20px; height: 20px; color: var(--gold-light); margin-left: 3px; }
.video-card:hover .play-btn span { background: var(--gold); transform: scale(1.08); }
.video-card:hover .play-btn svg { color: #1a1410; }
.video-meta { padding: 1rem 1.2rem 1.3rem; }
.video-meta h4 { font-size: 1rem; font-weight: 600; color: var(--ivory); }
.video-meta p { margin: 0.3rem 0 0; font-size: 0.8rem; color: var(--text-faint); }

.video-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(6,5,4,0.94);
  backdrop-filter: blur(6px);
  padding: var(--gutter);
}
.video-modal.is-open { display: flex; }
.video-modal-stage {
  position: relative;
  width: min(94vw, 1000px);
}
.video-modal-stage video {
  width: 100%;
  max-height: 82vh;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: #000;
}
.video-modal-close {
  position: absolute; top: -52px; right: 0;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: rgba(21,18,16,0.65);
  display: flex; align-items: center; justify-content: center;
  color: var(--ivory);
}
.video-modal-close svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Our Story — timeline
   -------------------------------------------------------------------------- */
.timeline { position: relative; max-width: 880px; margin: 0 auto; }
.timeline::before {
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-dim) 8%, var(--gold-dim) 92%, transparent);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  margin-bottom: clamp(2.4rem, 6vw, 4rem);
}
.timeline-item .tl-card { padding: 1.8rem; }
.timeline-item .tl-card h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.timeline-item .tl-date {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.timeline-item .tl-card p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }
.timeline-item .tl-node {
  grid-column: 2;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(201,161,90,0.14), 0 0 0 1px var(--bg);
  justify-self: center;
  position: relative;
  z-index: 2;
}
.timeline-item:nth-child(odd) .tl-card { grid-column: 1; text-align: right; }
.timeline-item:nth-child(even) .tl-card { grid-column: 3; text-align: left; }
.timeline-item:nth-child(odd) .tl-slot-empty { grid-column: 3; }
.timeline-item:nth-child(even) .tl-slot-empty { grid-column: 1; }

@media (max-width: 720px) {
  .timeline::before { left: 22px; }
  .timeline-item { grid-template-columns: 44px 1fr; }
  .timeline-item .tl-node { grid-column: 1; justify-self: start; margin-left: 16px; }
  .timeline-item:nth-child(odd) .tl-card,
  .timeline-item:nth-child(even) .tl-card { grid-column: 2; text-align: left; }
  .timeline-item .tl-slot-empty { display: none; }
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.contact-card { padding: clamp(1.6rem, 3vw, 2.6rem); }
.info-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-top: 1px solid var(--border-glass);
}
.info-row:first-child { border-top: none; padding-top: 0; }
.info-row .icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.info-row .icon svg { width: 18px; height: 18px; }
.info-row h4 { font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--ivory); }
.info-row p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  aspect-ratio: 4/3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) invert(0.92) contrast(0.9); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-glass);
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 2rem;
  margin-top: clamp(3rem, 8vw, 5rem);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}
.footer-social {
  display: flex;
  gap: 0.8rem;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: border-color var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold-light); }
.footer-social svg { width: 17px; height: 17px; }
.footer-fine { font-size: 0.78rem; color: var(--text-faint); letter-spacing: 0.03em; }
.footer-fine .made-with { color: var(--wine-light); }

/* --------------------------------------------------------------------------
   Page sub-hero (for interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: calc(var(--nav-height) + 3.5rem) 0 3rem;
  text-align: center;
}

/* Utility */
.text-center { text-align: center; }
.mt-lg { margin-top: clamp(2rem, 5vw, 3.5rem); }


.countdown-wrapper {
  margin: 1.5rem auto;
  max-width: 650px;
}

.nikah-live-banner {
  padding: 1.8rem 1.5rem;
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.live-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.live-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  letter-spacing: 0.5px;
}

.live-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Card wrapper & frame */
.invitation-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.invitation-frame {
  padding: 3rem 2.2rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
}

.bismillah-ar {
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
  color: #dfba73;
  margin-bottom: 0.5rem;
}

.invite-lead {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 1rem;
  opacity: 0.9;
}

/* Couple Title */
.couple-names-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.person-title {
  font-family: var(--font-heading, serif);
  font-size: 2.3rem;
  margin: 0;
  letter-spacing: 0.5px;
}

.heart-amp {
  font-family: 'Amiri', serif;
  font-size: 1.6rem;
  color: #dfba73;
}

.ornament-divider {
  text-align: center;
  color: #dfba73;
  opacity: 0.6;
  margin: 1.4rem 0;
  font-size: 0.85rem;
}

/* Symmetrical Family Grid */
.family-symmetrical-grid {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 2rem;
  margin: 1rem 0;
}

.family-side-card {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.family-center-separator {
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.family-role-badge {
  display: inline-block;
  align-self: center;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #dfba73;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.family-person-heading {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.grand-note {
  font-size: 0.78rem;
  opacity: 0.75;
  margin-bottom: 0.8rem;
  font-style: italic;
  min-height: 2.2em; /* Keeps alignment clean */
}

.relation-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-bottom: 0.15rem;
}

.parents-names {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.address-text {
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: 0.7rem;
}

.host-phone {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: #dfba73;
  text-decoration: none;
  font-weight: 500;
}

/* Event Highlights */
.event-details-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0;
  margin: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.detail-icon {
  color: #dfba73;
}

.detail-primary {
  font-size: 0.95rem;
  font-weight: 600;
}

.detail-secondary {
  font-size: 0.85rem;
  opacity: 0.8;
}

.col-separator {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
}

.card-actions {
  margin: 1.4rem 0 1rem;
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}

.compliments-text {
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.85;
  margin: 0.4rem 0 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .family-symmetrical-grid {
    flex-direction: column;
    gap: 1.8rem;
  }
  .family-center-separator {
    width: 60%;
    height: 1px;
    margin: 0 auto;
  }
  .event-details-row {
    flex-direction: column;
    gap: 1.2rem;
  }
  .col-separator {
    display: none;
  }
  .person-title {
    font-size: 1.9rem;
  }
}

/* ===================== Event Timeline Styling ===================== */
#schedule {
  position: relative;
  padding: 5rem 1rem;
}

.timeline-wrapper {
  max-width: 720px;
  margin: 3rem auto 0;
  position: relative;
}

/* Vertical glowing progress line */
.timeline-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 38px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(223, 186, 115, 0.2),
    rgba(223, 186, 115, 0.8) 25%,
    rgba(223, 186, 115, 0.8) 75%,
    rgba(223, 186, 115, 0.2)
  );
  z-index: 0;
}

/* Timeline item card */
.timeline-step {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.35rem 1.8rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-step:hover {
  transform: translateY(-3px);
  border-color: rgba(223, 186, 115, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

/* Highlight card for the main Nikah ceremony */
.highlight-step {
  border: 1.5px solid rgba(223, 186, 115, 0.6);
  background: rgba(223, 186, 115, 0.08);
  box-shadow: 0 12px 35px rgba(223, 186, 115, 0.15);
}

/* Time indicator badge */
.step-time {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 95px;
  padding: 0.5rem 0.9rem;
  border-radius: 12px;
  background: rgba(223, 186, 115, 0.15);
  border: 1px solid rgba(223, 186, 115, 0.35);
  color: #dfba73;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.highlight-step .step-time {
  background: #dfba73;
  color: #121212;
  box-shadow: 0 0 14px rgba(223, 186, 115, 0.5);
}

/* Details text */
.step-details {
  flex: 1;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.step-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

/* ===================== Mobile Responsiveness ===================== */
@media (max-width: 640px) {
  .timeline-track::before {
    left: 20px;
    top: 1rem;
    bottom: 1rem;
  }

  .timeline-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.2rem 1.4rem;
    margin-left: 2.5rem;
  }

  .step-time {
    min-width: auto;
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
  }

  .step-title {
    font-size: 1.15rem;
  }

  .step-desc {
    font-size: 0.88rem;
  }
}

