/*
  Table of Contents
  1.  :root Variables
  2.  Global Styles & Body
  3.  Typography
  4.  Layout & Container
  5.  Header & Navigation
  6.  Buttons & Forms
  7.  Card Component
  8.  Hero Section
  9.  Content Sections (Vision, Asymmetric Layouts)
  10. Stats Section
  11. Accordion Component
  12. Instructors Section (Cards)
  13. Community & Clientele Section
  14. Behind the Scenes (Gallery)
  15. External Resources Section
  16. Contact Section
  17. Footer
  18. Specific Page Styles (Success, Privacy/Terms)
  19. Responsive Media Queries
*/

/* 1. :root Variables */
:root {
  --primary-color-start: #ff8a00;
  --primary-color-end: #e52e71;
  --accent-color: #4a00e0;
  --background-color: #fdfcfa;
  --surface-color: #ffffff;
  --text-color: #333333;
  --text-color-heading: #222222;
  --text-color-light: #ffffff;
  --border-color: #eeeeee;
  
  --font-family-heading: 'Roboto', sans-serif;
  --font-family-body: 'Lato', sans-serif;

  --gradient-main: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
  --gradient-accent: linear-gradient(135deg, #8e2de2, var(--accent-color));

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --border-radius: 8px;
  --transition-fast: all 0.2s ease-in-out;
}

/* 2. Global Styles & Body */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-family-body);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 3. Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-color-heading);
  margin-top: 0;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* 4. Layout & Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -2rem auto 3rem;
    font-size: 1.1rem;
    color: #555;
}

.subsection-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #444;
}

.is-two-thirds {
  flex-basis: 66.66%;
}

/* 5. Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-family-heading);
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.logo:hover {
  text-decoration: none;
  opacity: 1;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-link {
  font-weight: 700;
  color: var(--text-color);
  padding-bottom: 0.5rem;
  position: relative;
}
.nav-link:hover {
  color: var(--primary-color-end);
  text-decoration: none;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 22px;
  position: relative;
  z-index: 1001;
}
.burger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-color-heading);
  border-radius: 3px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}
.burger-menu span:nth-child(1) { top: 0; }
.burger-menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger-menu span:nth-child(3) { bottom: 0; }

.nav-open .burger-menu span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.nav-open .burger-menu span:nth-child(2) {
  opacity: 0;
}
.nav-open .burger-menu span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}


/* 6. Buttons & Forms */
.cta-button {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-color-light);
  background: var(--gradient-main);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-md);
}
.cta-button:hover {
  text-decoration: none;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
  opacity: 1;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-family-body);
  font-size: 1rem;
  transition: var(--transition-fast);
  background-color: #fff;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color-start);
  box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.2);
}
.form-submit-button {
  width: 100%;
}


/* 7. Card Component */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.card-title {
    margin-bottom: 0.5rem;
}
.card-subtitle {
    font-weight: 700;
    color: var(--primary-color-end);
    margin-bottom: 1rem;
}

/* 8. Hero Section */
.hero-section {
  min-height: calc(100vh - 80px); /* Adjust for header height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-color-light);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 2rem 0;
}
.hero-content {
  max-width: 800px;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  color: var(--text-color-light);
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

/* 9. Content Sections (Vision, Asymmetric Layouts) */
.asymmetric-layout, .asymmetric-layout-reverse {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}
.asymmetric-layout .text-column, .asymmetric-layout-reverse .text-column {
    flex: 2;
    min-width: 300px;
}
.asymmetric-layout .image-column, .asymmetric-layout-reverse .image-column {
    flex: 1;
    min-width: 300px;
}
.image-column img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}
.asymmetric-layout-reverse {
    flex-direction: row-reverse;
}

