:root {
  /* Color palette */
  --deep-indigo: #1E1E2F;
  --slate-blue: #3A3F58;
  --soft-gray: #E0E0E0;
  --vibrant-orange: #FF6B35;
  --sky-blue: #4FC3F7;

  /* Neutral colors */
  --white: #ffffff;
  --black: #000000;

  /* Typography */
  --font-primary: 'Space Grotesk', sans-serif;
  --font-secondary: 'Outfit', sans-serif;

  /* Font sizes */
  --fs-xs: 0.75rem;
  /* 12px */
  --fs-sm: 0.875rem;
  /* 14px */
  --fs-base: 1rem;
  /* 16px */
  --fs-md: 1.125rem;
  /* 18px */
  --fs-lg: 1.5rem;
  /* 24px */
  --fs-xl: 2rem;
  /* 32px */
  --fs-xxl: 2.5rem;
  /* 40px */

  /* Spacing */
  --space-xxs: 0.25rem;
  /* 4px */
  --space-xs: 0.5rem;
  /* 8px */
  --space-sm: 0.75rem;
  /* 12px */
  --space-md: 1rem;
  /* 16px */
  --space-lg: 1.5rem;
  /* 24px */
  --space-xl: 2rem;
  /* 32px */
  --space-xxl: 4rem;
  /* 64px */

  /* Border radius */
  --radius-sm: 0.25rem;
  /* 4px */
  --radius-md: 0.5rem;
  /* 8px */
  --radius-lg: 1rem;
  /* 16px */
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* Z-index layers */
  --z-below: -1;
  --z-normal: 1;
  --z-above: 10;
  --z-modal: 100;
  --z-overlay: 1000;
}

/* ==================
   RESET & BASE
================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--deep-indigo);
  background-color: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sky-blue);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover,
a:focus {
  color: var(--vibrant-orange);
}

button,
.btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--vibrant-orange);
  color: var(--white);
  border: none;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-weight: 500;
  transition: all var(--transition-normal);
}

button:hover,
.btn:hover {
  background-color: #E65A2A;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

button:active,
.btn:active {
  transform: translateY(0);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--fs-xxl);
}

h2 {
  font-size: var(--fs-xl);
}

h3 {
  font-size: var(--fs-lg);
}

p {
  margin-bottom: var(--space-md);
}

ul,
ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

section {
  padding: var(--space-xl) 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==================
   LAYOUT & GRID
================== */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.principles-grid,
.eco-curriculum-grid,
.community-grid,
.manifesto-statements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 15px;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

/* ==================
   HEADER & NAVIGATION
================== */
.header {
  position: relative;
  padding: var(--space-md) 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  background-color: var(--deep-indigo);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xs) 0;
}

.logo {
  font-family: var(--font-secondary);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo span {
  color: var(--vibrant-orange);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  width: 30px;
  cursor: pointer;
  z-index: var(--z-above);
  background: none;
  border: none;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--white);
  margin: 3px 0;
  border-radius: var(--radius-pill);
  transition: all var(--transition-normal);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--deep-indigo);
  display: flex;
  flex-direction: column;
  padding: 5rem var(--space-xl) var(--space-xl);
  transition: right var(--transition-normal);
  z-index: var(--z-modal);
  overflow-y: auto;
}

.nav-menu.active {
  right: 0;
}

.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  z-index: var(--z-above);
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li {
  margin-bottom: var(--space-lg);
}

.nav-menu a {
  color: var(--soft-gray);
  font-size: var(--fs-lg);
  font-weight: 500;
  transition: color var(--transition-normal);
  position: relative;
  display: inline-block;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--vibrant-orange);
  transition: width var(--transition-normal);
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--white);
}

.nav-menu a:hover::after,
.nav-menu a:focus::after {
  width: 100%;
}

@media (min-width: 768px) {
  .header {
    padding: var(--space-md) 0;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background-color: transparent;
    flex-direction: row;
    padding: 0;
    overflow-y: visible;
  }

  .nav-menu ul {
    display: flex;
    gap: var(--space-lg);
  }

  .nav-menu li {
    margin-bottom: 0;
  }

  .nav-menu a {
    font-size: var(--fs-base);
  }
}

