/* ============================================================
   MAIN — Syed Muhammad Ali Shah · Homepage
   International build standard: BEM-ish naming, no dead code
   ============================================================ */

@import url("tokens.css");

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle cinematic radial glow over the whole page — no textures */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 520px at 50% -80px, rgba(20, 80, 60, 0.28), transparent 70%),
    radial-gradient(900px 600px at 50% 115%, rgba(20, 80, 60, 0.14), transparent 70%);
}

main, footer { position: relative; z-index: 1; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, .serif {
  font-family: var(--font-serif);
  color: var(--ivory);
  line-height: 1.22;
  font-weight: 600;
}

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
section[id] { scroll-margin-top: 110px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.section__title { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 14px; }
.section__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  color: var(--gold);
  margin-bottom: 22px;
}
.section__lead { max-width: 720px; color: var(--text-muted); font-size: 1.06rem; }
.center { text-align: center; }
.center .section__lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 38px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn--gold {
  background: linear-gradient(135deg, #DDBB6A, var(--gold) 55%, #B98F3E);
  color: #0A1F17;
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(201,162,75,.4); }
.btn--outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-border);
}
.btn--outline:hover { background: var(--gold-soft); transform: translateY(-3px); }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Navbar : floating glass pill ---------- */
.site-header {
  position: fixed;
  top: 18px; left: 0; right: 0;
  z-index: 100;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  width: min(1280px, 100% - 32px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 26px;
  background: rgba(7, 31, 24, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-pill);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-scrolled { background: rgba(7, 31, 24, 0.88); }

.brand__logo {
  height: 56px;
  width: auto;
  display: block;
  border-radius: 10px;
}
.brand__logo--footer {
  height: 120px;
  margin-bottom: 10px;
}
.brand {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  background: linear-gradient(120deg, #E9CF8F, var(--gold) 60%, #A8813A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.nav__menu { display: flex; align-items: center; gap: 6px; }
.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: color .3s, border-color .3s, background .3s;
}
.nav__link:hover, .nav__link.is-active {
  color: var(--gold);
  border-color: var(--gold-border);
  background: var(--gold-soft);
}

.nav__social { display: flex; align-items: center; gap: 8px; }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  color: var(--gold);
  transition: background .3s, transform .3s var(--ease);
}
.social-btn:hover { background: var(--gold-soft); transform: translateY(-2px); }
.social-btn svg { width: 17px; height: 17px; fill: currentColor; }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  width: 46px; height: 46px;
  cursor: pointer;
  position: relative;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .3s;
}
.nav__toggle span { top: 50%; transform: translateY(-50%); }
.nav__toggle span::before { left: 0; right: 0; top: -8px; }
.nav__toggle span::after { left: 0; right: 0; top: 8px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero slider ---------- */
.hero { padding: calc(var(--nav-h) + 44px) 0 30px; }

.slider {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--gold-border);
  box-shadow: var(--shadow-card);
  background: var(--bg-soft);
}
.slider__viewport { position: relative; aspect-ratio: 21 / 8.2; min-height: 420px; }

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s var(--ease), visibility 0s linear .9s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease); z-index: 2; }

.slide__photo { position: relative; overflow: hidden; order: 2; }
.slide__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  transform: scale(1.04);
}
.slide.is-active .slide__photo img { animation: kenburns 7.5s var(--ease) forwards; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.12); } }

.slide__copy {
  order: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(28px, 5vw, 72px);
  background: linear-gradient(100deg, rgba(3,15,11,.96) 30%, rgba(3,15,11,.82) 55%, transparent 88%);
}
.slide__copy::after { /* blend edge into photo */
  content: ""; position: absolute; inset: 0; z-index: -1;
}
.slide__title { font-size: clamp(1.9rem, 4.6vw, 3.6rem); }
.slide__sub { color: rgba(247, 243, 233, 0.78); font-size: clamp(0.98rem, 1.6vw, 1.12rem); max-width: 46ch; }
.slide__copy .btn { align-self: flex-start; margin-top: 8px; }

/* Text entrance per slide */
.slide .slide__copy > * { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.slide.is-active .slide__copy > *:nth-child(1) { transition-delay: .25s; }
.slide.is-active .slide__copy > *:nth-child(2) { transition-delay: .38s; }
.slide.is-active .slide__copy > *:nth-child(3) { transition-delay: .51s; }
.slide.is-active .slide__copy > *:nth-child(4) { transition-delay: .64s; }
.slide.is-active .slide__copy > * { opacity: 1; transform: none; }

/* Arrows */
.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  background: rgba(3, 15, 11, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--gold);
  font-size: 1.3rem;
  cursor: pointer;
  transition: background .3s, transform .3s var(--ease);
}
.slider__arrow:hover { background: var(--gold-soft); }
.slider__arrow--prev { left: 22px; }
.slider__arrow--next { right: 22px; }

