/* ============================================================
   AYLA KHAN — styles.css
   ============================================================ */

:root {
  --cream:      #fff9ef;
  --ink:        #2b2318;
  --ink-dim:    #5a5045;
  --silver:     #8a7e70;
  --border:     #e4ddd0;
  --surface:    #ede8de;
  --blue:       #3452e1;
  --img-border: #7a4a3a;

  --font-serif: 'EB Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-urdu:  'Noto Nastaliq Urdu', serif;

  --nav-h: 56px;
  --ease:  cubic-bezier(0.25, 0.1, 0.25, 1);
  --side:  10%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; color: inherit; font: inherit; }

/* ====================================================================
   NAV — horizontal top, no border, logo below centered
   ==================================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: var(--cream);
  z-index: 200;
  /* NO border-bottom */
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.site-nav__links > li { position: relative; }
.site-nav__links a {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.site-nav__links a:hover,
.site-nav__links a.active { color: var(--blue); }

/* Films sub-nav */
.site-nav__sub {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 10px 20px;
  list-style: none;
  flex-direction: column;
  gap: 8px;
  white-space: nowrap;
  z-index: 300;
}
/* dropdown controlled by JS */
.site-nav__sub a {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 4px 0;
  display: block;
}
.site-nav__sub a:hover { color: var(--blue); }

/* Logo — below nav, centered */
.site-nav__logo-below {
  position: fixed;
  top: var(--nav-h);
  left: 50%;
  transform: translateX(-50%);
  z-index: 199;
  padding: 4px 0 2px;
  display: flex;
  justify-content: center;
}
.site-nav__logo-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
}

/* Hamburger */
.site-nav__hamburger {
  display: none;
  position: fixed;
  top: 14px; right: 20px;
  z-index: 300;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.site-nav__hamburger span {
  display: block; width: 22px; height: 1px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.site-nav__hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-nav__hamburger.open span:nth-child(2) { opacity: 0; }
.site-nav__hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: var(--cream);
  z-index: 250;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--font-serif);
  font-size: clamp(28px, 7vw, 48px);
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--blue); }

/* ====================================================================
   PAGE WRAPPER — offset for nav + logo
   ==================================================================== */
.page {
  margin-top: calc(var(--nav-h) + 112px);
  min-height: 100vh;
  background: var(--cream);
  opacity: 0;
  animation: fadeIn 0.6s var(--ease) forwards;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ====================================================================
   SHARED
   ==================================================================== */
.label {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
}
.body-text {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-dim);
  margin-bottom: 14px;
}
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ====================================================================
   ABOUT PAGE
   ==================================================================== */
.about-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px var(--side) 120px;
}
.about-page__name-wrap {
  text-align: center;
  margin-bottom: 28px;
}
.about-page__name {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.6vw, 22px);
  font-weight: 400;
  color: var(--ink-dim);
  line-height: 1.3;
}
.about-page__separator {
  color: var(--blue);
  font-weight: 300;
  margin: 0 10px;
  opacity: 0.7;
}
.about-page__urdu {
  font-family: var(--font-urdu);
  font-size: 0.85em;
  direction: rtl;
  vertical-align: middle;
  letter-spacing: 0;
}
.about-page__portrait-wrap {
  width: 100%;
  max-width: 200px;
  margin-bottom: 28px;
}
.about-page__portrait {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border: 1px solid var(--img-border);
}
.about-page__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.about-page__bio {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

/* ====================================================================
   FILMS PAGE
   ==================================================================== */
.films-page { padding: 20px 0 140px; }
.films-page__header {
  text-align: center;
  padding: 0 var(--side) 40px;
}
.film-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--side);
  margin-bottom: 80px;
}
.film-entry + .film-entry {
  border-top: 1px solid var(--border);
  padding-top: 72px;
}
.film-entry__still-wrap {
  width: 100%;
  max-width: 440px;
  margin-bottom: 22px;
}
.film-entry__still {
  width: 100%;
  aspect-ratio: 3/2;
  background: var(--surface);
  overflow: hidden;
  border: 1px solid var(--img-border);
}
.film-entry__still img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.9s var(--ease);
}
.film-entry__still:hover img { transform: scale(1.04); }
.film-entry__meta {
  width: 100%;
  max-width: 440px;
  text-align: center;
  margin-bottom: 24px;
}
.film-entry__title {
  font-family: var(--font-serif);
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
}
.film-entry__year {
  display: block;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--blue);
  margin-bottom: 12px;
}
.film-entry__credits {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-bottom: 12px;
}
.film-entry__credit {
  display: flex;
  gap: 10px;
  font-size: 11px;
  font-weight: 300;
  color: var(--ink-dim);
}
.film-entry__credit-role { color: var(--silver); font-size: 10px; }
.film-entry__synopsis {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 380px;
  margin: 0 auto;
}
.film-entry__video-wrap {
  width: 100%;
  max-width: 440px;
}
.film-entry__video {
  position: relative; width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface);
  overflow: hidden;
  border: 1px solid var(--img-border);
}
.film-entry__video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: none;
}

