/* ==========================================================================
   Wajahat Ali Design, single-page personal site
   Font: Urbanist (upright + italic accent), same system as Coffer Studios
   ========================================================================== */

:root {
  --ink: #0f0f0f;
  --paper: #ffffff;
  --paper-soft: #fcfcfc;
  --muted: #6b7280;
  --line: #e6e6e6;
  --surface-dark: #181818;
  --accent: #066aab;

  --font-sans: 'Urbanist', sans-serif;
  --font-serif: 'Urbanist', sans-serif;

  --container: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
button { font-family: inherit; font-size: inherit; line-height: inherit; color: inherit; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--muted); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.italic-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.text-center { text-align: center; }

.section { padding: clamp(48px, 6vw, 88px) 0 0; }
main > .section:last-of-type { padding-bottom: clamp(48px, 6vw, 88px); }
.section--dark, .section--soft { padding-bottom: clamp(48px, 6vw, 88px); }
.section--dark { background: var(--surface-dark); color: var(--paper); }
.section--dark p { color: #b7bbc2; }
.section--dark h2, .section--dark h3 { color: var(--paper); }
.section--soft { background: var(--paper-soft); }
.section:has(+ .section--soft), .section:has(+ .section--dark),
.hero:has(+ .section--soft), .hero:has(+ .section--dark) {
  padding-bottom: clamp(48px, 6vw, 88px);
}

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 4vw, 40px); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  background: var(--ink);
  color: var(--paper);
}
.btn:hover { transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.section--dark .btn--outline, .hero .btn--outline { border-color: var(--paper); color: var(--paper); }
.section--dark .btn--outline:hover, .hero .btn--outline:hover { background: var(--paper); color: var(--ink); }
.hero .btn:not(.btn--outline) { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  transition: color .25s ease;
}
.site-header.is-scrolled .logo { color: var(--ink); }
.logo-mark { height: 26px; width: auto; display: block; }

.header-right { display: flex; align-items: center; gap: 28px; }
.social-links { display: flex; align-items: center; gap: 10px; }
.social-links a {
  width: 32px; height: 32px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  transition: color .25s ease, border-color .25s ease, background .2s ease;
}
.social-links a:hover { background: #fff; color: var(--ink); }
.site-header.is-scrolled .social-links a { color: var(--ink); border-color: var(--line); }
.site-header.is-scrolled .social-links a:hover { background: var(--ink); color: #fff; }

.nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  transition: color .25s ease;
}
.site-header.is-scrolled .nav-link { color: var(--ink); }

.header-right .btn {
  padding: 11px 22px;
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.site-header.is-scrolled .header-right .btn {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  /* min-height, not a fixed height: a fixed 100vh clips/overflows when the
     bottom-anchored content below is taller than the viewport (overflow:
     hidden only clips at the padding-box, so top padding doesn't stop a
     flex-end child rendering up underneath the fixed header, this was
     tried and confirmed not to work). min-height instead lets the box
     grow past 100vh so short viewports get a taller hero (and a bit more
     scrolling) instead of the header overlapping the heading. */
  min-height: max(560px, 100vh);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  /* Reserves space for the fixed .site-header (76px) so content never
     starts underneath it. */
  padding: 96px 0 0;
}
.hero-media {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #101418 0%, #181818 45%, #0c2233 100%);
  z-index: 0;
}
.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.65) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 0 clamp(48px, 7vw, 96px);
}
.hero-content .eyebrow { color: #cfd3d8; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 64px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  max-width: 900px;
  margin-bottom: 20px;
}
.hero .sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 21px);
  color: #d7dade;
  max-width: 560px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 480px) { .hero-actions { flex-direction: column; align-items: stretch; } .hero-actions .btn { justify-content: center; } }

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cfd3d8;
}
.scroll-cue::before {
  content: '';
  width: 1px; height: 34px;
  background: rgba(255,255,255,.5);
}

/* ==========================================================================
   Intro
   ========================================================================== */
.intro { max-width: 760px; margin: 0 auto; text-align: center; }
.intro h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 20px; }
.intro p { font-size: 18px; color: var(--ink); }
.intro p.muted { color: var(--muted); font-size: 16px; }

/* ==========================================================================
   Project slider
   ========================================================================== */
