/* =========================================================
   USMAN & FAIZA — WEDDING SITE
   Design tokens
   ========================================================= */
:root {
  --ivory: #FBF3EC;
  --ivory-deep: #F3E1D2;
  --emerald: #6B2737;
  --emerald-deep: #3E141C;
  --emerald-soft: #F3E3DB;
  --gold: #C98A6B;
  --gold-light: #E9B98E;
  --gold-dark: #A8663F;
  --ink: #2A211D;
  --ink-soft: #6b5c53;

  --font-display: 'Marcellus', 'Cormorant Garamond', serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;
  --font-label: 'Jost', sans-serif;

  --radius: 2px;
  --container-max: 1120px;
}

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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
  font-size: 17px;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
.display-font {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold-dark);
}

.section {
  padding: 6.5rem 1.5rem;
  position: relative;
}

.section-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

a {
  text-decoration: none;
}

/* =========================================================
   NAV
   ========================================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(251, 246, 237, 0.0);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.site-nav.scrolled {
  background: rgba(251, 246, 237, 0.94);
  box-shadow: 0 1px 0 rgba(14, 61, 47, 0.08);
  padding: 0.7rem 1.5rem;
  backdrop-filter: blur(6px);
}

.site-nav .monogram-mini {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--emerald);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-label);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald);
  opacity: 0.75;
  transition: opacity 0.25s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--emerald);
  font-size: 1.5rem;
  z-index: 1001;
}

@media (max-width: 780px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(251, 243, 236, 0.98);
    padding: 1.2rem 1.5rem;
    gap: 1rem;
    box-shadow: 0 12px 24px rgba(14, 61, 47, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background:
    radial-gradient(circle at top,
      rgba(255, 235, 220, 0.20),
      transparent 35%),
    linear-gradient(135deg,
      #23020a 0%,
      /* #a74b4b 35%, */
      #b73f59 70%,
      #210208 100%);
  /* background:
    radial-gradient(ellipse at 50% 0%, rgba(199,154,61,0.14), transparent 55%),
    linear-gradient(180deg, var(--emerald-deep) 0%, var(--emerald) 62%, #0c352a 100%); */
  color: var(--ivory);
  padding: 7rem 1.5rem 4rem;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(232, 200, 116, 0.35);
  pointer-events: none;
}

.hero::after {
  inset: 20px;
  border-color: rgba(232, 200, 116, 0.18);
}

.hero-motif {
  width: 92px;
  margin: 0 auto 1.6rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.15s;
}

.hero-eyebrow {
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.35s;
  color: var(--gold-light);
}

.hero-names {
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  line-height: 1.02;
  margin: 0.6rem 0 0.2rem;
  opacity: 0;
  animation: fadeUp 1.1s ease forwards 0.55s;
}

.hero-names .amp {
  display: inline-block;
  color: var(--gold-light);
  font-size: 0.7em;
  margin: 0 0.18em;
  transform: translateY(-0.05em);
}

.hero-sub {
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.8s;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: rgba(251, 246, 237, 0.85);
  margin-bottom: 2.4rem;
}

.hero-sub strong {
  color: var(--gold-light);
  font-weight: 500;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(251, 246, 237, 0.6);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.2s;
}

.hero-scroll .line {
  width: 1px;
  height: 34px;
  background: rgba(251, 246, 237, 0.5);
  margin: 0.6rem auto 0;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.5;
  }

  50% {
    transform: scaleY(0.5);
    opacity: 1;
  }
}

/* =========================================================
   DIVIDER (paisley/mehndi motif)
   ========================================================= */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 2.6rem;
  max-width: 320px;
}

.divider .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider svg {
  flex-shrink: 0;
}

/* =========================================================
   COUNTDOWN (Nikah)
   ========================================================= */
.countdown-wrap {
  background: var(--emerald);
  color: var(--ivory);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(232, 200, 116, 0.25);
  max-width: 680px;
  margin: 0 auto;
}

.countdown-cell {
  background: var(--emerald-deep);
  padding: 2rem 0.5rem;
  text-align: center;
}

.countdown-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  color: var(--gold-light);
  line-height: 1;
}

.countdown-label {
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(251, 246, 237, 0.7);
  margin-top: 0.6rem;
  display: block;
}

/* =========================================================
   STORY / TIMELINE
   ========================================================= */
.timeline {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  padding-left: 2.4rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(201, 138, 107, 0.1));
}

