/* ================= Theme ================= */
:root {
  --emerald: #0b3b2e;
  --emerald-2: #0f4c3a;
  --emerald-deep: #06261d;
  --maroon: #6e1a37;
  --gold: #c9a45c;
  --gold-light: #e8d3a2;
  --ivory: #fbf6ec;
  --cream: #f3ead8;
  --ink: #2b2420;
  --muted: #6d6257;

  --f-arabic: "Amiri", serif;
  --f-script: "Great Vibes", cursive;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-sans: "Jost", system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(6, 38, 29, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Islamic 8-point star / geometric pattern as reusable background */
.hero-pattern,
.events::before,
.dawat::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23c9a45c' stroke-opacity='.22' stroke-width='1'%3E%3Crect x='20' y='20' width='40' height='40'/%3E%3Crect x='20' y='20' width='40' height='40' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='10'/%3E%3Cpath d='M0 0L20 20M80 0L60 20M0 80L20 60M80 80L60 60'/%3E%3C/g%3E%3C/svg%3E");
}

/* ================= Nav ================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  transition: background .3s, padding .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(6, 38, 29, .95); padding: .6rem 1.5rem; box-shadow: 0 4px 20px rgba(0,0,0,.2); backdrop-filter: blur(6px); }
.nav-logo { font-family: var(--f-serif); font-size: 1.6rem; color: var(--gold-light); text-decoration: none; letter-spacing: .1em; }
.nav-logo span { font-family: var(--f-script); color: var(--gold); }
.nav-links { display: flex; gap: 1.6rem; list-style: none; align-items: center; }
.nav-links a { color: var(--cream); text-decoration: none; font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { border: 1px solid var(--gold); padding: .4rem 1rem; border-radius: 999px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold-light); margin: 5px 0; transition: .3s; }

/* ================= Hero ================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 6rem 1rem 4rem;
  background: radial-gradient(ellipse at top, var(--emerald-2), var(--emerald) 55%, var(--emerald-deep));
  color: var(--cream); text-align: center; overflow: hidden;
}
.hero-pattern { position: absolute; inset: 0; opacity: .9; }

.hero-arch {
  position: relative; z-index: 1;
  width: min(620px, 100%);
  padding: 4.5rem 2rem 3rem;
  border: 2px solid var(--gold);
  border-radius: 320px 320px 18px 18px;   /* mehrab / arch */
  background: rgba(6, 38, 29, .55);
  box-shadow: 0 0 0 8px rgba(201, 164, 92, .12), inset 0 0 60px rgba(0,0,0,.3);
  animation: rise 1.2s ease-out both;
}
.hero-arch::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(201, 164, 92, .45);
  border-radius: 310px 310px 12px 12px; pointer-events: none;
}

