/* =========================================================
   LITTLE EXPLORERS LEARNING HUB
   ASSESSMENT TOOLKIT STYLESHEET
   File: styles/assessment-toolkit.css
   ========================================================= */

:root {
    --primary: #2f6f8f;
    --primary-dark: #23566f;
    --primary-light: #eaf5f9;

    --green: #4f8a63;
    --green-light: #edf7f0;

    --orange: #c97835;
    --orange-light: #fff3e8;

    --purple: #75629b;
    --purple-light: #f3eff9;

    --gold: #d5a84d;

    --navy: #183447;
    --charcoal: #27343b;
    --text: #40515a;
    --muted: #6d7c83;

    --white: #ffffff;
    --ivory: #fbfaf7;
    --cream: #f5f1e9;

    --border: #dfe6e8;
    --border-light: #e9eef0;

    --shadow-sm: 0 4px 14px rgba(24, 52, 71, .07);
    --shadow-md: 0 12px 30px rgba(24, 52, 71, .11);
    --shadow-lg: 0 20px 50px rgba(24, 52, 71, .14);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --container: 1180px;

    --transition: .25s ease;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}


/* =========================================================
   GLOBAL TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4 {
    margin-top: 0;
    color: var(--navy);
    font-family: "Nunito", Arial, sans-serif;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
    font-weight: 800;
}

h4 {
    margin-bottom: 14px;
    font-size: 1.05rem;
    font-weight: 800;
}

p {
    margin-top: 0;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, .97);

    border-bottom: 1px solid var(--border-light);

    box-shadow:
        0 2px 12px rgba(24, 52, 71, .05);

    backdrop-filter: blur(12px);
}

.nav-container {
    min-height: 82px;

    display: flex;
    align-items: center;

    gap: 28px;
}

.logo {
    flex: 0 0 auto;
}

.logo-text h1 {
    margin: 0;

    color: var(--navy);

    font-size: 1.35rem;
    line-height: 1;
}

.logo-text span {
    display: block;

    margin-top: 4px;

    color: var(--primary);

    font-size: .72rem;
    font-weight: 700;

    letter-spacing: .12em;
    text-transform: uppercase;
}

.main-nav {
    margin-left: auto;
}

.main-nav ul {
    display: flex;
    align-items: center;

    gap: 4px;
}

.main-nav a {
    display: block;

    padding: 9px 11px;

    border-radius: 8px;

    color: var(--charcoal);

    font-size: .88rem;
    font-weight: 600;

    transition:
        color var(--transition),
        background var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);

    background: var(--primary-light);
}

.header-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}

.search-toggle,
.mobile-menu {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);
    border-radius: 10px;

    color: var(--navy);
    background: var(--white);

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.search-toggle:hover,
.mobile-menu:hover {
    color: var(--primary);

    border-color: var(--primary);

    background: var(--primary-light);
}

.mobile-menu {
    display: none;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 48px;

    padding: 12px 22px;

    border: 2px solid var(--primary);
    border-radius: 10px;

    color: var(--white);
    background: var(--primary);

    font-weight: 700;
    line-height: 1.2;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-2px);

    border-color: var(--primary-dark);

    background: var(--primary-dark);

    box-shadow: var(--shadow-sm);
}

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

    background: var(--white);
}

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

    background: var(--primary);
}


/* =========================================================
   HERO
   ========================================================= */

.study-hero {
    position: relative;

    overflow: hidden;

    padding: 70px 0 82px;

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(213, 168, 77, .15),
            transparent 28%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(79, 138, 99, .11),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #f5fafb 0%,
            #ffffff 55%,
            #fbf8f1 100%
        );
}

.study-hero::after {
    content: "";

    position: absolute;

    right: -160px;
    bottom: -180px;

    width: 460px;
    height: 460px;

    border: 70px solid rgba(47, 111, 143, .045);

    border-radius: 50%;

    pointer-events: none;
}

