/* ============================================================
   FestivalMovie.com — Design System
   Mobile-First | Zero Frameworks | Cinema-Inspired
   ============================================================ */

/* --- CSS Reset --- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body{min-height:100dvh;line-height:1.6;text-rendering:optimizeSpeed}
img,picture,video,canvas,svg{display:block;max-width:100%;height:auto}
input,button,textarea,select{font:inherit}
p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}
a{text-decoration:none;color:inherit}
ul,ol{list-style:none}
button{cursor:pointer;border:none;background:none}
table{border-collapse:collapse;border-spacing:0}

/* --- Custom Properties (Light Mode) --- */
:root {
  /* Brand Colors — Cinema Palette */
  --gold: #D4A843;
  --gold-light: #E8C876;
  --gold-dark: #B8922E;
  --crimson: #C0392B;
  --crimson-light: #E74C3C;
  --deep-purple: #1A0A2E;
  --royal-purple: #2D1B69;
  --midnight: #0D0D1A;
  --teal: #1ABC9C;
  --teal-dark: #16A085;

  /* Surfaces */
  --bg-primary: #FAFAF8;
  --bg-surface: #FFFFFF;
  --bg-surface-2: #F5F3EF;
  --bg-surface-3: #EDE9E3;
  --bg-overlay: rgba(13,13,26,0.6);
  --bg-hero: linear-gradient(135deg, #1A0A2E 0%, #0D0D1A 50%, #1A0A2E 100%);

  /* Text */
  --text-primary: #1A1A2E;
  --text-secondary: #4A4A5A;
  --text-tertiary: #7A7A8A;
  --text-inverse: #F8F8F2;
  --text-accent: var(--gold-dark);

  /* Borders */
  --border: #E0DCD6;
  --border-light: #EDEBE6;
  --border-accent: var(--gold);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.16), 0 8px 20px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 30px rgba(212,168,67,0.15);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06);

  /* Fluid Typography */
  --text-xs:   clamp(0.7rem,  0.65rem + 0.25vw, 0.8rem);
  --text-sm:   clamp(0.8rem,  0.75rem + 0.3vw,  0.9rem);
  --text-base: clamp(0.95rem, 0.9rem  + 0.3vw,  1.1rem);
  --text-lg:   clamp(1.1rem,  1rem    + 0.5vw,  1.35rem);
  --text-xl:   clamp(1.3rem,  1.1rem  + 0.8vw,  1.75rem);
  --text-2xl:  clamp(1.6rem,  1.3rem  + 1.2vw,  2.4rem);
  --text-3xl:  clamp(2rem,    1.5rem  + 2vw,    3.2rem);
  --text-4xl:  clamp(2.5rem,  1.8rem  + 3vw,    4.5rem);

  /* Spacing Scale */
  --space-xs:  clamp(0.25rem, 0.2rem  + 0.2vw,  0.5rem);
  --space-sm:  clamp(0.5rem,  0.4rem  + 0.4vw,  0.75rem);
  --space-md:  clamp(0.75rem, 0.6rem  + 0.6vw,  1.25rem);
  --space-lg:  clamp(1rem,    0.8rem  + 1vw,    2rem);
  --space-xl:  clamp(1.5rem,  1rem    + 2vw,    3rem);
  --space-2xl: clamp(2rem,    1.5rem  + 2.5vw,  4.5rem);
  --space-3xl: clamp(3rem,    2rem    + 3.5vw,  6rem);

  /* Content Widths */
  --content-width:  min(90vw, 1200px);
  --content-narrow: min(90vw, 720px);
  --content-wide:   min(95vw, 1400px);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 250ms var(--ease-out);
  --transition-slow: 400ms var(--ease-out);

  /* Z-Index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-nav: 500;
  --z-overlay: 900;
  --z-modal: 1000;
}

/* --- Dark Mode --- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0A0A0F;
    --bg-surface: #141420;
    --bg-surface-2: #1C1C2E;
    --bg-surface-3: #242438;
    --bg-overlay: rgba(0,0,0,0.7);

    --text-primary: #E8E6E3;
    --text-secondary: #A8A6A3;
    --text-tertiary: #787673;
    --text-accent: var(--gold-light);

    --border: #2A2A3A;
    --border-light: #1E1E2E;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 36px rgba(0,0,0,0.5);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.6);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.3);
  }
}

/* --- Base Typography --- */
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-primary);
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: var(--text-3xl); font-weight: 700; }
h2 { font-size: var(--text-2xl); font-weight: 700; }
h3 { font-size: var(--text-xl); font-weight: 600; }
h4 { font-size: var(--text-lg); font-weight: 600; }