.bismillah { font-family: var(--f-arabic); font-size: clamp(1.6rem, 5vw, 2.4rem); color: var(--gold); line-height: 1.6; }
.bismillah-en { font-family: var(--f-serif); font-style: italic; font-size: .95rem; color: var(--gold-light); opacity: .85; margin-bottom: 1.5rem; }
.hero-pre { font-family: var(--f-serif); font-size: 1.1rem; opacity: .9; }
.hero-names { margin: 1rem 0 .5rem; font-weight: 400; }
.hero-names .name { display: block; font-family: var(--f-script); font-size: clamp(3rem, 11vw, 5.2rem); line-height: 1.15; color: #fff; text-shadow: 0 2px 20px rgba(201,164,92,.35); }
.hero-names .amp { display: block; font-family: var(--f-serif); font-style: italic; font-size: 1.3rem; color: var(--gold); letter-spacing: .3em; text-transform: uppercase; margin: .3rem 0; }

.divider { display: flex; align-items: center; justify-content: center; gap: .8rem; color: var(--gold); margin: 1.2rem 0; }
.divider span { width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.hero-date { font-family: var(--f-serif); font-size: 1.5rem; letter-spacing: .08em; color: #fff; }
.hero-hijri { font-family: var(--f-serif); font-style: italic; color: var(--gold-light); }
.hero-hijri small { opacity: .7; }
.hero-place { text-transform: uppercase; letter-spacing: .35em; font-size: .8rem; margin-top: .3rem; opacity: .8; }

.countdown { display: flex; justify-content: center; gap: .8rem; margin: 2rem 0; }
.countdown div { min-width: 68px; padding: .7rem .4rem; border: 1px solid rgba(201,164,92,.5); border-radius: 10px; background: rgba(0,0,0,.15); }
.countdown span { display: block; font-family: var(--f-serif); font-size: 1.9rem; color: #fff; line-height: 1; }
.countdown small { font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }

/* hanging lanterns (fanoos) */
.lantern { position: absolute; top: 0; width: 2px; background: var(--gold); opacity: .8; animation: sway 4s ease-in-out infinite alternate; transform-origin: top center; }
.lantern::after {
  content: ""; position: absolute; left: 50%; bottom: -54px; transform: translateX(-50%);
  width: 34px; height: 54px;
  background: radial-gradient(circle at 50% 60%, #ffe8a8, var(--gold) 45%, #7a5a20);
  clip-path: polygon(50% 0, 85% 18%, 100% 55%, 80% 100%, 20% 100%, 0 55%, 15% 18%);
  box-shadow: 0 0 30px 10px rgba(255, 210, 120, .5);
  filter: drop-shadow(0 0 12px rgba(255, 210, 120, .7));
}
.lantern-left { left: 9%; height: 140px; }
.lantern-right { right: 9%; height: 90px; animation-delay: -2s; }

/* ================= Buttons ================= */
.btn {
  display: inline-block; cursor: pointer; border: 0;
  padding: .85rem 2.2rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--emerald-deep); font-family: var(--f-sans); font-weight: 500; font-size: .85rem;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(201,164,92,.7);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(201,164,92,.9); }
.btn-outline { background: transparent; color: var(--emerald); border: 1px solid var(--gold); box-shadow: none; }

/* ================= Verse ================= */
.verse { padding: 4.5rem 1.5rem; text-align: center; background: var(--cream); border-block: 1px solid var(--gold-light); }
.verse .arabic, .footer .arabic { font-family: var(--f-arabic); font-size: clamp(1.4rem, 4vw, 2rem); color: var(--emerald); line-height: 2; max-width: 850px; margin: 0 auto; }
.translation { font-family: var(--f-serif); font-style: italic; font-size: 1.2rem; max-width: 700px; margin: 1rem auto .5rem; color: var(--muted); }
.ref { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* ================= Sections ================= */
.section { padding: 6rem 1.5rem; position: relative; }
.section-head { text-align: center; margin-bottom: 3.5rem; position: relative; z-index: 1; }
.eyebrow { font-family: var(--f-script); font-size: 1.8rem; color: var(--gold); line-height: 1; }
.section-head h2 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.4rem); color: var(--emerald); letter-spacing: .03em; }
.section-head h2::after { content: "۞"; display: block; font-size: 1.2rem; color: var(--gold); margin-top: .2rem; }
.section-head.light h2 { color: var(--cream); }
.note { font-size: .85rem; color: var(--muted); font-style: italic; }
.section-head.light .note { color: var(--gold-light); }

/* ================= Couple ================= */
.couple-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2.5rem; max-width: 1100px; margin: 0 auto; align-items: start; }
.person { text-align: center; }
.arch-frame {
  width: min(320px, 85%); margin: 0 auto 1.5rem; padding: 8px;
  border: 2px solid var(--gold); border-radius: 200px 200px 14px 14px;
  background: var(--cream); box-shadow: var(--shadow);
}
.arch-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 192px 192px 8px 8px; }
.arch-frame--rose { border-color: #c98a9c; }
.person-role { font-family: var(--f-script); font-size: 1.6rem; color: var(--gold); line-height: 1; }
.person h3 { font-family: var(--f-serif); font-size: 2.2rem; font-weight: 600; color: var(--emerald); }
.person-parents { font-family: var(--f-serif); font-style: italic; color: var(--muted); margin-bottom: 1rem; }
.person p:not(.person-role):not(.person-parents) { max-width: 420px; margin: 0 auto; }
.tags { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1.2rem 0; }
.tags li { font-size: .8rem; padding: .3rem .8rem; border: 1px solid var(--gold-light); border-radius: 999px; background: #fff; }
.person-link { font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--emerald-2); }
.couple-heart { align-self: center; }
.couple-heart span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--emerald); color: var(--gold); font-size: 1.6rem; box-shadow: 0 0 0 6px var(--cream), 0 0 0 7px var(--gold); animation: beat 1.6s ease-in-out infinite; }

