/* ═══════════════════════════════════════════════════════════════════════════
   LINDNER FILMS — SHARED STYLES
   ═══════════════════════════════════════════════════════════════════════════
   Used by every page on the marketing site. Edit once here, applies to all.
   If you change colors or fonts, do it in the :root block at the top. */

:root {
  --ivory: #faf7f2;
  --ivory-deep: #f0ebe0;
  --ivory-border: #e0d8c8;
  --charcoal: #1a1409;
  --mid: #6b5d48;
  --muted: #9a8a70;
  --gold: #b8924a;
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--charcoal);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ── NAV ────────────────────────────────────────────────────────── */
nav.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  background: transparent;
  transition: all 0.35s ease;
  display: flex;
  align-items: center;
  padding: 0 48px;
  justify-content: space-between;
}
nav.topnav.scrolled {
  background: rgba(250,247,242,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ivory-border);
}
.nav-group { display: flex; gap: 32px; flex: 1; align-items: center; }
.nav-group.right { justify-content: flex-end; }
.nav-link {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--charcoal); }
.nav-link.active { color: var(--charcoal); font-weight: 500; }
.nav-brand {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  white-space: nowrap;
  text-decoration: none;
}
.nav-brand em { font-style: italic; color: var(--gold); }
.nav-inquire {
  padding: 9px 22px;
  background: var(--charcoal);
  color: var(--ivory);
  border: none;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.005em; }
em { font-style: italic; }
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
}
.gold-bar { width: 48px; height: 1px; background: var(--gold); }

/* ── COMMON SECTIONS ────────────────────────────────────────────── */
.section { padding: 120px 80px; }
.section-ivory { background: var(--ivory); }
.section-ivory-deep { background: var(--ivory-deep); }
.section-charcoal { background: var(--charcoal); color: var(--ivory-deep); }

/* ── PAGE HEADER (for interior pages) ───────────────────────────── */
.page-header {
  padding: 100px 80px 72px;
  background: var(--ivory);
  padding-top: 164px;
}
.page-header h1 {
  font-size: clamp(52px, 8vw, 108px);
  color: var(--charcoal);
  line-height: 0.9;
  margin-bottom: 32px;
}
.page-header h1 em { color: var(--gold); }
.page-header p {
  color: var(--mid);
  max-width: 560px;
  line-height: 1.8;
  font-size: 16px;
  font-weight: 300;
}

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-dark { background: var(--charcoal); color: var(--ivory); }
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid rgba(26,20,9,0.25);
  font-weight: 400;
}
.btn-gold { background: var(--gold); color: var(--charcoal); }

/* ── FILM CARD (hover zoom) ─────────────────────────────────────── */
.film-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.film-card:hover { transform: scale(1.01); }
.film-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.film-card .overlay {
  position: absolute; inset: 0;
  background: rgba(26,20,9,0.4);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.film-card:hover .overlay { opacity: 1; }
.film-card:hover img { transform: scale(1.05); }
.film-card .play-icon {
  width: 56px; height: 56px;
  border: 1px solid rgba(250,247,242,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  font-size: 18px;
}
.film-card .label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(26,20,9,0.72));
  color: var(--ivory);
}
.film-card .label-meta {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(240,235,224,0.6);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.film-card .label-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
}

/* ── FOOTER ─────────────────────────────────────────────────────── */
footer.site-footer {
  background: var(--ivory-deep);
  padding: 80px;
  border-top: 1px solid var(--ivory-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-col h3 {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col a, .footer-col div {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  text-decoration: none;
  font-weight: 300;
  text-transform: capitalize;
  line-height: 1.9;
}
.footer-col a:hover { color: var(--charcoal); }
.footer-brand-block {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 16px;
  text-decoration: none;
  display: inline-block;
}
.footer-brand-block em { color: var(--gold); }
.footer-tagline {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 280px;
  font-weight: 300;
  text-transform: none;
}
.footer-bottom {
  border-top: 1px solid var(--ivory-border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.footer-bottom .signoff {
  font-style: italic;
  font-family: var(--serif);
}

/* ── FADE-UP ANIMATION ──────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) both; }
.fade-up-2 { animation: fadeUp 0.9s 0.15s cubic-bezier(0.22,1,0.36,1) both; }
.fade-up-3 { animation: fadeUp 0.9s 0.3s cubic-bezier(0.22,1,0.36,1) both; }
.fade-up-4 { animation: fadeUp 0.9s 0.45s cubic-bezier(0.22,1,0.36,1) both; }

/* ── SPLIT TEXT ANIMATION ───────────────────────────────────────── */
/*
   How to use:
   Add data-split="true" to any h1, h2, or h3.
   site.js will wrap each word in a .split-word span automatically.
   Words slide up from invisible as the element scrolls into view.
   Delay staggers per word via --i CSS variable.
*/
@keyframes wordUp {
  from { opacity: 0; transform: translateY(52px); }
  to   { opacity: 1; transform: translateY(0); }
}
[data-split="true"] {
  overflow: visible;
}
[data-split="true"] .split-word {
  display: inline-block;
  /* clip the word inside a line-height box so the slide-up is hidden until it crests */
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.15;
  margin-bottom: -0.05em; /* compensate for overflow:hidden clipping descenders */
}
[data-split="true"] .split-word .split-inner {
  display: inline-block;
  opacity: 0;
  transform: translateY(52px);
  transition:
    opacity  0.72s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 55ms),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 55ms);
}
[data-split="true"].split-visible .split-inner {
  opacity: 1;
  transform: translateY(0);
}
/* preserve trailing whitespace between words */
[data-split="true"] .split-word::after {
  content: '\00a0';
  font-size: 0.85em; /* slightly tighter than a full space */
}
[data-split="true"] .split-word:last-child::after {
  content: '';
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-split="true"] .split-inner {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── DIAGONAL CLIP-PATH SECTION TRANSITIONS ─────────────────────── */
/*
   Adds a diagonal cut between sections so they bleed into each other
   cinematically instead of sitting in flat horizontal bands.

   Usage — add ONE of these classes to a <section> or wrapping <div>:

     .clip-top-left    — top edge cuts from left-high to right-low  ╱
     .clip-top-right   — top edge cuts from left-low  to right-high ╲
     .clip-bottom-left — bottom edge cuts left-high to right-low    ╱
     .clip-bottom-right— bottom edge cuts left-low  to right-high   ╲
     .clip-both-in     — diamond / wedge: both edges angle inward
     .clip-both-out    — both edges angle outward (chevron)

   The clip size is controlled by --clip-size (default 56px).
   Increase on larger screens via the responsive block at the bottom
   of this file if you want a more dramatic angle.

   IMPORTANT: The clipped section needs extra top/bottom padding to
   compensate for the cut. Add .clip-pad to get that automatically.
*/
:root {
  --clip-size: 56px;
}
.clip-pad { padding-top: calc(120px + var(--clip-size)) !important;
            padding-bottom: calc(120px + var(--clip-size)) !important; }

.clip-top-left {
  clip-path: polygon(0 var(--clip-size), 100% 0, 100% 100%, 0 100%);
  margin-top: calc(-1 * var(--clip-size));
}
.clip-top-right {
  clip-path: polygon(0 0, 100% var(--clip-size), 100% 100%, 0 100%);
  margin-top: calc(-1 * var(--clip-size));
}
.clip-bottom-left {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--clip-size)), 0 100%);
  margin-bottom: calc(-1 * var(--clip-size));
}
.clip-bottom-right {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--clip-size)));
  margin-bottom: calc(-1 * var(--clip-size));
}
.clip-both-in {
  clip-path: polygon(0 var(--clip-size), 100% 0, 100% calc(100% - var(--clip-size)), 0 100%);
  margin-top: calc(-1 * var(--clip-size));
  margin-bottom: calc(-1 * var(--clip-size));
}
.clip-both-out {
  clip-path: polygon(0 0, 100% var(--clip-size), 100% 100%, 0 calc(100% - var(--clip-size)));
  margin-top: calc(-1 * var(--clip-size));
  margin-bottom: calc(-1 * var(--clip-size));
}

