/* Main Road Films — static rebuild, matching original WordPress/Divi appearance */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&family=Oswald:wght@500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #fff;
  color: #666;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 1.7em;
}

a { color: #2ea3f2; text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: #333; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  color: #333;
  line-height: 1.4em;
  margin-bottom: 0.75em;
}

h2 { font-size: 26px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; }

/* ── HERO ─────────────────────────────────────────── */

.site-hero {
  background-color: #dadde2;
  background-image: url('../images/hero-home.png');
  background-position: center center;
  background-size: 100% auto;
  background-repeat: no-repeat;
  padding-top: 0;
  padding-bottom: 0;
  height: 0;
  padding-bottom: calc(100% * 754 / 1880);
  position: relative;
}

.site-hero .hero-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 80%;
  max-width: 1080px;
  text-align: center;
}

.site-hero h1 {
  font-family: 'Oswald', Helvetica, Arial, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 10vw;
  color: #ffffff !important;
  letter-spacing: 15px;
  line-height: 1.4em;
  text-shadow: 0em 0.1em 0.25em rgba(12,12,12,0.15);
  margin-bottom: 0;
}

.site-hero .hero-subhead {
  font-family: 'Oswald', Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-size: 24px;
  color: rgba(12,12,12,0.2) !important;
  letter-spacing: 15px;
  line-height: 1.4em;
}

/* ── HEADER ───────────────────────────────────────── */

header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 0 30px;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.logo img {
  display: block;
  max-height: 70px;
  width: auto;
}

/* ── NAV ──────────────────────────────────────────── */

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
}

nav ul li { position: relative; }

nav ul li > a {
  display: block;
  padding: 0 15px;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  line-height: 80px;
  text-decoration: none;
  transition: color 0.2s;
}

nav ul li > a:hover,
nav ul li > a.active { color: #2ea3f2; }

/* dropdown */
nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  min-width: 200px;
  z-index: 200;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

nav ul li:hover > ul,
nav ul li.open > ul { display: flex; }

nav ul li ul li > a {
  line-height: 1.4em;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 400;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
}

nav ul li ul li:last-child > a { border-bottom: none; }
nav ul li ul li > a:hover { color: #2ea3f2; background: #fafafa; }

/* ── CONTENT WRAPPER ──────────────────────────────── */

.page-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 50px 30px 60px;
}

/* Single column content max width */
.content-inner {
  max-width: 780px;
}

/* ── IMAGES ───────────────────────────────────────── */

.content-inner img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
}

.content-inner img.inline { display: inline; margin: 0; }

/* ── FOOTER ───────────────────────────────────────── */

footer {
  background: #fff;
  border-top: 1px solid #e8e8e8;
  padding: 40px 30px;
  text-align: center;
}

footer img {
  max-height: 60px;
  width: auto;
  margin: 0 auto 20px;
  display: block;
}

footer h6 {
  margin-bottom: 5px;
}

footer p {
  font-size: 12px;
  color: #999;
  margin-bottom: 5px;
}

footer a { color: #2ea3f2; }

/* ── SCREENPLAY HERO (2-col: image left, logline right) ── */

.screenplay-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e8e8e8;
}

.screenplay-top img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

.screenplay-top .screenplay-intro h2 {
  margin-top: 0;
}

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

/* ── FILM ENTRIES (2-col) ─────────────────────────── */

.film-entry {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e8e8e8;
}

.film-entry:last-child {
  border-bottom: none;
}

.film-entry img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

.film-entry .film-text img {
  width: auto;
  max-width: 100%;
  display: inline-block;
  margin: 10px 0;
}

/* ── RESPONSIVE ───────────────────────────────────── */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 0;
    gap: 10px;
    min-height: auto;
  }

  nav ul { flex-wrap: wrap; }

  nav ul li > a { line-height: 2.5em; padding: 0 10px; }

  nav ul li ul {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid #e8e8e8;
    margin-left: 10px;
  }

  nav ul li:hover > ul { display: flex; }

  .page-content { padding: 30px 20px 40px; }

  .film-entry {
    grid-template-columns: 1fr;
  }
}
