/* ============================================================
   GOLAM MOSTAFA — v4 · film festival aesthetic
   Inspired by Dhaka IFF, Persian FF, Lebanese FF
   ============================================================ */
:root {
  --white: #ffffff;
  --off-white: #f7f7f7;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #e0e0e0;
  --accent: #b91c1c;
  --accent-hover: #991b1b;
  --dark: #111;
  --dark-surface: #1a1a1a;
  --font: "DM Sans", -apple-system, sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--white); color: var(--text);
  font-family: var(--font); font-size: 1rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- topbar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: var(--serif); font-size: 1.4rem;
  text-decoration: none; color: var(--text);
}
.topnav { display: flex; gap: 32px; }
.topnav a {
  font-size: .9rem; font-weight: 500; color: var(--text-muted);
  text-decoration: none; text-transform: uppercase; letter-spacing: .06em;
  transition: color .2s;
}
.topnav a:hover { color: var(--accent); }
.mobile-toggle { display: none; }

/* ---------- hero — full bleed cinematic ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: flex-end;
  background: url('https://vumbnail.com/171054836_large.jpg') center/cover no-repeat;
  background-color: #222;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.85) 0%,
    rgba(0,0,0,.45) 40%,
    rgba(0,0,0,.2) 100%
  );
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 0 32px 72px;
  width: 100%; color: #fff;
}
.hero-label {
  font-size: .85rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .18em; opacity: .8; margin-bottom: 16px;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.05; margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem; line-height: 1.7;
  max-width: 580px; opacity: .85;
}
.hero-sub em { font-style: italic; color: #fff; opacity: 1; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-size: .9rem; font-weight: 600;
  text-decoration: none; padding: 14px 28px;
  text-transform: uppercase; letter-spacing: .06em;
  transition: all .2s; cursor: pointer; border: none;
}
.btn-accent {
  background: var(--accent); color: #fff;
}
.btn-accent:hover { background: var(--accent-hover); }
.btn-light {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
}
.btn-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-gray { background: var(--off-white); }
.section-dark { background: var(--dark); color: #fff; }
.section-label {
  font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .16em; color: var(--accent); margin-bottom: 10px;
}
.section-label-light { color: rgba(255,255,255,.5); }
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2; margin-bottom: 20px;
}
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 36px; flex-wrap: wrap; gap: 16px;
}
.view-all {
  font-size: .875rem; font-weight: 500; color: var(--accent);
  text-decoration: none; transition: opacity .2s;
}
.view-all:hover { opacity: .7; }

/* ---------- featured films (2-up large) ---------- */
.films-featured {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-bottom: 24px;
}
.film-card {
  position: relative; overflow: hidden; cursor: pointer;
  background: var(--dark); border: none; padding: 0;
  font: inherit; color: inherit; text-align: left;
}
.film-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.film-poster {
  position: relative; overflow: hidden;
}
.film-card.is-featured .film-poster { aspect-ratio: 16 / 10; }
.film-card .film-poster { aspect-ratio: 3 / 2; }
.film-poster img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.film-card:hover .film-poster img { transform: scale(1.05); }
.film-poster-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 50%);
  display: flex; align-items: flex-end; padding: 24px;
  opacity: 1; transition: opacity .3s;
}
.film-poster-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,.9); display: flex;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s, transform .3s;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.film-card:hover .film-poster-play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.film-poster-play span { color: var(--dark); font-size: 1rem; padding-left: 3px; }
.film-info { color: #fff; }
.film-badge {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; padding: 3px 10px; margin-bottom: 8px;
}
.film-title {
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.25;
}
.film-card.is-featured .film-title { font-size: 1.5rem; }
.film-where { font-size: .82rem; opacity: .7; margin-top: 4px; }

/* row of smaller films */
.films-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.films-row .film-title { font-size: 1.05rem; }

/* ---------- joya banner — cinematic full-bleed ---------- */
.joya-banner {
  position: relative; padding: 100px 32px;
  background: url('https://vumbnail.com/110263631_large.jpg') center/cover no-repeat;
  background-color: #222;
  text-align: center; color: #fff;
}
.joya-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.65);
}
.joya-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.joya-label {
  font-size: .8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .2em; color: var(--accent); margin-bottom: 14px;
}
.joya-title {
  font-family: var(--serif); font-size: clamp(3rem, 10vw, 6rem);
  line-height: 1; margin-bottom: 20px;
}
.joya-sub { font-size: 1.05rem; opacity: .85; line-height: 1.7; }