/* ====================================================================
   PHOTOS PAGE — asymmetric collage, maroon border, zoom on scroll
   ==================================================================== */
.photo-page { padding: 20px 0 120px; }
.photo-page__header {
  text-align: center;
  padding: 0 var(--side) 40px;
}

.photo-collage {
  padding: 0 var(--side);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Each row is a flex row with different proportions */
.photo-row {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.photo-item {
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--img-border);
  background: var(--surface);
  flex-shrink: 0;
  transform: scale(0.94);
  opacity: 0.7;
  transition: transform 0.7s var(--ease), opacity 0.6s var(--ease);
}
.photo-item.in-view { transform: scale(1); opacity: 1; }

.photo-item img,
.photo-item .photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Row A: 3 cols, left narrow, center wide, right narrow */
.photo-row--a .photo-item:nth-child(1) { flex: 1; aspect-ratio: 2/3; }
.photo-row--a .photo-item:nth-child(2) { flex: 1.8; aspect-ratio: 3/2; }
.photo-row--a .photo-item:nth-child(3) { flex: 1; aspect-ratio: 2/3; }

/* Row B: 2 cols, wide left, narrow right */
.photo-row--b .photo-item:nth-child(1) { flex: 2; aspect-ratio: 16/10; }
.photo-row--b .photo-item:nth-child(2) { flex: 1; aspect-ratio: 3/4; }

/* Row C: single centered, narrower */
.photo-row--c { justify-content: center; }
.photo-row--c .photo-item { flex: 0 0 50%; aspect-ratio: 4/3; }

/* Row D: narrow left, wide right */
.photo-row--d .photo-item:nth-child(1) { flex: 1; aspect-ratio: 3/4; }
.photo-row--d .photo-item:nth-child(2) { flex: 2; aspect-ratio: 16/10; }

/* Row E: 3 equal */
.photo-row--e .photo-item { flex: 1; aspect-ratio: 1/1; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(10,8,6,0.97); z-index: 500;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox__img-wrap { max-width: calc(100vw - 160px); max-height: 90vh; display: flex; align-items: center; }
.lightbox__img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox__close { position: fixed; top: 32px; right: 40px; font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,249,239,0.4); transition: color 0.3s; z-index: 501; }
.lightbox__close:hover { color: #fff9ef; }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,249,239,0.4); transition: color 0.3s; padding: 16px; z-index: 501; }
.lightbox__nav:hover { color: #fff9ef; }
.lightbox__nav--prev { left: 40px; }
.lightbox__nav--next { right: 40px; }
.lightbox__counter { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%); font-family: var(--font-sans); font-size: 9px; letter-spacing: 0.2em; color: rgba(255,249,239,0.3); }

/* ====================================================================
   CONTACT PAGE
   ==================================================================== */
.contact-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px var(--side);
  background: var(--cream);
}
.contact-page__logo {
  display: none;
}
.contact-page__availability {
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 300;
  color: var(--silver);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.contact-list {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}
.contact-list__item {
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 300;
  color: var(--ink-dim); letter-spacing: 0.04em;
  transition: color 0.3s;
}
a.contact-list__item:hover { color: var(--blue); }
.contact-list__item--location {
  margin-top: 6px; font-size: 10px;
  letter-spacing: 0.14em; color: var(--silver);
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width: 768px) {
  .site-nav__links { display: none; }
  .site-nav__hamburger { display: flex; }
  .mobile-menu { display: flex; }
  :root { --side: 5%; }
  .photo-row--a,
  .photo-row--b,
  .photo-row--d,
  .photo-row--e { flex-wrap: wrap; }
  .photo-row--c .photo-item { flex: 0 0 80%; }
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .photo-item { transform: scale(1); opacity: 1; }
}

.film-entry__post-note {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
  text-align: center;
  padding: 20px 0;
  border: 1px solid var(--border);
  width: 100%;
}
