/* ==========================================================================
   :ROOT / VARIABLES
   ========================================================================== */
:root {
    /* Color Scheme: Triadic (Soft Blue, Coral, Green) + Neumorphism Palette */
    --primary-color: #5E8BFF;
    --secondary-color: #FF8B5E;
    --tertiary-color: #6DD58C;
    --primary-color-dark: #4a70d9;

    /* Neumorphism Palette */
    --bg-color: #E0E5EC;
    --light-shadow-color: rgba(255, 255, 255, 0.8);
    --dark-shadow-color: rgba(163, 177, 198, 0.6);

    /* Typography */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Rubik', sans-serif;
    --text-color: #333745;
    --text-color-light: #5a6072;
    --text-color-white: #FFFFFF;
    --header-text-color: #222222;

    /* Spacing & Sizing */
    --header-height: 80px;
    --container-width: 1200px;
    --container-padding: 1rem;
    --border-radius-soft: 20px;
    --border-radius-sharp: 12px;

    /* Transitions & Shadows */
    --transition-smooth: all 0.3s ease-in-out;
    --neumorphic-shadow-out: 
        -9px -9px 18px var(--light-shadow-color),
        9px 9px 18px var(--dark-shadow-color);
    --neumorphic-shadow-in: 
        inset -7px -7px 14px var(--light-shadow-color),
        inset 7px 7px 14px var(--dark-shadow-color);
    --neumorphic-shadow-out-sm: 
        -5px -5px 10px var(--light-shadow-color),
        5px 5px 10px var(--dark-shadow-color);
}

/* ==========================================================================
   GLOBAL / BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--header-text-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; color: var(--text-color-light); }
a { color: var(--primary-color); text-decoration: none; transition: var(--transition-smooth); }
a:hover { color: var(--primary-color-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-padding {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.8rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.columns-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.column {
    flex: 1 1 300px;
}

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

/* ==========================================================================
   ANIMATIONS & TRANSITIONS (Barba.js)
   ========================================================================== */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    transform: translateY(100%);
}

.page-transition.is-active {
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1);
}

.page-transition.is-inactive {
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(224, 229, 236, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

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

.site-header__logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

.site-header__nav ul {
    display: flex;
    gap: 2rem;
}

.site-header__nav a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.site-header__nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.site-header__nav a:hover::after {
    width: 100%;
}

.site-header__menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.site-header__menu-button span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--header-text-color);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   UI COMPONENTS (Buttons, Forms, Cards)
   ========================================================================== */
/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius-sharp);
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--neumorphic-shadow-out-sm);
    color: var(--text-color);
    background-color: var(--bg-color);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: -7px -7px 14px var(--light-shadow-color), 7px 7px 14px var(--dark-shadow-color);
}

.btn:active, .btn:focus {
    box-shadow: var(--neumorphic-shadow-in);
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-white);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
}
.btn-secondary:hover {
    color: var(--primary-color-dark);
}

/* --- Forms --- */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius-sharp);
    background-color: var(--bg-color);
    box-shadow: var(--neumorphic-shadow-in);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-color-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: var(--neumorphic-shadow-out-sm), 0 0 0 2px var(--primary-color);
}

/* --- Cards --- */
.card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius-soft);
    box-shadow: var(--neumorphic-shadow-out);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: -12px -12px 24px var(--light-shadow-color), 12px 12px 24px var(--dark-shadow-color);
}

.card-image {
    width: 100%;
    height: 250px;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius-sharp);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
}

.card-content {
    flex-grow: 1;
}

.card-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   PAGE SECTIONS
   ========================================================================== */
/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    padding: 0 var(--container-padding);
}

.hero-section__title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-color-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
}

.hero-section__subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: #f0f0f0;
    line-height: 1.8;
}

/* --- Instructors/Consultants Section --- */
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.instructors-grid .card-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: var(--neumorphic-shadow-out-sm);
}

/* --- Clientele Section --- */
.clientele-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.testimonial-card {
    background-color: var(--bg-color);
    padding: 2.5rem;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--neumorphic-shadow-in);
}

.testimonial-card blockquote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
}

.testimonial-card cite {
    font-weight: 700;
    color: var(--primary-color);
}

.client-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.client-logos:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.client-logos img {
    max-height: 40px;
    width: auto;
}

/* --- Resources Section --- */
.resources-section {
    background-color: #d1d9e6; /* Slightly darker bg for contrast */
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-card {
    display: block;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: var(--border-radius-soft);
    box-shadow: var(--neumorphic-shadow-out);
    transition: var(--transition-smooth);
    color: var(--text-color);
}

.resource-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: -10px -10px 20px var(--light-shadow-color), 10px 10px 20px var(--dark-shadow-color);
}

.resource-card h3 {
    margin-bottom: 1rem;
    color: var(--header-text-color);
}

.resource-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.resource-link::after {
    content: ' →';
    transition: var(--transition-smooth);
}

.resource-card:hover .resource-link::after {
    margin-left: 5px;
}

/* --- Careers Section --- */
.job-listing {
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: var(--border-radius-sharp);
    box-shadow: var(--neumorphic-shadow-in);
}

.job-listing h4 {
    color: var(--primary-color);
}

.job-listing .btn {
    margin-top: 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: #c8d0e0;
    padding: 4rem 0 2rem;
    color: var(--text-color-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    color: var(--header-text-color);
    margin-bottom: 1.5rem;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul a {
    color: var(--text-color-light);
}

.footer-column ul a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--dark-shadow-color);
    padding-top: 2rem;
}

/* ==========================================================================
   SPECIFIC PAGE STYLES
   ========================================================================== */
.success-page,
.static-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.success-content,
.static-content {
    flex-grow: 1;
}

.success-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.static-content {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
}

.static-content h1 {
    margin-bottom: 2rem;
}
.static-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .section-padding { padding: 4rem 0; }
    h1 { font-size: 2.5rem; }
    .hero-section__title { font-size: 3rem; }
    .columns-container { flex-direction: column; }
    .is-two-thirds { flex-basis: 100%; }
}

@media (max-width: 768px) {
    /* --- Mobile Navigation --- */
    .site-header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.86, 0, 0.07, 1);
    }

    .site-header__nav.is-open {
        right: 0;
    }

    .site-header__nav ul {
        flex-direction: column;
        text-align: center;
    }

    .site-header__nav a {
        font-size: 2rem;
    }

    .site-header__menu-button {
        display: block;
    }

    .site-header__menu-button.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .site-header__menu-button.is-active span:nth-child(2) {
        opacity: 0;
    }
    .site-header__menu-button.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* General adjustments */
    .hero-section__title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .clientele-grid { grid-template-columns: 1fr; }
    .contact-section .columns-container { flex-direction: column-reverse; }
}