/* ================= Story ================= */
.story { background: var(--cream); }
.timeline { list-style: none; max-width: 820px; margin: 0 auto; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--gold), var(--gold-light)); }
.timeline li { position: relative; width: 50%; padding: 0 3rem 3rem; }
.timeline li:nth-child(odd) { text-align: right; }
.timeline li:nth-child(even) { margin-left: 50%; }
.t-icon { position: absolute; top: 0; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--ivory); border: 1px solid var(--gold); font-size: 1.2rem; }
.timeline li:nth-child(odd) .t-icon { right: -23px; }
.timeline li:nth-child(even) .t-icon { left: -23px; }
.timeline h4 { font-family: var(--f-serif); font-size: 1.6rem; color: var(--maroon); font-weight: 600; }

/* ================= Events ================= */
.events, .dawat { background: linear-gradient(160deg, var(--emerald), var(--emerald-deep)); color: var(--cream); overflow: hidden; }
.events::before, .dawat::before { content: ""; position: absolute; inset: 0; opacity: .6; }
.events-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; max-width: 1150px; margin: 0 auto; }
.event {
  text-align: center; padding: 3rem 1.5rem 2rem;
  border: 1px solid rgba(201,164,92,.5); border-radius: 160px 160px 14px 14px;
  background: rgba(255,255,255,.04); backdrop-filter: blur(2px);
  transition: transform .3s, background .3s;
}
.event:hover { transform: translateY(-6px); background: rgba(255,255,255,.08); }
.event--main { background: linear-gradient(180deg, rgba(201,164,92,.22), rgba(201,164,92,.06)); border-color: var(--gold); border-width: 2px; }
.event-icon { font-size: 2rem; margin-bottom: .5rem; }
.event h3 { font-family: var(--f-script); font-weight: 400; font-size: 2.4rem; color: var(--gold-light); line-height: 1.2; }
.event-sub { font-family: var(--f-serif); font-style: italic; opacity: .85; margin-bottom: 1rem; min-height: 3em; }
.event-when { font-weight: 500; color: #fff; }
.event-where { font-size: .9rem; opacity: .85; }
.event-dress { margin-top: .8rem; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

.menu { position: relative; z-index: 1; max-width: 800px; margin: 4rem auto 0; text-align: center; padding: 2.5rem 1.5rem; border-top: 1px solid rgba(201,164,92,.4); border-bottom: 1px solid rgba(201,164,92,.4); }
.menu h3 { font-family: var(--f-serif); font-size: 2rem; font-weight: 400; color: var(--gold-light); }
.menu > p { font-style: italic; font-family: var(--f-serif); opacity: .85; margin-bottom: 1.2rem; }
.menu ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; }
.menu li { font-family: var(--f-serif); font-size: 1.15rem; }
.menu li:not(:last-child)::after { content: "✦"; color: var(--gold); font-size: .7rem; margin-left: 1.4rem; vertical-align: middle; }

/* ================= Venue ================= */
.venue-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; max-width: 1100px; margin: 0 auto; align-items: stretch; }
.venue-info { padding: 2.5rem; background: #fff; border: 1px solid var(--gold-light); border-radius: var(--radius); box-shadow: var(--shadow); }
.venue-info h3 { font-family: var(--f-serif); font-size: 2rem; color: var(--emerald); font-weight: 600; line-height: 1.2; margin-bottom: 1rem; }
.venue-info h3 small { font-size: .9rem; font-weight: 400; font-style: italic; color: var(--muted); }
.venue-info p { margin-bottom: .8rem; }
.venue-info .btn { margin-top: .8rem; }
.venue-map { border-radius: var(--radius); overflow: hidden; border: 2px solid var(--gold); min-height: 340px; box-shadow: var(--shadow); }
.venue-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.travel { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; max-width: 1100px; margin: 3rem auto 0; text-align: center; }
.travel h4 { font-family: var(--f-serif); font-size: 1.4rem; color: var(--maroon); }

/* ================= Gallery ================= */
.gallery { background: var(--cream); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 1100px; margin: 0 auto; }
.gallery-grid img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; transition: transform .3s, filter .3s; }
.gallery-grid img:hover { transform: scale(1.02); filter: brightness(1.08); }
.gallery-grid .g-wide { grid-column: span 2; grid-row: span 2; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6,38,29,.92); display: grid; place-items: center; padding: 1.5rem; cursor: zoom-out; }
.lightbox img { max-height: 90vh; border: 2px solid var(--gold); border-radius: 10px; }

