/* ============================================================
   LUMENARI FILMS — style.css
   Design tokens: #0d0f14 bg · #f0ece4 text · #c9a076 gold
   Font: Cormorant Garant 300/400 via Google Fonts
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0d0f14;
  color: #f0ece4;
  font-family: 'Cormorant Garant', Georgia, serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  min-height: 100vh;
}

/* === PRELOADER === */
#preloader {
  position: fixed;
  inset: 0;
  background: #0d0f14;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-line {
  width: 8px;
  height: 8px;
  background: #c9a076;
  border-radius: 50%;
  transform-origin: center;
  animation: preloader-pulse 1.2s ease-in-out infinite;
}

@keyframes preloader-pulse {
  0%, 100% { opacity: 0.25; transform: scale(0.6); }
  50%       { opacity: 1;    transform: scale(1);   }
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 28px 60px;
  background: linear-gradient(to bottom, rgba(13, 15, 20, 0.92) 0%, transparent 100%);
  will-change: transform, opacity;
  transform: translateZ(0);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  text-decoration: none;
}

/* <!-- REPLACE: remove .logo-placeholder and use an <img> tag once you have a real logo file -->  */
.logo-placeholder {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f0ece4;
  font-weight: 300;
  font-family: 'Cormorant Garant', Georgia, serif;
}

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

.nav-links {
  list-style: none;
  display: flex;
  gap: 48px;
}

.nav-links a {
  color: #f0ece4;
  text-decoration: none;
  font-family: 'Cormorant Garant', Georgia, serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}

.nav-links a:hover,
.nav-links a.active {
  color: #c9a076;
}

/* Gold underline slides in from left on hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: #c9a076;
  transition: width 0.35s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #1a1d24 0%, #0d0f14 70%);
  overflow: hidden;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201, 160, 118, 0.05) 0%, transparent 70%);
  pointer-events: none;
}


.hero-content {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 60px;
  text-align: center;
  padding: 0 24px;
}

.hero-estd {
  font-size: 10px;
  letter-spacing: 0.45em;
  color: #c9a076;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.65;
  font-weight: 300;
  font-family: 'Cormorant Garant', Georgia, serif;
}

.hero-year {
  font-size: 10px;
  letter-spacing: 0.45em;
  color: #c9a076;
  text-transform: uppercase;
  writing-mode: vertical-lr;
  opacity: 0.65;
  font-weight: 300;
  font-family: 'Cormorant Garant', Georgia, serif;
}

.hero-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.hero-logo {
  /* Responsive logo: large on desktop, scales down gracefully on mobile */
  width: clamp(330px, 63vw, 810px);
  height: auto;
  display: block;
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* === BUTTONS / CTAs === */
/* Gold fill sweeps in from left to right on hover.
   Using a background-position shift on a 200%-wide gradient keeps the text
   in the normal content layer — it can never be covered by the fill. */
.btn-gold {
  display: inline-block;
  border: 1px solid #c9a076;
  color: #c9a076;
  text-decoration: none;
  font-family: 'Cormorant Garant', Georgia, serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 15px 42px;
  cursor: pointer;
  line-height: 1;
  position: relative;
  /* Double-wide gradient: left half = gold, right half = transparent.
     We start showing the right (transparent) half and slide to the left (gold) half on hover. */
  background-image: linear-gradient(to right, #c9a076 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: right center;
  transition: background-position 0.4s ease, color 0.4s ease;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.btn-gold:hover {
  background-position: left center;  /* slides gold fill in from the left */
  color: #0d0f14;                     /* text flips to dark so it reads on gold */
}

button.btn-gold {
  font-family: 'Cormorant Garant', Georgia, serif;
  font-size: 11px;
  border: 1px solid #c9a076;
  /* Browsers apply a default white/grey background to <button> elements.
     This overrides it so the transparent half of the gradient shows the
     page colour instead of white — matching the <a class="btn-gold"> style exactly. */
  background-color: #0d0f14;
}

/* === PAGE CONTENT (non-hero pages add top padding for fixed nav) === */
.page-content {
  padding-top: 100px;
}

/* === SECTIONS === */
.section {
  padding: 120px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-heading {
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 24px;
  color: #f0ece4;
}

/* Anchor-scroll offset so fixed nav doesn't cover section headings */
.section {
  scroll-margin-top: 88px;
}

/* Gold line divider under each section heading (60px wide, 1px tall, centered) */
.section-divider {
  width: 60px;
  height: 1px;
  background: #c9a076;
  margin: 0 auto 72px;
}

/* === FILM GRID — 3 columns desktop, 1 on mobile === */

#view-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.card {
  cursor: pointer;
  transition: transform 0.4s ease;
}

/* Subtle lift on hover — GSAP clears its own inline transform on load-in
   so this CSS rule takes effect cleanly once the entrance animation ends */
.card:hover {
  transform: translateY(-6px) scale(1.03);
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, #14161d 0%, #1e2230 100%);
  overflow: hidden;
  margin-bottom: 18px;
  position: relative;
}

/* Play icon hint on cards */
.card-thumb::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: rgba(201, 160, 118, 0.35);
  transition: color 0.3s ease, transform 0.3s ease;
}

.card:hover .card-thumb::after {
  color: rgba(201, 160, 118, 0.75);
  transform: scale(1.1);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.card:hover .card-thumb img {
  opacity: 0.75;
}

.card-title {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 300;
  color: #f0ece4;
  margin-bottom: 6px;
  font-family: 'Cormorant Garant', Georgia, serif;
}

.card-sub {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a076;
  font-weight: 300;
  font-family: 'Cormorant Garant', Georgia, serif;
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 15, 20, 0.97);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  width: 90vw;
  max-width: 1060px;
}

.lightbox-close {
  position: absolute;
  top: -52px;
  right: 0;
  background: none;
  border: none;
  color: #f0ece4;
  font-size: 20px;
  cursor: pointer;
  padding: 10px 14px;
  transition: color 0.3s ease;
  font-family: 'Cormorant Garant', Georgia, serif;
  letter-spacing: 0.15em;
}

.lightbox-close:hover {
  color: #c9a076;
}

.lightbox-iframe-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.lightbox-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* === TWO-COLUMN LAYOUT (About pages) === */
.two-col {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
  align-items: start;
}

/* <!-- REPLACE: replace the .photo-placeholder div with an <img> tag pointing to your real photo file --> */
.photo-placeholder {
  background: linear-gradient(150deg, #131520 0%, #1e2232 55%, #111420 100%);
  aspect-ratio: 5 / 6;
  width: 100%;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 12px;
}

.about-text p {
  font-size: 19px;
  font-weight: 300;
  line-height: 2;
  color: #f0ece4;
  opacity: 0.88;
}

#about .about-text {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
#about .about-text p {
  text-align: center;
  font-size: 1.1em;
  line-height: 1.9;
  margin-bottom: 24px;
}
#about .about-text .btn-gold {
  display: inline-block;
  margin-top: 20px;
}

