/* ============================================
   William Thomas & Friends - Theme Park Website
   Vibrant, Fun, Animated, Family-Friendly
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --blue-engine: #4A90D9;
  --blue-light: #6BB5FF;
  --red-engine: #E74C3C;
  --red-dark: #C0392B;
  --green-park: #4CAF50;
  --green-light: #81C784;
  --orange-warm: #FF9800;
  --orange-light: #FFB74D;
  --purple-fun: #9C27B0;
  --yellow-bright: #FFD700;
  --yellow-soft: #FFF8E1;
  --brown-track: #8B4513;
  --sky-blue: #87CEEB;
  --sky-gradient-top: #4FC3F7;
  --sky-gradient-bottom: #B3E5FC;
  --text-dark: #2C3E50;
  --text-medium: #555;
  --text-light: #777;
  --bg-cream: #FFF9F0;
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-medium: 0 8px 30px rgba(0,0,0,0.15);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease;
  --font-display: 'Fredoka One', cursive;
  --font-heading: 'Baloo 2', cursive;
  --font-body: 'Nunito', sans-serif;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-engine);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

.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;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-cream);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

/* ---------- Floating Clouds ---------- */
.clouds-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cloud {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.25;
}

.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 50%;
}

.cloud-1 {
  width: 120px;
  height: 40px;
  top: 8%;
  left: -120px;
  animation: floatCloud 35s linear infinite;
}
.cloud-1::before { width: 50px; height: 50px; top: -25px; left: 20px; }
.cloud-1::after { width: 60px; height: 60px; top: -30px; left: 50px; }

.cloud-2 {
  width: 150px;
  height: 50px;
  top: 15%;
  left: -150px;
  animation: floatCloud 45s linear infinite 5s;
  opacity: 0.2;
}
.cloud-2::before { width: 60px; height: 60px; top: -30px; left: 25px; }
.cloud-2::after { width: 70px; height: 70px; top: -35px; left: 60px; }

.cloud-3 {
  width: 100px;
  height: 35px;
  top: 25%;
  left: -100px;
  animation: floatCloud 50s linear infinite 12s;
  opacity: 0.15;
}
.cloud-3::before { width: 40px; height: 40px; top: -20px; left: 15px; }
.cloud-3::after { width: 50px; height: 50px; top: -25px; left: 40px; }

.cloud-4 {
  width: 80px;
  height: 30px;
  top: 5%;
  left: -80px;
  animation: floatCloud 40s linear infinite 20s;
  opacity: 0.18;
}
.cloud-4::before { width: 35px; height: 35px; top: -18px; left: 10px; }
.cloud-4::after { width: 40px; height: 40px; top: -20px; left: 35px; }

.cloud-5 {
  width: 130px;
  height: 45px;
  top: 35%;
  left: -130px;
  animation: floatCloud 55s linear infinite 8s;
  opacity: 0.12;
}
.cloud-5::before { width: 55px; height: 55px; top: -28px; left: 22px; }
.cloud-5::after { width: 65px; height: 65px; top: -32px; left: 55px; }

@keyframes floatCloud {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 200px)); }
}

/* ---------- Navigation ---------- */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  transition: all var(--transition-medium);
}

.main-nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--blue-engine);
  white-space: nowrap;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  color: var(--text-dark);
}

.nav-links a:hover {
  color: var(--blue-engine);
  background: rgba(74, 144, 217, 0.08);
}

.nav-cta {
  background: linear-gradient(135deg, var(--orange-warm), #FF6D00) !important;
  color: white !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: var(--radius-lg) !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
  transition: all var(--transition-fast) !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5) !important;
  background: linear-gradient(135deg, #FF6D00, var(--orange-warm)) !important;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-warm), #FF6D00);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.5);
}

.btn-secondary {
  background: white;
  color: var(--blue-engine);
  border: 3px solid var(--blue-engine);
  box-shadow: 0 4px 15px rgba(74, 144, 217, 0.2);
}

.btn-secondary:hover {
  background: var(--blue-engine);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(74, 144, 217, 0.4);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.15rem;
}

.btn-icon {
  font-size: 1.3em;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 2rem 6rem;
  background: linear-gradient(180deg, #2196F3 0%, var(--sky-gradient-top) 25%, var(--sky-gradient-bottom) 55%, #C8E6C9 85%, var(--green-light) 100%);
  overflow: hidden;
}

.hero-bg-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-sun {
  position: absolute;
  top: 5%;
  right: 8%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, #FFD54F 30%, #FFECB3 60%, transparent 70%);
  border-radius: 50%;
  animation: sunPulse 4s ease-in-out infinite;
}

@keyframes sunPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; }
}

