/* 
   Tutor Website Design System 
   Theme: Soft Teal, Trustworthy, Modern, Clean
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary: #0F766E;
    /* Deep Teal */
    --primary-light: #14B8A6;
    /* Vibrant Teal */
    --primary-dark: #0D5E56;
    /* Darker Teal for hover */
    --accent: #F59E0B;
    /* Warm Amber for highlights */

    --bg-body: #F8FAFC;
    /* Very light grey-blue */
    --bg-white: #FFFFFF;
    --bg-soft: #F0FDFA;
    /* Minty white for sections */

    --text-main: #1F2937;
    /* Dark Grey */
    --text-muted: #4B5563;
    /* Medium Grey */
    --text-light: #9CA3AF;
    /* Light Grey */

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 70px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--bg-soft);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #1DA851;
}

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

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

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

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* Header */
header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    display: flex;
    /* Ensures vertical centering of icon+text if added later */
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    /* Fixes desktop vertical alignment */
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    /* Teal color */
    cursor: pointer;
    align-items: center;
    /* Ensure vertical center */
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--bg-soft) 0%, #FFFFFF 100%);
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    margin-top: 10px;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
}

/* Stats Banner */
.stats {
    background-color: var(--primary);
    color: white;
    padding: 50px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: white;
    /* Explicitly set to white to override global h3 color */
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-item p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}


/* About Section */
.about {
    background-color: var(--bg-white);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-img-container {
    position: relative;
}

.about-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
}

.about-badge {
    position: absolute;
    bottom: 20px;
    right: -30px;
    background-color: var(--bg-white);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    /* Reduced shadow for cleaner look */
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-badge-icon {
    font-size: 2rem;
}

.features-grid-mini p {
    line-height: 1.4;
}

/* Subjects Section */
.subjects {
    background-color: var(--bg-soft);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 15px;
    margin-top: 10px;
}

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

.subject-card {
    background: white;
    padding: 40px 30px;
    /* More padding */
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: var(--bg-soft);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 25px;
}

.subject-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.check-list {
    margin-top: auto;
    /* Pushes list to bottom if content varies */
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.check-list i {
    color: var(--primary);
    font-size: 0.8rem;
    background: var(--bg-soft);
    padding: 4px;
    border-radius: 50%;
}

/* Why Choose (Features Grid reused if needed, currently inline in About) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-item h3 {
    margin-bottom: 15px;
}


/* Pricing */
.pricing {
    background-color: var(--bg-soft);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensure equal height */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
    /* Slight lift */
    z-index: 2;
}

.popular-tag {
    background-color: var(--primary);
    color: white;
    padding: 5px 40px;
    position: absolute;
    top: 25px;
    right: -35px;
    transform: rotate(45deg);
    font-size: 0.85rem;
    font-weight: 600;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card .btn {
    margin-top: auto;
    width: 100%;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-soft);
    /* Subtle background diff */
    padding: 35px;
    border-radius: var(--radius-md);
    box-shadow: none;
    /* Cleaner look */
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stars {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.client-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
    font-weight: 600;
}

.client-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Contact */
.contact {
    background-color: var(--primary);
    color: white;
}

.contact .section-header h2,
.contact .section-header p {
    color: white;
}

.contact .section-header p {
    opacity: 0.9;
}

.contact-wrapper {
    background-color: white;
    padding: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 350px 1fr;
    /* Fixed sidebar, flexible content */
    overflow: hidden;
}

.contact-sidebar {
    background-color: var(--bg-soft);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-main {
    padding: 0;
    background-color: white;
    min-width: 0;
    /* Prevent grid blowout */
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-item-side {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-info-item-side i {
    font-size: 1.2rem;
    color: var(--primary);
    background: white;
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.contact-info-item-side h4 {
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--text-main);
}

.contact-info-item-side p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: var(--primary-dark);
}

.mt-8 {
    margin-top: 2rem;
}

.google-form-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    /* Remove rounding on left */
    background: #f0f0f0;
    /* Loader background */
}

.google-form-wrapper iframe {
    width: 100%;
    display: block;
}

/* Footer */
footer {
    background-color: #111827;
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #9CA3AF;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
    /* Slight movement effect */
}

.copyright {
    text-align: center;
    color: #6B7280;
    font-size: 0.9rem;
}

/* Mobile Responsive */

@media (max-width: 960px) {
    .container {
        width: 92%;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

    .about-wrapper {
        gap: 40px;
        grid-template-columns: 1fr;
        /* Stack on tablet */
    }

    .pricing-card.popular {
        transform: none;
        /* Remove scale on smaller screens */
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        /* Smaller header on mobile */
    }

    html {
        scroll-padding-top: 60px;
    }

    /* Fix for mobile menu alignment */
    nav {
        display: contents;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        /* Match new header height */
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        gap: 25px;
        text-align: center;
        border-top: 1px solid #f0f0f0;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 1.2rem;
    }

    .hero {
        padding-top: 110px;
        /* Adjusted for mobile header */
        padding-bottom: 50px;
        text-align: center;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        flex: auto;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }


    .contact-main {
        padding: 30px 20px;
    }

    .google-form-wrapper {
        border-radius: var(--radius-md);
        /* Restore full rounding on mobile */
    }

    .hero-content h1 {
        font-size: 2.2rem;
        /* Smaller H1 for mobile */
        line-height: 1.2;
    }

    .hero-image {
        order: -1;
        /* Image on top on mobile? Optional. keeping below for now to show text first */
    }

    .hero-buttons {
        display: flex;
        flex-direction: column !important;
        /* Stack buttons */
        width: 100%;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        /* Full width buttons */
    }

    .section-padding {
        padding: 60px 0;
        /* Reduce padding on mobile */
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .about-badge {
        right: 0;
        bottom: -20px;
        left: 0;
        margin: auto;
        width: fit-content;
    }

    .contact-wrapper {
        padding: 30px;
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        /* Stack stats on mobile */
        gap: 30px;
    }

    .pricing-card.popular {
        order: -1;
        /* Show popular first on mobile */
        margin-bottom: 20px;
    }
}