/* ============================================
   KHADIJA & HASNAIN — Wedding Website
   Design: based on Garden Wedding template
   Palette: Warm sand · Dark olive · Cream · Black
   ============================================ */

:root {
  --sand:       #c8b99a;
  --sand-light: #e8dfd0;
  --sand-pale:  #f2ece0;
  --dark:       #2a2318;
  --dark-mid:   #3d3526;
  --olive:      #4a4535;
  --cream:      #f5f0e6;
  --white:      #faf8f4;
  --text:       #2a2318;
  --text-light: #6b5f4a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

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

/* ══ Language Bar ══════════════════════════════ */
.lang-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; justify-content: center; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(42,35,24,0.88);
  backdrop-filter: blur(10px);
}
.lang-dot { color: var(--sand); font-size: 0.75rem; opacity: 0.6; }
.lang-btn {
  background: none; border: 1px solid transparent; border-radius: 2px;
  padding: 0.2rem 1rem;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem; letter-spacing: 0.15em;
  color: var(--sand-light); cursor: pointer; transition: all 0.2s ease;
  text-transform: uppercase;
}
.lang-btn:hover  { border-color: var(--sand); color: var(--cream); }
.lang-btn.active { background: var(--sand); color: var(--dark); border-color: var(--sand); }

/* ══ HERO ══════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
}
.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(20%) brightness(0.75);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30,24,14,0.35) 0%,
    rgba(30,24,14,0.20) 40%,
    rgba(30,24,14,0.55) 100%
  );
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 1rem;
}
.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.1;
}
.script-name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3.5rem, 10vw, 7rem);
  color: #fff;
  font-weight: 400;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  letter-spacing: 0.02em;
}
.hero-amp {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--sand-light);
  display: block;
  margin: 0;
}
/* Nudge Khadija (last name) slightly lower for visual balance */
.hero-names .script-name:last-child { transform: translateY(0.5rem); }
/* Arabic/Urdu: Great Vibes has no Arabic glyphs — use an elegant, legible Arabic font.
   The "&" keeps Great Vibes (Latin) so it stays a pretty cursive ampersand. */
body.rtl .script-name { font-family: 'Amiri', serif; }
body.rtl .hero-names .script-name:last-child { transform: translateY(0); }
.hero-sub {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  letter-spacing: 0.35em;
  color: var(--sand-light);
  margin-top: 1rem;
  text-transform: uppercase;
}

.hero-meta {
  position: absolute; bottom: 2rem; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 0.35rem 1rem; padding: 0 1.25rem;
  font-family: 'Cinzel', serif;
  font-size: clamp(0.8rem, 2vw, 1rem);
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
}
.hero-meta-sep { opacity: 0.5; }

/* ══ WIDE PHOTO BAND ═══════════════════════════ */
.photo-band {
  position: relative;
  height: 55vw;
  max-height: 520px;
  overflow: hidden;
}
.band-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: grayscale(15%) brightness(0.9);
}
.band-overlay {
  position: absolute; inset: 0;
  background: rgba(30,24,14,0.15);
}
/* Ceremony band — warm brown wash to match the site palette */
.photo-band .band-photo {
  filter: grayscale(20%) sepia(22%) brightness(0.82);
}
.photo-band .band-overlay {
  background: linear-gradient(
    to bottom,
    rgba(42,35,24,0.30) 0%,
    rgba(74,69,53,0.28) 50%,
    rgba(61,53,38,0.45) 100%
  );
  mix-blend-mode: multiply;
}

/* ══ INVITATION ════════════════════════════════ */
.invite-section {
  background: var(--sand-pale);
  padding: 5rem 2rem;
  text-align: center;
}
.invite-label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.4rem;
}
.invite-text {
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text);
  font-style: italic;
}

/* ══ INTRO TEXT ════════════════════════════════ */
.intro-section {
  background: var(--sand-pale);
  padding: 5rem 2rem;
  text-align: center;
}
.intro-text {
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text);
  font-style: italic;
}