/* ==================
   HERO SECTION
================== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: var(--space-xxl) 0;
  background-color: var(--deep-indigo);
  color: var(--white);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: var(--z-above);
  max-width: 600px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero-accent {
  color: var(--vibrant-orange);
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(58, 63, 88, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(58, 63, 88, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.4;
}

.hero-shape {
  position: absolute;
  bottom: -15%;
  right: -15%;
  width: 70%;
  max-width: 800px;
  aspect-ratio: 1;
  background: radial-gradient(circle at center, var(--vibrant-orange) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
}

.hero-cta {
  margin-top: var(--space-xl);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--vibrant-orange);
  color: var(--white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--deep-indigo);
}

/* ==================
   FEATURES SECTION
================== */
.features {
  padding: var(--space-xxl) 0;
}

.features-heading {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background-color: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  color: var(--vibrant-orange);
  font-size: var(--fs-xl);
  margin-bottom: var(--space-md);
}

.feature-title {
  margin-bottom: var(--space-sm);
  color: var(--deep-indigo);
}

.feature-content {
  color: var(--slate-blue);
  flex-grow: 1;
}

.feature-link {
  margin-top: var(--space-md);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.feature-link i {
  transition: transform var(--transition-normal);
}

.feature-link:hover i {
  transform: translateX(3px);
}

/* ==================
   COURSES SECTION
================== */
.courses {
  background-color: var(--soft-gray);
  padding: var(--space-xxl) 0;
}

.courses-heading {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.course-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.course-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.course-card:hover .course-image img {
  transform: scale(1.05);
}

.course-content {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-title {
  margin-bottom: var(--space-xs);
}

.course-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  color: var(--slate-blue);
  font-size: var(--fs-sm);
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.course-description {
  margin-bottom: var(--space-lg);
  color: var(--slate-blue);
  flex-grow: 1;
}

.course-price {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--vibrant-orange);
  margin-bottom: var(--space-md);
}

.course-cta {
  margin-top: auto;
}

/* ==================
   TESTIMONIALS
================== */
.testimonials {
  padding: var(--space-xxl) 0;
}

.testimonials-heading {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.testimonial-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.testimonial-content {
  position: relative;
  margin-bottom: var(--space-lg);
  color: var(--slate-blue);
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: -30px;
  left: -10px;
  font-size: 5rem;
  color: rgba(58, 63, 88, 0.1);
  font-family: serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-info h4 {
  margin-bottom: 0;
}

.testimonial-info p {
  margin-bottom: 0;
  color: var(--slate-blue);
  font-size: var(--fs-sm);
}

/* ==================
   CTA SECTION
================== */
.cta {
  background-color: var(--deep-indigo);
  color: var(--white);
  padding: var(--space-xxl) 0;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: var(--space-lg);
}

.cta-buttons {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ==================
   CONTACT SECTION
================== */
.contact {
  padding: var(--space-xxl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-icon {
  font-size: var(--fs-lg);
  color: var(--vibrant-orange);
  flex-shrink: 0;
}

.contact-method-content h4 {
  margin-bottom: var(--space-xs);
}

.contact-method-content p,
.contact-method-content a {
  color: var(--slate-blue);
  margin-bottom: 0;
}

.contact-map {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.contact-form {
  background-color: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.form-control {
  display: block;
  width: 100%;
  padding: var(--space-sm);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--deep-indigo);
  background-color: var(--white);
  border: 1px solid var(--soft-gray);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.form-control:focus {
  border-color: var(--sky-blue);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(79, 195, 247, 0.25);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.form-check-input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.form-check-label {
  font-size: var(--fs-sm);
  color: var(--slate-blue);
}

/* ==================
   FOOTER
================== */
.footer {
  background-color: var(--deep-indigo);
  color: var(--white);
  padding: var(--space-xl) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.footer-logo {
  margin-bottom: var(--space-lg);
  font-family: var(--font-secondary);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--white);
}

.footer-logo span {
  color: var(--vibrant-orange);
}

.footer-contact {
  margin-bottom: var(--space-lg);
}

.footer-contact p {
  margin-bottom: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--soft-gray);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  color: var(--soft-gray);
  font-size: var(--fs-md);
  transition: color var(--transition-normal);
}

.footer-social a:hover {
  color: var(--vibrant-orange);
}

.footer-title {
  font-size: var(--fs-md);
  margin-bottom: var(--space-md);
  color: var(--white);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--soft-gray);
  font-size: var(--fs-sm);
  transition: color var(--transition-normal), transform var(--transition-normal);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-copyright {
  color: var(--soft-gray);
  font-size: var(--fs-sm);
  margin-bottom: 0;
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--soft-gray);
  font-size: var(--fs-sm);
}

/* ==================
   COOKIES POLICY
================== */
.cookie-consent {
  position: fixed;
  bottom: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  background-color: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-overlay);
  display: none;
  /* Hidden by default, shown with JS */
}

@media (min-width: 768px) {
  .cookie-consent {
    max-width: 400px;
    left: var(--space-lg);
    right: auto;
  }
}

.cookie-content {
  margin-bottom: var(--space-md);
}

.cookie-content h4 {
  margin-bottom: var(--space-sm);
}

.cookie-content p {
  font-size: var(--fs-sm);
  margin-bottom: 0;
}

.cookie-buttons {
  display: flex;
  gap: var(--space-sm);
}

.btn-cookie-accept {
  background-color: var(--vibrant-orange);
  color: var(--white);
}

.btn-cookie-settings {
  background-color: transparent;
  color: var(--deep-indigo);
  border: 1px solid var(--deep-indigo);
}

/* ==================
   POLICY PAGES
================== */
.policy-page {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg);
}

.policy-title {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.policy-section {
  margin-bottom: var(--space-xl);
}

.policy-section h2 {
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--soft-gray);
  padding-bottom: var(--space-sm);
}

/* ==================
   404 PAGE
================== */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl) 0;
}

.error-content {
  max-width: 600px;
}

.error-code {
  font-size: clamp(5rem, 20vw, 10rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--space-md);
  background: linear-gradient(45deg, var(--deep-indigo), var(--vibrant-orange));
  -webkit-text-fill-color: transparent;
}

.error-description {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-xl);
}

/* ==================
   THANK YOU PAGE
================== */
.thank-you-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl) 0;
}

.thank-you-content {
  max-width: 600px;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--vibrant-orange);
  margin-bottom: var(--space-lg);
}