.slider-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.slider-head .heading { max-width: 520px; }
.slider-head h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 8px; }
.slider-controls { display: flex; gap: 10px; flex-shrink: 0; }
.slider-btn {
  width: 44px; height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.slider-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.slider-btn svg { width: 18px; height: 18px; }

.project-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.project-slider::-webkit-scrollbar { display: none; }
/* Two card sizes, same idea as Coffer Studios' project grid: a narrow
   ~4:5 card for portrait/square source photos, a wide ~16:9 card for
   landscape ones. Both widths are derived from the same target height
   (via each ratio) so narrow and wide cards line up in height in the row. */
.project-card {
  scroll-snap-align: start;
  flex: 0 0 clamp(240px, 32vw, 360px);
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  transform: translateZ(0);
}
.project-card--wide { flex-basis: clamp(520px, 70vw, 800px); }
.project-card .thumb {
  aspect-ratio: 4/5;
  background: #e9ebee;
  overflow: hidden;
  transform: translateZ(0);
}
.project-card--wide .thumb { aspect-ratio: 16/9; }
.project-card .thumb img, .project-card .thumb video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.project-card:hover .thumb img, .project-card:hover .thumb video { transform: scale(1.04); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-video-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto 56px;
}
.testimonial-video {
  position: relative;
  width: clamp(180px, 22vw, 240px);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 9/16;
  background: linear-gradient(135deg, #1c1c1c 0%, #0c2233 100%);
  cursor: pointer;
}
.testimonial-video video { width: 100%; height: 100%; object-fit: cover; }
.testimonial-video .play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.testimonial-video:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); }
.testimonial-video .play-btn svg { width: 18px; height: 18px; margin-left: 3px; color: var(--ink); }
.testimonial-video.is-playing .play-btn { opacity: 0; pointer-events: none; }
.testimonial-video .caption {
  position: absolute; left: 16px; bottom: 14px; z-index: 1;
  color: #fff; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
}
.testimonial-video.is-playing .caption { opacity: 0; }
@media (max-width: 700px) {
  .testimonial-video { width: clamp(140px, 40vw, 200px); }
}

.slider-controls-row { display: flex; justify-content: flex-end; margin-bottom: 20px; }

.testimonial-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.testimonial-slider::-webkit-scrollbar { display: none; }
.testimonial-card {
  scroll-snap-align: start;
  flex: 0 0 clamp(260px, 30vw, 340px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 28px;
}
.testimonial-card .quote { color: var(--ink); font-size: 15px; margin-bottom: 18px; }
.testimonial-card .who { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   Book a call
   ========================================================================== */
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 800px) { .book-grid { grid-template-columns: 1fr; gap: 32px; } }
.book-grid h2 { font-size: clamp(26px, 4vw, 38px); }
.book-list { list-style: none; margin: 24px 0 32px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.book-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--paper); }
.book-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: #E78B1C; }
.book-panel {
  background: var(--paper-soft);
  border-radius: 16px;
  padding: 36px;
  color: var(--ink);
}
.book-panel .eyebrow { color: var(--muted); }
.book-panel .contact-email {
  display: block;
  font-size: 20px;
  font-weight: 600;
  margin: 6px 0 24px;
  word-break: break-word;
}
.book-panel .btn { width: 100%; justify-content: center; margin-bottom: 12px; }
/* .book-panel is a light card sitting inside the dark #book section, so it
   needs to opt back out of the .section--dark .btn--outline rule (white
   border/white text, meant for outline buttons sitting directly on the dark
   background) which otherwise left this button's white text invisible
   against the card's near-white background until hovered. */
.book-panel .btn--outline { border-color: var(--ink); color: var(--ink); }
.book-panel .btn--outline:hover { background: var(--ink); color: var(--paper); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--surface-dark);
  color: #9a9ea6;
  padding: 40px 0;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer .logo { color: #fff; font-size: 14px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  transition: background .2s ease, color .2s ease;
}
.footer-social a:hover { background: #fff; color: var(--ink); }
.footer-note { font-size: 13px; }
.footer-studio-link { font-size: 13px; color: #9a9ea6; transition: color .2s ease; }
.footer-studio-link:hover { color: #fff; }

@media (max-width: 700px) {
  .header-right { gap: 14px; }
  .social-links { display: none; }
  .nav-link { display: none; }
}
