/* ===========================================
   VALOR FILM CO. — Stylesheet
   Editorial / cinematic / clean
   =========================================== */

:root {
  /* Dark (default) — matches the Valor Film Co. brand mark */
  --bg: #0A0A0A;
  --bg-alt: #141414;
  --text: #F5EFE0;
  --text-muted: #9B948A;
  --accent: #B33A26; /* brick red from the wordmark underline */
  --line: rgba(245, 239, 224, 0.14);
  --logo-light-display: none;
  --logo-dark-display: block;
}

[data-theme="light"] {
  --bg: #F5EFE0;
  --bg-alt: #EDE5D2;
  --text: #0A0A0A;
  --text-muted: #5A5550;
  --accent: #B33A26;
  --line: rgba(10, 10, 10, 0.14);
  --logo-light-display: block;
  --logo-dark-display: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 1rem 1.5rem;
  background: var(--accent);
  color: var(--text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 2.5rem; }

/* ===========================================
   TYPOGRAPHY
   =========================================== */
.display {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.9;
  text-transform: uppercase;
}


.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: var(--text-muted);
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; }

/* ===========================================
   NAVIGATION
   =========================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease, background 0.3s ease;
}

[data-theme="light"] .nav {
  background: rgba(245, 239, 224, 0.78);
}

.nav.scrolled { padding: 0.85rem 2.5rem; }
.nav.scrolled .nav-logo img { height: 28px; }

.nav-logo { display: flex; align-items: center; }
.nav-logo img {
  height: 38px;
  width: auto;
  transition: height 0.3s ease;
}
.nav-logo-light { display: var(--logo-light-display); }
.nav-logo-dark { display: var(--logo-dark-display); }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.75rem;
  margin-left: auto;
  margin-right: 1.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  transition: opacity 0.2s ease;
}

.nav-links a:not(.nav-cta):hover { opacity: 0.6; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--text);
}

.nav-cta {
  border: 1px solid var(--accent);
  color: var(--text) !important;
  background: var(--accent);
  padding: 0.7rem 1.4rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.nav-cta:hover {
  background: transparent;
  color: var(--text) !important;
  opacity: 1 !important;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 1rem;
  display: flex;
  align-items: center;
}
.theme-toggle svg { width: 18px; height: 18px; }
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===========================================
   HERO (with video background)
   =========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Cover technique: keep 16:9 video filling viewport */
  width: 100vw;
  height: 56.25vw;        /* 16:9 -> height = width * 9/16 */
  min-height: 100vh;
  min-width: 177.78vh;    /* 16:9 -> width = height * 16/9 */
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.hero-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.35) 35%, rgba(10,10,10,0.85) 100%);
  z-index: 1;
}

[data-theme="light"] .hero-video::after {
  background:
    linear-gradient(180deg, rgba(245,239,224,0.55) 0%, rgba(245,239,224,0.30) 35%, rgba(245,239,224,0.92) 100%);
}

.hero .container { position: relative; z-index: 2; }

.hero-accent-line {
  display: block;
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 2rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
}
.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--text-muted);
}

.hero h1 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(3.5rem, 11vw, 13rem);
  line-height: 0.85;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  max-width: 1200px;
  margin-bottom: 2rem;
}

.hero h1 em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 560px;
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: auto;
  padding-top: 4rem;
  border-top: 1px solid var(--line);
}

.hero-meta-item .eyebrow { display: block; margin-bottom: 0.5rem; }
.hero-meta-item p { font-size: 0.95rem; max-width: 220px; }

/* ===========================================
   BUTTONS
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.2rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: transparent; color: var(--text); }
.btn-arrow { font-size: 1.2rem; transition: transform 0.3s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ===========================================
   MARQUEE
   =========================================== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  font-family: 'Anton', sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.marquee-track span {
  padding: 0 2rem;
  display: inline-flex;
  align-items: center;
  gap: 2rem;
}
.marquee-track span::after {
  content: '✦';
  font-size: 0.9rem;
  opacity: 0.5;
}
.marquee-track em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  text-transform: none;
  font-weight: 400;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===========================================
   SECTIONS
   =========================================== */
section { padding: 8rem 0; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  margin-bottom: 5rem;
  flex-wrap: wrap;
}

.section-header h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  max-width: 900px;
}

.section-header h2 em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  text-transform: none;
  font-weight: 400;
}