/* ══ FULL-SCREEN PHOTO ═════════════════════════ */
.full-photo {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.full-photo-img {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  width: calc(100% + 1cm);
  height: calc(100% + 1cm);
  object-fit: cover;
  object-position: left 30%;
  filter: grayscale(20%) sepia(22%) brightness(0.82);
}
/* Warm brown wash to match the site palette */
.full-photo .band-overlay {
  background: linear-gradient(
    to bottom,
    rgba(42,35,24,0.30) 0%,
    rgba(74,69,53,0.28) 50%,
    rgba(61,53,38,0.45) 100%
  );
  mix-blend-mode: multiply;
}

/* ══ INFO SECTION (PROGRAM + RECEPTION) ════════ */
.info-section {
  background: var(--sand-pale);
  padding: 5rem 2rem;
}
.info-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.info-heading {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

/* Program list */
.program-list { display: flex; flex-direction: column; gap: 0; }
.program-item {
  display: flex;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(100,85,65,0.2);
  align-items: baseline;
}
.prog-time {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
  min-width: 46px;
  flex-shrink: 0;
}
.prog-desc {
  font-size: 0.95rem;
  color: var(--text);
  font-style: italic;
}

/* Reception blocks */
.reception-block { margin-bottom: 1.8rem; }
.reception-block h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.reception-block p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.75;
}
.venue-text .reception-block { margin-top: 1.5rem; }
.venue-text .reception-block p { font-style: normal; margin-bottom: 0; }

/* ══ GALLERY STRIP ═════════════════════════════ */
.gallery-section { background: var(--dark); }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  height: 340px;
}
.gallery-item { overflow: hidden; }
.gallery-dark { background: var(--dark-mid); }
.gal-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%) sepia(15%) brightness(0.88);
  transition: transform 0.5s ease;
}
.gallery-item:hover .gal-img { transform: scale(1.04); }

/* ══ VENUE + MAP ═══════════════════════════════ */
.venue-section {
  background: var(--sand-pale);
  padding: 5rem 2rem;
}
.venue-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}
.venue-text h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.venue-text p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 2;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.map-link {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid var(--sand);
  padding-bottom: 2px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.map-link:hover { color: var(--text-light); }
.venue-map {
  height: 320px;
  border: 1px solid rgba(100,85,65,0.2);
  overflow: hidden;
}
.venue-map iframe { filter: sepia(15%) saturate(0.8); height: 100%; }

/* ══ FOOTER ════════════════════════════════════ */
.footer {
  background: var(--dark-mid);
  padding: 5rem 2rem 3rem;
  text-align: center;
}
.footer-inner { max-width: 700px; margin: 0 auto; }
.footer-script {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.5rem, 7vw, 4rem);
  color: var(--sand-light);
  font-weight: 400;
  margin-bottom: 2.5rem;
}
.footer-photo-wrap {
  width: 200px;
  margin: 0 auto 2.5rem;
}
.footer-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(25%) sepia(15%);
}
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: rgba(200,185,154,0.6);
  text-transform: uppercase;
}
.footer-sep { opacity: 0.4; }

/* ══ RTL ════════════════════════════════════════ */
body.rtl { direction: rtl; }
body.rtl .info-grid { direction: rtl; }

/* ══ Arabic typography ═════════════════════════ */
/* Cormorant/Cinzel have no Arabic glyphs — use elegant Arabic typefaces. */
html[lang="ar"] body { font-family: 'Amiri', serif; }
html[lang="ar"] .info-heading,
html[lang="ar"] .invite-label,
html[lang="ar"] .venue-text h2,
html[lang="ar"] .reception-block h3,
html[lang="ar"] .map-link,
html[lang="ar"] .hero-meta,
html[lang="ar"] .footer-links {
  font-family: 'Amiri', serif;
  /* Arabic is a connected script — Latin letter-spacing breaks the glyphs apart */
  letter-spacing: 0;
}
/* Calligraphic display face for the couple's names */
html[lang="ar"] .script-name { font-family: 'Aref Ruqaa', 'Amiri', serif; }
/* The Arabic language button, in every mode */
.lang-btn[data-lang="ar"] { font-family: 'Amiri', serif; letter-spacing: 0; }

/* ══ Responsive ════════════════════════════════ */
@media (max-width: 720px) {
  .info-grid  { grid-template-columns: 1fr; gap: 3rem; }
  .gallery-grid { grid-template-columns: 1fr; height: auto; }
  .gallery-item { height: 260px; }
  .venue-inner { grid-template-columns: 1fr; }
  .venue-map { height: 260px; }
  .full-photo { height: 70vh; }
}

@media (max-width: 600px) {
  /* Stack date + venue on two centered lines on phones — hide the dot separator */
  .hero-meta { flex-direction: column; gap: 0.4rem; font-size: 0.72rem; }
  .hero-meta-sep { display: none; }
  /* Tighter vertical rhythm + side margins on phones */
  .invite-section,
  .intro-section,
  .info-section,
  .venue-section { padding: 3.5rem 1.5rem; }
  .info-heading { margin-bottom: 1.5rem; }
}

/* ══ Scroll animations ══════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .invite-section,
  .intro-section,
  .info-section,
  .venue-section,
  .gallery-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .invite-section.visible,
  .intro-section.visible,
  .info-section.visible,
  .venue-section.visible,
  .gallery-section.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
