/* ============================================
   WEDDING WEBSITE — Fahad & Aneeqa
   Color Palette:
   Gold:    #C4A46B
   Cream:   #FAF7F2
   Tan bg:  #C8A96E
   Dark:    #3D2B1F
   Medium:  #8B7355
   ============================================ */

/* ============================================
   INTRO SPLASH SCREEN
   ============================================ */

/* Full-screen fixed container */
#intro-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
  background: #1a1008; /* fallback while image loads */
  -webkit-tap-highlight-color: transparent;
}

/* Each half is 50% of viewport height, clips its image */
.splash-top,
.splash-bottom {
  width: 100%;
  height: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

/* The image spans the full viewport in both halves —
   top half clips the top 50vh, bottom half clips the bottom 50vh */
.splash-top .splash-img,
.splash-bottom .splash-img {
  position: absolute;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
  user-select: none;
}

.splash-top .splash-img  { top: 0; }
.splash-bottom .splash-img { bottom: 0; }

/* Animate each panel on open */
.splash-top,
.splash-bottom {
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

/* "Tap to open" hint */
.splash-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  pointer-events: none;
  animation: hintPulse 2.2s ease-in-out infinite;
}

.splash-hint-text {
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  white-space: nowrap;
}

.splash-hint-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
}

@keyframes hintPulse {
  0%, 100% { opacity: 1;    transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.4; transform: translateX(-50%) translateY(7px); }
}

/* Opening: top slides up, bottom slides down */
#intro-splash.opening .splash-top {
  transform: translateY(-100%);
}

#intro-splash.opening .splash-bottom {
  transform: translateY(100%);
}

/* Remove from layout once fully open */
#intro-splash.gone {
  display: none;
}

/* Nav — hidden while splash active, fades in on open */
#main-nav {
  transition: opacity 0.6s ease 0.3s;
}

#main-nav.nav-ready {
  opacity: 1 !important;
  pointer-events: auto !important;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Raleway', sans-serif;
  background: #FAF7F2;
  color: #3D2B1F;
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.section-script {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: #C4A46B;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.section-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #8B7355;
  margin-bottom: 0.75rem;
}

.section-label.light {
  color: rgba(255,255,255,0.85);
}

.section-script.light {
  color: #fff;
}

/* ============================================
   DIVIDERS
   ============================================ */

.divider-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  margin: 1rem 0 2.5rem;
}

.divider-line span:first-child,
.divider-line span:last-child {
  display: block;
  width: 80px;
  height: 1px;
  background: #C4A46B;
  opacity: 0.6;
}

.diamond-sm {
  color: #C4A46B;
  font-size: 0.55rem;
  display: block;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin: 1.25rem 0;
}

.hero-divider span:first-child,
.hero-divider span:last-child {
  display: block;
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.6);
}

.hero-divider .diamond {
  color: rgba(255,255,255,0.8);
  font-size: 0.6rem;
}

/* ============================================
   NAV
   ============================================ */

#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#main-nav.scrolled {
  background: rgba(250, 247, 242, 0.97);
  box-shadow: 0 2px 20px rgba(61,43,31,0.08);
}

.nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-inner a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  padding: 0.2rem 0.6rem;
  transition: color 0.3s;
}

#main-nav.scrolled .nav-inner a {
  color: #3D2B1F;
}

.nav-inner a:hover {
  color: #C4A46B;
}

#main-nav.scrolled .nav-inner a:hover {
  color: #C4A46B;
}

.nav-divider {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}

#main-nav.scrolled .nav-divider {
  color: #C4A46B;
}

/* ============================================
   HERO
   ============================================ */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 6rem 2rem 5rem;
  background: #1a1008;
}

#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(20, 13, 5, 0.30) 0%,
    rgba(20, 13, 5, 0.52) 50%,
    rgba(20, 13, 5, 0.42) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.hero-together {
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}

.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 0.2rem;
}

.groom-name,
.bride-name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3.5rem, 9vw, 7rem);
  color: #fff;
  display: block;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-ampersand {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #C4A46B;
  display: block;
  line-height: 1.4;
}

.hero-invite {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 1.5rem;
}

.hero-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #fff;
  margin-bottom: 0.4rem;
}