/* Dots */
.slider__dots {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; gap: 10px;
}
.slider__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  background: transparent;
  cursor: pointer;
  transition: background .3s, transform .3s;
  padding: 0;
}
.slider__dot.is-active { background: var(--gold); transform: scale(1.25); }

/* Thumbnails */
.slider__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.slider__thumb {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid rgba(201, 162, 75, 0.18);
  background: var(--bg-soft);
  cursor: pointer;
  padding: 0;
  aspect-ratio: 16 / 9;
  opacity: 0.55;
  transition: opacity .35s, border-color .35s, box-shadow .35s, transform .35s var(--ease);
}
.slider__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.slider__thumb:hover { opacity: 0.9; transform: translateY(-3px); }
.slider__thumb.is-active {
  opacity: 1;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 26px rgba(201, 162, 75, 0.45);
}
.slider__thumb-label {
  position: absolute; inset: auto 0 0 0;
  font-size: 0.68rem; font-weight: 600;
  padding: 14px 8px 6px;
  color: var(--ivory);
  background: linear-gradient(transparent, rgba(3,15,11,.9));
  text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Legacy section ---------- */
.legacy__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.legacy__text p { color: var(--text-muted); font-size: 1.06rem; max-width: 58ch; }
.legacy__text p + p { margin-top: 16px; }

.frame-gold {
  position: relative;
  border-radius: var(--r-md);
  padding: 12px;
  background: linear-gradient(150deg, #E4C87E, var(--gold) 40%, #7d5f28 75%, #E4C87E);
  box-shadow: var(--shadow-card);
}
.frame-gold img { border-radius: 10px; width: 100%; }
.frame-gold--portrait { max-width: 420px; margin-inline: auto; }

/* ---------- Stats band ---------- */
.stats { padding-top: 0; }
.stats__band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(7, 31, 24, 0.66);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat { padding: clamp(30px, 4vw, 52px) 20px; text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 28%; bottom: 28%;
  width: 1px; background: var(--gold-border);
}
.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat__label { margin-top: 10px; color: var(--text-muted); font-size: 0.98rem; letter-spacing: 0.02em; }

/* ---------- Who Is / About ---------- */
.about { overflow: hidden; }
.about__mosque {
  position: absolute; inset: auto 0 0 0;
  width: 100%; height: 340px;
  opacity: 0.16;
  pointer-events: none;
}
.about__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.about__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--ivory);
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  margin: 26px 0;
  line-height: 1.5;
}
.about__text p { color: var(--text-muted); margin-bottom: 16px; }
.about__points { margin-top: 26px; display: grid; gap: 14px; }
.about__points li {
  display: flex; align-items: center; gap: 14px;
  color: var(--text);
  font-weight: 500;
}
.about__points .tick {
  flex: 0 0 30px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}

/* ---------- Services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 52px;
}
.card {
  background: linear-gradient(165deg, rgba(10,42,32,.85), rgba(7,31,24,.6));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  padding: clamp(30px, 3.4vw, 44px);
  box-shadow: var(--shadow-card);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
  display: flex; flex-direction: column; gap: 14px;
}
.card:hover { transform: translateY(-10px); border-color: var(--gold); box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 34px rgba(201,162,75,.16); }
.card__icon {
  width: 62px; height: 62px;
  border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold);
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.card h3 { font-size: 1.45rem; }
.card p { color: var(--text-muted); font-size: 0.99rem; flex: 1; }
.card__link {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px;
}
.card__link::after { content: "→"; transition: transform .3s var(--ease); }
.card__link:hover::after { transform: translateX(6px); }

/* ---------- As Seen On : white/grayscale channel badges ---------- */
.seen { padding-top: 0; }
.seen__row {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 4vw, 54px);
}
.channel {
  font-family: var(--font-sans);
  color: rgba(247, 243, 233, 0.72);
  filter: grayscale(1);
  opacity: 0.72;
  transition: opacity .35s, transform .35s var(--ease);
  user-select: none;
  line-height: 1;
  white-space: nowrap;
}
.channel:hover { opacity: 1; transform: translateY(-3px); }
.channel--bol  { font-weight: 800; font-size: 1.9rem; letter-spacing: .06em; }
.channel--ary  { font-weight: 800; font-size: 1.7rem; font-style: italic; letter-spacing: .04em; }
.channel--gtv  { font-weight: 300; font-size: 2rem; letter-spacing: .34em; }
.channel--geo  { font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; }
.channel--neo  { font-weight: 800; font-size: 1.8rem; letter-spacing: .18em; }
.channel--k21  { font-weight: 800; font-size: 1.9rem; }
.channel--bole { font-weight: 600; font-size: 1.25rem; letter-spacing: .1em; }
.channel--ids  { font-weight: 300; font-size: 1.6rem; letter-spacing: .42em; }

