/* ============================================
   4 Stage Entertainment -- Custom Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  --bg: #f5f5f7;
  --bg-alt: #eaeaee;
  --bg-card: #ffffff;
  --bg-dark: #1a1a2e;
  --text: #1a1a2e;
  --text-muted: #4a4a5a;
  --text-faint: #8a8a9a;
  --primary: #3b82f6;
  --primary-rgb: 59, 130, 246;
  --primary-light: #dbeafe;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --border: #d1d5db;
  --border-light: #e5e7eb;

  --max-w: 1200px;
  --nav-h: 72px;
  --radius: 6px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

html.dark {
  --bg: #0a0a14;
  --bg-alt: #12121f;
  --bg-card: #1a1a2e;
  --bg-dark: #06060e;
  --text: #e8e8f0;
  --text-muted: #a0a0b8;
  --text-faint: #6a6a80;
  --primary: #60a5fa;
  --primary-rgb: 96, 165, 250;
  --primary-light: #1e3a5f;
  --accent: #fbbf24;
  --accent-light: #422006;
  --border: #2a2a3e;
  --border-light: #1f1f30;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden; padding-bottom: 2.25rem; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--text);
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }

p { max-width: 68ch; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: var(--bg);
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}

.nav__logo-main {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text);
  letter-spacing: 0.06em;
  transition: color 0.3s;
}

.nav__logo-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav__link:hover { color: var(--primary); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff !important;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff !important;
  transform: translateY(-1px);
}

.nav-cta svg { width: 16px; height: 16px; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.4rem;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
}

.theme-toggle:hover { color: var(--primary); background: var(--bg-alt); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun { display: block; }

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* Dark hero nav contrast */
.has-dark-hero .site-header:not(.scrolled) .nav__logo-main,
.has-dark-hero .site-header:not(.scrolled) .nav__link,
.has-dark-hero .site-header:not(.scrolled) .nav__hamburger span { color: #fff; }
.has-dark-hero .site-header:not(.scrolled) .nav__logo-sub { color: rgba(255,255,255,0.7); }
.has-dark-hero .site-header:not(.scrolled) .theme-toggle { color: rgba(255,255,255,0.8); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,20,0.85) 0%, rgba(10,10,20,0.6) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 1.5rem;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero__sub {
  color: rgba(255,255,255,0.8);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn--outline:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.btn--dark {
  background: var(--primary);
  color: #fff;
}

.btn--dark:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.btn svg { width: 18px; height: 18px; }

/* --- Section Shared --- */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #e8e8f0; }

.section__label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section__heading {
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section__intro {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 3rem;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card__body {
  padding: 1.75rem;
}

.service-card__title {
  margin-bottom: 0.75rem;
}

.service-card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-card__link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-card__link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.service-card__link:hover svg { transform: translateX(4px); }

/* --- Process --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  counter-increment: step;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}

.process-step h3 { margin-bottom: 0.75rem; }
.process-step p { color: var(--text-muted); font-size: 0.9rem; }

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}

.testimonial__quote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial__quote::before {
  content: '\201C';
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--primary);
  opacity: 0.3;
  line-height: 0;
  display: block;
  margin-bottom: 0.5rem;
}

.testimonial__author {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial__role {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

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

.faq-item__question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item__question:hover { color: var(--primary); }

.faq-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--text-muted);
}

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

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

.faq-item.active .faq-item__answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

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

/* --- CTA Band --- */
.cta-band {
  background: var(--bg-dark);
  padding: clamp(4rem, 8vw, 6rem) 0;
  text-align: center;
}

.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.7); margin: 0 auto 2rem; }

/* --- About Page --- */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  background: var(--bg-alt);
  text-align: center;
}

.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { color: var(--text-muted); font-size: 1.15rem; margin: 0 auto; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; }

.about-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.value-card__icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin: 0 auto 1rem;
}

.value-card h3 { margin-bottom: 0.75rem; }
.value-card p { color: var(--text-muted); font-size: 0.9rem; }

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form { width: 100%; }

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-card);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

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

.contact-info h3 { margin-bottom: 0.75rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail__icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail strong {
  display: block;
  margin-bottom: 0.2rem;
}

.contact-detail span,
.contact-detail a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-status {
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  display: none;
}

.form-status.success { display: block; background: #d1fae5; color: #065f46; }
.form-status.error { display: block; background: #fee2e2; color: #991b1b; }

/* --- Service Detail Page --- */
.service-hero {
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  background: var(--bg-dark);
  color: #fff;
}

.service-hero h1 { color: #fff; margin-bottom: 1rem; }
.service-hero p { color: rgba(255,255,255,0.75); font-size: 1.15rem; }

.service-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.service-content h2 { margin-bottom: 1rem; margin-top: 2rem; }
.service-content h2:first-child { margin-top: 0; }
.service-content p { color: var(--text-muted); margin-bottom: 1rem; }

.service-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.service-sidebar h3 { margin-bottom: 1rem; }
.service-sidebar ul { list-style: none; margin-bottom: 1.5rem; }
.service-sidebar li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.service-sidebar li:last-child { border-bottom: none; }

.service-sidebar .btn { width: 100%; justify-content: center; }

.service-steps {
  counter-reset: svc-step;
  margin: 2rem 0;
}

.service-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  counter-increment: svc-step;
}

.service-step__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-step__body h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.service-step__body p { color: var(--text-muted); font-size: 0.9rem; }

/* --- Footer --- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

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

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.footer-credit {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin-top: 1rem;
}

.footer-credit a { color: rgba(255,255,255,0.6); }
.footer-credit a:hover { color: var(--accent); }

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

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

/* --- Disclaimer Bar --- */
.disclaimer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-faint);
  z-index: 90;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

html.dark .disclaimer-bar {
  background: #0d0d18;
  border-color: #1f1f30;
}

.site-footer { padding-bottom: 5rem; }

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 404 --- */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.page-404 h1 { font-size: clamp(6rem, 15vw, 12rem); color: var(--primary); opacity: 0.15; }
.page-404 h2 { margin-top: -1rem; margin-bottom: 1rem; }
.page-404 p { color: var(--text-muted); margin-bottom: 2rem; }

/* --- Mobile Nav --- */
@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 200;
  }

  .nav__links.open { right: 0; }

  .nav__hamburger { display: flex; z-index: 201; }

  .nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav__hamburger.active span:nth-child(2) { opacity: 0; }
  .nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .nav-cta { display: none; }

  .hero { min-height: 80vh; }
  .hero__content { padding-top: var(--nav-h); }

  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .values-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-content { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* Subtle animations */
@media (prefers-reduced-motion: no-preference) {
  .hero__badge {
    animation: badge-glow 3s ease-in-out infinite alternate;
  }
  @keyframes badge-glow {
    from { opacity: 0.85; }
    to { opacity: 1; text-shadow: 0 0 12px rgba(245, 158, 11, 0.3); }
  }
  .service-card__link svg {
    animation: nudge-right 2s ease-in-out infinite;
  }
  @keyframes nudge-right {
    0%, 70%, 100% { transform: translateX(0); }
    80% { transform: translateX(3px); }
    90% { transform: translateX(0); }
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