.hero-location {
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.scroll-hint span {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ============================================
   COUNTDOWN + WELCOME
   ============================================ */

#countdown-welcome {
  position: relative;
  background: #C8A96E;
  padding: 4rem 2rem 3rem;
  text-align: center;
  overflow: hidden;
}

/* Real cupid image — bottom-right */
.cupid-float {
  position: absolute;
  bottom: -10px;
  right: 2%;
  width: clamp(120px, 16vw, 210px);
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* ---- Countdown block ---- */
.countdown-block {
  margin-bottom: 3.5rem;
}

.countdown-script {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 7vw, 5rem);
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.12);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.countdown-until {
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
}

.countdown-timer {
  display: inline-flex;
  align-items: flex-start;
  gap: 0;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.cd-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 300;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.02em;
  display: block;
}

.cd-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 0.4rem;
}

.cd-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  line-height: 1;
  padding: 0 0.2rem;
  align-self: flex-start;
  user-select: none;
}

/* ---- Welcome block ---- */
.welcome-block {
  max-width: 580px;
  margin: 0 auto;
  padding-right: clamp(0px, 16vw, 200px); /* room for cupid */
}

.welcome-script {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.welcome-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: rgba(255,255,255,0.92);
  line-height: 1.9;
}

/* ============================================
   FLORAL VASE DIVIDER
   ============================================ */

#floral-divider {
  background: #FAF7F2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

.floral-vase-img {
  width: clamp(80px, 12vw, 160px);
  height: auto;
  display: block;
  opacity: 0.9;
}

/* ============================================
   PHOTO STRIP
   ============================================ */

.photo-strip {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.photo-strip .strip-item {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.photo-strip .strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.photo-strip .strip-item:hover img {
  transform: scale(1.04);
}

/* ============================================
   WELCOME (standalone section — gold Our Story style)
   ============================================ */

#welcome {
  background: #C8A96E;
  padding: 5.5rem 2rem 5.5rem;
  text-align: center;
  position: relative;
}

.welcome-standalone {
  max-width: 640px;
  margin: 0 auto;
}

/* Override welcome text colours to white on gold */
#welcome .welcome-script {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.12);
}

#welcome .welcome-text {
  color: rgba(255, 255, 255, 0.92);
}

/* ============================================
   BOW DIVIDER
   ============================================ */

#bow-divider {
  background-color: #f2ebe0;
  background-image: url('https://premiumelegante.thedigitalyes.com/assets/white-textured-paper-KasY8RAJ.png');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
}

.bow-img {
  width: clamp(80px, 12vw, 155px);
  height: auto;
  display: block;
  opacity: 0.9;
}

.section-inner {
  max-width: 750px;
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 620px;
}

/* ============================================
   DAY PROGRAMME
   ============================================ */

#program {
  background-color: #f2ebe0;
  background-image: url('https://premiumelegante.thedigitalyes.com/assets/white-textured-paper-KasY8RAJ.png');
  background-size: cover;
  background-position: center;
  padding: 5rem 2rem 6rem;
  text-align: center;
}

.dp-inner {
  max-width: 700px;
  margin: 0 auto;
}

.dp-script {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: #C4A46B;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.dp-date {
  font-family: 'Raleway', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #C4A46B;
  opacity: 0.75;
  margin-bottom: 3.5rem;
}

/* Timeline container with center line */
.dp-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Vertical center line */
.dp-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(196,164,107,0.4);
  transform: translateX(-50%);
  z-index: 0;
}

/* Each event row */
.dp-event {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  min-height: 90px;
  position: relative;
}

/* The dot on the center line */
.dp-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid #C4A46B;
  background: #f2ebe0;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.dp-spacer {
  /* empty cell on the opposite side */
}

/* Event content */
.dp-content {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.5rem;
}

.dp-right .dp-content {
  text-align: left;
  align-items: flex-start;
}

.dp-left .dp-content {
  text-align: right;
  align-items: flex-end;
}

.dp-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  color: #C4A46B;
  line-height: 1;
  display: block;
}

.dp-name {
  font-family: 'Raleway', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C4A46B;
  opacity: 0.75;
  margin-top: 0.3rem;
  display: block;
}

/* ============================================
   THE VENUE
   ============================================ */

#venue {
  background: #C8A96E;
}

