/* ==========================================================================
   Global Theme Variables – Retro × Biomorphic (Neutral Palette)
   ========================================================================== */
:root {
  /* Neutral base */
  --color-bg: #f5f5f2;
  --color-surface: #ffffff;
  --color-heading: #222222;
  --color-text: #333333;
  --color-muted: #666666;

  /* Retro accent */
  --color-primary: #5a4bda;
  --color-primary-dark: #493cac;
  --color-secondary: #e2b714;
  --color-secondary-dark: #c39d11;

  /* Status */
  --color-success: #4caf50;
  --color-danger: #e53935;

  /* Gradients & overlays */
  --gradient-overlay: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
  --gradient-smooth: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);

  /* Shapes & radius */
  --radius-card: 12px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 20px 40px rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
}

/* ==========================================================================
   Base & Resets – Complementing Modern Normalize
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 0.5em;
  text-align: center;
}

p {
  margin: 0 0 1em;
}

/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}
a:hover,
a:focus {
  color: var(--color-primary-dark);
}

/* Utility Classes */
.container {
  width: min(90%, 1200px);
  margin-inline: auto;
}
section {
 padding: 6rem 0 5rem;
}
.text-center { text-align: center; }
.glass {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-card);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-heading);
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.25rem;
}
.main-nav a {
  font-weight: 500;
  color: var(--color-text);
}
.main-nav a:hover {
  color: var(--color-primary);
}

/* Burger Menu (mobile) */
.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.burger span {
  width: 22px;
  height: 2px;
  background: var(--color-heading);
  transition: transform 0.3s;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn,
button,
input[type="submit"] {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--color-secondary);
  color: #ffffff;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--color-secondary-dark);
  transform: translateY(-2px);
}

/* Read-more links */
a.read-more {
  font-weight: 600;
  position: relative;
}
a.read-more::after {
  content: '→';
  margin-left: 4px;
  transition: transform 0.2s;
}
a.read-more:hover::after {
  transform: translateX(4px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0 5rem;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay);
}
.hero > .container {
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 2rem;
}

/* ==========================================================================
   Parallax & Background Helpers
   ========================================================================== */
.parallax {
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
}

/* ==========================================================================
   Grids & Layouts
   ========================================================================== */
.features-grid,
.courses-grid,
.gallery {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ==========================================================================
   Card Component
   ========================================================================== */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s;
}
.card:hover {
  transform: translateY(-6px);
}

.card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 1.5rem;
}

/* ==========================================================================
   Accordion (Courses)
   ========================================================================== */
.accordion-toggle {
  margin-top: 1rem;
  width: 100%;
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-panel.open {
  max-height: 200px;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials .card-content p {
  font-style: italic;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form {
  max-width: 650px;
  margin-inline: auto;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #cccccc;
  border-radius: var(--radius-card);
  font-family: var(--font-body);
  resize: vertical;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-primary);
  border-color: var(--color-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #222222;
  color: #e0e0e0;
  padding: 3rem 0 2rem;
  text-align: center;
}
.site-footer a {
  color: var(--color-secondary);
  margin: 0 0.25rem;
}
.site-footer a:hover {
  color: var(--color-secondary-dark);
}
.site-footer nav ul {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

/* ==========================================================================
   Cookie Popup
   ========================================================================== */
#cookie-popup {
  font-size: 0.875rem;
}
#cookie-accept {
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Pages – Success, Legal
   ========================================================================== */
.success-wrapper,
.page-legal {
  padding: 2rem;
}
.success-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.page-legal {
  padding-top: 100px; /* Avoid header overlap */
}

/* ==========================================================================
   Animations – Scroll Aware
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Queries
   ========================================================================== */
@media (max-width: 992px) {
  .main-nav {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--color-surface);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .main-nav.open {
    transform: translateX(0);
  }
  .main-nav ul {
    flex-direction: column;
    gap: 2rem;
  }
  .burger {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 5rem 0 4rem;
  }
  .card-image {
    height: 180px;
  }
}