/* ---------- about ---------- */
.about-grid {
  display: grid; grid-template-columns: 420px 1fr;
  gap: 56px; align-items: start;
}
.about-photo img {
  width: 100%; height: 520px; object-fit: cover; object-position: center top;
}
.about-text p { color: var(--text-muted); margin-bottom: 16px; font-size: .98rem; }
.about-facts {
  display: flex; gap: 36px; margin-top: 28px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.about-fact { display: flex; flex-direction: column; }
.fact-num { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--accent); }
.fact-text { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- credits ---------- */
.credits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 32px; }
.credits-heading {
  font-family: var(--serif); font-size: 1.2rem;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}
.credit-list { list-style: none; }
.credit-list li {
  padding: 12px 0; border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 2px;
}
.credit-list strong { font-weight: 600; font-size: .95rem; }
.credit-list span { font-size: .82rem; color: var(--text-muted); }

/* ---------- teaching ---------- */
.teach-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px; margin-bottom: 48px;
}
.teach-item {
  padding: 28px; border: 1px solid var(--border);
  background: var(--white);
}
.teach-item h3 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 8px; }
.teach-item p { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }
.edu-heading {
  font-family: var(--serif); font-size: 1.3rem;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.edu-timeline { max-width: 740px; }
.edu-item {
  display: flex; gap: 24px; padding: 16px 0;
  border-bottom: 1px solid var(--border); align-items: baseline;
}
.edu-year {
  font-family: var(--serif); font-size: 1.1rem;
  color: var(--accent); min-width: 52px;
}
.edu-item div { font-size: .92rem; color: var(--text-muted); }
.edu-item strong { color: var(--text); font-weight: 600; }

/* ---------- contact ---------- */
.section-dark .section-title { color: #fff; }
.contact-sub { color: rgba(255,255,255,.6); margin-bottom: 36px; font-size: 1.05rem; }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.contact-item {
  padding: 24px; border: 1px solid rgba(255,255,255,.12);
  background: var(--dark-surface);
  text-decoration: none; display: flex; flex-direction: column; gap: 6px;
  transition: border-color .2s, background .2s;
}
a.contact-item:hover { border-color: var(--accent); background: rgba(255,255,255,.05); }
.contact-label {
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; color: rgba(255,255,255,.4);
}
.contact-value { font-weight: 500; font-size: 1rem; }

/* ---------- footer ---------- */
.footer {
  background: var(--dark); color: rgba(255,255,255,.5);
  border-top: 1px solid rgba(255,255,255,.08); padding: 28px 0;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; flex-wrap: wrap; gap: 12px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  text-decoration: none; text-transform: uppercase; font-size: .75rem;
  letter-spacing: .08em; transition: color .2s;
}
.footer-links a:hover { color: #fff; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.9);
  display: flex; align-items: center; justify-content: center; padding: 28px;
}
.lightbox[hidden] { display: none; }
.lightbox-inner { width: min(1000px, 100%); }
.lightbox-player {
  aspect-ratio: 16 / 9; background: #000;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.lightbox-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox-caption { margin-top: 16px; font-size: .9rem; color: rgba(255,255,255,.6); text-align: center; }
.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; width: 44px; height: 44px; border-radius: 50%;
  font-size: 1rem; cursor: pointer; transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo img { height: 380px; }
  .films-featured { grid-template-columns: 1fr; }
  .films-row { grid-template-columns: 1fr 1fr; }
  .credits-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .topbar-inner { padding: 0 20px; }
  .topnav { display: none; }
  .topnav.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 16px 20px; gap: 12px;
  }
  .mobile-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
  }
  .mobile-toggle span {
    width: 22px; height: 2px; background: var(--text);
    transition: transform .2s;
  }
  .hero { min-height: 80vh; }
  .hero-content { padding: 0 20px 48px; }
  .hero-name { font-size: 2.6rem; }
  .section { padding: 56px 0; }
  .teach-grid { grid-template-columns: 1fr; }
  .films-row { grid-template-columns: 1fr; }
  .joya-banner { padding: 64px 20px; }
  .joya-title { font-size: 3rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-photo img { height: 300px; }
  .about-facts { flex-wrap: wrap; gap: 24px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .film-poster img, .btn, .contact-item { transition: none; }
}
