/* ============================================================
   YRFS Design System — style.css (Desktop / All Screens)
   Primary colour: #ffcc00 (gold)
   Fonts: Playfair Display (serif headings) + DM Sans (body)
   Usage: <link rel="stylesheet" href="/style.css">
          <link rel="stylesheet" href="/stylePDA.css"> (mobile override)
   ============================================================ */

/* ── Google Fonts import ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  --gold:        #ffcc00;
  --gold-dark:   #e6b800;
  --gold-pale:   #fff9e0;
  --black:       #0d0d0d;
  --charcoal:    #1a1a1a;
  --slate:       #2e2e2e;
  --mid:         #666666;
  --light:       #f5f5f2;
  --white:       #ffffff;
  --serif:       'Playfair Display', Georgia, serif;
  --sans:        'DM Sans', Arial, sans-serif;
  --max-width:   1100px;
  --nav-height:  64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-padding-top: 100px; /* Global offset for all anchor links */
  scroll-behavior: smooth;   /* Optional: adds a smooth sliding effect */
}
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Navigation ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 2px solid var(--gold);
}
.nav-inner {
  max-width: 95%;
  width: 95%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: var(--nav-height);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-logo span { color: var(--white); }
.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  padding: 20px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.2s;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--gold); }
.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--charcoal);
  border-top: 2px solid var(--gold);
  min-width: 220px;
  list-style: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.nav-links li:hover .dropdown-menu { display: block; }
.nav-links .dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ccc;
  transition: background 0.2s, color 0.2s;
}
.nav-links .dropdown-menu li a:hover {
  background: rgba(255,204,0,0.12);
  color: var(--gold);
}
.nav-join {
  display: inline-block !important;
  background: var(--gold) !important;
  color: var(--black) !important;
  padding: 8px 20px !important;
  border-radius: 2px;
  font-weight: 600 !important;
  margin-left: 8px;
  transition: background 0.2s !important;
}
.nav-join:hover { background: var(--gold-dark) !important; }

/* Mobile menus only displayed when in mobile mode */
.mobile-menu {
  display: none;
}
.nav-toggle {
  display: none;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: var(--black);
  padding: 64px 24px 56px;
  border-bottom: 2px solid rgba(255,204,0,0.2);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,204,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Typography helpers ── */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-lead {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  line-height: 1.8;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title.light { color: var(--white); }
.divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 20px 0 28px;
}

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
}
section { padding: 72px 24px; }
.section-light { background: var(--light); }
.section-dark { background: var(--charcoal); }
.section-gold { background: var(--gold); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 13px 30px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255,204,0,0.35);
}
.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: var(--slate); }
.btn-outline {
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.card-dark {
  background: var(--charcoal);
  border: 1px solid rgba(255,204,0,0.15);
}
.card-dark:hover { border-color: rgba(255,204,0,0.4); }
.card-header {
  background: var(--black);
  padding: 32px;
  position: relative;
}
.card-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}
.card-body { padding: 28px 32px; }

/* ── Schedule / Program ── */
.schedule { display: flex; flex-direction: column; }
.schedule-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.schedule-item:first-child { border-top: 1px solid rgba(0,0,0,0.08); }
.schedule-time {
  background: var(--black);
  padding: 28px 24px;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}
.schedule-time .time { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); font-weight: 700; line-height: 1; }
.schedule-time .ampm { font-size: 0.65rem; color: rgba(255,255,255,0.35); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; font-weight: bold; }
.schedule-content { padding: 28px 36px; }
.schedule-break {
  background: var(--charcoal);
  grid-template-columns: 1fr;
}
.schedule-break .schedule-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 36px;
}
.break-time { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; flex-shrink: 0; }
.break-label { font-family: var(--serif); font-size: 1.1rem; color: var(--white); }
.break-sub { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-top: 2px; }

/* Film within schedule */
.film-country { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 6px; }
.film-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--black); line-height: 1.15; margin-bottom: 10px; }
.film-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag {
  display: inline-block;
  background: rgba(255,204,0,0.15);
  color: var(--slate);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
}
.tag-award { background: rgba(255,204,0,0.25); color: #5a4400; }
.film-desc { font-size: 0.9rem; color: var(--mid); line-height: 1.85; max-width: 640px; }
.film-credit { font-size: 0.8rem; color: rgba(0,0,0,0.4); margin-top: 8px; font-style: italic; }
.film-award { font-size: 0.8rem; color: var(--gold-dark); margin-top: 6px; font-weight: 500; }
.film-with-img { display: grid; grid-template-columns: 1fr 160px; gap: 24px; align-items: start; }
.film-img img { width: 100%; border-radius: 2px; }

/* ── Program listing (monthly) ── */
.program-list { display: flex; flex-direction: column; }
.program-entry {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: background 0.2s;
}
.program-entry:first-child { border-top: 1px solid rgba(0,0,0,0.07); }
.program-entry:nth-child(even) { background: var(--light); }
.program-poster { background: var(--charcoal); min-height: 200px; overflow: hidden; }
.program-poster img { width: 100%; height: 100%; object-fit: cover; }
.program-info { padding: 32px 40px; }
.program-month { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 6px; }
.program-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; margin-bottom: 12px; line-height: 1.2; }
.program-dates { font-size: 0.82rem; color: var(--mid); margin-top: 14px; }
.program-dates strong { color: var(--black); }
.badge-now { display: inline-block; background: var(--gold); color: var(--black); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; vertical-align: middle; margin-left: 8px; }

