/* ============================================
   Ms. Leah's Learning Center — Stylesheet
   Palette: Emerald Green (#059669) + Cream (#FDF8F0)
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --emerald-50:  #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --cream-50:    #fdf8f0;
    --cream-100:   #f9f0e0;
    --cream-200:   #f2e4cc;
    --neutral-50:  #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    --white:       #ffffff;
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg:   0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   20px;
    --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--neutral-800);
    background: var(--cream-50);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
    color: var(--neutral-900);
}

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--neutral-900);
}

.nav__logo-text {
    color: var(--emerald-700);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neutral-700);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--emerald-700);
    background: var(--emerald-50);
}

.nav__link--cta {
    background: var(--emerald-600);
    color: var(--white);
    margin-left: 8px;
}

.nav__link--cta:hover {
    background: var(--emerald-700);
    color: var(--white);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__toggle span {
    width: 22px;
    height: 2px;
    background: var(--neutral-800);
    border-radius: 2px;
    transition: var(--transition);
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

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

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

.btn--ghost {
    background: transparent;
    color: var(--neutral-700);
    border: 1.5px solid var(--neutral-200);
}

.btn--ghost:hover {
    border-color: var(--emerald-600);
    color: var(--emerald-700);
    background: var(--emerald-50);
}

.btn--light {
    background: var(--white);
    color: var(--emerald-700);
}

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

.btn--outline-light {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.4);
}

.btn--outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ---------- Section Headers ---------- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--emerald-600);
    margin-bottom: 12px;
}

.section-tag--light {
    color: var(--emerald-300);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    margin-bottom: 16px;
    color: var(--neutral-900);
}

.section-title--light {
    color: var(--white);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--neutral-600);
    max-width: 600px;
    line-height: 1.7;
}

.section-subtitle--light {
    color: rgba(255,255,255,0.7);
}

.section-header {
    margin-bottom: 56px;
}

.section-header--centered {
    text-align: center;
}

.section-header--centered .section-subtitle {
    margin: 0 auto;
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--cream-50) 0%, var(--cream-100) 50%, var(--emerald-50) 100%);
    position: relative;
    overflow: hidden;
}

.hero__bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(5,150,105,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(5,150,105,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--emerald-100);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--emerald-700);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero__headline {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--neutral-900);
    margin-bottom: 20px;
}

.hero__subheadline {
    font-size: 1.1rem;
    color: var(--neutral-600);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 520px;
}

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

.hero__visual {
    position: relative;
    min-height: 480px;
}

.hero__card--main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.hero__card--main img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.hero__card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.hero__card-tag {
    display: inline-block;
    background: var(--white);
    color: var(--emerald-700);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
}

.hero__stat-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.hero__stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--emerald-600);
    line-height: 1;
    margin-bottom: 4px;
}

.hero__stat-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--neutral-600);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero__stat-card--1 {
    top: 20px;
    right: -20px;
}

.hero__stat-card--2 {
    bottom: 60px;
    left: -24px;
}

.hero__stat-card--3 {
    bottom: -16px;
    right: 40px;
}

/* ---------- Services ---------- */
.services {
    padding: 100px 0;
    background: var(--white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--cream-50);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--emerald-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    background: var(--white);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-card__icon {
    background: var(--emerald-600);
    border-color: var(--emerald-600);
}

.service-card:hover .service-card__icon svg {
    stroke: var(--white);
}

.service-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--neutral-900);
}

.service-card__desc {
    font-size: 0.92rem;
    color: var(--neutral-600);
    line-height: 1.7;
}

/* ---------- About ---------- */
.about {
    padding: 100px 0;
    background: var(--cream-50);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.about__image-wrapper img {
    width: 100%;
    height: 640px;
    object-fit: cover;
}

.about__accent-box {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--emerald-600);
    color: var(--white);
    padding: 24px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.about__accent-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.about__accent-text {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.85;
    line-height: 1.4;
}

.about__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about__text {
    font-size: 1rem;
    color: var(--neutral-600);
    line-height: 1.8;
}

.about__values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.about__value {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neutral-700);
}

