/*
Theme Name: Mukesh
Theme URI: https://rosybrown-bison-966706.hostingersite.com
Author: Relevant Projects
Description: Lightweight portfolio theme for Mukesh Chandwani. Add work under Videos in the dashboard.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mukesh
*/

/* ---------- Tokens ---------- */
:root {
  --bg: #1E1E1E;
  --accent: #32C6C9;
  --white: #FFFFFF;
  --overlay: rgba(20, 20, 20, 0.82);
  --tile: #2A2A2A;

  --font-head: "Cal Sans", "Arial Black", system-ui, sans-serif;
  --font-body: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1176px;
  --pad: clamp(20px, 5vw, 48px);
  --gap: 8px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Header ---------- */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(24px, 4vw, 44px);
}
.wordmark {
  font-family: var(--font-head);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1;
  color: var(--white);
  position: relative; z-index: 31;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a { font-size: 20px; font-weight: 500; color: var(--accent); transition: color .2s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }

.menu-btn {
  display: none; background: none; border: 0; padding: 8px; margin-right: -8px;
  color: var(--accent); cursor: pointer; position: relative; z-index: 31;
}
.menu-btn svg { width: 28px; height: 28px; }

@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 30; background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: center; gap: 24px; }
  .nav a { font-family: var(--font-head); font-size: 40px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Intro ---------- */
.intro { padding-bottom: clamp(28px, 3.5vw, 44px); }
.intro h1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  margin: 0;
  color: var(--accent);
}
.intro h1 .w { color: var(--white); }
@media (max-width: 720px) { .intro h1 br { display: none; } }

/* ---------- Grids ---------- */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(4, 1fr); }
.grid.films { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .grid, .grid.films { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .grid.films { grid-template-columns: 1fr; } }

.shorts-wrap { margin-top: clamp(48px, 6vw, 80px); }
.section-head {
  font-family: var(--font-head); font-weight: 400;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.1;
  color: var(--accent); margin: 0 0 clamp(20px, 2.5vw, 32px);
}

.card {
  position: relative; display: block; width: 100%;
  background: var(--tile); border: 0; padding: 0; margin: 0;
  cursor: pointer; overflow: hidden; font: inherit; color: inherit;
  aspect-ratio: 4 / 3;
}
.shorts .card { aspect-ratio: 9 / 16; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card-body {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; text-align: center;
  background: var(--overlay);
  color: var(--white);
  font-size: clamp(16px, 1.4vw, 21px); line-height: 1.3; font-weight: 500;
  opacity: 0; transition: opacity .3s ease;
}
.card:hover .card-body, .card:focus-visible .card-body { opacity: 1; }
.card:focus-visible { outline-offset: 2px; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0;
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  background: rgba(20, 20, 20, .96);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lb-frame { width: min(92vw, calc(84vh * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.lightbox.vertical .lb-frame { width: min(92vw, calc(86vh * 9 / 16)); aspect-ratio: 9 / 16; }
.lb-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lb-close {
  position: absolute; top: 16px; right: 16px; width: 48px; height: 48px;
  background: none; border: 0; color: var(--accent); cursor: pointer;
  display: grid; place-items: center;
}
.lb-close:hover { color: var(--white); }
.lb-close svg { width: 26px; height: 26px; }

/* ---------- About / Contact ---------- */
.page { padding-bottom: clamp(64px, 8vw, 120px); }
.page h1 {
  font-family: var(--font-head); font-weight: 400;
  font-size: clamp(30px, 3vw, 38px); line-height: 1.1;
  color: var(--accent); margin: 0 0 28px;
}
.about-grid {
  display: grid; grid-template-columns: 245px minmax(0, 480px);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.about-grid.no-photo { grid-template-columns: minmax(0, 560px); }
.about-photo { aspect-ratio: 1; object-fit: cover; width: 100%; filter: grayscale(1); }
.prose { color: var(--white); font-size: 16px; line-height: 1.45; }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--accent); }
.prose a:hover { color: var(--white); }
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 245px; } }

.contact-list { list-style: none; margin: 0; padding: 0; color: var(--white); }
.contact-list li { margin-bottom: 14px; font-size: 16px; }
.contact-list .k { display: block; color: var(--accent); margin-bottom: 2px; }
.contact-list a { color: var(--white); font-size: clamp(18px, 2vw, 24px); overflow-wrap: anywhere; transition: color .2s ease; }
.contact-list a:hover { color: var(--accent); }
.contact-intro { color: var(--white); margin: 0 0 32px; max-width: 480px; line-height: 1.45; }

/* ---------- Footer ---------- */
.site-footer .wrap {
  display: flex; justify-content: flex-end;
  padding-top: 32px; padding-bottom: 32px;
  font-size: 14px; color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- WordPress extras ---------- */
.prose h2, .prose h3 { font-family: var(--font-head); font-weight: 400; color: var(--accent); line-height: 1.15; margin: 1.4em 0 .5em; }
.prose img { height: auto; }
.prose ul { padding-left: 1.2em; }
.empty-note { color: var(--white); opacity: .7; }
.nav .current-menu-item > a { color: var(--white); }

/* ---------- v1.2 ---------- */
.wordmark {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--white);
  font-size: clamp(28px, 3vw, 38px);
}
.shorts-wrap { margin-top: var(--gap); }
.page h1.contact-email { font-size: clamp(24px, 3vw, 38px); margin-bottom: 20px; max-width: none; }
.contact-email a { color: var(--accent); overflow-wrap: anywhere; transition: color .2s ease; }
.contact-email a:hover { color: var(--white); }
.contact-text { color: var(--white); margin: 0 0 24px; line-height: 1.45; }
.socials { list-style: none; margin: 0 0 0 -9px; padding: 0; display: flex; gap: 8px; }
.socials a { display: block; padding: 9px; color: var(--white); transition: color .2s ease; }
.socials a:hover { color: var(--accent); }
.socials svg { display: block; width: 26px; height: 26px; }

/* ---------- v1.3: photo above bio ---------- */
.about-grid, .about-grid.no-photo { grid-template-columns: minmax(0, 560px); gap: 28px; align-items: start; }
.about-photo { width: 200px; max-width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.about-photo { filter: none; }