.breadcrumb {
    position: relative;

    z-index: 1;

    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 9px;

    margin-bottom: 28px;

    color: var(--muted);

    font-size: .88rem;
    font-weight: 600;
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.featured-label {
    position: relative;

    z-index: 1;

    display: inline-flex;
    align-items: center;

    margin-bottom: 18px;

    padding: 7px 13px;

    border: 1px solid rgba(47, 111, 143, .18);

    border-radius: 999px;

    color: var(--primary-dark);

    background: var(--primary-light);

    font-size: .78rem;
    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;
}

.study-hero h1 {
    position: relative;

    z-index: 1;

    max-width: 850px;

    margin-bottom: 20px;
}

.study-hero > .container > p {
    position: relative;

    z-index: 1;

    max-width: 850px;

    margin-bottom: 15px;

    color: var(--text);

    font-size: 1.08rem;
}

.hero-badges {
    position: relative;

    z-index: 1;

    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin: 28px 0;
}

.hero-badges div {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 9px 13px;

    border: 1px solid var(--border);

    border-radius: 999px;

    color: var(--charcoal);

    background: rgba(255, 255, 255, .8);

    box-shadow: var(--shadow-sm);

    font-size: .88rem;
    font-weight: 700;
}

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

.hero-actions {
    position: relative;

    z-index: 1;

    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 28px;
}


/* =========================================================
   SECTION TITLES
   ========================================================= */

.section-title {
    max-width: 820px;

    margin: 0 auto 42px;

    text-align: center;
}

.section-tag {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--primary);

    font-size: .78rem;
    font-weight: 800;

    letter-spacing: .1em;

    text-transform: uppercase;
}

.section-title p {
    margin-bottom: 0;

    color: var(--muted);
}


/* =========================================================
   WHY USE THE TOOLKIT
   ========================================================= */

.why-section {
    padding: 90px 0;

    background: var(--white);
}

.why-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.why-card {
    padding: 28px 24px;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    background: var(--white);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.why-card:hover {
    transform: translateY(-5px);

    border-color: rgba(47, 111, 143, .28);

    box-shadow: var(--shadow-md);
}

.why-icon {
    width: 56px;
    height: 56px;

    display: grid;
    place-items: center;

    margin-bottom: 20px;

    border-radius: 15px;

    color: var(--primary);

    background: var(--primary-light);

    font-size: 1.25rem;
}

.why-card p {
    margin-bottom: 0;

    color: var(--muted);

    font-size: .94rem;
}


/* =========================================================
   FEATURED TOOLKIT
   ========================================================= */

.featured-study {
    padding: 90px 0;

    background: var(--cream);
}

.featured-study-card {
    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(320px, .85fr);

    align-items: center;

    gap: 55px;

    padding: clamp(28px, 5vw, 58px);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background: var(--white);

    box-shadow: var(--shadow-lg);
}

.featured-text h2 {
    margin-bottom: 18px;
}

.featured-text > p {
    margin-bottom: 24px;

    color: var(--muted);
}

.featured-highlights {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px 20px;

    margin: 24px 0;
}

.featured-highlights div {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    color: var(--charcoal);

    font-size: .93rem;

    font-weight: 600;
}

.featured-highlights i {
    flex: 0 0 auto;

    margin-top: 4px;

    color: var(--green);
}

.featured-image {
    overflow: hidden;

    border-radius: 20px;

    background: var(--cream);

    box-shadow: var(--shadow-md);
}

.featured-image img {
    width: 100%;
    height: 100%;

    min-height: 330px;

    object-fit: cover;
}


/* =========================================================
   ASSESSMENT RESOURCE LIBRARY
   ========================================================= */

.interest-areas {
    padding: 90px 0;

    background: var(--white);
}

.interest-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.interest-card {
    min-height: 250px;

    padding: 28px;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    background: var(--white);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.interest-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow-md);
}

.interest-icon {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    margin-bottom: 18px;

    border-radius: 14px;

    font-size: 1.2rem;
}

.interest-card p {
    margin-bottom: 0;

    color: var(--muted);

    font-size: .94rem;
}

.interest-card.blue .interest-icon {
    color: var(--primary);

    background: var(--primary-light);
}

.interest-card.green .interest-icon {
    color: var(--green);

    background: var(--green-light);
}

.interest-card.orange .interest-icon {
    color: var(--orange);

    background: var(--orange-light);
}

.interest-card.purple .interest-icon {
    color: var(--purple);

    background: var(--purple-light);
}


/* =========================================================
   STATISTICS
   ========================================================= */

.site-stats {
    padding: 65px 0;

    background: var(--navy);
}

.stats-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.stat-card {
    padding: 28px 18px;

    text-align: center;

    border: 1px solid rgba(255, 255, 255, .13);

    border-radius: var(--radius-md);

    background: rgba(255, 255, 255, .055);
}

.stat-card h2 {
    margin-bottom: 5px;

    color: var(--white);

    font-size: clamp(2rem, 4vw, 3rem);
}