.hero-hills {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.hero-hills svg {
  width: 100%;
  display: block;
}

/* Confetti */
.confetti-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  top: -20px;
  animation: confettiFall linear infinite;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Hero train scene - larger, more prominent */
.hero-train-scene {
  position: absolute;
  bottom: 8%;
  left: 0;
  right: 0;
  z-index: 6;
  pointer-events: none;
}

.hero-track-svg {
  width: 100%;
  height: 80px;
}

.hero-train-big {
  position: absolute;
  bottom: 15px;
  left: -300px;
  width: 280px;
}

.train-svg-big {
  width: 100%;
  filter: drop-shadow(3px 5px 8px rgba(0,0,0,0.3));
}

/* Smoke animations */
.smoke-1 { animation: smokeRise 2s ease-out infinite; }
.smoke-2 { animation: smokeRise 2.5s ease-out infinite 0.3s; }
.smoke-3 { animation: smokeRise 3s ease-out infinite 0.6s; }

@keyframes smokeRise {
  0% { opacity: 0.6; transform: translateY(0) scale(1); }
  50% { opacity: 0.3; transform: translateY(-10px) scale(1.5); }
  100% { opacity: 0; transform: translateY(-25px) scale(2); }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 950px;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--red-engine), #FF5252);
  color: white;
  padding: 0.75rem 2.5rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 25px rgba(231, 76, 60, 0.5);
  border: 3px solid rgba(255,255,255,0.3);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.15;
  color: white;
  text-shadow: 3px 5px 10px rgba(0,0,0,0.5), 0 0 40px rgba(0,0,0,0.15);
  margin-bottom: 1.25rem;
}

.hero-title .highlight {
  color: var(--yellow-bright);
  display: inline;
  text-shadow: 3px 5px 10px rgba(0,0,0,0.5), 0 0 20px rgba(255,215,0,0.3);
}

.hero-title .highlight-2 {
  color: #FF6D00;
  font-style: italic;
  text-shadow: 3px 5px 10px rgba(0,0,0,0.5), 0 0 20px rgba(255,109,0,0.3);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: white;
  text-shadow: 2px 3px 8px rgba(0,0,0,0.5);
  margin-bottom: 2rem;
  font-weight: 800;
  line-height: 1.4;
}

.hero-subtitle .topham {
  color: var(--yellow-bright);
  font-style: italic;
  text-shadow: 2px 3px 8px rgba(0,0,0,0.5), 0 0 15px rgba(255,215,0,0.3);
}

.hero-cta-group {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 4px solid white;
  border-bottom: 4px solid white;
  transform: rotate(45deg);
  opacity: 0.7;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(12px); }
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
  padding: 0;
  position: relative;
  z-index: 2;
}

.stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-card {
  padding: 1.75rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background var(--transition-fast);
}

.stat-card:last-child { border-right: none; }
.stat-card:hover { filter: brightness(1.15); }

