:root {
    --bg-page:   #450101;
    --bg-card:   #1a1a1a;
    --bg-pill:   #5c1515;
    --bg-pill-active: #fbbf24;
    --bg-pill-disabled:#5b2323;
    --border:    #111111;
    --border-soft:#27272f;
    --text-main: #ffffff;
    --text-muted:#e5e7eb;
    --accent:    #fbbf24;
    --accent-soft:#fcd34d;
    --accent-strong:#fbbf24;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    font-size: 20px;
}

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

.page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

/* ===================== */
/* HEADER / NAV          */
/* ===================== */

.site-header-wrap {
    background-color: #450101;
    border-bottom: 1px solid rgba(255,255,255,0.15); /* subtle divider */
}

.site-header {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #ffffff;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

/* Primary nav (desktop baseline) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    font-size: 1.1rem;
}

.nav-link {
    color: #ffffff;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

.nav-link.active {
    color: var(--accent);
    border-color: var(--accent);
    font-weight: 600;
}

.nav-link:hover {
    color: var(--accent-soft);
}

/* Hamburger button (hidden on desktop) */
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 0.25rem;
    cursor: pointer;
    color: #ffffff;
    z-index: 100; /* above drawer */
}

/* Single span – pseudo elements draw the other bars */
.nav-toggle-bar {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background-color: currentColor;
    display: block;
    position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background-color: currentColor;
}

.nav-toggle-bar::before {
    top: -6px;
}

.nav-toggle-bar::after {
    top: 6px;
}

/* Overlay behind slide-out nav (mobile) */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 80;
}

.nav-overlay.is-open {
    display: block;
}

/* ===================== */
/* HERO SLIDER           */
/* ===================== */

.hero-slider-wrap {
    background-color: #450101;
    padding: 2.25rem 0 2.1rem;
}

.hero-slider {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.hero-slide {
    position: relative;
    height: 420px;
    border-radius: 0.9rem;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: none;
    box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}

.hero-slide.is-active {
    display: block;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.50) 45%,
        rgba(0, 0, 0, 0.20) 75%,
        transparent 100%
    );
}

.hero-inner {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    text-align: center;
    color: #ffffff;
    padding: 0 1rem;
    max-width: 90%;
}

.hero-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 0 0 0.9rem 0;
    text-shadow: 0 3px 8px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Unified rectangular button shape for HERO + SHOWTIMES */
.hero-btn,
.time-chip-link {
    min-width: 140px;
    padding: 0.55rem 1.5rem;
    border-radius: 0.55rem;
    border: 1px solid #000000;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
}

.hero-btn-primary {
    background-color: var(--accent);
    color: #000000;
}

.hero-btn-primary:hover {
    background-color: #facc15;
}

.hero-btn-secondary {
    background-color: #ffffff;
    color: #000000;
    border-color: transparent;
}

.hero-btn-secondary:hover {
    background-color: #e5e7eb;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 64px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2rem;
    user-select: none;
}

.hero-arrow--left  { left: 10px; }
.hero-arrow--right { right: 10px; }

.hero-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* ===================== */
/* NOW PLAYING           */
/* ===================== */

.now-playing-header {
    padding-top: 1.75rem;
    padding-bottom: 0.5rem;
}

.now-playing-title {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
}

/* ===================== */
/* DATE STRIP            */
/* ===================== */

.date-strip {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 0 1.35rem;
    overflow-x: auto;
    border-bottom: 1px solid rgba(0,0,0,0.4);
}

.date-pill {
    min-width: 56px;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background-color: var(--bg-pill);
    text-align: center;
    font-size: 0.9rem;
    color: #f9fafb;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid rgba(0,0,0,0.5);
    flex-shrink: 0;
}

.date-pill span {
    display: block;
    line-height: 1.1;
}

.date-pill .dow {
    text-transform: uppercase;
    font-size: 0.78rem;
    opacity: 0.9;
}

.date-pill .daynum {
    font-size: 1.15rem;
    font-weight: 600;
}

.date-pill.active {
    background-color: var(--bg-pill-active);
    color: #000000;
    border-color: #000000;
}

.date-pill.disabled {
    background-color: var(--bg-pill-disabled);
    color: #cbd5f5;
    cursor: default;
    opacity: 0.5;
}

/* ===================== */
/* MAIN CONTENT / CARDS  */
/* ===================== */

