/* ============================================================
   ReelCraft — Main Stylesheet
   Dark, cinematic, oversized type. Every DM drives here.
   ============================================================ */

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

:root {
  --black: #0a0a0a;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --border: rgba(255,255,255,0.08);
  --white: #ffffff;
  --off-white: #e8e6e3;
  --muted: rgba(255,255,255,0.45);
  --gold: #c9a84c;
  --gold-light: #e2c06b;
  --accent: #ffffff;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --section-pad: clamp(80px, 10vw, 140px);
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.1; }

em { font-style: italic; color: var(--gold-light); }

/* ── UTILITIES ──────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.section { padding: var(--section-pad) 0; }

.section-header { margin-bottom: clamp(48px, 6vw, 80px); }
.section-header.centered { text-align: center; }

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--black);
}

.btn-ghost {
  background: transparent;
  color: var(--off-white);
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 68px;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(10,10,10,0.95), rgba(10,10,10,0));
  backdrop-filter: blur(0px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--white); }

.nav-logo {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--white);
  text-decoration: none;
}

.nav-cta {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  padding: 9px 22px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  letter-spacing: 0.03em;
  transition: border-color 0.2s, background 0.2s;
}
.nav-cta:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.03);
  animation: heroScale 12s ease-out forwards;
}

@keyframes heroScale {
  from { transform: scale(1.06); }
  to   { transform: scale(1.00); }
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.35) 0%,
    rgba(10,10,10,0.55) 50%,
    rgba(10,10,10,0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px clamp(20px, 5vw, 60px) 100px;
  width: 100%;
  animation: heroFade 1.2s ease-out 0.3s both;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(3rem, 8vw, 6.5rem);
  color: var(--white);
  line-height: 1.0;
  margin-bottom: 28px;
  max-width: 720px;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── HOW IT WORKS ───────────────────────────────────────── */
.how-it-works { background: var(--surface); }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  padding: 0 clamp(24px, 3vw, 48px);
}

.step:first-child { padding-left: 0; }
.step:last-child  { padding-right: 0; }

.step-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  flex-shrink: 0;
}

.step-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 400;
  color: rgba(255,255,255,0.1);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── PACKAGES ───────────────────────────────────────────── */
.packages { background: var(--black); }

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.package-card {
  background: var(--surface);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}
.package-card:hover { background: var(--surface-2); }

.package-card--featured {
  background: var(--surface-2);
  position: relative;
}
.package-card--featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.package-top { margin-bottom: 32px; }

.package-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,255,255,0.06);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.package-badge--gold {
  color: var(--gold);
  background: rgba(201,168,76,0.12);
}

.package-badge--subtle {
  color: rgba(255,255,255,0.35);
  background: transparent;
  border: 1px solid var(--border);
}

.package-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.package-price {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
}

.price-range {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--muted);
}

.package-tagline {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.package-features {
  list-style: none;
  flex: 1;
  margin-bottom: 32px;
}

.package-features li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.package-features li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.package-cta { width: 100%; justify-content: center; }

.package-trust {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* ── FEATURED WORK — CASE STUDY CARDS ──────────────────── */
.featured-work { background: var(--surface); }

/* 3-column grid, collapses to 1 on mobile */
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

/* Each card is a clickable unit */
.case-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  border-color: rgba(201,168,76,0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

/* Poster: 3:4 portrait aspect ratio */
.case-poster {
  position: relative;
  width: 100%;
  padding-bottom: 133.33%; /* 3:4 */
  overflow: hidden;
  background: var(--black);
}

.case-poster-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.case-card:hover .case-poster-img { transform: scale(1.04); }

/* Dark vignette so overlay text is readable */
.case-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,10,10,0.0) 40%,
    rgba(10,10,10,0.75) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}
.case-card:hover .case-poster-overlay {
  background: linear-gradient(to bottom,
    rgba(10,10,10,0.15) 0%,
    rgba(10,10,10,0.82) 100%
  );
}

.case-play-btn {
  width: 52px; height: 52px;
  border: 1.5px solid rgba(201,168,76,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold-light);
  background: rgba(10,10,10,0.4);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s, transform 0.25s;
  margin-bottom: 40px; /* pushed up slightly from center */
}
.case-card:hover .case-play-btn {
  opacity: 1;
  transform: scale(1);
}

/* Package tag badge over poster bottom */
.case-poster-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(10,10,10,0.72);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 2px;
  padding: 4px 10px;
  backdrop-filter: blur(4px);
}