/* ---------- Videos : reel style ---------- */
.videos__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.reel-nav { display: flex; gap: 12px; }
.reel-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  background: transparent;
  color: var(--gold);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background .3s, transform .3s var(--ease);
}
.reel-btn:hover { background: var(--gold-soft); transform: translateY(-2px); }

.reels {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 290px);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 6px 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-border) transparent;
}
.reel {
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--gold-border);
  background: var(--bg-soft);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.reel:hover { transform: translateY(-8px); box-shadow: var(--shadow-card), 0 0 30px rgba(201,162,75,.14); }
.reel img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.reel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 45%, rgba(3,15,11,.88));
}
.reel__play {
  position: absolute; z-index: 2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 66px; height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DDBB6A, var(--gold));
  color: #0A1F17;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-gold);
  transition: transform .35s var(--ease);
}
.reel:hover .reel__play { transform: translate(-50%, -50%) scale(1.12); }
.reel__meta { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; }
.reel__meta h3 { font-size: 1.02rem; font-family: var(--font-sans); font-weight: 600; }
.reel__meta span { font-size: 0.8rem; color: var(--text-muted); }
.videos__cta { margin-top: 38px; text-align: center; }

/* ---------- CTA ---------- */
.cta__band {
  position: relative;
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(10,42,32,.9), rgba(7,31,24,.55));
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}
.cta__copy { padding: clamp(40px, 6vw, 84px); }
.cta__copy h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 16px; }
.cta__copy p { color: var(--text-muted); margin-bottom: 30px; max-width: 44ch; }
.cta__photo {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  padding: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0;
  min-height: 100%;
}
.cta__photo::before {
  content: ""; position: absolute; inset: auto 8% 0 8%; height: 60%;
  background: radial-gradient(closest-side, rgba(201,162,75,.22), transparent);
  pointer-events: none;
}
/* Ornate gold frame */
.frame-ornate {
  position: relative;
  padding: 14px;
  background: linear-gradient(150deg, #E9CF8F, var(--gold) 35%, #6f5423 60%, #E9CF8F 90%);
  border-radius: 200px 200px var(--r-md) var(--r-md);
  box-shadow: var(--shadow-card), 0 0 44px rgba(201,162,75,.2);
  max-width: 340px;
}
.frame-ornate::before {
  content: ""; position: absolute; inset: 7px;
  border: 1px solid rgba(3,15,11,.55);
  border-radius: 193px 193px 10px 10px;
  pointer-events: none;
}
.frame-ornate img { border-radius: 186px 186px 8px 8px; width: 100%; background: var(--bg-soft); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--gold-border);
  background: rgba(3, 12, 9, 0.85);
  padding: 70px 0 0;
  margin-top: 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 52px;
}
.footer__brand .brand { font-size: 1.6rem; }
.footer__tag { color: var(--text-muted); margin: 14px 0 22px; max-width: 34ch; font-size: 0.96rem; }
.footer h3 { font-size: 1.15rem; margin-bottom: 18px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: var(--text-muted); font-size: 0.96rem; transition: color .3s, padding-left .3s; }
.footer__links a:hover { color: var(--gold); padding-left: 6px; }
.footer__contact { display: grid; gap: 12px; color: var(--text-muted); font-size: 0.96rem; }
.footer__contact a:hover { color: var(--gold); }
.footer__contact .row { display: flex; align-items: center; gap: 12px; }
.footer__contact svg { width: 16px; height: 16px; fill: var(--gold); flex: 0 0 16px; }
.footer__bottom {
  border-top: 1px solid rgba(201,162,75,.16);
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--text-faint);
  font-size: 0.86rem;
}
.footer__bottom .nav__social { gap: 6px; }