.content-columns {
    margin-top: 1.9rem;
}

.movie-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.movie-card {
    background-color: var(--bg-card);
    border-radius: 0.85rem;
    border: 1px solid var(--border);
    box-shadow: 0 14px 38px rgba(0,0,0,0.6);
    padding: 1.2rem 1.1rem 1.25rem;
    color: var(--text-main);
}

.movie-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.35rem;
}

.poster-box {
    width: 200px;
    min-width: 200px;
    height: 300px;
    overflow: hidden;
    border-radius: 0.85rem;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.poster-placeholder {
    font-size: 0.9rem;
    color: #9ca3af;
    text-align: center;
    padding: 0.6rem;
}

/* Movie title (+50%) */
.movie-info-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: #ffffff;
}

.movie-info-title a {
    color: inherit;
    text-decoration: none;
}

.movie-info-title a:hover {
    text-decoration: underline;
}

.movie-info-meta {
    font-size: 1.15rem;
    color: #d1d5db;
    margin-bottom: 0.6rem;
}

/* Synopsis (desktop + mobile base) */
.movie-info-synopsis {
    font-size: 1.18rem;
    color: #e5e7eb;
    line-height: 1.55;
    font-weight: 300;
    margin-top: 1.2em;
    position: relative;
}

/* Read-more toggle (inserted via JS) */
.movie-synopsis-toggle {
    display: none; /* default hidden; shown on mobile when needed */
    margin-top: 0.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-soft);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.movie-card.is-hidden { display: none; }


/* ===================== */
/* SHOWTIMES             */
/* ===================== */

.showtimes-wrap {
    border-top: 1px solid var(--border-soft);
    margin-top: 1.15rem;
    padding-top: 0.95rem;
}

.showtimes-instructions {
    font-size: 0.95rem;
    color: #e5e7eb;
    margin-bottom: 0.6rem;
    opacity: 0.9;
}

.showtime-item {
    background-color: #111827;
    border-radius: 0.6rem;
    border: 1px solid var(--border-soft);
    padding: 0.6rem 0.9rem 0.8rem;
    margin-bottom: 0.6rem;
}

/* Important: keeps non-selected dates hidden */
.showtime-item.is-hidden {
    display: none;
}

.showtime-date {
    font-size: 1.15rem;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 0.25rem;
}

/* Grouped by screen */
.showtime-screen-row {
    margin-top: 0.45rem;
}

.showtime-screen-label {
    font-size: 1.05rem;
    color: #e5e7eb;
    margin-bottom: 0.25rem;
}

