/* =========================================================
   CARYN CLINE — WordPress Theme Stylesheet
   ========================================================= */

/* 1. Variables
   --------------------------------------------------------- */
:root {
  --maroon:      #82028b;
  --maroon-dark: #4e0153;
  --bg:          #0a0a0a;
  --fg:          #f7f7f7;
  --fg-muted:    rgba(247,247,247,0.7);
  --fg-dim:      rgba(247,247,247,0.4);
  --footer-bg:   #111111;
  --border:      rgba(255,255,255,0.06);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  animation: pageEnter 0.35s ease-out both;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; transition: color 0.2s; }
ul   { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }

::selection { background: var(--maroon); color: var(--fg); }

/* 3. Animations
   --------------------------------------------------------- */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.anim-fade-up       { animation: fadeUp 0.6s ease-out both; }
.anim-delay-150     { animation-delay: 150ms; }

/* 4. Navbar
   --------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.site-header.has-bg {
  background-color: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

/* Desktop nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-desktop .menu-item a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.nav-desktop .menu-item a:hover,
.nav-desktop .current-menu-item > a {
  color: var(--maroon);
}

.nav-resume {
  margin-left: 20px;
  padding: 7px 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid rgba(247,247,247,0.35);
  transition: border-color 0.2s, color 0.2s;
}
.nav-resume:hover {
  border-color: var(--maroon);
  color: var(--maroon);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  margin-right: -12px;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(247,247,247,0.8);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile menu */
.nav-mobile {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, border-color 0.3s;
  border-top: 1px solid transparent;
}
.nav-mobile.is-open {
  max-height: 420px;
  opacity: 1;
  border-top-color: var(--border);
}
.nav-mobile-inner {
  padding: 8px 24px 24px;
  display: flex;
  flex-direction: column;
}
.nav-mobile .menu-item a {
  display: block;
  padding: 18px 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.nav-mobile .current-menu-item > a { color: var(--maroon); }
.nav-mobile-resume {
  display: block;
  margin-top: 16px;
  padding: 12px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg);
  border: 1px solid rgba(247,247,247,0.35);
  text-align: center;
  transition: border-color 0.2s, color 0.2s;
}
.nav-mobile-resume:hover {
  border-color: var(--maroon);
  color: var(--maroon);
}

/* 5. Video Hero (homepage)
   --------------------------------------------------------- */
.video-hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 500px;
  overflow: hidden;
}
.video-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.50) 0%,
    rgba(0,0,0,0.15) 50%,
    rgba(0,0,0,0.75) 100%
  );
}
.video-hero-tagline {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  transform: translateY(-50%);
  text-align: center;
  font-size: clamp(22px, 3.5vw, 36px);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 300;
  color: rgba(247,247,247,0.88);
  line-height: 1.8;
  padding: 0 24px;
  animation: fadeUp 1.4s ease-out 0.5s both;
}

/* 6. Inner page layout
   --------------------------------------------------------- */
.page-wrap {
  min-height: 100vh;
  padding: 112px 24px 96px;
}
.page-container {
  max-width: 1024px;
  margin: 0 auto;
}
.page-container-narrow {
  max-width: 672px;
  margin: 0 auto;
}
.page-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 200;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(247,247,247,0.9);
  margin-bottom: 48px;
}

/* 7. About page
   --------------------------------------------------------- */
.about-grid {
  display: grid;
  gap: 40px;
}
.about-photo {
  max-width: 260px;
  width: 100%;
  margin: 0 auto;
}
.about-bio {
  font-size: 15px;
  line-height: 1.85;
  color: var(--fg-muted);
}
.about-bio p + p { margin-top: 20px; }
.about-bio a { color: var(--maroon); text-decoration: underline; text-underline-offset: 4px; }
.about-bio a:hover { color: var(--fg); }

/* 8. Films grid
   --------------------------------------------------------- */
.films-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.film-card {
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 0;
  transition: transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.film-card:hover { transform: scale(1.015); }
.film-card:focus-visible { outline: 2px solid var(--maroon); outline-offset: 4px; }

.film-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a1a;
}
.film-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.film-card:hover .film-thumb img { transform: scale(1.05); }

.film-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(130,2,139,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.film-card:hover .film-thumb-overlay { background: rgba(130,2,139,0.6); }

.film-play-icon {
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.film-card:hover .film-play-icon { opacity: 1; }

.film-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(247,247,247,0.85);
  background: rgba(0,0,0,0.7);
  padding: 2px 6px;
}

.film-info { margin-top: 10px; }
.film-title {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(247,247,247,0.75);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.film-card:hover .film-title { color: var(--fg); }

/* Films empty state */
.films-empty a {
  color: var(--maroon);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.films-empty a:hover { color: var(--fg); }

/* 9. Vimeo Lightbox Modal
   --------------------------------------------------------- */
.vimeo-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.vimeo-modal.is-open {
  opacity: 1;
  pointer-events: all;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 960px;
  transform: scale(0.95);
  transition: transform 0.25s ease-out;
}
.vimeo-modal.is-open .modal-panel { transform: scale(1); }

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: rgba(247,247,247,0.6);
  padding: 4px;
  -webkit-tap-highlight-color: transparent;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.modal-close:hover { color: var(--fg); }

.modal-embed {
  aspect-ratio: 16 / 9;
  background: #000;
}
.modal-embed iframe { width: 100%; height: 100%; border: none; }

.modal-info { margin-top: 14px; }
.modal-title {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(247,247,247,0.9);
}
.modal-desc {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(247,247,247,0.45);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 10. Contact
   --------------------------------------------------------- */
.contact-wrap { }

/* 11. Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.footer-logo img { height: 32px; width: auto; opacity: 0.8; transition: opacity 0.2s; }
.footer-logo:hover img { opacity: 1; }

.footer-cols { display: flex; flex-direction: column; gap: 40px; }

.footer-nav-links li + li { margin-top: 12px; }
.footer-nav-links a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,247,247,0.5);
}
.footer-nav-links a:hover { color: rgba(247,247,247,0.9); }

.footer-social { display: flex; gap: 4px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.footer-social a:hover { opacity: 0.8; }
.footer-social img { width: 18px; height: 18px; }

.footer-copy {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,247,247,0.25);
}

/* 12. Responsive
   --------------------------------------------------------- */
@media (min-width: 640px) {
  .films-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .nav-hamburger { display: none !important; }
  .nav-desktop   { display: flex !important; }
  .nav-mobile    { display: none !important; }

  .about-grid {
    grid-template-columns: 220px 1fr;
    gap: 56px;
    align-items: start;
    max-width: 800px;
  }
  .about-photo  { margin: 0; max-width: 220px; }
  .about-bio    { font-size: 17px; }
  .page-wrap    { padding: 120px 24px 96px; }
  .page-container { padding: 0 32px; }

  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-cols  { flex-direction: row; gap: 48px; align-items: center; }
  .footer-social { align-self: flex-start; margin-top: 0; }
}

@media (max-width: 767px) {
  .nav-hamburger { display: flex !important; }
  .nav-desktop   { display: none !important; }
}

@media (min-width: 1024px) {
  .films-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .page-wrap  { padding: 130px 24px 96px; }
}
