/* style.css */
:root {
    --primary: #FF5A5F; /* Refined Coral/Red */
    --secondary: #087E8B; /* Deep Teal */
    --tertiary: #FFC107; /* Warm Amber */
    --quaternary: #3C3744; /* Dark Slate */
    --dark: #2D2D2D;
    --gray: #717171;
    --light: #F7F7F9;
    --white: #FFFFFF;
}

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

html, body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

main {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
    color: var(--quaternary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
    box-sizing: border-box;
}

section {
    padding: 5rem 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
}

/* Header & Nav */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

nav a {
    text-decoration: none;
    color: var(--quaternary);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--quaternary);
    transition: 0.3s;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.8rem 2rem;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px; /* More professional, less rounded */
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    cursor: pointer;
}

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

.btn:hover {
    background-color: var(--quaternary);
    border-color: var(--quaternary);
    color: var(--white);
}

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

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('hero-bg.jpg') center/cover no-repeat;
    position: relative;
    padding: 4rem 5%;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.85); /* Light overlay for text readability */
    z-index: 1;
}

.hero::after {
    display: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 10;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    color: var(--quaternary);
}

.hero .highlight {
    color: var(--primary);
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: var(--gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.blob { display: none; } /* Removed blobs for a cleaner pro look */

/* Grid and feature sections */
.about-grid, .contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.about-text h2 {
    text-align: left;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 1.2rem;
}

.check-list {
    list-style: none;
    margin-top: 1.5rem;
}

.check-list li {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    word-break: break-word;
}

.check-list i {
    color: var(--primary);
    margin-top: 5px;
}

/* Why Us */
.why-us {
    background-color: var(--white);
}

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

.feature-box {
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #EBEBEB;
    transition: box-shadow 0.3s;
}

.feature-box:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.color-1 { background-color: var(--primary); }
.color-2 { background-color: var(--secondary); }
.color-3 { background-color: var(--tertiary); color: var(--dark); }
.color-4 { background-color: var(--quaternary); }

/* Programs */
.programs {
    background-color: var(--light);
}

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

.card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border-top: 4px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--quaternary);
}

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

.age-range {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Timeline */
.timeline {
    max-width: 600px;
    margin: 0 auto;
    border-left: 2px solid #EBEBEB;
    padding-left: 2rem;
    position: relative;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: -2px;
    width: 2px;
    background-color: var(--primary);
    height: 0%;
    z-index: 1;
    transition: height 0.2s ease-out;
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
}

.timeline-time {
    font-weight: 700;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Testimonials */
.testimonials {
    background-color: var(--light);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.testimonial-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid #EBEBEB;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
}

.testimonial-box::before {
    content: '\201C';
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: serif;
    line-height: 1;
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--gray);
    position: relative;
    z-index: 1;
}

.author {
    font-weight: 800;
    color: var(--quaternary);
}

/* Contact */
.contact-wrapper {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #EBEBEB;
    overflow: hidden;
}

.contact-info {
    padding: 3rem;
    background: var(--quaternary);
    color: var(--white);
}

.contact-info h2 {
    color: var(--white);
    text-align: left;
}

.contact-info p {
    color: #B0B0B0;
    margin-bottom: 2rem;
}

.info-item h4 {
    color: var(--white);
}

.contact-form-container {
    padding: 3rem;
}

input, textarea, select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #D1D1D1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
footer {
    background-color: var(--quaternary);
    color: var(--white);
    padding: 5rem 0 2rem;
    border-top: 4px solid var(--primary);
}

.footer-brand h2 {
    color: var(--white);
    text-align: left;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand i {
    color: var(--primary);
}

.footer-brand p {
    color: #B0B0B0;
    max-width: 400px;
}

.footer-links h3, .footer-social h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #B0B0B0;
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #B0B0B0;
    margin-top: 3rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .about-grid, .contact-wrapper, .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .container {
        padding: 0 2rem;
    }

    section {
        padding: 3rem 0;
    }

    .hero {
        min-height: auto;
        padding: 4rem 1.5rem;
    }

    .hero-content {
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .nav-links {
        display: none !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 2rem;
        border-top: 1px solid #EBEBEB;
    }
    
    .nav-links.active {
        display: flex !important;
    }
    
    .hamburger {
        display: flex;
    }
    
    .contact-info, .contact-form-container {
        padding: 2rem 1.5rem;
    }
    
    .feature-box, .card, .testimonial-box {
        padding: 1.5rem;
    }
}
