/* ========================================
   Whittaker Lemberg Productions
   Design System
   ======================================== */

/* --- Custom Properties --- */
:root {
  /* Colors — from Muvimox template kit + site customization */
  --color-bg:        #0d1f2d;
  --color-bg-dark:   #091520;
  --color-bg-card:   #132a3a;
  --color-surface:   #1a3347;
  --color-text:      #ffffff;
  --color-text-muted:#b0bec5;
  --color-accent:    #f0a500;
  --color-accent-hover:#ffb733;
  --color-border:    rgba(255, 255, 255, 0.15);

  /* Typography — Montserrat for headings/body, Oswald for accents */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Montserrat', sans-serif;
  --font-accent:  'Oswald', sans-serif;

  /* Layout */
  --max-width:     1200px;
  --content-width:  800px;
  --gap:            2rem;
  --header-height:  80px;
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--color-accent-hover);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

.accent-text {
  font-family: var(--font-accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.9375rem;
  line-height: 1.2;
}

.section-label {
  font-family: var(--font-accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.875rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.container--narrow {
  max-width: var(--content-width);
}

section {
  padding: 5rem 0;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: var(--gap);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 991px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

  section { padding: 3rem 0; }

  .container { padding: 0 1rem; }

  .hero {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .hero--short { min-height: 40vh; }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.8125rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__content {
    padding: 0;
    max-width: 100%;
  }

  .hero__content p {
    font-size: 1rem;
  }

  blockquote { padding: 1.25rem; font-size: 1rem; }

  /* Splash title: constrain to safe width on all phones */
  .splash__title {
    font-size: 9vw;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.875rem 2rem;
  border: 2px solid;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn--outline {
  border-color: var(--color-text);
  color: var(--color-text);
  background: transparent;
}
.btn--outline:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn--accent {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}
.btn--accent:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn--solid {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg-dark);
}
.btn--solid:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 31, 45, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 50px;
  width: auto;
}

.nav-list {
  display: flex;
  gap: 0.25rem;
}

.nav-item > a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.5rem 0.75rem;
  transition: color 0.2s;
}
.nav-item__header > a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.5rem 0.75rem;
  transition: color 0.2s;
}
.nav-item > a:hover,
.nav-item__header > a:hover,
.nav-item > a[aria-current="page"],
.nav-item__header > a[aria-current="page"] {
  color: var(--color-accent);
}

/* Dropdown */
.has-children {
  position: relative;
}
.has-children > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg-dark);
  border: 1px solid var(--color-border);
  min-width: 180px;
  padding: 0.5rem 0;
  z-index: 100;
}
.nav-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--color-text);
}
.nav-dropdown a[aria-current="page"] {
  color: var(--color-accent);
}
.nav-dropdown a:hover {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 992px) {
  .has-children:hover .nav-dropdown,
  .has-children:focus-within .nav-dropdown {
    display: block;
  }
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.3s;
}

/* Sub-toggle button — hidden on desktop */
.nav-sub-toggle {
  display: none;
}

@media (max-width: 991px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--color-bg-dark);
    border-top: 1px solid var(--color-border);
    padding: 1rem 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav.is-open { display: block; }

  .nav-list {
    flex-direction: column;
    padding: 0 var(--gap);
  }

  /* Row containing the link + expand button */
  .nav-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-item__header > a {
    flex: 1;
    padding: 0.75rem 0;
    display: block;
    color: var(--color-text);
  }

  .nav-item > a {
    padding: 0.75rem 0;
    display: block;
    color: var(--color-text);
  }

  /* Sub-toggle button */
  .nav-sub-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: 4px;
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
  }

  .nav-dropdown {
    display: none;
    position: static;
    border: none;
    padding-left: 1rem;
  }
  .nav-dropdown.is-open {
    display: block;
  }

  .has-children > a::after { display: none; }
}

