/* =========================================================
   Base / Reset
   ========================================================= */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #212529;
  background-color: #ffffff;
}

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

footer a.facebook:hover { color: #1877F2 !important; }
footer a.instagram:hover { color: #E1306C !important; }

/* Accessibility: Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
  z-index: 1000;
}


/* =========================================================
   Brand Variables (SOURCE OF TRUTH)
   ========================================================= */

:root {
  /* Theatre / Brand Palette */
  --primary-color: #601623;      /* deep theatre burgundy */
  --primary-hover: #3a1a24;      /* velvet shadow */
  --secondary-color: #8a6a2b;    /* muted brass */
  --secondary-hover: #b8933f;    /* marquee gold */

  /* UI */
  --border-radius-md: 0.75rem;
  --transition-base: 0.25s ease;
}

/* =========================================================
   Page Header (Shared)
   ========================================================= */

.page-header {
  position: relative;
  height: 320px;
  overflow: hidden;
  background-color: var(--primary-color); /* fallback for non-index pages */
  color: #ffffff;
}

.page-header-logo {
  height: 220px; /* compensates for transparent padding in logo PNG */
  width: auto;
  max-width: 100%;
}

/* Header text */
.page-header-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: #ffffff;
}

.page-header-subtitle {
  font-size: 1.15rem;
  margin: 0;
  color: rgba(255,255,255,0.9);
}

/* =========================================================
   Buttons (FINAL – NO PURPLE)
   ========================================================= */

.btn {
  font-weight: 500;
  border-radius: var(--border-radius-md);
  padding: 0.5rem 1.25rem;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-height: 44px;
}

.btn:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Primary */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Secondary */
.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #a14dsc;
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Outline variants */
.btn-outline-primary {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

.btn-outline-secondary {
  background-color: transparent;
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.btn-outline-secondary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #ffffff;
}

/* =========================================================
   Cards
   ========================================================= */

.card {
  border-radius: var(--border-radius-md);
}

.card-body {
  padding: 1.25rem;
}

/* =========================================================
   Show Cards / Posters
   ========================================================= */

.show-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
  overflow: hidden;
}

.show-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.show-date {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #ffffff;
  padding: 1rem;
  text-align: center;
  min-width: 120px;
}

.show-time {
  background: #667eea;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 1rem;
}

.show-poster {
  max-width: 100px;
  max-height: 140px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  object-fit: cover;
}

/* =========================================================
   Utilities
   ========================================================= */

.current-time {
  background: #e9ecef;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  color: #333;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
}

/* =========================================================
   Modal
   ========================================================= */

.modal-body img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

/* =========================================================
   MOBILE HEADER FIX – FINAL OVERRIDE
   ========================================================= */

@media (max-width: 767px) {
  .page-header {
    height: auto !important;        /* override earlier fixed heights */
    overflow: visible !important;   /* ensure no clipping */
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;         /* extra room for subtitle */
  }

  .page-header .row {
    align-items: flex-start !important; /* stop vertical centering */
  }

  .page-header-subtitle {
    display: block !important;
    margin-top: 0.75rem;
    line-height: 1.4;
    white-space: normal;
  }
}