/* Text body below poster */
.case-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.case-concept {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

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

.case-outcome {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-top: 4px;
  flex: 1;
}

.case-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
  transition: color 0.2s;
}
.case-expand-btn:hover { color: var(--gold-light); }

/* Footer line below grid */
.work-footer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.work-footer-copy {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
}

.work-footer-copy em { color: var(--gold-light); font-style: normal; }

/* ── SHOT LIST MODALS ────────────────────────────────────── */
.shot-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-end;  /* mobile: slide up from bottom */
  justify-content: center;
}

@media (min-width: 700px) {
  .shot-modal { align-items: center; }
}

.shot-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(6px);
}

.shot-modal-panel {
  position: relative;
  z-index: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@media (min-width: 700px) {
  .shot-modal-panel {
    border-radius: 12px;
    max-height: 80vh;
    animation: modalFadeIn 0.25s ease both;
  }
}

@keyframes modalSlideUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes modalFadeIn {
  from { transform: scale(0.96) translateY(12px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

.shot-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
  z-index: 2;
}
.shot-modal-close:hover { color: var(--white); border-color: rgba(255,255,255,0.35); }

.shot-modal-inner {
  padding: clamp(28px, 5vw, 44px);
  padding-top: 32px;
}

.shot-modal-meta { margin-bottom: 20px; }

.shot-modal-concept {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.shot-modal-tag {
  font-size: 0.8rem;
  color: var(--muted);
}

.shot-modal-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.1;
}

.shot-modal-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* Shot list numbered */
.shot-list {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.shot-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
}

.shot-list li:last-child { border-bottom: none; }

.shot-num {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(201,168,76,0.5);
  min-width: 28px;
  line-height: 1.5;
  flex-shrink: 0;
}

.shot-modal-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.shot-modal-cta .btn { flex: 1; justify-content: center; min-width: 140px; }

/* Legacy video grid — hidden but not removed, ref only */
.video-grid { display: none; }
.video-item { display: none; }
.work-grid  { display: none; }
.work-item  { display: none; }

/* ── BOOKING ────────────────────────────────────────────── */
.booking { background: var(--black); }

.booking-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: start;
}

.booking-header { position: sticky; top: 100px; }
.booking-header .section-desc { margin-top: 16px; }

.booking-form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group--full { grid-column: 1 / -1; }

.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.req { color: var(--gold); font-size: 0.9em; }

.form-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 13px 16px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder { color: rgba(255,255,255,0.2); }

.form-input:focus {
  border-color: rgba(255,255,255,0.35);
  background: var(--surface-2);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.3)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-textarea { resize: vertical; min-height: 110px; }

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  border: none;
}

.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Success state */
.booking-success {
  padding: 56px 40px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.success-icon {
  width: 56px; height: 56px;
  background: rgba(201,168,76,0.15);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.4rem;
  color: var(--gold-light);
}

.success-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 12px;
}

.success-message {
  color: var(--muted);
  font-size: 1rem;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-left { display: flex; flex-direction: column; gap: 6px; }

.footer-logo {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--white); }

.footer-divider { color: var(--border); }

/* ── NAV SCROLL EFFECT ──────────────────────────────────── */
/* Applied by JS below on scroll */

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .steps {
    flex-direction: column;
    gap: 0;
  }
  .step {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
  }
  .step-divider { display: none; }

  .package-grid {
    grid-template-columns: 1fr;
  }

  /* Case study grid: 2 cols on tablet */
  .case-study-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .booking-inner {
    grid-template-columns: 1fr;
  }
  .booking-header { position: static; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }

  /* Case study grid: single column on mobile */
  .case-study-grid { grid-template-columns: 1fr; }

  /* Poster shorter on mobile so card doesn't dominate */
  .case-poster { padding-bottom: 100%; /* 1:1 on mobile */ }

  .work-footer-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .work-footer-line .btn { width: 100%; justify-content: center; }
}
