/*
 * AI Videos v6.5 overrides
 *
 * This stylesheet sits on top of the v5.8 consolidated layer and contains
 * only the additional tweaks requested for version 6.5. It preserves
 * the hero rails and thin header from v5.8 while refining the mobile
 * menu overlay, centring the intro section with updated button text,
 * adding animated rails to the Film‑Strip Features section, reducing
 * the generator headline size, and ensuring the footer sits at the
 * bottom on internal pages without disrupting the front page layout.
 */

/* ===== Mobile drawer adjustments ===== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 30000;
}
.mobile-drawer.open {
  display: block;
}
.mobile-drawer .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
}
.mobile-drawer .panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  max-height: calc(100svh - var(--header-h));
  background: var(--aiv-yellow);
  color: #000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  z-index: 30001;
}
.mobile-drawer .panel .drawer-head img {
  height: 60px;
}
.mobile-drawer .panel .close {
  background: #000;
  color: var(--aiv-yellow);
  border: none;
}
.mobile-drawer .menu-items a {
  display: block;
  color: #000;
  font-weight: 900;
  font-size: 22px;
  padding: 16px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  text-decoration: none;
}
.mobile-drawer .menu-items a:hover {
  background: rgba(0,0,0,0.06);
}

/* ===== Intro (create better videos faster) ===== */
#intro .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}

/* ===== Film‑Strip Features rails ===== */
#features {
  position: relative;
  overflow: hidden;
}
#features::before,
#features::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100vw;
  height: var(--film-rail);
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, #fff 54%, transparent 55%) 0 0 / clamp(120px, 16vw, 240px) 100% repeat-x,
    linear-gradient(#1f1f1f,#1f1f1f) 0 0 / 100% 100% no-repeat;
  animation: v58RailScroll var(--film-speed) linear infinite;
  filter: drop-shadow(0 0 0.5px #222);
}
#features::before {
  top: 0;
}
#features::after {
  bottom: 0;
}
#features .container {
  position: relative;
  z-index: 2;
}

/* ===== Generator headline size ===== */
#generator .section-title {
  font-size: clamp(28px, 4.5vw, 68px);
  line-height: 1.1;
}

/* ===== Footer anchoring ===== */
/* Anchor the footer only on internal pages (non‑home). This uses
 * WordPress's body classes: .home is present on the front page but
 * absent on other page views. On non‑home pages we stretch the body
 * to full viewport height and let the main content expand to fill
 * available space so the footer rests at the bottom. */
body:not(.home) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body:not(.home) main {
  flex: 1 0 auto;
}