/* =====================================================
   STRONG ISLAND — style.css
   ===================================================== */

/* --- Base Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Design Tokens --- */
:root {
  --color-bg:             #100806;
  --color-text:           #ffffff;
  --color-text-dim:       rgba(255, 255, 255, 0.85);
  --color-link:           #e7d0ba;          /* general body links — matches original site.css */
  --color-link-press:     #e0cec0;          /* press section links */
  --color-link-press-hover: #e0d3b0;        /* press hover */
  --color-nav-hero:       rgba(255, 255, 255, 0.70);
  --color-nav-hero-hover: #ffffff;
  --color-nav-sticky:     #a2999a;
  --color-nav-hover:      #ffffff;
  --color-border:         rgba(255, 255, 255, 0.08);
  --font-display:         Abel, Arial, sans-serif;
  --font-mono:            'Source Code Pro', monospace;
  --max-width:            1080px;
  --sticky-height:        56px;
  --nav-link-size:        20px;             /* hero + sticky nav font size */
}

/* --- Body & Global --- */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.75em;
  letter-spacing: 0.4px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =====================================================
   MOBILE NAV TOGGLE (hidden checkbox)
   ===================================================== */
.mobile-nav-toggle-box {
  display: none;
}

/* =====================================================
   MOBILE OVERLAY NAV
   ===================================================== */
#overlayNav {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--color-bg);
  z-index: 2000;
  overflow-y: auto;
  padding: 80px 40px 40px;
}

#mobileNavigation {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

#mobileNavigation a {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-nav-sticky);
  transition: color 0.15s ease;
}

#mobileNavigation a:hover {
  color: var(--color-nav-hover);
}

/* Open state */
.mobile-nav-toggle-box:checked ~ #overlayNav {
  display: block;
}

/* =====================================================
   STICKY NAV BAR
   Fixed at top, initially invisible, fades in via JS
   ===================================================== */
#sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--sticky-height);
  background-color: var(--color-bg);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#sticky-nav.visible {
  opacity: 1;
  pointer-events: auto;
}

.sticky-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 30px;
  position: relative;
}

/* Desktop: centered links */
.sticky-links {
  display: flex;
  align-items: center;
  gap: 44px;
}

.sticky-links a {
  font-family: var(--font-mono);
  font-size: var(--nav-link-size);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-nav-sticky);
  transition: color 0.15s ease;
}

.sticky-links a:hover,
.sticky-links a.active {
  color: var(--color-nav-hover);
}

/* Mobile title in sticky nav (hidden on desktop) */
.sticky-mobile-title {
  display: none;
}

.sticky-mobile-title a {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text);
}

/* =====================================================
   HAMBURGER BUTTON (shared)
   ===================================================== */
.hamburger {
  cursor: pointer;
  width: 40px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
}

/* Sticky hamburger (hidden on desktop) */
.sticky-hamburger {
  display: none;
}

/* =====================================================
   HERO NAV
   Positioned absolutely inside #home-section — scrolls
   away with the hero image as the user scrolls down.
   Centered as a unit so nav links sit close to the title.
   ===================================================== */
#hero-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;   /* whole group centered on page */
  padding: 28px 36px;
  gap: 0;
}

.hero-nav-left,
.hero-nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 0 0 auto;            /* don't stretch to edges */
}

.hero-nav-center {
  flex: 0 0 auto;
  text-align: center;
  padding: 0 36px;           /* gap between links and title */
}

.hero-nav-left a,
.hero-nav-right a {
  font-family: var(--font-mono);
  font-size: var(--nav-link-size);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-nav-hero);
  transition: color 0.15s ease;
}

.hero-nav-left a:hover,
.hero-nav-right a:hover {
  color: var(--color-nav-hero-hover);
}

.hero-title {
  font-family: var(--font-mono);  /* Source Code Pro, matching nav */
  font-size: 42px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1em;
  font-weight: 500;
}

/* Hero hamburger — hidden on desktop */
.hero-hamburger {
  display: none;
}

/* =====================================================
   SITE WRAPPER & PAGE
   ===================================================== */
#siteWrapper {
  position: relative;
  overflow: hidden;
}

#page {
  max-width: 100%;
  padding: 0;
}

/* =====================================================
   INDEX SECTIONS
   ===================================================== */
.index-section {
  position: relative;
}

.index-section + .index-section {
  border-top: 1px solid var(--color-border);
}

.index-section-wrapper {
  position: relative;
}

/* =====================================================
   HERO SECTION (#home-section)
   ===================================================== */
#home-section {
  height: 100vh;
  min-height: 480px;
}

.index-section-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.index-section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

.index-image-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(16, 8, 6, 0.3);
}

/* =====================================================
   CONTENT INNER (non-hero sections)
   ===================================================== */
.content-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 68px 34px;
}

/* =====================================================
   SPACER BLOCK
   ===================================================== */
.spacer-block {
  height: 48px;
}

/* =====================================================
   IMAGE BLOCK (laurels)
   Break out of the content-inner padding so the image
   runs wider than the text column — feels larger/bolder.
   ===================================================== */
.image-block {
  margin: 0 -34px;           /* cancel content-inner's side padding */
}

.image-block figure {
  margin: 0;
  padding: 0;
}

.image-block img {
  width: 100%;
  height: auto;
  display: block;
}