.stat-card p {
    margin-bottom: 0;

    color: rgba(255, 255, 255, .78);

    font-size: .9rem;

    font-weight: 600;
}


/* =========================================================
   DOWNLOAD RESOURCE CARDS
   ========================================================= */

.featured-studies {
    padding: 90px 0;

    background: var(--ivory);
}

.study-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}

.study-card {
    overflow: hidden;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    background: var(--white);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.study-card:hover {
    transform: translateY(-6px);

    box-shadow: var(--shadow-md);
}

/* =========================================================
   PORTFOLIO RESOURCE THUMBNAILS
   SQUARE FORMAT
   ========================================================= */

.study-card > img {
    display: block;

    width: 100%;

    aspect-ratio: 1 / 1;

    height: auto;

    object-fit: cover;

    object-position: center;

    background: var(--cream);

    transition: transform .5s ease;
}

.study-card:hover > img {
    transform: scale(1.03);
}
.study-content {
    display: flex;

    flex: 1;

    flex-direction: column;

    padding: 25px;
}

.study-tag {
    align-self: flex-start;

    display: inline-block;

    margin-bottom: 13px;

    padding: 6px 10px;

    border-radius: 999px;

    font-size: .73rem;

    font-weight: 800;

    letter-spacing: .04em;

    text-transform: uppercase;
}

.study-tag.blue {
    color: var(--primary-dark);

    background: var(--primary-light);
}

.study-tag.green {
    color: #386548;

    background: var(--green-light);
}

.study-tag.purple {
    color: #5b4a82;

    background: var(--purple-light);
}

.study-content h3 {
    margin-bottom: 12px;
}

.study-content p {
    margin-bottom: 20px;

    color: var(--muted);

    font-size: .93rem;
}

.study-content a {
    margin-top: auto;

    color: var(--primary);

    font-size: .9rem;

    font-weight: 800;
}

.study-content a:hover {
    color: var(--primary-dark);

    text-decoration: underline;
}


/* =========================================================
   PRACTICAL ASSESSMENT / FAVORITE CARDS
   ========================================================= */

.teacher-favorites {
    padding: 90px 0;

    background: var(--white);
}

.teacher-favorites + .teacher-favorites {
    padding-top: 20px;
}

.favorite-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.favorite-card {
    display: flex;

    flex-direction: column;

    padding: 28px 24px;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    background: var(--white);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.favorite-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow-md);
}

.favorite-icon {
    width: 55px;
    height: 55px;

    display: grid;
    place-items: center;

    margin-bottom: 18px;

    border-radius: 15px;

    color: var(--primary);

    background: var(--primary-light);

    font-size: 1.2rem;
}

.favorite-card p {
    margin-bottom: 22px;

    color: var(--muted);

    font-size: .92rem;
}

.favorite-card .btn {
    align-self: flex-start;

    margin-top: auto;

    min-height: 42px;

    padding: 9px 16px;

    font-size: .86rem;
}


/* =========================================================
   NEWSLETTER
   ========================================================= */

.newsletter {
    padding: 90px 0;

    background: var(--cream);
}

.newsletter-box {
    display: grid;

    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(300px, .7fr);

    gap: 40px;

    padding: clamp(30px, 5vw, 55px);

    border-radius: var(--radius-lg);

    background: var(--navy);

    box-shadow: var(--shadow-lg);
}

.newsletter-content h2 {
    color: var(--white);
}

.newsletter-content > p {
    max-width: 650px;

    color: rgba(255, 255, 255, .78);
}

.newsletter-tag {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--gold);

    font-size: .78rem;

    font-weight: 800;

    letter-spacing: .1em;

    text-transform: uppercase;
}

.newsletter-benefits {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 9px 18px;

    margin-top: 25px;
}

.newsletter-benefits div {
    color: rgba(255, 255, 255, .9);

    font-size: .9rem;

    font-weight: 600;
}

.newsletter-benefits i {
    margin-right: 7px;

    color: var(--gold);
}

.newsletter-card {
    align-self: center;

    padding: 28px;

    border-radius: var(--radius-md);

    background: var(--white);

    box-shadow: var(--shadow-md);
}

.newsletter-card h3 {
    margin-bottom: 8px;
}

.newsletter-card p {
    color: var(--muted);

    font-size: .9rem;
}

.newsletter-form {
    display: grid;

    gap: 11px;

    margin-top: 20px;
}

