/* ==========================================================
   LITTLE EXPLORERS LEARNING HUB
   HEAD START & ELOF RESOURCE LIBRARY

   File:
   styles/head-start-library.css

   Page:
   library/head-start/index.html

   Purpose:
   Head Start • ELOF • School Readiness •
   Classroom Implementation • Educator Support
   ========================================================== */


/* ==========================================================
   1. COLOR SYSTEM
========================================================== */

:root {

    --hs-navy: #304b63;
    --hs-navy-dark: #243a4d;

    --hs-teal: #4f8b87;
    --hs-teal-light: #e5f1ef;

    --hs-gold: #d9aa43;
    --hs-gold-light: #fff4d4;

    --hs-coral: #d77b61;
    --hs-coral-light: #f8e5df;

    --hs-sage: #7e9b79;
    --hs-sage-light: #e8f0e5;

    --hs-purple: #81759b;
    --hs-purple-light: #eeeaf4;

    --hs-cream: #faf7ef;
    --hs-paper: #fffdf9;
    --hs-white: #ffffff;

    --hs-text: #34414b;
    --hs-muted: #68747c;

    --hs-border: #dce4e2;
    --hs-border-dark: #c6d4d1;

    --hs-shadow:
        0 10px 28px rgba(48, 75, 99, 0.09);

    --hs-shadow-hover:
        0 18px 42px rgba(48, 75, 99, 0.16);

    --hs-radius: 20px;

    --hs-transition: 0.28s ease;

    --hs-width: 1240px;
}


/* ==========================================================
   2. RESET
========================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;

    font-family: "Inter", sans-serif;

    font-size: 16px;
    line-height: 1.65;

    color: var(--hs-text);

    background:
        linear-gradient(
            180deg,
            var(--hs-paper) 0%,
            #ffffff 58%,
            var(--hs-cream) 100%
        );

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* ==========================================================
   3. GENERAL ELEMENTS
========================================================== */

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

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

button,
input,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
h4 {
    font-family: "Nunito", sans-serif;
}

.container {
    width: min(92%, var(--hs-width));
    margin-inline: auto;
}


/* ==========================================================
   4. HEADER
========================================================== */

body > header {
    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        rgba(255, 253, 249, 0.97);

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

    box-shadow:
        0 3px 16px rgba(48, 75, 99, 0.08);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);
}

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

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 2rem;
}


/* ==========================================================
   5. HEADER BRAND
========================================================== */

.logo {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    flex-shrink: 0;

    color: var(--hs-navy);
}

.logo img {
    width: 58px;
    height: 58px;

    object-fit: contain;
}

.logo > div {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    margin: 0;

    color: var(--hs-navy);

    font-size: 1.4rem;
    font-weight: 800;

    line-height: 1.05;
}