.stat-blue { background: #1565C0; }
.stat-red { background: #C62828; }
.stat-green { background: #2E7D32; }
.stat-orange { background: #E65100; }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  color: white;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  display: block;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Section Styles ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-engine), var(--orange-warm));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 1rem auto 0;
}

/* ---------- Park Map Section ---------- */
.park-map-section {
  background: linear-gradient(180deg, var(--bg-cream) 0%, #E8F5E9 100%);
}

.park-map-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  border: 4px solid var(--green-park);
}

.map-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.map-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: white;
  color: var(--text-dark);
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-btn:hover { background: var(--blue-engine); color: white; }
.map-btn-reset { font-size: 0.7rem; width: auto; padding: 0 10px; }

.map-scroll-wrapper {
  overflow: auto;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  max-height: 70vh;
}

.map-scroll-wrapper:active { cursor: grabbing; }

.park-map-svg {
  display: block;
  min-width: 900px;
  transition: transform 0.3s ease;
  transform-origin: 0 0;
}

.map-station, .map-ride, .map-food, .map-special {
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.map-station:hover, .map-ride:hover, .map-food:hover, .map-special:hover {
  transform: scale(1.2);
}

.station-beacon {
  animation: beaconPulse 2s ease-in-out infinite;
}

@keyframes beaconPulse {
  0%, 100% { opacity: 0.6; r: 5; }
  50% { opacity: 1; r: 8; }
}

.map-tooltip {
  position: fixed;
  background: white;
  padding: 1rem 1.5rem;
  padding-right: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 200;
  max-width: 280px;
  border-left: 5px solid var(--blue-engine);
}

.map-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.map-tooltip h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--blue-engine);
  margin-bottom: 0.35rem;
}

.map-tooltip p {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.tooltip-close {
  position: absolute;
  top: 5px;
  right: 8px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
}

.tooltip-close:hover { color: var(--red-engine); }

/* ---------- Game Section ---------- */
.game-section {
  background: linear-gradient(180deg, var(--bg-cream) 0%, #E3F2FD 100%);
}

.game-wrapper {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  border: 4px solid var(--blue-engine);
  background: #87CEEB;
}

.game-hud {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(0,0,0,0.6);
  color: white;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.game-hud strong { color: var(--yellow-bright); }

#trainGameCanvas {
  width: 100%;
  height: auto;
  display: block;
  touch-action: none;
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.game-overlay.hidden { display: none; }

.game-overlay-content {
  text-align: center;
  color: white;
}

.game-overlay-content h3 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 3px 6px rgba(0,0,0,0.4);
}

.game-overlay-content p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* ---------- Train Section ---------- */
.train-section {
  background: linear-gradient(180deg, #E8F5E9 0%, var(--bg-cream) 30%, #FFF3E0 100%);
}

.train-showcase {
  max-width: 1200px;
  margin: 0 auto;
}

.train-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.train-info-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-medium);
  border-bottom: 4px solid transparent;
}

.train-info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--blue-engine);
}

.train-info-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
}

.train-info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--blue-engine);
  margin-bottom: 0.5rem;
}

.train-info-card p {
  color: var(--text-medium);
  font-size: 0.95rem;
}

/* Train Route Timeline */
.train-route {
  background: white;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-soft);
}

.route-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--brown-track);
}

.route-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.route-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #E74C3C, #2196F3, #FF9800, #9C27B0, #4CAF50);
  border-radius: 2px;
}

.route-stop {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  position: relative;
}

.stop-dot {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  position: relative;
  z-index: 2;
}

.stop-info h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.stop-info p {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.stop-time {
  display: inline-block;
  background: #E3F2FD;
  color: var(--blue-engine);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- Rides Section ---------- */
.rides-section {
  background: linear-gradient(180deg, #FFF3E0 0%, var(--bg-cream) 50%, #E3F2FD 100%);
}

.rides-filter {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border: 3px solid #ddd;
  border-radius: var(--radius-xl);
  background: white;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-medium);
}

.filter-btn:hover {
  border-color: var(--blue-engine);
  color: var(--blue-engine);
}

.filter-btn.active {
  background: var(--blue-engine);
  color: white;
  border-color: var(--blue-engine);
}

.rides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.ride-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-medium);
  opacity: 1;
  transform: translateY(0);
}

.ride-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.ride-card.hidden {
  display: none;
}

.ride-card-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.ride-card-image svg {
  width: 100%;
  height: 100%;
  transition: transform var(--transition-medium);
}

.ride-card:hover .ride-card-image svg {
  transform: scale(1.05);
}

.ride-card-content {
  padding: 1.5rem;
}

.ride-card-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.family-badge { background: #E8F5E9; color: #2E7D32; }
.thrill-badge { background: #FBE9E7; color: #BF360C; }
.kids-badge { background: #FFF8E1; color: #F57F17; }

.ride-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.ride-card-content p {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.ride-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
}

.ride-thrill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-medium);
}

.thrill-dots {
  display: flex;
  gap: 4px;
}

.thrill-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #E0E0E0;
  transition: background var(--transition-fast);
}

.thrill-dots .dot.filled {
  background: linear-gradient(135deg, #FF5722, #FF9800);
}

/* ---------- Story Time Section ---------- */
.storytime-section {
  background: linear-gradient(180deg, #E3F2FD 0%, #FFF8E1 50%, var(--bg-cream) 100%);
}

.storytime-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.storytime-illustration {
  position: sticky;
  top: 100px;
}

.topham-svg {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.15));
}

.sparkle {
  fill: #FFD700;
  animation: sparkleAnim 2s ease-in-out infinite;
}

.sparkle:nth-child(even) {
  animation-delay: 0.5s;
}

@keyframes sparkleAnim {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.storytime-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.storytime-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border-left: 5px solid var(--orange-warm);
}

.storytime-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--orange-warm);
  margin-bottom: 0.75rem;
}

.storytime-card p {
  color: var(--text-medium);
  line-height: 1.7;
}