/* 10. Stats Section */
.stats-section {
    background: var(--gradient-accent);
    color: var(--text-color-light);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-widget {
    padding: 1rem;
}
.stat-number {
    font-family: var(--font-family-heading);
    font-size: 3rem;
    font-weight: 900;
    display: block;
}
.stat-label {
    font-size: 1.1rem;
    margin: 0;
}


/* 11. Accordion Component */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}
.accordion-item {
    border-bottom: 1px solid var(--border-color);
}
.accordion-item:last-child {
    border-bottom: none;
}
.accordion-toggle {
    width: 100%;
    background: var(--surface-color);
    border: none;
    text-align: left;
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}
.accordion-toggle:hover {
    background-color: #f9f9f9;
}
.accordion-icon {
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}
.accordion-toggle[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background: #fdfdfd;
}
.accordion-content p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
}

/* 12. Instructors Section (Cards) */
#instructors .card-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-top: 1.5rem;
    border: 4px solid var(--surface-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* 13. Community & Clientele Section */
.clientele-logos {
    text-align: center;
    margin-bottom: 4rem;
}
.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}
.logo-grid span {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    color: #888;
    filter: grayscale(1);
    opacity: 0.7;
    transition: var(--transition-fast);
}
.logo-grid span:hover {
    filter: grayscale(0);
    opacity: 1;
}
.testimonial-card {
    text-align: left;
}
.testimonial-card .card-content span {
    display: block;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--text-color-heading);
}

/* 14. Behind the Scenes (Gallery) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}
.gallery-item img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}


/* 15. External Resources Section */
.resource-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.resource-link {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    color: var(--text-color);
    transition: var(--transition-fast);
}
.resource-link:hover {
    background: var(--gradient-main);
    color: var(--text-color-light);
    border-color: transparent;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}


/* 16. Contact Section */
.contact-section {
    background-color: #f7f7f7;
}

/* 17. Footer */
.site-footer {
    background-color: var(--text-color-heading);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}
.footer-heading {
    color: var(--text-color-light);
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-links ul, .footer-legal ul, .footer-social ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li, .footer-legal li, .footer-social li {
    margin-bottom: 0.75rem;
}
.footer-links a, .footer-legal a, .footer-social a {
    color: rgba(255, 255, 255, 0.7);
}
.footer-links a:hover, .footer-legal a:hover, .footer-social a:hover {
    color: var(--text-color-light);
    text-decoration: none;
}
.footer-copyright {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}
.footer-copyright p {
    margin: 0;
}


/* 18. Specific Page Styles (Success, Privacy/Terms) */
.success-page main,
.static-page main {
    min-height: calc(100vh - 80px - 250px); /* 100vh minus header and approx footer height */
    display: flex;
    flex-direction: column;
}

.success-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.success-container h1 {
    color: var(--accent-color);
}

.static-page-content {
    padding-top: 100px;
    padding-bottom: 5rem;
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
}
.static-page-content h1 {
    margin-bottom: 2rem;
}

/* 19. Responsive Media Queries */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  section {
      padding: 3rem 0;
  }
  
  .asymmetric-layout, .asymmetric-layout-reverse {
    flex-direction: column;
  }
  .asymmetric-layout .text-column,
  .asymmetric-layout-reverse .text-column {
    width: 100%;
    order: 2;
    flex-basis: auto;
  }
  .asymmetric-layout .image-column,
  .asymmetric-layout-reverse .image-column {
    width: 100%;
    order: 1;
    flex-basis: auto;
  }
  
  /* Mobile Navigation */
  .main-nav {
      position: fixed;
      top: 0;
      right: 0;
      width: 100%;
      height: 100vh;
      background-color: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
      transform: translateX(100%);
      transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
      display: flex;
      justify-content: center;
      align-items: center;
  }

  .nav-open .main-nav {
      transform: translateX(0);
  }

  .nav-list {
      flex-direction: column;
      text-align: center;
      gap: 2.5rem;
  }

  .nav-link {
      font-size: 1.5rem;
  }
  
  .burger-menu {
      display: block;
  }
}