/* =============================================
   EREBUS ESCAPE - Global Styles
   Dark theme with neon cyan/blue accents
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Nunito+Sans:wght@300;400;600;700&display=swap');

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --neon-cyan: #1fe8f4;
  --neon-blue: #00b4d8;
  --neon-glow: rgba(31, 232, 244, 0.3);
  --neon-glow-strong: rgba(31, 232, 244, 0.6);
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #666666;
  --accent-dark: #0d2e3a;
  --border-color: rgba(31, 232, 244, 0.15);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--neon-glow);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo img {
  height: 50px;
  width: auto;
  filter: brightness(1.1);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px var(--neon-glow);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--neon-cyan);
  background: rgba(31, 232, 244, 0.06);
}

.main-nav .nav-dropdown {
  position: relative;
}
.main-nav .nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(14, 14, 14, 0.97);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 0;
  min-width: 200px;
  backdrop-filter: blur(20px);
  z-index: 100;
}
.main-nav .nav-dropdown:hover .dropdown-menu {
  display: block;
}
.main-nav .dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 0.65rem;
  white-space: nowrap;
}

.btn-book {
  display: inline-block;
  background: var(--neon-cyan);
  color: #000 !important;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 24px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: none !important;
  box-shadow: 0 0 20px var(--neon-glow), inset 0 0 20px rgba(255,255,255,0.1);
}
.btn-book:hover {
  background: #fff;
  color: #000 !important;
  box-shadow: 0 0 40px var(--neon-glow-strong);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
}
.btn-outline:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 30px var(--neon-glow);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.menu-toggle span {
  width: 28px;
  height: 2px;
  background: var(--neon-cyan);
  transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
  /* CSS-only fallback glow in case JS doesn't load */
  background-image: radial-gradient(ellipse at 50% 50%, rgba(13,46,58,0.25) 0%, transparent 60%);
}

.fractal-canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(10,10,10,0.4) 60%, rgba(10,10,10,0.85) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  text-shadow: 0 0 60px var(--neon-glow), 0 0 120px rgba(31,232,244,0.15);
  margin-bottom: 16px;
  animation: heroFadeIn 1.2s ease-out;
}

.hero-content .hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 40px;
  animation: heroFadeIn 1.2s ease-out 0.3s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroFadeIn 1.2s ease-out 0.6s both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-indicator span {
  display: block;
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--neon-cyan);
  border-bottom: 2px solid var(--neon-cyan);
  transform: rotate(45deg);
  opacity: 0.5;
}

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

/* =============================================
   SECTIONS
   ============================================= */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
}

.neon-line {
  width: 60px;
  height: 2px;
  background: var(--neon-cyan);
  margin: 20px auto;
  box-shadow: 0 0 10px var(--neon-glow);
}

/* =============================================
   INTRO / ABOUT
   ============================================= */
.intro-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* =============================================
   GAME CARDS
   ============================================= */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}
.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--neon-cyan);
  box-shadow: 0 20px 60px rgba(31, 232, 244, 0.1), 0 0 30px rgba(31, 232, 244, 0.05);
}

.game-card-image {
  width: 100%;
  height: 200px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.game-card-image img {
  width: 80%;
  height: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

.game-card-body {
  padding: 24px;
}

.game-card-body h3 {
  color: var(--neon-cyan);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.game-card-body .game-tagline {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.game-card-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.game-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.game-meta .icon {
  color: var(--neon-cyan);
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 28px;
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  border-color: rgba(31, 232, 244, 0.3);
}

.testimonial-stars {
  color: #f5a623;
  font-size: 0.9rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--neon-cyan);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.testimonial-source {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* =============================================
   FAQ
   ============================================= */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}
.faq-question:hover {
  color: var(--neon-cyan);
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--neon-cyan);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =============================================
   CONTACT / LOCATION
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info h3 {
  color: var(--neon-cyan);
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 1rem;
}

.contact-info .phone {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--neon-cyan);
  margin-top: 16px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(31, 232, 244, 0.1);
}

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

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

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

.footer-about p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-cyan);
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: var(--neon-cyan);
}

.footer-contact p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* =============================================
   BLOG / PRESS
   ============================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.post-card:hover {
  border-color: rgba(31, 232, 244, 0.3);
  transform: translateY(-4px);
}

.post-card-body {
  padding: 24px;
}

.post-card-body h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}
.post-card-body h3 a {
  color: var(--text-primary);
}
.post-card-body h3 a:hover {
  color: var(--neon-cyan);
}

.post-card-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  padding: 160px 0 80px;
  min-height: 240px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  background-image: radial-gradient(ellipse at 50% 40%, rgba(13,46,58,0.2) 0%, transparent 60%);
}

.page-hero .fractal-canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-hero .page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.7) 100%);
  z-index: 1;
}

.page-hero h1 {
  position: relative;
  z-index: 2;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 40px var(--neon-glow), 0 0 80px rgba(31,232,244,0.12);
}

.page-hero .neon-line,
.page-hero p,
.page-hero > div,
.page-hero > span {
  position: relative;
  z-index: 2;
}

/* =============================================
   PLACEHOLDER IMAGES
   ============================================= */
.placeholder-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0d1a1f 0%, #0a1520 50%, #0d2e3a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.placeholder-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(31, 232, 244, 0.03) 40px,
      rgba(31, 232, 244, 0.03) 41px
    );
}

.placeholder-img span {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(31, 232, 244, 0.5);
  z-index: 1;
}

.placeholder-img.tall {
  aspect-ratio: 3/4;
}

.placeholder-img.square {
  aspect-ratio: 1;
}

/* =============================================
   BOOKING EMBED
   ============================================= */
.booking-frame-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-placeholder {
  text-align: center;
  padding: 60px 24px;
}
.booking-placeholder p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 999;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    font-size: 1rem;
    padding: 12px 20px;
  }
  .main-nav .nav-dropdown .dropdown-menu {
    position: static;
    display: block;
    background: transparent;
    border: none;
    padding: 0;
    min-width: auto;
    text-align: center;
  }

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

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

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

  .testimonials-slider {
    grid-template-columns: 1fr;
  }

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