p { font-size: var(--text-base); line-height: 1.7; color: var(--text-secondary); }
p + p { margin-top: var(--space-md); }

strong { font-weight: 700; color: var(--text-primary); }

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--gold);
  color: var(--midnight);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; }

/* --- Site Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  min-height: 60px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: 'Georgia', serif;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--bg-hero);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 18px;
  flex-shrink: 0;
}
.logo-text-accent { color: var(--gold); }

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  z-index: calc(var(--z-modal) + 1);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(85vw, 360px);
  height: 100dvh;
  background: var(--bg-surface);
  z-index: var(--z-modal);
  transition: right 0.3s var(--ease-out);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(60px + var(--space-lg)) var(--space-lg) var(--space-lg);
  box-shadow: var(--shadow-xl);
}
.main-nav.is-open { right: 0; }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: calc(var(--z-modal) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.nav-overlay.is-visible { opacity: 1; visibility: visible; }

.main-nav ul { display: flex; flex-direction: column; gap: var(--space-xs); }
.main-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: var(--text-base);
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
  min-height: 44px;
}
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  background: var(--bg-surface-2);
  color: var(--text-primary);
}
.main-nav a[aria-current="page"] {
  color: var(--gold-dark);
  font-weight: 600;
}
.nav-icon {
  font-size: 1.2em;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

/* Desktop Nav */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-overlay { display: none; }
  .main-nav {
    position: static;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    padding: 0;
    overflow: visible;
  }
  .main-nav ul {
    flex-direction: row;
    gap: var(--space-xs);
  }
  .main-nav a {
    padding: 8px 14px;
    font-size: var(--text-sm);
    border-radius: var(--radius-full);
  }
  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: var(--bg-surface-2);
  }
}

/* --- Hero Section --- */
.hero {
  background: var(--bg-hero);
  color: var(--text-inverse);
  padding: var(--space-3xl) var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,168,67,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-inner {
  max-width: var(--content-narrow);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 16px;
  background: rgba(212,168,67,0.15);
  border: 1px solid rgba(212,168,67,0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}
.hero h1 {
  color: var(--text-inverse);
  margin-bottom: var(--space-md);
  font-size: var(--text-4xl);
}
.hero-highlight {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: rgba(255,255,255,0.75);
  font-size: var(--text-lg);
  max-width: 540px;
  margin: 0 auto var(--space-xl);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 12px 28px;
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  min-height: 44px;
  min-width: 44px;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--midnight);
  border-color: var(--gold);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 0 24px rgba(212,168,67,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text-inverse);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}
.btn-secondary {
  background: var(--bg-surface-2);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--bg-surface-3);
  border-color: var(--gold);
}
.btn-sm { padding: 8px 18px; font-size: var(--text-xs); }
.btn-icon { padding: 10px; }

/* --- Section Layout --- */
.section {
  padding: var(--space-2xl) var(--space-md);
}
.section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}
.section-narrow .section-inner {
  max-width: var(--content-narrow);
}
.section-wide .section-inner {
  max-width: var(--content-wide);
}
.section-header {
  margin-bottom: var(--space-xl);
}
.section-header h2 {
  margin-bottom: var(--space-sm);
}
.section-header p {
  max-width: 600px;
}
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  margin-bottom: var(--space-sm);
}
.section-alt {
  background: var(--bg-surface-2);
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Film Card --- */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}
.card-poster {
  position: relative;
  aspect-ratio: 2/3;
  background: var(--bg-surface-3);
  overflow: hidden;
}
.card-poster-wide { aspect-ratio: 16/9; }
.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--deep-purple), var(--royal-purple));
  color: var(--gold);
}
.card-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 4px 10px;
  background: var(--gold);
  color: var(--midnight);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card-badge-streaming {
  background: var(--teal);
  color: #fff;
}
.card-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.card-title {
  font-family: 'Georgia', serif;
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}
.card-meta {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
}
.card-meta-divider::before {
  content: '·';
  margin: 0 2px;
}
.card-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* Buzz Score */
.buzz-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
}
.buzz-hot {
  background: rgba(231,76,60,0.12);
  color: var(--crimson-light);
}
.buzz-warm {
  background: rgba(212,168,67,0.12);
  color: var(--gold-dark);
}
.buzz-rising {
  background: rgba(26,188,156,0.12);
  color: var(--teal-dark);
}

