/* ============================================
   StageSpark - Kids Personality Development
   Main Stylesheet
   ============================================ */

/* CSS Custom Properties - Kid-friendly palette */
:root {
  --color-primary: #6B4EAA;
  --color-primary-light: #8B6FCC;
  --color-secondary: #F4A261;
  --color-accent: #2EC4B6;
  --color-warm: #FF9F1C;
  --color-soft-pink: #FFB5B5;
  --color-cream: #FFF8F0;
  --color-white: #FFFFFF;
  --color-text: #2D3142;
  --color-text-muted: #5C6370;
  --font-heading: 'Nunito', 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', 'Helvetica Neue', sans-serif;
  --shadow-soft: 0 4px 20px rgba(107, 78, 170, 0.12);
  --shadow-hover: 0 8px 30px rgba(107, 78, 170, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-cream);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-light);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* Header */
.site-header {
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.logo:hover {
  color: var(--color-primary-light);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-list a {
  font-weight: 600;
  color: var(--color-text);
}

.nav-list a:hover {
  color: var(--color-primary);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-accent) 100%);
  color: var(--color-white);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  opacity: 0.95;
}

.hero-banner {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 900px;
  margin: 2rem auto 0;
  box-shadow: var(--shadow-hover);
}

.hero-banner img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* Hero placeholder - gradient when no image */
.hero-banner-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 4rem;
}

/* Features / Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* Course Cards */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.course-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.course-card-image {
  height: 180px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 3rem;
}

.course-card-body {
  padding: 1.5rem;
}

.course-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.course-card .schedule {
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Age Groups */
.age-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.age-badge {
  background: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition);
}

.age-badge:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  text-align: center;
  padding: 3rem 0;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.cta-section .btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
}

.cta-section .btn-primary:hover {
  background: var(--color-cream);
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: var(--color-white);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h3,
.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.85);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.95;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs span {
  color: var(--color-text-muted);
  margin: 0 0.5rem;
}

/* Google Form Embed */
.form-embed {
  width: 100%;
  min-height: 1200px;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.form-embed-container {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* Registration form (register-course.html) */
.registration-form {
  max-width: 560px;
  margin: 0 auto;
}

.registration-form .form-row {
  margin-bottom: 1.25rem;
}

.registration-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.registration-form .required {
  color: var(--color-secondary);
}

.registration-form input,
.registration-form select,
.registration-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  background: var(--color-white);
  transition: border-color var(--transition);
}

.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.registration-form textarea {
  resize: vertical;
  min-height: 100px;
}

.registration-form .form-message {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.registration-form .form-message-error {
  background: #fee;
  color: #c33;
}

.registration-form .form-message-success {
  background: #efe;
  color: #363;
}

.registration-form .btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

.registration-form .btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Thank You Page */
.thank-you-content {
  text-align: center;
  padding: 4rem 0;
}

.thank-you-content h1 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.thank-you-content .success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: var(--color-white);
  font-size: 2.5rem;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

/* About Page - Content */
.about-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.about-content {
  display: grid;
  gap: 2rem;
}

.about-block {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .main-nav.is-open {
    max-height: 300px;
  }

  .nav-list {
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .nav-list a {
    display: block;
    padding: 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero-banner img,
  .hero-banner-placeholder {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .btn {
    width: 100%;
  }
}