/* ── Library table ── */
.lib-wrap { overflow-x: auto; margin-top: 32px; }
.lib-search {
  width: 100%;
  max-width: 480px;
  padding: 12px 16px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--black);
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.lib-search:focus { outline: none; border-color: var(--gold); }
.lib-count { font-size: 0.82rem; color: var(--mid); margin-bottom: 16px; }
.lib-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.lib-table thead th {
  background: var(--black);
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  border-bottom: 2px solid var(--gold);
}
.lib-table thead th:hover { background: var(--charcoal); }
.lib-table thead th .sort-icon { color: rgba(255,204,0,0.4); margin-left: 4px; font-size: 0.6rem; }
.lib-table thead th.sort-asc .sort-icon,
.lib-table thead th.sort-desc .sort-icon { color: var(--gold); }
.lib-table tbody tr:nth-child(even) { background: var(--light); }
.lib-table tbody tr:hover { background: var(--gold-pale); }
.lib-table tbody td { padding: 10px 14px; border-bottom: 1px solid rgba(0,0,0,0.05); color: var(--slate); line-height: 1.4; }
.lib-table .td-title { font-weight: 500; color: var(--black); }
.lib-table .td-award { color: #7a5200; font-size: 0.8rem; }
.lib-hidden { display: none; }

/* ── Membership cards ── */
.membership-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.membership-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,204,0,0.2);
  border-radius: 4px;
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.3s, background 0.3s;
}
.membership-card:hover,
.membership-card.featured { border-color: var(--gold); background: rgba(255,204,0,0.06); }
.membership-type { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 16px; }
.membership-price { font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--white); line-height: 1; }
.membership-price sup { font-size: 1.2rem; vertical-align: super; }
.membership-per { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.membership-features { list-style: none; font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 2.2; text-align: left; }
.membership-features li::before { content: '✦'; color: var(--gold); margin-right: 8px; font-size: 0.55rem; vertical-align: middle; }

/* ── Notice / alert boxes ── */
.notice {
  background: var(--gold-pale);
  border: 1px solid rgba(255,204,0,0.5);
  border-left: 4px solid var(--gold);
  border-radius: 0 4px 4px 0;
  padding: 18px 22px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #3a3000;
  margin-bottom: 32px;
}
.info-panel {
  background: var(--charcoal);
  border-left: 3px solid var(--gold);
  padding: 24px 28px;
  border-radius: 0 4px 4px 0;
}
.info-panel .panel-label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.info-panel p { font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.8; }

/* ── Link arrow ── */
.link-arrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.link-arrow:hover { gap: 10px; }
.link-arrow::after { content: '→'; }

/* ── Footer ── */
footer {
  background: var(--black);
  border-top: 2px solid rgba(255,204,0,0.2);
  padding: 60px 24px 32px;
  color: rgba(255,255,255,0.55);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: var(--gold); margin-bottom: 14px; }
.footer-brand span { color: var(--white); }
.footer-desc { font-size: 0.87rem; line-height: 1.8; max-width: 300px; }
.footer-col h4 { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.87rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: var(--gold); }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); margin-bottom: 7px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,204,0,0.12); }
.form-group textarea { resize: vertical; min-height: 110px; }

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ── Venue cards ── */
.venue-card { background: var(--white); border-left: 3px solid var(--gold); padding: 22px 24px; border-radius: 0 4px 4px 0; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.venue-card h3 { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 4px; }
.venue-card p { font-size: 0.87rem; color: var(--mid); }
.venue-badge { display: inline-block; background: var(--gold); color: var(--black); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border-radius: 2px; margin-bottom: 8px; }

/* ── Utility ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-gold { color: var(--gold); }
.text-mid { color: var(--mid); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid-2, .grid-3, .footer-inner, .membership-grid { grid-template-columns: 1fr; gap: 24px; }
  .schedule-item { grid-template-columns: 140px 1fr; }
  .film-with-img { grid-template-columns: 1fr; }
  .program-entry { grid-template-columns: 180px 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .schedule-item { grid-template-columns: 1fr; }
  .schedule-time { align-items: flex-start; text-align: left; padding: 16px 20px 4px; }
  .schedule-content { padding: 8px 20px 24px; }
  .program-entry { grid-template-columns: 1fr; }
  .program-poster { min-height: 140px; }
  section { padding: 48px 20px; }
}

.now-screening-box {
  color: #ffffff; /* base text colour */
}

.now-screening-box .program-title {
  color: #f5c542; /* example: gold title */
}

.now-screening-box .program-month {
  color: #cccccc;
}

.now-screening-box .film-tags .tag {
  color: #aaaaaa;
}

.mini-card {
  flex: 0 0 256px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,204,0,0.5);
  border-radius: 4px;
  padding: 20px;
  background: var(--charcoal);
}

.mini-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  z-index: 1;
}

.mini-content {
  position: relative;
  z-index: 2;
}

.mini-month {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.mini-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 6px;
}

.mini-tags {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

#mini-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.7),
    rgba(0,0,0,0.2)
  );
}

#now-bg, #mini-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  z-index: 1;
}

.now-screening-box {
  position: relative;
  overflow: hidden;
}

.now-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  z-index: 1;
}

.now-content {
  position: relative;
  z-index: 2;
}

.lib-table a {
  color: var(--gold);
  text-decoration: none; /* optional */
}

.lib-table a:hover {
  text-decoration: underline; /* optional, keeps affordance */
}

.schedule-time {
  position: relative;
  overflow: hidden;
}

.schedule-time img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  z-index: 0;
}

.schedule-time .time,
.schedule-time .ampm {
  position: relative;
  z-index: 1;
}

.ticket-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

.ticket-cta:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .schedule-item {
    grid-template-columns: 1fr; /* stack time + content */
  }

  .schedule-time {
    align-items: flex-start;
    text-align: left;
    padding: 16px 20px;
    min-height: 90px; /* adjust to taste */
  }

  .schedule-content {
    padding: 20px;
    min-height: 90px; /* ensures background image shows */
  }
}