.logo span {
    margin-top: 4px;

    color: var(--hs-coral);

    font-size: 0.75rem;
    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* ==========================================================
   6. NAVIGATION
========================================================== */

nav {
    margin-left: auto;
}

nav ul {
    display: flex;

    align-items: center;

    gap: 1.35rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

nav a {
    position: relative;

    display: inline-flex;

    padding: 0.5rem 0;

    color: var(--hs-navy);

    font-size: 0.94rem;
    font-weight: 700;

    transition:
        color var(--hs-transition),
        transform var(--hs-transition);
}

nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 3px;

    border-radius: 999px;

    background: var(--hs-coral);

    transition:
        width var(--hs-transition);
}

nav a:hover {
    color: var(--hs-coral);

    transform:
        translateY(-1px);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: var(--hs-coral);
}


/* ==========================================================
   7. MOBILE MENU
========================================================== */

.mobile-menu {
    display: none;

    width: 46px;
    height: 46px;

    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 12px;

    background: var(--hs-navy);

    color: var(--hs-white);

    font-size: 1.35rem;

    cursor: pointer;

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

.mobile-menu:hover {
    background: var(--hs-navy-dark);

    transform:
        translateY(-2px);
}


/* ==========================================================
   8. HERO
========================================================== */

.head-start-hero {
    position: relative;

    overflow: hidden;

    padding:
        5.8rem 0
        5.5rem;

    background:
        radial-gradient(
            circle at 8% 20%,
            rgba(79, 139, 135, 0.20),
            transparent 26%
        ),

        radial-gradient(
            circle at 91% 16%,
            rgba(217, 170, 67, 0.22),
            transparent 25%
        ),

        radial-gradient(
            circle at 82% 110%,
            rgba(215, 123, 97, 0.16),
            transparent 32%
        ),

        linear-gradient(
            135deg,
            #edf5f3 0%,
            #faf7ef 52%,
            #f8e8e2 100%
        );

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

.head-start-hero::before {
    content: "📘";

    position: absolute;

    left: 4%;
    top: 20%;

    font-size:
        clamp(3.5rem, 7vw, 6rem);

    opacity: 0.09;

    transform:
        rotate(-8deg);

    pointer-events: none;
}

.head-start-hero::after {
    content: "🎯";

    position: absolute;

    right: 5%;
    bottom: 12%;

    font-size:
        clamp(3.5rem, 7vw, 6rem);

    opacity: 0.10;

    transform:
        rotate(8deg);

    pointer-events: none;
}

.head-start-hero .container {
    position: relative;

    z-index: 2;
}


/* ==========================================================
   9. BREADCRUMB
========================================================== */

.breadcrumb {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 0.45rem;

    margin-bottom: 1.6rem;

    color: var(--hs-muted);

    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--hs-navy);

    font-weight: 700;

    transition:
        color var(--hs-transition);
}

.breadcrumb a:hover {
    color: var(--hs-coral);
}


/* ==========================================================
   10. HERO LABEL
========================================================== */

.hero-label {
    display: inline-block;

    margin-bottom: 0.8rem;

    color: var(--hs-coral);

    font-size: 0.76rem;
    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


/* ==========================================================
   11. HERO TYPOGRAPHY
========================================================== */

.head-start-hero h1 {
    max-width: 1000px;

    margin:
        0 0 1.25rem;

    color: var(--hs-navy);

    font-size:
        clamp(2.65rem, 6vw, 4.8rem);

    font-weight: 800;

    line-height: 1.04;

    letter-spacing: -0.045em;
}

.head-start-hero p {
    max-width: 900px;

    margin:
        0 0 2.3rem;

    color: var(--hs-text);

    font-size:
        clamp(1.04rem, 1.8vw, 1.22rem);

    line-height: 1.75;
}


/* ==========================================================
   12. BUTTONS
========================================================== */

.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 0.9rem;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding:
        0.78rem 1.45rem;

    border-radius: 999px;

    font-size: 0.95rem;
    font-weight: 800;

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

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

.btn-primary {
    background: var(--hs-navy);

    color: var(--hs-white);

    box-shadow:
        0 8px 20px rgba(48, 75, 99, 0.22);
}

.btn-primary:hover {
    background: var(--hs-navy-dark);

    box-shadow:
        0 12px 28px rgba(48, 75, 99, 0.28);
}

.btn-secondary {
    background:
        rgba(255, 255, 255, 0.9);

    color: var(--hs-navy);

    border:
        1px solid var(--hs-border-dark);
}

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

    border-color:
        var(--hs-coral);
}


/* ==========================================================
   13. INTRODUCTION
========================================================== */

.head-start-introduction {
    padding:
        5.6rem 0;

    background:
        var(--hs-paper);
}

.introduction-card {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            var(--hs-white),
            #f3f8f6
        );

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

    border-radius:
        24px;

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

.introduction-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 7px;

    background:
        linear-gradient(
            180deg,
            var(--hs-teal),
            var(--hs-gold)
        );
}

.introduction-content {
    padding:
        clamp(2rem, 5vw, 4rem);
}

.section-label {
    display: inline-block;

    margin-bottom: 0.8rem;

    color: var(--hs-coral);

    font-size: 0.76rem;
    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.introduction-content h2 {
    max-width: 850px;

    margin:
        0 0 1rem;

    color: var(--hs-navy);

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

    line-height: 1.1;
}

.introduction-content > p {
    max-width: 900px;

    margin:
        0 0 1.8rem;

    color: var(--hs-muted);

    font-size: 1.04rem;

    line-height: 1.75;
}


/* ==========================================================
   14. RESOURCE HIGHLIGHTS
========================================================== */

.resource-highlights {
    display: grid;

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

    gap: 0.7rem;

    max-width: 900px;
}

.resource-highlights div {
    padding:
        0.75rem 0.9rem;

    background:
        rgba(255, 255, 255, 0.78);

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

    border-radius:
        11px;

    color:
        var(--hs-navy);

    font-size:
        0.88rem;

    font-weight:
        700;

    text-align:
        center;
}


/* ==========================================================
   15. MAIN SECTIONS
========================================================== */

.head-start-section {
    padding:
        5.8rem 0;

    background:
        var(--hs-white);
}

.head-start-section.alternate {
    background:
        linear-gradient(
            180deg,
            var(--hs-cream),
            #ffffff
        );
}


/* ==========================================================
   16. SECTION HEADER
========================================================== */

.section-header {
    max-width: 850px;

    margin:
        0 auto 3.2rem;

    text-align: center;
}

.section-header h2 {
    margin:
        0 0 1rem;

    color:
        var(--hs-navy);

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

    font-weight:
        800;

    line-height:
        1.1;
}

.section-header p {
    margin: 0;

    color:
        var(--hs-muted);

    font-size:
        1.04rem;

    line-height:
        1.75;
}


/* ==========================================================
   17. RESOURCE GRID
========================================================== */

.resource-grid {
    display: grid;

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

    gap: 1.6rem;

    align-items: stretch;
}


/* ==========================================================
   18. RESOURCE CARDS
========================================================== */

.resource-card {
    display: flex;

    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    background:
        var(--hs-white);

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

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

    box-shadow:
        0 7px 22px rgba(48, 75, 99, 0.06);

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

.resource-card:hover {
    transform:
        translateY(-7px);

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

    box-shadow:
        var(--hs-shadow-hover);
}


/* ==========================================================
   19. RESOURCE CARD IMAGES
========================================================== */

.resource-card-image {
    width: 100%;

    aspect-ratio: 16 / 10;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            var(--hs-teal-light),
            var(--hs-gold-light)
        );

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

.resource-card-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 0.75rem;
}

.resource-placeholder {
    color:
        var(--hs-navy);

    font-size:
        clamp(3rem, 6vw, 4.5rem);

    line-height: 1;
}


/* ==========================================================
   20. RESOURCE CARD CONTENT
========================================================== */

.resource-card-content {
    display: flex;

    flex-direction: column;

    flex: 1;

    padding:
        1.55rem 1.6rem 1.7rem;
}

.resource-icon {
    display: block;

    margin-bottom: 0.55rem;

    font-size: 1.5rem;
}

.resource-card h3 {
    margin:
        0 0 0.7rem;

    color:
        var(--hs-navy);

    font-size:
        1.25rem;

    line-height:
        1.3;
}

.resource-card p {
    flex: 1;

    margin:
        0 0 1.25rem;

    color:
        var(--hs-muted);

    font-size:
        0.94rem;

    line-height:
        1.7;
}

.resource-card a {
    display:
        inline-flex;

    width:
        fit-content;

    color:
        var(--hs-navy);

    font-size:
        0.91rem;

    font-weight:
        800;

    transition:
        color var(--hs-transition),
        transform var(--hs-transition);
}

.resource-card a:hover {
    color:
        var(--hs-coral);

    transform:
        translateX(4px);
}


/* ==========================================================
   21. CARD ACCENTS
========================================================== */

.resource-card:nth-child(1) {
    border-top:
        5px solid var(--hs-navy);
}

.resource-card:nth-child(2) {
    border-top:
        5px solid var(--hs-teal);
}

.resource-card:nth-child(3) {
    border-top:
        5px solid var(--hs-gold);
}

.resource-card:nth-child(4) {
    border-top:
        5px solid var(--hs-sage);
}

.resource-card:nth-child(5) {
    border-top:
        5px solid var(--hs-purple);
}

.resource-card:nth-child(6) {
    border-top:
        5px solid var(--hs-coral);
}


/* ==========================================================
   22. CONNECTION GRID
========================================================== */

.connection-grid {
    display:
        grid;

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

    gap:
        1.2rem;
}

.connection-card {
    position:
        relative;

    padding:
        1.8rem;

    background:
        var(--hs-white);

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

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

    box-shadow:
        0 7px 22px rgba(48, 75, 99, 0.05);

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

.connection-card:hover {
    transform:
        translateY(-4px);

    box-shadow:
        var(--hs-shadow-hover);
}

.connection-card > span {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        38px;

    height:
        38px;

    margin-bottom:
        1rem;

    border-radius:
        50%;

    background:
        var(--hs-teal-light);

    color:
        var(--hs-teal);

    font-size:
        0.82rem;

    font-weight:
        800;
}

.connection-card h3 {
    margin:
        0 0 0.6rem;

    color:
        var(--hs-navy);

    font-size:
        1.2rem;
}

.connection-card p {
    margin:
        0;

    color:
        var(--hs-muted);

    font-size:
        0.92rem;

    line-height:
        1.7;
}


/* ==========================================================
   23. MESSAGE SECTION
========================================================== */

.head-start-message {
    padding:
        5.8rem 0;

    background:
        linear-gradient(
            135deg,
            #edf5f3,
            #faf7ef
        );
}

.message-card {
    padding:
        clamp(2rem, 5vw, 4rem);

    text-align:
        center;

    background:
        rgba(255, 255, 255, 0.92);

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

    border-radius:
        24px;

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

.message-card h2 {
    max-width:
        850px;

    margin:
        0 auto 1rem;

    color:
        var(--hs-navy);

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

    line-height:
        1.1;
}

.message-card p {
    max-width:
        820px;

    margin:
        0 auto 2rem;

    color:
        var(--hs-muted);

    font-size:
        1.04rem;

    line-height:
        1.75;
}

.message-card .hero-buttons {
    justify-content:
        center;
}


/* ==========================================================
   24. FOOTER
========================================================== */

footer {
    background:
        linear-gradient(
            135deg,
            #243a4d 0%,
            #304b63 52%,
            #416679 100%
        );

    color:
        var(--hs-white);
}


/* ==========================================================
   25. FOOTER GRID
========================================================== */

.footer-grid {
    display:
        grid;

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

    gap:
        2.8rem;

    padding-top:
        4rem;

    padding-bottom:
        3.5rem;
}


/* ==========================================================
   26. FOOTER BRAND
========================================================== */

.footer-site-name {
    display:
        inline-block;

    margin-bottom:
        1rem;

    color:
        var(--hs-white);

    font-family:
        "Nunito", sans-serif;

    font-size:
        1.35rem;

    font-weight:
        800;

    line-height:
        1.2;

    transition:
        color var(--hs-transition),
        transform var(--hs-transition);
}

.footer-site-name:hover {
    color:
        var(--hs-gold);

    transform:
        translateY(-2px);
}

.footer-brand p {
    max-width:
        340px;

    margin:
        0;

    color:
        rgba(255, 255, 255, 0.82);

    line-height:
        1.7;
}


/* ==========================================================
   27. FOOTER COLUMNS
========================================================== */

.footer-column {
    display:
        flex;

    flex-direction:
        column;

    gap:
        0.45rem;
}

.footer-column h4 {
    margin:
        0 0 0.7rem;

    color:
        var(--hs-white);

    font-size:
        1.05rem;

    font-weight:
        800;
}

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

    font-size:
        0.92rem;

    transition:
        color var(--hs-transition),
        transform var(--hs-transition);
}

.footer-column a:hover {
    color:
        var(--hs-gold);

    transform:
        translateX(3px);
}


/* ==========================================================
   28. FOOTER BOTTOM
========================================================== */

.footer-bottom {
    padding:
        1.2rem 0;

    border-top:
        1px solid rgba(255, 255, 255, 0.18);

    text-align:
        center;
}

.footer-bottom p {
    margin:
        0.15rem 0;

    color:
        rgba(255, 255, 255, 0.68);

    font-size:
        0.85rem;
}


/* ==========================================================
   29. ACCESSIBILITY
========================================================== */

a:focus-visible,
button:focus-visible {
    outline:
        3px solid var(--hs-gold);

    outline-offset:
        4px;
}


/* ==========================================================
   30. TABLET
========================================================== */

@media (max-width: 1100px) {

    nav ul {
        gap:
            0.85rem;
    }

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

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

    .resource-highlights {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

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

}


/* ==========================================================
   31. MOBILE
========================================================== */

@media (max-width: 768px) {

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

    nav {
        display:
            none;
    }

    .mobile-menu {
        display:
            flex;
    }


    /* Mobile navigation */

    nav.mobile-nav-open {
        display:
            block;

        position:
            absolute;

        top:
            76px;

        left:
            0;

        right:
            0;

        padding:
            1rem;

        background:
            var(--hs-paper);

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

        box-shadow:
            0 12px 28px rgba(48, 75, 99, 0.12);
    }

    nav.mobile-nav-open ul {
        flex-direction:
            column;

        align-items:
            stretch;

        gap:
            0.25rem;
    }

    nav.mobile-nav-open a {
        display:
            block;

        padding:
            0.85rem 1rem;

        border-radius:
            10px;
    }

    nav.mobile-nav-open a:hover {
        background:
            var(--hs-teal-light);
    }

    nav.mobile-nav-open a::after {
        display:
            none;
    }


    /* Hero */

    .head-start-hero {
        padding:
            4.6rem 0
            4.8rem;
    }

    .head-start-hero h1 {
        font-size:
            clamp(2.3rem, 10vw, 3.5rem);
    }

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


    /* Buttons */

    .hero-buttons {
        flex-direction:
            column;

        align-items:
            stretch;
    }

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


    /* Introduction */

    .head-start-introduction,
    .head-start-section,
    .head-start-message {
        padding:
            4.5rem 0;
    }

    .introduction-content {
        padding:
            2rem 1.5rem
            2.3rem;
    }


    /* Resource cards */

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

        gap:
            1.3rem;
    }

    .resource-card-content {
        padding:
            1.4rem;
    }


    /* Connections */

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

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


    /* Message */

    .message-card {
        padding:
            2rem 1.4rem
            2.3rem;
    }


    /* Footer */

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

        gap:
            2rem;

        padding-top:
            3.3rem;

        padding-bottom:
            3rem;
    }

}


/* ==========================================================
   32. SMALL PHONES
========================================================== */

@media (max-width: 480px) {

    .container {
        width:
            min(91%, var(--hs-width));
    }

    .logo > div {
        display:
            none;
    }

    .head-start-hero {
        padding:
            4rem 0
            4.2rem;
    }

    .head-start-hero h1 {
        font-size:
            clamp(2rem, 11vw, 2.8rem);
    }

    .breadcrumb {
        font-size:
            0.82rem;
    }

    .resource-card-image {
        aspect-ratio:
            16 / 10;
    }

    .resource-card-content {
        padding:
            1.3rem;
    }

    .message-card {
        padding:
            1.7rem 1.2rem
            2rem;
    }

}


/* ==========================================================
   33. REDUCED MOTION
========================================================== */

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

    html {
        scroll-behavior:
            auto;
    }

    *,
    *::before,
    *::after {
        transition-duration:
            0.01ms !important;

        animation-duration:
            0.01ms !important;
    }

}