/* --- Hero --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: calc(var(--header-height) + 2rem) var(--gap) 4rem;
  overflow: hidden;
}

.hero--short {
  min-height: 50vh;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero__bg--vimeo {
  background: #000;
}
.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(9, 21, 32, 0.6) 0%,
    rgba(9, 21, 32, 0.85) 100%
  );
}

.hero__content {
  max-width: 800px;
  width: 100%;
  overflow: hidden;
}
.hero__content h1 {
  margin-bottom: 1rem;
}
.hero__content p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}
.hero__accent {
  color: var(--color-accent);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Cards --- */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card__image--contain {
  aspect-ratio: auto;
  background: var(--color-bg-card);
}
.card__image--contain img {
  object-fit: contain;
}
.card:hover .card__image img {
  transform: scale(1.05);
}
.card__body {
  padding: 1.5rem;
}
.card__body h3 {
  margin-bottom: 0.75rem;
}
.card__body p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* --- Team Card (compact horizontal) --- */
.team-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-bg-card);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: border-color 0.3s ease, transform 0.2s ease;
}
.team-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}
.team-card__photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card__photo svg {
  width: 100%;
  height: 100%;
}
.team-card__info {
  flex: 1;
  min-width: 0;
}
.team-card h4 {
  margin-bottom: 0.125rem;
  font-size: 1rem;
  line-height: 1.3;
}
.team-card .text-accent {
  color: var(--color-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.team-card p {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.team-card .text-muted {
  margin-top: 0.25rem;
}

/* --- Sections --- */
.section--dark {
  background: var(--color-bg-dark);
}
.section--surface {
  background: var(--color-surface);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}

.split--start {
  align-items: start;
}

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

.split__text {
  padding: 2rem 0;
}

.about-gallery {
  align-items: stretch;
}

.about-gallery__item {
  overflow: hidden;
}

.about-gallery__item img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.film-projects-gallery__item {
  overflow: hidden;
}

.film-projects-gallery__item img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.supporting-quote {
  padding: 1.25rem;
  background: var(--color-bg-card);
  border-left: 4px solid var(--color-accent);
  color: var(--color-text-muted);
}

.supporting-quote p {
  margin: 0;
}

.supporting-quote cite {
  display: block;
  margin-top: 0.75rem;
  color: var(--color-text);
  font-style: normal;
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mancbeth-poster {
  width: min(100%, 280px);
  margin-inline: auto;
}

.mancbeth-remixed-artwork {
  width: min(100%, 300px);
  margin-inline: auto;
}

.mancbeth-remixed-artwork img {
  display: block;
  width: 100%;
}

@media (max-width: 767px) {
  .mancbeth-poster,
  .mancbeth-remixed-artwork {
    margin-inline: auto;
  }
}

@media (max-width: 575px) {
  .about-gallery__item img {
    min-height: 0;
  }

  .film-projects-gallery__item img {
    min-height: 0;
  }
}

/* --- Blockquote --- */
blockquote {
  background: var(--color-bg-card);
  border-left: 4px solid var(--color-accent);
  padding: 2rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--color-text-muted);
}
blockquote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.875rem;
  color: var(--color-accent);
}

/* --- Video embed --- */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-player {
  background: #000;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.video-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.video-player__caption {
  padding: 1rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  background: var(--color-bg-card);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
}

.brand-mark--text {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  font-family: var(--font-accent);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--gap);
  margin-bottom: 3rem;
}
@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}
.footer-links a {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

/* --- Forms (Netlify) --- */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-muted  { color: var(--color-text-muted); }
.text-lg     { font-size: clamp(1rem, 2.5vw, 1.25rem); line-height: 1.7; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }

/* Fix body offset for fixed header */
body:not(.page-splash) {
  padding-top: var(--header-height);
}

/* --- Splash page specific --- */
.splash__tagline {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}
.splash__company {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.splash__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 10vw, 8rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1.04;
  max-width: 100%;
  margin: 0 0 2rem;
  padding-right: 0.08em;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* --- Splash page overrides */
.page-splash .site-header {
  background: transparent;
  border-bottom: none;
}

.page-splash .hero__content {
  overflow: visible;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeIn 0.8s ease both; }
.animate-slide-up { animation: slideUp 0.8s ease both; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Grid 5-col --- */
.grid--5 {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 900px) {
  .grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Pull Quote --- */
.pull-quote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
  font-style: italic;
  color: var(--color-text-muted);
}

/* --- Film List --- */
.film-list {
  list-style: none;
  padding: 0;
}
.film-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

/* --- Award images --- */
.award-img {
  max-height: 100px;
  width: auto;
  margin: 0 auto 0.75rem;
  display: block;
}

/* --- Avatar placeholder --- */
.avatar-placeholder {
  width: 100%;
  height: auto;
  background: var(--color-bg-card);
  border-radius: 50%;
}

/* --- Login box --- */
.login-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 2rem;
}

/* --- Snipcart cart button in nav --- */
.snipcart-checkout {
  cursor: pointer;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1rem;
  padding: 0.5rem;
}