.storytime-schedule {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.storytime-schedule h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.schedule-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.schedule-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  grid-template-rows: auto auto;
  gap: 0 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: #FAFAFA;
  transition: all var(--transition-fast);
  border-left: 4px solid transparent;
}

.schedule-item:hover {
  background: #FFF8E1;
  border-left-color: var(--orange-warm);
  transform: translateX(5px);
}

.schedule-time {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--blue-engine);
  grid-row: span 2;
  display: flex;
  align-items: center;
}

.schedule-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-dark);
}

.schedule-desc {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---------- Dining Section ---------- */
.dining-section {
  background: var(--bg-cream);
}

.dining-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.dining-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-medium);
  border-top: 4px solid transparent;
}

.dining-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--orange-warm);
}

.dining-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
}

.dining-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.dining-card p {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.dining-type {
  display: inline-block;
  background: #FFF3E0;
  color: var(--orange-warm);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- Tickets Section ---------- */
.tickets-section {
  background: linear-gradient(180deg, var(--bg-cream) 0%, #E3F2FD 100%);
}

.tickets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.ticket-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-medium);
  position: relative;
}

.ticket-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.ticket-card.featured {
  transform: scale(1.05);
  box-shadow: var(--shadow-medium);
  border: 3px solid var(--orange-warm);
}

.ticket-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.ticket-ribbon {
  position: absolute;
  top: 15px;
  right: -35px;
  background: var(--red-engine);
  color: white;
  padding: 0.3rem 2.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  transform: rotate(45deg);
  z-index: 2;
}

.ticket-header {
  padding: 2rem;
  text-align: center;
  color: white;
}

.ticket-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.ticket-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
}

.price-period {
  font-size: 0.9rem;
  opacity: 0.9;
}

.ticket-features {
  list-style: none;
  padding: 1.5rem 2rem;
}

.ticket-features li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #F5F5F5;
  font-size: 0.95rem;
  color: var(--text-medium);
  padding-left: 1.5rem;
  position: relative;
}

.ticket-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green-park);
  font-weight: 800;
}

.ticket-features li:last-child {
  border-bottom: none;
}

.ticket-btn {
  display: block;
  margin: 0 1.5rem 1.5rem;
  text-align: center;
  justify-content: center;
}

.tickets-info {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-medium);
  font-size: 0.95rem;
}

.tickets-info a {
  color: var(--blue-engine);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Info Section ---------- */
.info-section {
  background: linear-gradient(180deg, #E3F2FD 0%, var(--bg-cream) 100%);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.info-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-medium);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.info-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--blue-engine);
  margin-bottom: 0.75rem;
}

.info-card p {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* ---------- Newsletter Section ---------- */
.newsletter-section {
  background: linear-gradient(135deg, var(--blue-engine), #1565C0);
  color: white;
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-content h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.newsletter-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
}

.newsletter-form input:focus {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.newsletter-success p {
  font-size: 1.2rem;
  font-weight: 700;
}

/* ---------- Footer ---------- */
.main-footer {
  background: #1a1a2e;
  color: #ccc;
  position: relative;
  overflow: hidden;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
}

.footer-logo span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--blue-light);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: white;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #aaa;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--blue-light);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  color: #ccc !important;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--blue-engine);
  color: white !important;
  transform: translateY(-3px);
}

.footer-contact {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

/* Footer Train */
.footer-train {
  position: relative;
  height: 50px;
  overflow: hidden;
}

.footer-track {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, #555 0px, #555 20px, transparent 20px, transparent 35px);
}

.footer-train-anim {
  position: absolute;
  bottom: 10px;
  left: -200px;
}

.footer-train-svg {
  width: 150px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .storytime-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .storytime-illustration {
    position: relative;
    top: 0;
    max-width: 300px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-medium);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  }

  .stats-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-number { font-size: 2.2rem; }

  .hero-train-big { width: 180px; }

  .game-hud { font-size: 0.9rem; }

  .rides-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .tickets-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .ticket-card.featured {
    transform: none;
  }

  .ticket-card.featured:hover {
    transform: translateY(-10px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .section {
    padding: 3rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .dining-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Animation Helpers ---------- */
.anim-hidden {
  opacity: 0;
  transform: translateY(40px);
}

.anim-slide-up {
  opacity: 0;
  transform: translateY(50px);
}

.anim-fade-up {
  opacity: 0;
  transform: translateY(30px);
}

.anim-scale-up {
  opacity: 0;
  transform: scale(0.9);
}

.anim-pop {
  opacity: 0;
  transform: scale(0.5);
}