.showtime-screen-times {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Time chip buttons */
.time-chip-link {
    margin-top: 0.1rem;
    background-color: var(--accent);
    color: #000000;
    text-decoration: none;
}

.time-chip-link:hover {
    background-color: #facc15;
}

.time-chip-link--expired {
    background-color: #1f2937;
    color: #9ca3af;
    text-decoration: line-through;
    pointer-events: none;
}

/* ===================== */
/* FOOTER                */
/* ===================== */

.site-footer-wrap {
    border-top: 1px solid rgba(0,0,0,0.4);
    margin-top: 3rem;
    background-color: #450101;
}

.site-footer {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1.1rem 1rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
    color: #ffffff;
}

.footer-left {
    white-space: nowrap;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--accent-soft);
    font-size: 1.05rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-facebook {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.footer-facebook-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

@media (max-width: 800px) {
    .site-header {
        padding-right: 1rem;
    }

    /* Show hamburger on small screens */
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Slide-out nav on mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 260px;
        background-color: #1a1a1a;
        flex-direction: column;
        align-items: flex-start;
        padding: 4.5rem 1.5rem 2rem;
        gap: 1.25rem;
        transform: translateX(100%);
        transition: transform 0.25s ease-out;
        box-shadow: -12px 0 32px rgba(0,0,0,0.7);
        z-index: 90;
    }

    .nav-links.is-open {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.05rem;
        border-bottom: none;
        padding-bottom: 0;
    }

    .nav-link.active {
        color: var(--accent);
    }

    .hero-slider-wrap {
        padding-top: 1.75rem;
    }

    .hero-slide {
        height: 320px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .movie-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .poster-box {
        width: 170px;
        min-width: 170px;
        height: 255px;
        margin: 0 auto;
    }

    /* Mobile synopsis truncation */
    .movie-info-synopsis {
        max-height: 4.5em; /* roughly 3 lines */
        overflow: hidden;
    }

    .movie-info-synopsis.is-expanded {
        max-height: none;
    }

    .movie-synopsis-toggle {
        display: inline-block;
    }
}

@media (max-width: 640px) {
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-slider {
        padding: 0 0.5rem;
    }

    .hero-slide {
        height: 260px;
    }

    .hero-title {
        font-size: 1.25rem;
    }
}

/* =========================
   MOVIES GRID PAGE
========================= */
.page-title {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.movie-tile {
    background-color: var(--bg-card);
    border-radius: 0.85rem;
    border: 1px solid var(--border);
    box-shadow: 0 14px 38px rgba(0,0,0,0.55);
    overflow: hidden;
}

.movie-tile a { display: block; }

.movie-tile-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    background: #000000;
    overflow: hidden;
}

.movie-tile-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.movie-tile-title {
    padding: 0.9rem 0.9rem 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

/* =========================
   MOVIE DETAIL PAGE
========================= */
.movie-detail-top {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.35rem;
}

.movie-detail-poster {
    width: 100%;
    border-radius: 0.85rem;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 14px 38px rgba(0,0,0,0.55);
}

.movie-detail-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.movie-detail-meta {
    font-size: 1.15rem;
    color: #d1d5db;
    margin: 0.5rem 0 0.85rem;
}

.movie-detail-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.9rem;
}

.movie-detail-actions .hero-btn {
    min-width: unset;
}

@media (max-width: 980px){
    .movies-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 740px){
    .movies-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .movie-detail-top { grid-template-columns: 1fr; }
}

@media (max-width: 420px){
    .movies-grid { grid-template-columns: 1fr; }
}

/* Movie detail layout tweaks */
.movie-detail-top {
    align-items: start;
}

.movie-detail-poster--solo {
    align-self: start;                 /* prevents the poster column from stretching full height */
    background: transparent;           /* removes the big black column look */
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow: 0 14px 38px rgba(0,0,0,0.55);
}

.movie-detail-spacer {
    height: 1.1rem;                    /* spacing between synopsis and date picker */
}

.movie-detail-right {
    min-width: 0;
}

/* =========================
   NAV ACTIVE STATE
   - Desktop: color + underline
   - Mobile: color + NO underline (uses highlight instead)
========================= */

.nav-links .nav-link {
  position: relative;
  text-decoration: none;
}

/* Active: color change */
.nav-links .nav-link.active,
.nav-links .nav-link[aria-current="page"] {
  color: #ffffff; /* change if you want your accent color */
  font-weight: 700;
}

/* Desktop underline (uses a pseudo-element so it looks clean) */
.nav-links .nav-link.active::after,
.nav-links .nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* Mobile: remove underline + add a subtle highlight instead */
@media (max-width: 820px) {
  .nav-links .nav-link.active::after,
  .nav-links .nav-link[aria-current="page"]::after {
    display: none;
  }

  .nav-links .nav-link.active,
  .nav-links .nav-link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
  }
}

/* =========================
   CONTACT FORM OVERRIDES
========================= */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="password"],
.contact-form input[type="search"],
.contact-form input[type="url"],
.contact-form textarea,
.contact-form select {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid rgba(0,0,0,0.35) !important;
    border-radius: 0.55rem;
    padding: 0.65rem 0.8rem;
    font-size: 1rem;
    outline: none;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(0,0,0,0.55) !important;
}

.contact-form label {
    color: #ffffff; /* keep labels readable on your dark theme */
    padding-top: 20px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
}

/* =========================
   THEATER INFO PAGE
========================= */
.theater-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.9fr;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.theater-map-card,
.theater-info-card {
    background-color: var(--bg-card);
    border-radius: 0.85rem;
    border: 1px solid var(--border);
    box-shadow: 0 14px 38px rgba(0,0,0,0.55);
    padding: 1rem;
}

.map-embed {
    width: 100%;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
    background: #000;
    min-height: 420px;
}

.map-embed iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

.theater-info-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.theater-address {
    color: #e5e7eb;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.theater-directions-btn {
    display: inline-flex;
    width: auto;
}

/* Responsive */
@media (max-width: 860px) {
    .theater-grid {
        grid-template-columns: 1fr;
    }

    .map-embed,
    .map-embed iframe {
        height: 360px;
        min-height: 360px;
    }
}