/* --- Festival Card (Horizontal) --- */
.festival-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  align-items: center;
}
.festival-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--deep-purple), var(--royal-purple));
}
.festival-card-body { flex: 1; min-width: 0; }
.festival-card-title {
  font-family: 'Georgia', serif;
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: 2px;
}
.festival-card-meta {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}
.festival-card-arrow {
  color: var(--text-tertiary);
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
}

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 10px 18px;
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
}
.tab:hover,
.tab:focus-visible { background: var(--bg-surface-2); color: var(--text-primary); }
.tab.is-active {
  background: var(--gold);
  color: var(--midnight);
  font-weight: 700;
}

/* --- Key Takeaways --- */
.key-takeaways {
  background: linear-gradient(135deg, rgba(212,168,67,0.06), rgba(212,168,67,0.02));
  border: 1px solid rgba(212,168,67,0.2);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
}
.key-takeaways h2 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: var(--space-sm);
  font-family: system-ui, -apple-system, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.key-takeaways p {
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* --- FAQ --- */
.faq { margin: var(--space-2xl) 0; }
.faq h2 { margin-bottom: var(--space-lg); }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  padding: var(--space-md) 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-base);
  color: var(--text-primary);
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5em;
  color: var(--gold);
  transition: transform 0.2s var(--ease-out);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 0 var(--space-md);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: var(--text-sm);
}
.faq-answer a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}
.breadcrumb-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
}
.breadcrumb a {
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--text-secondary); font-weight: 500; }

/* --- Bridge Status --- */
.bridge-status {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-surface-2);
  border-radius: var(--radius-md);
  align-items: center;
}
.bridge-status-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  width: 100%;
}
.bridge-status .btn { font-size: var(--text-xs); }
.bridge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}
.bridge-tag-streaming {
  background: rgba(26,188,156,0.12);
  color: var(--teal-dark);
}
.bridge-tag-theaters {
  background: rgba(212,168,67,0.12);
  color: var(--gold-dark);
}
.bridge-tag-tbd {
  background: var(--bg-surface-3);
  color: var(--text-tertiary);
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}
@media (min-width: 600px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.stat-value {
  font-family: 'Georgia', serif;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1.2;
}
.stat-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Pillar Navigation Cards --- */
.pillar-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .pillar-grid { grid-template-columns: repeat(3, 1fr); }
}
.pillar-card {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--text-inverse);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-height: 200px;
  justify-content: flex-end;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.pillar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}
.pillar-card > * { position: relative; z-index: 2; }
.pillar-card-icon { font-size: 2rem; margin-bottom: var(--space-xs); }
.pillar-card h3 {
  color: #fff;
  font-size: var(--text-xl);
}
.pillar-card p {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-sm);
}
.pillar-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-light);
  margin-top: var(--space-xs);
}
.pillar-radar { background: linear-gradient(135deg, #1A0A2E, #2D1B69); }
.pillar-bridge { background: linear-gradient(135deg, #0D2137, #164E6E); }
.pillar-guides { background: linear-gradient(135deg, #2E1A0A, #694B1B); }
.pillar-passport { background: linear-gradient(135deg, #0A2E1A, #1B6945); }
.pillar-voices { background: linear-gradient(135deg, #2E0A1A, #691B3D); }

/* --- Alert Banner --- */
.alert-banner {
  background: linear-gradient(90deg, var(--deep-purple), var(--royal-purple));
  color: #fff;
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 500;
}
.alert-banner a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: var(--space-xl);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: var(--space-lg);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-xl) + 6px);
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg-primary);
}
.timeline-item-current::before {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(26,188,156,0.2);
}
.timeline-date {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.timeline-title {
  font-weight: 600;
  color: var(--text-primary);
}
.timeline-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* --- Passport Gamification --- */
.passport-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 2px dashed var(--border);
  text-align: center;
  transition: all var(--transition-base);
}
.passport-stamp.is-collected {
  border-color: var(--gold);
  border-style: solid;
  background: rgba(212,168,67,0.05);
}
.passport-stamp-icon { font-size: 2rem; }
.passport-stamp-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
}
.passport-progress {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-3);
  overflow: hidden;
}
.passport-progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.6s var(--ease-out);
}

/* --- Newsletter / CTA Section --- */
.cta-section {
  background: var(--bg-hero);
  color: #fff;
  padding: var(--space-3xl) var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(212,168,67,0.08), transparent 60%);
}
.cta-section h2 { color: #fff; margin-bottom: var(--space-sm); }
.cta-section p { color: rgba(255,255,255,0.7); margin-bottom: var(--space-lg); max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.cta-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: var(--text-sm);
  min-height: 44px;
  transition: border-color var(--transition-fast);
}
.cta-input::placeholder { color: rgba(255,255,255,0.4); }
.cta-input:focus {
  outline: none;
  border-color: var(--gold);
}

/* --- Footer --- */
.site-footer {
  background: var(--midnight);
  color: rgba(255,255,255,0.6);
  padding: var(--space-2xl) var(--space-md) var(--space-lg);
}
.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-2xl);
}
@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); }
}
.footer-brand { max-width: 300px; }
.footer-brand .logo { color: #fff; margin-bottom: var(--space-sm); }
.footer-brand p { font-size: var(--text-sm); color: rgba(255,255,255,0.5); line-height: 1.6; }
.footer-col h4 {
  color: #fff;
  font-size: var(--text-sm);
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-col a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: var(--text-xs);
}
.footer-bottom a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition-fast);
}
.footer-bottom a:hover { color: var(--gold-light); }