.venue-hero {
  position: relative;
  background: #C8A96E;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 2rem;
  overflow: hidden;
  min-height: 180px;
}

.venue-hero-content {
  position: relative;
  z-index: 2;
}

.cupid-venue {
  position: absolute;
  bottom: -15px;
  right: 3%;
  width: clamp(140px, 20vw, 260px);
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* Venue card wrapper */
.vc-wrap {
  display: flex;
  justify-content: center;
  padding: 3rem 2rem 5rem;
  background: #C8A96E;
}

/* White rounded card */
.vc-card {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: 0 12px 50px rgba(61,43,31,0.18);
  text-align: center;
  padding-bottom: 1.5rem;
}

.vc-image {
  padding: 2rem 2rem 0.5rem;
  background: #fff;
}

.vc-image img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.vc-name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: #C4A46B;
  padding: 0.75rem 1.5rem 0.5rem;
  line-height: 1.2;
}

.vc-divider {
  width: 70%;
  height: 1px;
  background: rgba(196,164,107,0.35);
  margin: 0.5rem auto 1rem;
}

.vc-datetime {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0 1.5rem;
}

.vc-date,
.vc-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-style: italic;
  color: #C4A46B;
}

.vc-dot-sep {
  color: #C4A46B;
  opacity: 0.5;
}

.vc-address-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #3D2B1F;
  padding: 0 1.5rem;
  margin-bottom: 0.2rem;
}

.vc-address-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-style: italic;
  color: #8B7355;
  padding: 0 1.5rem;
  margin-bottom: 1rem;
}

.vc-maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem auto 0.5rem;
  padding: 0.7rem 1.75rem;
  border: 1.5px solid #C4A46B;
  color: #C4A46B;
  background: transparent;
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s;
  cursor: pointer;
}

.vc-maps-btn:hover {
  background: #C4A46B;
  color: #fff;
}

.vc-maps-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ============================================
   RINGS
   ============================================ */

#rings {
  background-color: #f2ebe0;
  background-image: url('https://premiumelegante.thedigitalyes.com/assets/white-textured-paper-KasY8RAJ.png');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4.5rem 2rem;
  border-top: 1px solid rgba(196,164,107,0.25);
}

.rings-img {
  width: clamp(90px, 12vw, 160px);
  height: auto;
  display: block;
  opacity: 0.92;
}

/* ============================================
   FOOTER
   ============================================ */

#footer {
  background: #3D2B1F;
  padding: 5rem 2rem 3rem;
  text-align: center;
  color: rgba(255,255,255,0.75);
}

.footer-monogram {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #C4A46B;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.footer-monogram span {
  font-size: 80%;
  color: rgba(196,164,107,0.7);
}

.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.footer-date {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(196,164,107,0.8);
  margin-bottom: 1.5rem;
}

#footer .divider-line span:first-child,
#footer .divider-line span:last-child {
  background: rgba(196,164,107,0.4);
}

#footer .diamond-sm {
  color: rgba(196,164,107,0.7);
}

.footer-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  margin: 1.5rem 0 0.75rem;
}

.footer-copy {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.25);
  margin-top: 2rem;
}

/* ============================================
   FADE-IN ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .cupid-float {
    width: 130px;
    right: 1%;
    bottom: -10px;
  }

  .welcome-block {
    padding-right: 0;
  }

  .cupid-venue {
    width: 120px;
    right: 1%;
  }

  .photo-strip .strip-item {
    aspect-ratio: 2/3;
  }

  .venue-hero {
    min-height: 140px;
  }

  .dp-event {
    grid-template-columns: 1fr 28px 1fr;
  }

  .dp-content {
    padding: 0.5rem 0.75rem;
  }

  .nav-inner a {
    font-size: 0.62rem;
    padding: 0.2rem 0.4rem;
  }

  #main-nav {
    padding: 1rem 1rem;
  }
}

@media (max-width: 480px) {
  .photo-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .photo-strip .strip-item {
    min-width: 200px;
    aspect-ratio: 3/4;
  }

  .dp-event {
    grid-template-columns: 1fr 22px 1fr;
    min-height: 72px;
  }

  .dp-time {
    font-size: 1.4rem;
  }

  .vc-card {
    max-width: 100%;
  }
}
