/* --- Modern Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- Reset & Modern Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Exact Sage Green Palette with modern supporting shades */
    --primary-color: #AEC5BD;       /* Your Sage Green */
    --primary-dark: #23382D;        /* Ultra-deep forest slate for high contrast */
    --primary-light: #EBF0EE;       /* Extremely soft sage-tinted cream */
    --secondary-color: #E07A5F;     /* Warm terracota clay accent */
    --secondary-hover: #C9654B;     /* Richer terracotta for hover states */
    --text-dark: #2B332F;           /* Modern soft charcoal for readability */
    --text-muted: #62726A;          /* Slate grey for secondary descriptions */
    --bg-light: #F8FAF9;            /* Crisp, clean, warm background */
    --white: #FFFFFF;
    
    /* Modern UI tokens */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 12px rgba(35, 56, 45, 0.03);
    --shadow-md: 0 12px 34px -10px rgba(35, 56, 45, 0.08);
    --shadow-lg: 0 24px 60px -15px rgba(35, 56, 45, 0.12);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); /* Modern ultra-smooth ease-out */
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.65;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation & Frosted Glass Header --- */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); /* Modern Glassmorphism */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(174, 197, 189, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-logo {
    height: 46px;
    width: auto;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    margin-left: 28px;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary-dark);
}

/* Elegant, modern line transition underneath nav items */
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

nav a:hover::after, nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

nav a.active {
    color: var(--primary-dark);
}

/* --- Hero Section --- */
.hero {
    background: radial-gradient(circle at top right, rgba(174, 197, 189, 0.3), transparent), 
                linear-gradient(135deg, var(--primary-dark), #17271F);
    color: var(--white);
    padding: 140px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle graphic background elements */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(174, 197, 189, 0.08);
    filter: blur(60px);
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.hero p {
    font-size: 1.35rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: var(--primary-light);
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Modern Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px; /* Modern rounded capsule style */
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(224, 122, 95, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 122, 95, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* --- Features & Content Cards --- */
.features {
    padding: 100px 0;
    background-color: var(--white);
}

.features h2 {
    font-size: 2.4rem;
    color: var(--primary-dark);
    margin-bottom: 50px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.feature-grid {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.feature-card {
    flex: 1;
    min-width: 280px;
    padding: 40px 32px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid rgba(174, 197, 189, 0.15);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(174, 197, 189, 0.4);
}

.feature-card .icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.feature-card h3 {
    margin-bottom: 14px;
    color: var(--primary-dark);
    font-size: 1.35rem;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.98rem;
    color: var(--text-muted);
}

/* --- Global Sub-Hero / Section Headers --- */
.programs-hero, .about-hero, .enrollment-hero, .contact-hero {
    background: linear-gradient(135deg, var(--primary-dark), #1D3026);
    color: var(--white);
    padding: 80px 24px;
    text-align: center;
}

.programs-hero h1, .about-hero h1, .enrollment-hero h1, .contact-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.programs-hero p, .about-hero p, .enrollment-hero p, .contact-hero p {
    font-size: 1.15rem;
    color: var(--primary-light);
    opacity: 0.9;
}

/* --- Clean Modern Footer --- */
footer {
    background-color: #17241E; /* Deeper slate green */
    color: #CFDAD4;
    padding: 48px 0;
    text-align: center;
    font-size: 0.92rem;
    border-top: 1px solid rgba(174, 197, 189, 0.1);
}

footer p {
    color: #CFDAD4 !important;
    opacity: 0.8;
}

/* --- Image styling across the site --- */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

img:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-lg);
}

/* --- Responsive Layout adjustments --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    nav a {
        margin: 0 10px;
        font-size: 0.9rem;
    }
    .hero {
        padding: 100px 20px;
    }
    .hero h1 {
        font-size: 2.4rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .btn {
        width: 100%;
        margin-bottom: 12px;
    }
    .btn-secondary {
        margin-left: 0;
    }
}