/* --- Utility Classes --- */
.container { max-width: var(--content-width); margin: 0 auto; padding: 0 var(--space-md); }
.container-narrow { max-width: var(--content-narrow); margin: 0 auto; padding: 0 var(--space-md); }
.container-wide { max-width: var(--content-wide); margin: 0 auto; padding: 0 var(--space-md); }
.text-center { text-align: center; }
.text-gold { color: var(--gold-dark); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* --- Device-Specific Interactions --- */
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  .festival-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .festival-card:hover .festival-card-arrow { transform: translateX(4px); }
  .pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
  a:hover { color: var(--text-accent); }
}
@media (hover: none) {
  .card:active { transform: scale(0.98); }
  .festival-card:active { transform: scale(0.99); }
  .pillar-card:active { transform: scale(0.98); }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Touch Targets (WCAG 2.2) --- */
a, button, [role="button"], summary, input, select, textarea {
  min-height: 44px;
}
.nav-links a, .filter-bar button, .pagination a {
  padding: 12px 16px;
  margin: 4px;
}

/* --- Focus Styles --- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

/* --- Print --- */
@media print {
  .site-header, .site-footer, .nav-toggle, .nav-overlay,
  .cta-section, .alert-banner, .hero-actions { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  .hero { background: #fff !important; color: #000 !important; padding: 1em 0; }
  .hero h1 { color: #000 !important; -webkit-text-fill-color: #000; }
  .card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
}

/* --- Content Article --- */
.article-content { max-width: var(--content-narrow); margin: 0 auto; }
.article-content h2 { margin-top: var(--space-2xl); margin-bottom: var(--space-md); }
.article-content h3 { margin-top: var(--space-xl); margin-bottom: var(--space-sm); }
.article-content p { margin-bottom: var(--space-md); }
.article-content ul, .article-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}
.article-content li {
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
  line-height: 1.7;
}
.article-content ol { list-style: decimal; }
.article-content ul { list-style: disc; }
.article-content blockquote {
  border-left: 3px solid var(--gold);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background: var(--bg-surface-2);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* --- Author Bio (E-E-A-T) --- */
.author-bio {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-surface-2);
  border-radius: var(--radius-lg);
  margin-top: var(--space-2xl);
  align-items: flex-start;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep-purple), var(--royal-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  color: var(--gold);
}
.author-name {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.author-role {
  font-size: var(--text-xs);
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
.author-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Search Box --- */
.search-box {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}
.search-input {
  width: 100%;
  padding: 12px 20px 12px 44px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast);
}
.search-input:focus {
  outline: none;
  border-color: var(--gold);
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 1rem;
  pointer-events: none;
}

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--space-sm) 0;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn {
  padding: 8px 18px;
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-surface);
  transition: all var(--transition-fast);
  min-height: 44px;
  min-width: 44px;
}
.filter-btn:hover,
.filter-btn:focus-visible {
  border-color: var(--gold);
  color: var(--gold-dark);
}
.filter-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--midnight);
}

/* --- Page Hero (Inner Pages) --- */
.page-hero {
  background: var(--bg-hero);
  color: #fff;
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,168,67,0.1) 0%, transparent 60%);
}
.page-hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-hero h1 { color: #fff; margin-bottom: var(--space-sm); }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 600px; }

/* --- Animations (Entrance) --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out) forwards;
}
.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }

/* --- Country Flag Grid (Passport) --- */
.country-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}
@media (min-width: 600px) {
  .country-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .country-grid { grid-template-columns: repeat(6, 1fr); }
}