/* =====================================================
   TEXT BLOCKS & TYPOGRAPHY
   ===================================================== */
.text-block {
  margin: 0;
}

/* Section headings — 6px larger than body (22 + 6 = 28px) */
.text-block h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  margin: 1.5em 0 0.3em;
  color: var(--color-text);
}

.text-block h3:first-child {
  margin-top: 0;
}

.text-block p {
  margin: 0 0 0.5em;
  color: var(--color-text-dim);
}

/* All links — no underline globally */
a {
  color: var(--color-link);
  text-decoration: none;
}

/* Body copy links (about, team bios) */
.text-block a {
  color: var(--color-link);
  text-decoration: none;
}

.text-block a:hover {
  color: #e3dbc2;
}

/* Bold inside a link resets to normal weight and inherits color */
.text-block a strong {
  font-weight: normal;
  color: inherit;
}

/* -------------------------------------------------------
   Press section links — distinct color, consistent weight
   ------------------------------------------------------- */
#press-section .text-block a {
  color: var(--color-link-press);
  font-weight: normal;        /* prevents <strong> making some bold */
}

#press-section .text-block a:hover {
  color: var(--color-link-press-hover);
}

/* Strip bold from any <strong> wrapping inside press links */
#press-section .text-block a strong {
  font-weight: normal;
  color: inherit;
}

/* =====================================================
   YOUTUBE EMBED
   ===================================================== */
.embed-block {
  width: 100%;
}

.embed-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.embed-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =====================================================
   BUTTON BLOCK (Director's Headshot)
   ===================================================== */
.button-block {
  text-align: center;
  margin: 28px 0 10px;
}

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-dim);
  border: 2px solid rgba(255, 254, 251, 0.35);
  padding: 10px 20px;
  text-decoration: none;
  transition: background-color 0.1s linear, color 0.1s linear, border-color 0.1s linear;
}

.btn:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

/* =====================================================
   CAPTION
   ===================================================== */
.text-block.caption p {
  font-size: 13px;
  color: rgba(255, 254, 251, 0.4);
}

/* =====================================================
   SCREENINGS GRID
   ===================================================== */
.screenings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  margin-top: 20px;
}

.screenings-col h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 0.5em;
  color: var(--color-text);
}

.screenings-col p {
  margin: 0 0 0.25em;
  color: var(--color-text-dim);
}

/* Tighter padding for screenings bottom + contact section */
#screenings-section .content-inner {
  padding-bottom: 36px;
}

.contact-section-compact .content-inner {
  padding-top: 128px;  /* doubled again from 64px */
  padding-bottom: 40px;
}

/* =====================================================
   FOOTER
   ===================================================== */
#footer {
  background-color: var(--color-bg);
  color: var(--color-text-dim);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 68px 34px;
}

.back-to-top-nav {
  text-align: center;
  margin-bottom: 30px;
}

.back-to-top-nav a {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-nav-sticky);
  text-decoration: none;
  transition: color 0.15s ease;
}

.back-to-top-nav a:hover {
  color: var(--color-text);
}

/* --- Social Icons --- */
.social-icons {
  text-align: center;
  margin-bottom: 28px;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-text-dim) inset;
  color: var(--color-text-dim);
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.social-icon-link:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-text) inset;
}

.social-icon-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* --- Copyright --- */
.copyright p {
  font-size: 17px;
  color: var(--color-text-dim);
  margin: 0;
}

.text-align-right {
  text-align: right;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Tablet & Mobile — max 860px */
@media screen and (max-width: 860px) {

  /* Hero nav: hide left/right links, hamburger LEFT, title centered */
  .hero-nav-left,
  .hero-nav-right {
    display: none;
  }

  #hero-nav {
    justify-content: flex-start;
    padding: 20px 24px;
  }

  .hero-hamburger {
    display: flex;
    order: 0;          /* first in flex row = left */
    flex: 0 0 auto;
  }

  .hero-nav-center {
    flex: 1;
    padding: 0;
    text-align: center; /* title centered in remaining space */
  }

  .hero-title {
    font-size: 26px;
    letter-spacing: 4px;
  }

  /* Sticky nav: hide desktop links, hamburger LEFT, title right */
  .sticky-links {
    display: none;
  }

  .sticky-nav-inner {
    justify-content: flex-start;
    gap: 16px;
  }

  .sticky-hamburger {
    display: flex;
    position: static;  /* back in normal flow, leftmost */
    order: 0;
    flex: 0 0 auto;
  }

  .sticky-mobile-title {
    display: block;
    flex: 1;
    text-align: left;
  }

  /* Laurels image — restore padding so it doesn't overflow on mobile */
  .image-block {
    margin: 0 -20px;
  }

  /* Content */
  .content-inner {
    padding: 40px 20px;
  }

  .spacer-block {
    height: 28px;
  }

  body {
    font-size: 18px;
  }

  .text-block h3 {
    font-size: 24px;
  }

  /* Smaller nav links on mobile */
  :root {
    --nav-link-size: 16px;
  }

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

  .footer-inner {
    padding: 40px 20px;
  }

  .copyright p {
    text-align: center;
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 20px;
    letter-spacing: 3px;
  }

  #home-section {
    min-height: 320px;
  }

  .content-inner {
    padding: 30px 16px;
  }
}