/* Gear/kit section (personal site about page) */
.about-gear {
  margin-top: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(201, 160, 118, 0.2);
}

.about-gear h3 {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #c9a076;
  font-weight: 300;
  font-family: 'Cormorant Garant', Georgia, serif;
  margin-bottom: 16px;
}

.about-gear p {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(240, 236, 228, 0.65);
  line-height: 2.1;
  opacity: 1;
}

/* === CONTACT FORM === */
.date-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.date-row .date-field {
  flex: 0 0 auto !important;
  width: auto !important;
  display: inline-block !important;
  text-align: center;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  border-bottom: 1px solid #c9a076;
  padding: 8px 4px;
  outline: none;
  margin: 0;
}

.date-row .date-dd,
.date-row .date-mm  { width: 60px !important; }
.date-row .date-yyyy { width: 90px !important; }

.date-row .date-field::placeholder {
  color: rgba(240, 236, 228, 0.4);
  letter-spacing: 0.1em;
}

.date-row .date-sep {
  color: rgba(240, 236, 228, 0.5);
  font-size: 1.1em;
  flex: 0 0 auto;
}

.form-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.form-sub {
  text-align: center;
  font-size: 21px;
  font-weight: 300;
  color: rgba(240, 236, 228, 0.72);
  margin-bottom: 68px;
  line-height: 1.7;
  font-style: italic;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 36px;
}

.form-group label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c9a076;
  margin-bottom: 10px;
  font-weight: 300;
  font-family: 'Cormorant Garant', Georgia, serif;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(240, 236, 228, 0.18);
  color: #f0ece4;
  font-family: 'Cormorant Garant', Georgia, serif;
  font-size: 17px;
  font-weight: 300;
  padding: 10px 0;
  outline: none;
  width: 100%;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: #c9a076;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(240, 236, 228, 0.28);
  font-family: 'Cormorant Garant', Georgia, serif;
  font-weight: 300;
}

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

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23c9a076'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 20px;
}

.form-group select option {
  background: #0d0f14;
  color: #f0ece4;
}

.form-submit {
  text-align: center;
  margin-top: 20px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 24px;
  border: 1px solid rgba(201, 160, 118, 0.25);
  color: #c9a076;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 300;
  font-family: 'Cormorant Garant', Georgia, serif;
  margin-top: 40px;
  line-height: 2;
}

/* === FILTER BAR (Personal work page only) === */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.filter-pill {
  background: none;
  border: 1px solid rgba(240, 236, 228, 0.15);
  color: rgba(240, 236, 228, 0.45);
  font-family: 'Cormorant Garant', Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 10px 28px;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
  font-weight: 300;
}

.filter-pill:hover {
  border-color: rgba(201, 160, 118, 0.45);
  color: rgba(201, 160, 118, 0.7);
}

.filter-pill.active {
  border-color: #c9a076;
  color: #c9a076;
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 40px 60px;
  border-top: 1px solid rgba(240, 236, 228, 0.07);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 236, 228, 0.28);
  font-weight: 300;
  font-family: 'Cormorant Garant', Georgia, serif;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (max-width: 768px) {
  .nav {
    padding: 20px 24px;
  }

  .nav-links {
    gap: 24px;
  }

  .nav-links a {
    font-size: 10px;
    letter-spacing: 0.15em;
  }

  .hero-content {
    flex-direction: column;
    gap: 12px;
    padding: 0 24px;
  }

  .hero-estd,
  .hero-year {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.4em;
  }

  .section {
    padding: 80px 24px;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  footer {
    padding: 32px 24px;
  }

  .lightbox-inner {
    width: 95vw;
  }

  /* Hard fallback — logo always visible on mobile regardless of GSAP state */
  .hero-logo {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 480px) {
  .hero-heading {
    letter-spacing: 0.18em;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    letter-spacing: 0.1em;
  }
}
