/* Base Styles */
body {
  margin: 0;
  font-family: 'Cinzel', 'Helvetica Neue', sans-serif;
  background-color: #1A1A1A;
  color: #F4F4F4;
  scroll-behavior: smooth;
}

/* Fixed Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(17, 17, 17, 0.9);
  z-index: 1000;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

nav.shrink {
  padding: 0.5rem 0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  gap: 2rem;
  transition: font-size 0.3s ease;
}

nav.shrink ul {
  font-size: 0.9rem;
}

nav a {
  color: #F4F4F4;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: #F3C969;
  font-weight: bold;
}

/* Hero Section */
#hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background-image: url('media/images/hero-fallback.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#heroVideo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease-in;
}

#heroVideo.loaded {
  opacity: 1;
}

#hero .overlay {
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.10);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem 2rem;
  text-align: center;
}

#hero h1 {
  font-size: 3rem;
  color: #F3C969;
}

#hero p {
  font-size: 1.25rem;
  color: #D7263D;
}

/* Full Page Sections */
.section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem 2rem;
}

.section-content {
  max-width: 1000px;
  width: 100%;
  text-align: center;
  color: #F4F4F4;
}

#story .section-content {
  background-color: rgba(0, 0, 0, 0.75); /* faded white */
  padding: 2rem;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

#story .section-content h2 {
  text-align: center;
  margin-bottom: 2rem;
}

#story .section-content p {
  text-align: left;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #F0F0F0;
}

/* Awards Video Background */
#awards {
  position: relative;
  overflow: hidden;
}

#awardsVideo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease-in;
}

#awardsVideo.loaded {
  opacity: 1;
}

#awards .section-content {
  position: relative;
  z-index: 2;
}

/* Awards Grid */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.laurel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.laurel img {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 0.5rem;
}

.laurel p {
  margin: 0;
  font-size: 0.95rem;
  color: #fff;
}

/* Background Images */
.bg-story {
  background-image: url('media/images/bg-story.jpg');
}

.bg-portfolio {
  background-image: url('media/images/bg-portfolio.jpg');
}

.bg-awards {
  background-image: url('media/images/awards-fallback.jpg');
}

.bg-subscribe {
  background-image: url('media/images/bg-subscribe.jpg');
}

/* Film Posters */
.film-posters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  margin-top: 2rem;
}

.film-poster {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 240px;
}

.film-posters img {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.logline {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.4;
  color: #F0F0F0;
  text-align: center;
}

/* Mailing List Form */
form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

form input,
form button {
  padding: 0.75rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
}

form input {
  flex: 1;
  min-width: 200px;
}

form button {
  background-color: #D7263D;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

form button:hover {
  background-color: #F3C969;
  color: #111;
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #111111;
  color: #F4F4F4;
}

footer .footer-content {
  margin-bottom: 2rem;
}

/* Subscribe form -- honeypot, error, thank-you */
.hp-field {
  display: none !important;
}

.form-error {
  margin: 0.75rem auto 0;
  color: #F3C969;
  font-size: 0.95rem;
  max-width: 420px;
  text-align: center;
}

.form-error a {
  color: #F3C969;
  text-decoration: underline;
}

.thank-you {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
  color: #F4F4F4;
  font-size: 1.1rem;
  text-align: center;
}

form button[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* Mobile hero slideshow (default: hidden on desktop) */
#heroSlideshow {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

#heroSlideshow .hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

#heroSlideshow .hero-slide.active {
  opacity: 1;
}

/* Responsive Layout */
@media (min-width: 768px) {
  .film-posters {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }

  nav ul {
    justify-content: flex-end;
    padding-right: 3rem;
  }

  #hero h1 {
    font-size: 4rem;
  }
}

/* Mobile -- drop hero + awards videos, use static + slideshow */
@media (max-width: 768px) {
  #heroVideo,
  #awardsVideo {
    display: none !important;
  }

  #heroSlideshow {
    display: block;
  }

  #awards {
    background-image: url('media/images/awards-fallback.jpg');
    background-size: cover;
    background-position: center;
  }
}