:root {
    /* Color Palette */
    --bg-cream: #F7F5F0;
    --primary-sage: #84A98C;
    --secondary-forest: #52796F;
    --text-slate: #2F3E46;
    --text-light: #CAD2C5;
    --white: #FFFFFF;
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    /* Spacing & Borders */
    --radius-pill: 50px;
    --radius-card: 20px;
    --shadow-soft: 0 10px 30px rgba(47, 62, 70, 0.05);
    --shadow-hover: 0 15px 35px rgba(47, 62, 70, 0.1);
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-slate);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.bg-cream {
    background-color: #F0EFE9; /* Slightly darker cream for contrast */
}

.bg-dark {
    background-color: var(--text-slate);
    color: var(--white);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-pill {
    border-radius: var(--radius-pill);
    background-color: var(--secondary-forest);
    color: var(--white);
}

.btn-pill:hover {
    background-color: var(--primary-sage);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(82, 121, 111, 0.3);
}

.btn-outline {
    border-radius: var(--radius-pill);
    background-color: transparent;
    border: 2px solid var(--secondary-forest);
    color: var(--secondary-forest);
}

.btn-outline:hover {
    background-color: var(--secondary-forest);
    color: var(--white);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(247, 245, 240, 0.95); /* Cream with opacity */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

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

.logo-img {
    height: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 400;
    color: var(--text-slate);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-forest);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-slate);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1599901860904-17e6ed7083a0?ixlib=rb-4.0.3&auto=format&fit=crop&w=2600&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(247, 245, 240, 0.3), rgba(247, 245, 240, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1rem;
    color: var(--text-slate);
    opacity: 0; /* JS Fade in */
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--secondary-forest);
    opacity: 0; /* JS Fade in */
}

.fade-in-up {
    animation: fadeInUp 1.5s ease forwards;
}

.delay-1 {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Philosophy Section */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.philosophy-img-wrapper {
    position: relative;
}

.philosophy-img {
    border-radius: 50px 0 50px 0; /* Organic rounded corners */
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 2;
}

.organic-shape {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    background-color: var(--primary-sage);
    border-radius: 50%;
    opacity: 0.3;
    z-index: 1;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--secondary-forest);
}

.philosophy-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

/* Classes Section */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.class-card {
    background-color: var(--white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.class-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-img {
    height: 250px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.class-card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-forest);
}

.card-content p {
    margin-bottom: 1.5rem;
    color: #666;
}

.learn-more {
    font-weight: 700;
    color: var(--primary-sage);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.class-card:hover .learn-more {
    color: var(--secondary-forest);
}

/* Schedule Section (Core Feature) */
.schedule-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 3rem 0;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--primary-sage);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-slate);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--secondary-forest);
    color: var(--white);
    border-color: var(--secondary-forest);
}

.schedule-list {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    min-height: 200px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
    animation: fadeIn 0.5s ease;
}

.schedule-item:last-child {
    border-bottom: none;
}

.class-time {
    font-weight: 700;
    color: var(--secondary-forest);
    width: 100px;
}

.class-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    flex: 1;
    padding: 0 1rem;
}

.class-instructor {
    font-size: 0.9rem;
    color: #888;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Instructors Section */
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    text-align: center;
}

.instructor-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.instructor-card:hover .instructor-img {
    transform: scale(1.05);
    border-color: var(--primary-sage);
}

.instructor-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.instructor-role {
    color: var(--secondary-forest);
    font-style: italic;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    align-items: center; /* Vertically align */
}

.pricing-card {
    background-color: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius-card);
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid transparent;
    transition: var(--transition);
}

.pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--primary-sage);
    position: relative;
    box-shadow: var(--shadow-hover);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-sage);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--secondary-forest);
    margin: 1rem 0 0.5rem;
}

.price-desc {
    color: #888;
    margin-bottom: 2rem;
}

.price-features {
    margin-bottom: 2rem;
    text-align: left;
    display: inline-block;
}

.price-features li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    color: #555;
}

.price-features li::before {
    content: '•';
    color: var(--primary-sage);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* Footer */
.footer {
    padding: 5rem 0 2rem;
    text-align: center;
}

.newsletter-wrapper {
    max-width: 600px;
    margin: 0 auto 5rem;
}

.newsletter-wrapper h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.newsletter-wrapper p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-pill);
    border: none;
    font-family: var(--font-body);
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(132, 169, 140, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 3rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-links a:hover {
    color: var(--white);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-icons a {
    color: var(--white);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    background-color: var(--primary-sage);
}

.copyright {
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--bg-cream);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .hero-title {
        font-size: 3rem;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }
    
    .schedule-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 1rem;
    }
    
    .tab-btn {
        flex-shrink: 0;
    }
}