.timeline-item {
  position: relative;
  padding-bottom: 2.8rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.4rem;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px var(--ivory), 0 0 0 6px rgba(201, 138, 107, 0.4);
}

.timeline-eyebrow {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.35rem;
  display: block;
}

.timeline-item h3 {
  color: var(--emerald);
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
}

.timeline-item p {
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0;
}

.timeline-item p em {
  color: var(--gold-dark);
  font-style: italic;
}

@media (max-width: 480px) {
  .timeline {
    padding-left: 1.9rem;
  }

  .timeline-dot {
    left: -1.9rem;
  }
}

/* =========================================================
   EVENTS (Nikah / Walima)
   ========================================================= */
.event-card {
  background: var(--ivory);
  border: 1px solid rgba(14, 61, 47, 0.12);
  padding: 2.6rem 2.2rem;
  height: 100%;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(14, 61, 47, 0.08);
}

.event-card .event-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.4rem;
  color: var(--gold-dark);
}

.event-card h3 {
  color: var(--emerald);
  font-size: 1.7rem;
  margin-bottom: 0.3rem;
}

.event-card .event-when {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.event-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.event-card .event-venue {
  margin-top: 1.2rem;
  font-weight: 500;
  color: var(--ink);
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.gallery-grid .g-item {
  aspect-ratio: 3/4;
  background: var(--emerald-soft);
  overflow: hidden;
  position: relative;
}

.gallery-grid .g-item:nth-child(2n) {
  aspect-ratio: 4/5;
}

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

.gallery-grid .g-item:hover img {
  transform: scale(1.06);
}

.gallery-grid .g-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
  background: var(--emerald-soft);
}

@media (max-width: 780px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   VIDEO
   ========================================================= */
.video-frame-wrap {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.video-frame {
  position: relative;
  padding: 14px;
  background: var(--ivory);
  box-shadow: 0 30px 60px rgba(14, 61, 47, 0.12);
}

.video-frame video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  background: var(--emerald-deep);
  object-fit: cover;
}

.video-placeholder {
  display: none;
  position: absolute;
  inset: 14px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  background: linear-gradient(160deg, var(--emerald-soft), var(--ivory-deep));
  text-align: center;
  padding: 1.5rem;
}

.video-placeholder p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

.video-placeholder code {
  background: rgba(201, 138, 107, 0.15);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-gold {
  background: var(--gold);
  color: var(--emerald-deep);
  border: none;
  padding: 0.95rem 2.6rem;
  font-family: var(--font-label);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.25s ease, transform 0.2s ease;
  cursor: pointer;
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-gold:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--emerald-deep);
  color: rgba(251, 246, 237, 0.6);
  text-align: center;
  padding: 2.6rem 1.5rem 2rem;
  border-top: 1px solid rgba(232, 200, 116, 0.15);
}

.site-footer .monogram-mini {
  color: var(--gold-light);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  display: block;
}

.site-footer small {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Section heading block */
.section-head {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-head h2 {
  color: var(--emerald);
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  margin: 0.5rem 0 0.8rem;
}

.section-head p {
  color: var(--ink-soft);
}

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

/* subtle dot texture on ivory sections for extra richness */
.section:not(.countdown-wrap):not(.letter-section)::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(14, 61, 47, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  opacity: 0.6;
}

.section>* {
  position: relative;
  z-index: 1;
}

/* =========================================================
   ENGAGEMENT PHOTO
   ========================================================= */
.engagement-section {
  background: var(--ivory);
}

.photo-frame-wrap {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.photo-frame {
  position: relative;
  padding: 18px;
  background: var(--ivory);
  box-shadow: 0 30px 60px rgba(14, 61, 47, 0.15);
}

.photo-frame-inner {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: linear-gradient(160deg, var(--emerald-soft), var(--ivory-deep));
  border: 1px solid rgba(199, 154, 61, 0.35);
}

.photo-frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: var(--gold-dark);
  text-align: center;
  padding: 1.5rem;
}

.photo-placeholder p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

.photo-placeholder code {
  background: rgba(199, 154, 61, 0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
}

.frame-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--gold);
}

.frame-corner.tl {
  top: 4px;
  left: 4px;
  border-right: none;
  border-bottom: none;
}

.frame-corner.tr {
  top: 4px;
  right: 4px;
  border-left: none;
  border-bottom: none;
}

.frame-corner.bl {
  bottom: 4px;
  left: 4px;
  border-right: none;
  border-top: none;
}

.frame-corner.br {
  bottom: 4px;
  right: 4px;
  border-left: none;
  border-top: none;
}

.photo-caption {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* =========================================================
   LETTER / ENVELOPE
   ========================================================= */
.letter-section {
  background: linear-gradient(180deg, var(--emerald-deep), var(--emerald) 70%, var(--emerald-deep));
  color: var(--ivory);
}

.letter-section .section-head p {
  color: rgba(251, 246, 237, 0.7);
}

.envelope-wrap {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.envelope {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3/2;
  margin: 0 auto;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.35));
}

.envelope-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #f3ead9, #e6d9bd);
  border-radius: 3px;
}

.envelope-front {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  background: linear-gradient(160deg, #ece0c8, #ddcda3);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 0 3px 3px;
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(200deg, #e9dcbf, #d8c69a);
  clip-path: polygon(0 0, 100% 0, 50% 78%);
  transform-origin: top center;
  transition: transform 0.7s cubic-bezier(0.6, 0, 0.4, 1);
  z-index: 3;
}

.envelope-seal {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold-dark));
  color: var(--emerald-deep);
  font-family: var(--font-display);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.envelope.open .envelope-flap {
  transform: rotateX(150deg);
}

.envelope.open .envelope-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
}

.letter-paper {
  max-width: 560px;
  margin: 2.6rem auto 0;
  background: #FBF6ED;
  color: var(--ink);
  padding: 3rem 2.6rem;
  text-align: left;
  border-radius: 2px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.9s ease, opacity 0.7s ease, padding 0.7s ease, margin 0.7s ease;
}

.letter-paper.visible {
  max-height: 1200px;
  opacity: 1;
}

.letter-paper p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

.letter-to {
  font-style: normal !important;
  font-size: 1.3rem !important;
  color: var(--emerald) !important;
  margin-bottom: 1.4rem !important;
}

.letter-signature {
  margin-top: 1.8rem;
  font-style: normal !important;
}

.letter-signature span {
  font-family: 'Mrs Saint Delafield', cursive;
  font-size: 2.4rem;
  color: var(--gold-dark);
  display: inline-block;
  margin-top: 0.2rem;
}

@media (max-width: 640px) {
  .letter-paper {
    padding: 2.2rem 1.5rem;
  }
}

/* =========================================================
   RESPONSIVENESS PASS — tablets & phones
   ========================================================= */
@media (max-width: 780px) {
  .section {
    padding: 4.5rem 1.25rem;
  }

  .section-head {
    margin-bottom: 2.4rem;
  }

  .event-card {
    padding: 2rem 1.6rem;
  }

  .countdown-grid {
    max-width: 100%;
  }

  .envelope {
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 6rem 1.1rem 3rem;
  }

  .hero-motif {
    width: 70px;
  }

  .hero-sub {
    font-size: 0.88rem;
    letter-spacing: 0.04em;
  }

  .site-nav {
    padding: 0.9rem 1.1rem;
  }

  .site-nav .monogram-mini {
    font-size: 1.05rem;
    margin-left: 0.5rem;
  }

  .section {
    padding: 3.6rem 1rem;
  }

  .section-head h2 {
    font-size: 1.85rem;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
  }

  .countdown-cell {
    padding: 1.4rem 0.4rem;
  }

  .countdown-num {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }

  .photo-frame {
    padding: 10px;
  }

  .photo-caption {
    font-size: 0.92rem;
  }

  .envelope {
    max-width: 230px;
  }

  .envelope-seal {
    width: 38px;
    height: 38px;
    font-size: 0.72rem;
  }

  .letter-paper {
    padding: 1.8rem 1.1rem;
    margin-top: 2rem;
  }

  .letter-paper p {
    font-size: 1rem;
  }

  .letter-signature span {
    font-size: 2rem;
  }

  .btn-gold {
    width: 100%;
    padding: 0.9rem 1rem;
  }
}

@media (max-width: 360px) {
  .hero-names {
    font-size: 2.5rem;
  }

  .countdown-num {
    font-size: 1.7rem;
  }
}

.quran-arabic{
    font-family: "Amiri", "Noto Naskh Arabic", serif;
    font-size: 32px;
    line-height: 2;
    direction: rtl;
    text-align: center;
    color: #E9B98E;
    margin: 30px auto;
    max-width: 900px;
}

.quran-english{
    font-size:16px;
    font-style:italic;
    color:#f5f5f5;
    max-width:800px;
    margin:0 auto 15px;
}

.site-footer small{
    color:#E9B98E;
    font-size:15px;
}