/* ================= Dawat ================= */
.dawat-card {
  position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 2.5rem 2rem;
  text-align: center; color: var(--ink);
  background: rgba(251,246,236,.97); border: 1px solid var(--gold); border-radius: 160px 160px var(--radius) var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.dawat-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--gold-light); border-radius: 152px 152px 10px 10px; pointer-events: none; }
.dawat-urdu { font-family: var(--f-arabic); font-size: 2.4rem; color: var(--emerald); line-height: 1.4; margin-top: 1rem; }
.dawat-lead { font-family: var(--f-serif); font-style: italic; font-size: 1.2rem; color: var(--muted); margin-bottom: 2rem; }
.dawat-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.dawat-cols > div + div { border-left: 1px solid var(--gold-light); }
.dawat-cols h4 { font-family: var(--f-script); font-weight: 400; font-size: 2rem; color: var(--maroon); line-height: 1.2; }
.dawat-cols ul { list-style: none; font-family: var(--f-serif); font-size: 1.15rem; margin: .6rem 0 1rem; }
.dawat-contact { font-size: .9rem; }
.dawat-contact a { color: var(--emerald-2); font-weight: 500; text-decoration: none; }
.dawat-note { margin-top: 2rem; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); }

/* ================= Footer ================= */
.footer { background: var(--emerald-deep); color: var(--cream); text-align: center; padding: 4rem 1.5rem 3rem; border-top: 3px solid var(--gold); }
.footer .arabic { color: var(--gold); }
.footer .translation { color: var(--gold-light); }
.footer-names { font-family: var(--f-script); font-size: 3rem; margin: 1.5rem 0 .5rem; color: #fff; }
.footer-names span { color: var(--gold); }
.footer-small { font-size: .8rem; letter-spacing: .15em; opacity: .7; }

/* ================= Animations ================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ================= Responsive ================= */
@media (max-width: 900px) {
  .couple-grid { grid-template-columns: 1fr; }
  .couple-heart { justify-self: center; }
  .venue-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 2rem;
    background: rgba(6,38,29,.98); transform: translateX(100%); transition: transform .35s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-arch { padding: 3.5rem 1.2rem 2.5rem; border-radius: 220px 220px 14px 14px; }
  .hero-arch::before { border-radius: 210px 210px 10px 10px; }
  .lantern { display: none; }
  .countdown { gap: .4rem; }
  .countdown div { min-width: 0; flex: 1; }
  .countdown span { font-size: 1.5rem; }

  .timeline::before { left: 23px; }
  .timeline li, .timeline li:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 2.5rem 4rem; text-align: left; }
  .timeline li:nth-child(odd) { text-align: left; }
  .timeline li .t-icon, .timeline li:nth-child(odd) .t-icon, .timeline li:nth-child(even) .t-icon { left: 0; right: auto; }

  .dawat-card { padding: 2rem 1.2rem; border-radius: 120px 120px var(--radius) var(--radius); }
  .dawat-card::before { border-radius: 112px 112px 10px 10px; }
  .dawat-cols { grid-template-columns: 1fr; }
  .dawat-cols > div + div { border-left: 0; border-top: 1px solid var(--gold-light); padding-top: 1.5rem; }
  .section { padding: 4.5rem 1rem; }
}

.footer-names span { margin: 0 .4rem; }
@media (max-width: 760px) { .hero-date { font-size: 1.2rem; } }