/* ── NAV: always solid on mobile & when explicitly locked ───────── */
/*
   On mobile the nav is always opaque (set in the media query below).
   On desktop, .nav-solid forces the opaque state regardless of scroll.
   site.js adds .nav-solid on non-hero pages automatically.
*/
nav.topnav.nav-solid {
  background: rgba(250,247,242,0.98) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ivory-border);
}

/* ── MOBILE MENU (hamburger) — hidden on desktop, shown on mobile ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--charcoal);
  font-size: 22px;
  line-height: 1;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0; right: 0;
  z-index: 999;
  background: var(--ivory);
  border-bottom: 1px solid var(--ivory-border);
  padding: 24px;
  flex-direction: column;
  gap: 18px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--ivory-border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .nav-inquire { text-align: center; margin-top: 12px; border: none; color: var(--ivory); }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tablet and smaller (960px) — tighten horizontal paddings ── */
@media (max-width: 960px) {
  .section { padding: 100px 40px; }
  nav.topnav { padding: 0 32px; }
  footer.site-footer { padding: 60px 40px; }
  .page-header { padding-top: 140px; padding-left: 40px; padding-right: 40px; }
  :root { --clip-size: 40px; }
  .clip-pad { padding-top: calc(80px + var(--clip-size)) !important;
              padding-bottom: calc(80px + var(--clip-size)) !important; }
}

/* ── Mobile (760px) — collapse multi-column layouts, switch to mobile nav ── */
@media (max-width: 760px) {
  :root { --clip-size: 28px; }
  .clip-pad { padding-top: calc(72px + var(--clip-size)) !important;
              padding-bottom: calc(72px + var(--clip-size)) !important; }
  /* Global */
  .section { padding: 72px 20px; }
  .page-header { padding: 128px 20px 48px; }

  /* Nav — hide desktop links, show hamburger, always opaque on mobile */
  nav.topnav {
    padding: 0 20px;
    height: 56px;
    background: rgba(250,247,242,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ivory-border);
  }
  .nav-group { display: none; }
  .nav-hamburger { display: block; }
  .nav-brand { font-size: 16px; }
  .nav-inquire { padding: 7px 16px; font-size: 10px; }

  /* Page headers — smaller headlines */
  .page-header h1 { font-size: clamp(40px, 13vw, 68px) !important; margin-bottom: 20px; }
  .page-header p { font-size: 15px; }

  /* Eyebrows slightly tighter */
  .eyebrow { letter-spacing: 0.22em; }

  /* Footer collapses to single column */
  .footer-grid { grid-template-columns: 1fr !important; gap: 36px; margin-bottom: 36px; }
  footer.site-footer { padding: 48px 20px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-tagline { max-width: none; }

  /* Buttons shrink slightly */
  .btn { padding: 12px 24px; font-size: 10px; }
}

/* ── Small phones (480px) — ultra-tight ── */
@media (max-width: 480px) {
  .section { padding: 60px 16px; }
  .page-header { padding: 120px 16px 40px; }
  nav.topnav { padding: 0 16px; }
  footer.site-footer { padding: 40px 16px; }
  .footer-col h3 { margin-bottom: 14px; }
  .btn { padding: 11px 20px; }
  .page-header p { font-size: 14px; line-height: 1.7; }
}