.about__value svg {
    flex-shrink: 0;
}

.about__content .btn {
    align-self: flex-start;
    margin-top: 8px;
}

/* ---------- Why Us ---------- */
.why-us {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--emerald-800) 0%, var(--emerald-900) 100%);
    position: relative;
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: var(--transition);
}

.why-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.why-card__number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.15);
    line-height: 1;
    margin-bottom: 16px;
}

.why-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.why-card__desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
}

/* ---------- Testimonials ---------- */
.testimonials {
    padding: 100px 0;
    background: var(--white);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--cream-50);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--emerald-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.testimonial-card__stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.testimonial-card__quote {
    font-size: 0.95rem;
    color: var(--neutral-700);
    line-height: 1.75;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--neutral-800);
}

.testimonial-card__avatar {
    width: 40px;
    height: 40px;
    background: var(--emerald-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- CTA ---------- */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--emerald-700) 0%, var(--emerald-900) 100%);
}

.cta__card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}

.cta__text {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-top: 12px;
}

.cta__title {
    color: var(--white);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 8px;
}

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

/* ---------- Contact ---------- */
.contact {
    padding: 100px 0;
    background: var(--cream-50);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact__text {
    font-size: 1rem;
    color: var(--neutral-600);
    line-height: 1.75;
    margin-bottom: 32px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact__detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact__detail-icon {
    width: 48px;
    height: 48px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact__detail strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--neutral-800);
    margin-bottom: 4px;
}

.contact__detail p,
.contact__detail a {
    font-size: 0.95rem;
    color: var(--neutral-600);
    line-height: 1.6;
}

.contact__detail a:hover {
    color: var(--emerald-600);
}

/* ---------- Contact Form ---------- */
.contact__form-wrapper {
    background: var(--white);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contact__form-title {
    font-size: 1.4rem;
    margin-bottom: 28px;
    color: var(--neutral-900);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 6px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    border: 1.5px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    background: var(--cream-50);
    color: var(--neutral-800);
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--emerald-500);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(5,150,105,0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: var(--radius-sm);
    color: var(--emerald-700);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 16px;
}

.form-success.visible {
    display: flex;
}

/* ---------- Map ---------- */
.map-section {
    background: var(--neutral-100);
}

.map-section__inner {
    border-radius: 0;
    overflow: hidden;
}

.map-section__inner iframe {
    filter: saturate(0.8) contrast(1.05);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--neutral-900);
    color: rgba(255,255,255,0.6);
    padding: 64px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 16px;
}

.footer__tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer__links strong,
.footer__contact strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    margin-bottom: 16px;
}

.footer__links ul,
.footer__contact ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links a:hover,
.footer__contact a:hover {
    color: var(--emerald-400);
}

.footer__links li a,
.footer__contact li {
    font-size: 0.9rem;
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* ---------- Mobile Menu ---------- */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__visual {
        max-width: 500px;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 248, 240, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid var(--emerald-100);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav__menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav__link {
        width: 100%;
        padding: 12px 16px;
    }

    .nav__link--cta {
        margin-left: 0;
        text-align: center;
        margin-top: 8px;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero__container {
        gap: 40px;
    }

    .hero__headline {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .hero__visual {
        min-height: 360px;
    }

    .hero__stat-card--1 {
        right: 0;
        top: 10px;
    }

    .hero__stat-card--2 {
        left: 0;
        bottom: 40px;
    }

    .hero__stat-card--3 {
        right: 10px;
        bottom: -10px;
    }

    .services__grid,
    .why-us__grid,
    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    .about__grid,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__image-wrapper img {
        height: 400px;
    }

    .about__accent-box {
        bottom: -16px;
        right: 16px;
    }

    .about__values {
        grid-template-columns: 1fr;
    }

    .cta__card {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .cta__actions {
        justify-content: center;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .contact__form-wrapper {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .cta__actions {
        flex-direction: column;
    }

    .cta__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}