.section-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-bottom: 1px solid var(--text);
  padding-bottom: 0.25rem;
}

/* ===========================================
   ABOUT / INTRO
   =========================================== */
.intro {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.intro-grid .eyebrow { padding-top: 0.5rem; }
.intro-text p {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  line-height: 1.4;
  font-weight: 300;
  letter-spacing: -0.01em;
}
.intro-text p em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
}

/* ===========================================
   WORK / PROJECTS GRID
   =========================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2rem;
}

.work-card {
  cursor: pointer;
  transition: transform 0.4s ease;
}
.work-card:hover { transform: translateY(-4px); }

.work-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 1.25rem;
}
.work-thumb-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: grayscale(20%);
}
.work-card:hover .work-thumb-inner {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.work-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.work-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* Featured large card */
.work-card.featured { grid-column: 1 / -1; }
.work-card.featured .work-thumb { aspect-ratio: 21 / 9; }
.work-card.featured .work-title { font-size: 2.5rem; }

/* ===========================================
   SERVICES
   =========================================== */
.services-list {
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease;
  cursor: pointer;
}
.service-row:hover { padding-left: 1rem; }
.service-num {
  font-family: 'Anton', sans-serif;
  font-size: 1.2rem;
  color: var(--text-muted);
}
.service-name {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  text-transform: uppercase;
  line-height: 1;
}
.service-desc { color: var(--text-muted); max-width: 500px; }
.service-arrow {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.service-row:hover .service-arrow { transform: translate(4px, -4px); }

/* ===========================================
   CTA BLOCK
   =========================================== */
.cta {
  padding: 10rem 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 9rem);
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.cta h2 em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  text-transform: none;
}
.cta p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 3rem;
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 5rem 2.5rem 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto 4rem;
}
.footer-brand img { height: 90px; width: auto; margin-bottom: 1.5rem; }
.footer-logo-light { display: var(--logo-light-display); }
.footer-logo-dark { display: var(--logo-dark-display); }
.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 320px;
  letter-spacing: 0.02em;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-weight: 500;
}
.footer-col a {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}
.footer-col a:hover { opacity: 0.6; }

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===========================================
   CONTACT FORM
   =========================================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-info h1 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6rem);
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 2rem;
}
.contact-info h1 em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  text-transform: none;
}
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; max-width: 440px; }
.contact-direct { margin-top: 3rem; }
.contact-direct a {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-bottom-color: var(--text); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===========================================
   PAGE HEADERS (sub-pages)
   =========================================== */
.page-hero {
  padding: 12rem 0 6rem;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(3.5rem, 10vw, 9rem);
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 1.5rem;
}
.page-hero h1 em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  text-transform: none;
}
.page-hero p { color: var(--text-muted); max-width: 600px; font-size: 1.1rem; }

/* ===========================================
   REVEAL ANIMATION
   =========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 900px) {
  .container { padding: 0 1.5rem; }
  .nav { padding: 1.25rem 1.5rem; }
  .nav.scrolled { padding: 1rem 1.5rem; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 360px;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right 0.4s ease;
    border-left: 1px solid var(--line);
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; }
  .hero { padding: 7rem 1.5rem 3rem; }
  .intro-grid,
  .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .work-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .work-card.featured { grid-column: auto; }
  .service-row { grid-template-columns: 50px 1fr; gap: 1rem; }
  .service-desc, .service-arrow { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  section { padding: 5rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .hero-meta { gap: 1.5rem; padding-top: 2.5rem; }
}

/* ===========================================
   FONT UNIFICATION OVERRIDE — kill Cormorant italic
   on all display text. Placed at end so cascade wins.
   =========================================== */
em, i { font-style: normal; font-family: inherit; }
.hero h1 em, .hero h1 i,
.section-header h2 em, .section-header h2 i,
.cta h2 em, .cta h2 i,
.contact-info h1 em, .contact-info h1 i,
.page-hero h1 em, .page-hero h1 i,
.work-title em, .work-title i,
.service-name em, .service-name i,
.intro-text p em, .intro-text p i,
.marquee-track em, .marquee-track i,
.footer-tagline em, .footer-tagline i {
  font-family: inherit !important;
  font-style: normal !important;
  font-weight: inherit !important;
  text-transform: inherit !important;
  letter-spacing: inherit !important;
}