/* ==================
   ANIMATIONS
================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(255, 107, 53, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.pulse-glow {
  animation: pulseGlow 2s infinite;
}

/* ==================
   MEDIA QUERIES
================== */
@media (max-width: 768px) {
  h1 {
    font-size: var(--fs-xl);
  }

  h2 {
    font-size: var(--fs-lg);
  }

  h3 {
    font-size: var(--fs-md);
  }

  .container {
    width: 95%;
  }

  section {
    padding: var(--space-lg) 0;
  }

  .hero {
    min-height: 60vh;
    padding: var(--space-xl) 0;
  }

  .principles-grid,
  .eco-curriculum-grid,
  .community-grid,
  .manifesto-statements {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    padding: 15px;
  }
}

/* Ensure things work down to 320px */
@media (max-width: 375px) {
  :root {
    --fs-xs: 0.7rem;
    --fs-sm: 0.8rem;
    --fs-base: 0.9rem;
    --fs-md: 1rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-xxl: 2rem;
  }

  .principles-grid,
  .eco-curriculum-grid,
  .community-grid,
  .manifesto-statements {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    padding: 15px;
  }

  .container {
    width: 90%;
  }

  .btn {
    padding: var(--space-xs) var(--space-md);
  }

  .hero-cta {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .cookie-consent {
    padding: var(--space-md);
  }
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.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);
}

.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);
}