/* =========================================================
   Timothy Davidson Productions — shared stylesheet
   Clean rebuild of timothydavidsonproductions.com
   ========================================================= */

/* ---------- Reset + base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  color: #fff;
  font-family: 'Jost', 'Futura', 'Century Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

:root {
  --bg:        #000;
  --bg-elev:  #0b0b0b;
  --fg:        #fff;
  --fg-muted: rgba(255, 255, 255, 0.6);
  --fg-dim:   rgba(255, 255, 255, 0.35);
  --border:   rgba(255, 255, 255, 0.18);
  --gutter:   clamp(20px, 4vw, 60px);
  --max-w:    1280px;
}

/* ---------- Typography helpers ---------- */
.u-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
}

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { line-height: 1.55; margin: 0 0 1em; }

/* ---------- Site header / nav ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: clamp(18px, 3vw, 32px) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header.is-solid {
  position: static;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { height: clamp(40px, 6vw, 64px); width: auto; }

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: clamp(14px, 2.5vw, 28px);
}

.site-nav a {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  padding: 8px 2px;
  transition: opacity 0.15s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { opacity: 0.6; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
}
.nav-toggle span::before { transform: translateY(-7px); position: absolute; left: 8px; right: 8px; }
.nav-toggle span::after  { transform: translateY(7px);  position: absolute; left: 8px; right: 8px; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .site-nav a { font-size: 1.1rem; }
  .nav-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px; height: 40px;
    font-size: 28px;
    line-height: 1;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 1em 1.75em;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  border: 2px solid var(--fg);
  color: var(--fg);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.btn:hover { background: var(--fg); color: var(--bg); }

.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid:hover { background: transparent; color: var(--fg); }

/* ---------- Page wrapper / sections ---------- */
.page {
  padding-top: 120px; /* room for floating header on non-home pages */
}
.page--solid-header { padding-top: 0; }

.section {
  padding: clamp(60px, 10vh, 120px) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}

.section__heading { margin-bottom: 1em; }
.section__intro {
  max-width: 40ch;
  color: var(--fg-muted);
  font-size: 1.05rem;
}

/* ---------- Hero (homepage) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #1a1a1a;
  overflow: hidden;
}
.hero__bg iframe,
.hero__bg img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: 177.77vh; /* 16:9 */
  height: 56.25vw; /* 16:9 */
  min-width: 100vw;
  min-height: 100vh;
  border: 0;
  object-fit: cover;
  pointer-events: none;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.45);
}

.hero__content {
  padding: var(--gutter);
  max-width: 800px;
}

.hero__logo {
  max-width: 420px;
  width: 70%;
  margin: 0 auto 2.5rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
}

/* ---------- Inner page hero (smaller) ---------- */
.page-hero {
  padding: clamp(100px, 14vh, 160px) var(--gutter) clamp(40px, 6vh, 80px);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
}

/* ---------- Video gallery grid ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.video-card:hover { border-color: var(--fg); transform: translateY(-2px); }

.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
}
.video-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--fg);
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.video-card:hover .video-card__play { background: var(--fg); color: var(--bg); }
.video-card__play::before {
  content: '';
  width: 0; height: 0;
  border-left: 16px solid currentColor;
  border-top:  10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

.video-card__title {
  padding: 14px 18px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* Category label above a gallery cluster */
.gallery-group + .gallery-group { margin-top: 60px; }
.gallery-group__title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--fg-muted);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--gutter);
}
.lightbox.is-open { display: flex; }
.lightbox__frame {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  background: #000;
}
.lightbox__frame iframe {
  width: 100%; height: 100%;
  border: 0;
}
.lightbox__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 44px; height: 44px;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
}
.lightbox__close:hover { background: rgba(255,255,255,0.2); }

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-grid img { width: 100%; height: auto; }
.about-grid__text p { font-size: 1.05rem; color: var(--fg-muted); }
.about-grid__text p strong { color: var(--fg); font-weight: 500; }
.about-grid__text a { border-bottom: 1px solid var(--fg-dim); transition: border-color 0.15s; }
.about-grid__text a:hover { border-bottom-color: var(--fg); }

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact form ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 760px) {
  .contact-wrap { grid-template-columns: 1fr; }
}

.contact-info p { color: var(--fg-muted); }
.contact-info a { border-bottom: 1px solid var(--fg-dim); }
.contact-info a:hover { border-bottom-color: var(--fg); }

.contact-form .field {
  display: block;
  margin-bottom: 22px;
}
.contact-form label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 8px;
  color: var(--fg-muted);
}
.contact-form label .req { color: #f0523d; margin-left: 2px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--fg);
}
.contact-form textarea { min-height: 160px; resize: vertical; }

.contact-form__actions { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(40px, 6vh, 70px) var(--gutter);
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}
.site-footer a { color: var(--fg); }

.socials {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 18px;
}
.socials a {
  width: 36px; height: 36px;
  border: 2px solid var(--fg);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.socials a:hover { background: var(--fg); color: var(--bg); }
.socials svg {
  width: 16px; height: 16px;
  fill: currentColor;
}

/* Hero social overlay (home page bottom) */
.hero__socials {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(24px, 5vh, 48px);
  display: flex;
  justify-content: center;
  gap: 14px;
  z-index: 2;
}
.hero__socials a {
  width: 36px; height: 36px;
  border: 2px solid var(--fg);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.hero__socials a:hover { background: var(--fg); color: var(--bg); }
.hero__socials svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