.input-group input {
    width: 100%;

    min-height: 46px;

    padding: 10px 13px;

    border: 1px solid var(--border);

    border-radius: 9px;

    outline: none;

    color: var(--charcoal);

    background: var(--white);

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.input-group input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(47, 111, 143, .12);
}

.newsletter-form button {
    min-height: 46px;

    border: 0;

    border-radius: 9px;

    color: var(--white);

    background: var(--primary);

    font-weight: 800;

    transition:
        background var(--transition),
        transform var(--transition);
}

.newsletter-form button:hover {
    transform: translateY(-2px);

    background: var(--primary-dark);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 70px 0 0;

    color: rgba(255, 255, 255, .72);

    background: #102a3a;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.5fr repeat(3, 1fr);

    gap: 45px;

    padding-bottom: 55px;
}

.footer-column h3,
.footer-column h4 {
    color: var(--white);
}

.footer-column h3 {
    font-size: 1.25rem;
}

.footer-column p {
    margin-bottom: 20px;

    font-size: .9rem;

    line-height: 1.75;
}

.footer-column li + li {
    margin-top: 9px;
}

.footer-column li a {
    color: rgba(255, 255, 255, .7);

    font-size: .9rem;

    transition:
        color var(--transition);
}

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

.footer-button {
    display: inline-flex;

    padding: 9px 15px;

    border: 1px solid rgba(255, 255, 255, .25);

    border-radius: 8px;

    color: var(--white);

    font-size: .85rem;

    font-weight: 700;

    transition:
        background var(--transition),
        border-color var(--transition);
}

.footer-button:hover {
    border-color: var(--gold);

    background: rgba(213, 168, 77, .12);
}

.footer-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 22px 0;

    border-top: 1px solid rgba(255, 255, 255, .12);
}

.footer-bottom p {
    margin: 0;

    font-size: .82rem;
}

.footer-links {
    display: flex;

    gap: 18px;
}

.footer-links a {
    color: rgba(255, 255, 255, .68);

    font-size: .82rem;
}

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


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(213, 168, 77, .8);

    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }

}


/* =========================================================
   LARGE TABLETS
   ========================================================= */

@media (max-width: 1100px) {

    .main-nav a {
        padding-inline: 8px;

        font-size: .82rem;
    }

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

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

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

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

}


/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 900px) {

    .nav-container {
        min-height: 72px;
    }

    .main-nav {
        display: none;

        position: absolute;

        top: 72px;
        left: 0;
        right: 0;

        padding: 14px 20px 22px;

        border-bottom: 1px solid var(--border);

        background: var(--white);

        box-shadow: var(--shadow-md);
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        display: grid;

        gap: 4px;
    }

    .main-nav a {
        padding: 12px 14px;
    }

    .mobile-menu {
        display: grid;
    }

    .featured-study-card {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .featured-image {
        order: -1;
    }

    .featured-image img {
        min-height: 300px;

        max-height: 420px;
    }

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

    .newsletter-box {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .site-header {
        position: relative;
    }

    .header-actions {
        margin-left: auto;
    }

    .search-toggle {
        display: none;
    }

    .study-hero {
        padding: 48px 0 58px;
    }

    .study-hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.5rem);
    }

    .study-hero > .container > p {
        font-size: 1rem;
    }

    .hero-badges {
        display: grid;

        grid-template-columns: 1fr;
    }

    .hero-badges div {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .why-section,
    .featured-study,
    .interest-areas,
    .featured-studies,
    .teacher-favorites,
    .newsletter {
        padding: 65px 0;
    }

    .why-grid,
    .interest-grid,
    .study-grid,
    .favorite-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        margin-bottom: 32px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .featured-study-card {
        padding: 24px;
    }

    .featured-highlights {
        grid-template-columns: 1fr;
    }

    .featured-image img {
        min-height: 230px;
    }

    .study-card > img {
        height: 200px;
    }

    .newsletter-box {
        padding: 27px 22px;
    }

    .newsletter-benefits {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 32px;

        padding-bottom: 40px;
    }

    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .logo-text h1 {
        font-size: 1.15rem;
    }

    .logo-text span {
        font-size: .62rem;
    }

    .breadcrumb {
        font-size: .78rem;
    }

    .featured-label {
        font-size: .68rem;
    }

    .why-card,
    .interest-card,
    .favorite-card,
    .study-content {
        padding: 22px;
    }

    .stat-card {
        padding: 24px 15px;
    }

}
