/* =========================================================
   KnowledgeFlow School Board Resource Hub
   No framework, no JavaScript, responsive single page layout
   ========================================================= */

:root {
    /*
    Brand palette
    These values are intentionally centralized so exact KnowledgeFlow
    brand hex codes can be swapped in quickly if needed.
  */
    --kf-navy: #17395f;
    --kf-blue: #147fa3;
    --kf-cyan: #35b9cf;
    --kf-purple: #7356a3;
    --kf-purple-dark: #55417d;

    --ink: #18293c;
    --ink-soft: #526477;
    --white: #ffffff;
    --page: #f5f8fb;
    --surface: #ffffff;
    --surface-soft: #edf5f8;
    --border: #dbe5ec;

    --shadow-sm: 0 6px 20px rgba(23, 57, 95, 0.08);
    --shadow-md: 0 18px 50px rgba(23, 57, 95, 0.12);

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 26px;

    --content-width: 1240px;
    --header-height: 82px;
}

/* ---------- Base ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 26px);
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--page);
    color: var(--ink);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

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

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

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(53, 185, 207, 0.55);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--white);
    color: var(--kf-navy);
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* ---------- Header ---------- */

.brand-navbar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    display: block;
    width: auto;
    height: 48px;
    max-width: 150px;
    object-fit: contain;
}


.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    min-height: var(--header-height);
    border-bottom: 1px solid rgba(219, 229, 236, 0.95);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.nav-shell {
    width: min(calc(100% - 40px), var(--content-width));
    min-height: var(--header-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background:
        linear-gradient(145deg, var(--kf-blue), var(--kf-purple));
    box-shadow: 0 6px 16px rgba(23, 57, 95, 0.16);
    transform: rotate(30deg);
}

.brand-mark-inner {
    color: var(--white);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    transform: rotate(-30deg);
}

.brand-copy {
    display: grid;
    line-height: 1.05;
}

.brand-copy strong {
    color: var(--kf-navy);
    font-size: 17px;
    letter-spacing: -0.02em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.primary-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.primary-nav a {
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
    transition: color 160ms ease;
}

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

.nav-cta {
    padding: 11px 17px;
    border-radius: 999px;
    background: var(--kf-navy);
    color: var(--white);
    font-size: 14px;
    font-weight: 750;
    box-shadow: var(--shadow-sm);
    transition:
        background 160ms ease,
        transform 160ms ease;
}

.nav-cta:hover {
    background: var(--kf-purple-dark);
    transform: translateY(-1px);
}

/* ---------- Hero ---------- */

.hero {
    overflow: hidden;
    position: relative;
    padding: 70px 0 62px;
    background:
        radial-gradient(circle at 90% 18%, rgba(53, 185, 207, 0.18), transparent 26%),
        radial-gradient(circle at 76% 92%, rgba(115, 86, 163, 0.11), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f3f9fb 100%);
    border-bottom: 1px solid var(--border);
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -170px;
    width: 390px;
    height: 390px;
    border: 36px solid rgba(20, 127, 163, 0.05);
    border-radius: 92px;
    transform: rotate(28deg);
}

.hero-shell {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 40px), var(--content-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    gap: 70px;
    align-items: end;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--kf-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 900px;
    margin: 0;
    color: var(--kf-navy);
    font-size: clamp(2.15rem, 4.5vw, 4.15rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-line {
    display: block;
    white-space: nowrap;
}

.hero-line-secondary {
    margin-top: 0.12em;
}

.hero-intro {
    max-width: 730px;
    margin: 24px 0 0;
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
    line-height: 1.65;
}

.hero-side {
    display: grid;
    gap: 14px;
    align-self: center;
}

.partner-card {
    width: 100%;
    max-width: 360px;
    justify-self: end;
    padding: 18px 22px 20px;
    border: 1px solid rgba(20, 127, 163, 0.14);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.partner-label {
    display: block;
    margin-bottom: 10px;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.partner-logo {
    display: block;
    width: min(100%, 270px);
    height: auto;
    object-fit: contain;
}

.hero-callout {
    padding: 22px;
    border: 1px solid rgba(20, 127, 163, 0.14);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
}

.callout-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(53, 185, 207, 0.16);
    color: var(--kf-blue);
    font-weight: 900;
}

.hero-callout strong {
    display: block;
    color: var(--kf-navy);
    font-size: 15px;
}

.hero-callout p {
    margin: 5px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.55;
}

/* ---------- Main two column layout ---------- */

.resource-layout {
    padding: 64px 0 94px;
}

.layout-shell {
    width: min(calc(100% - 40px), var(--content-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

/* ---------- Sticky section navigation ---------- */

.section-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    align-self: start;
    height: fit-content;
}

.sidebar-card {
    position: static;
    padding: 22px 18px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.sidebar-label {
    margin: 0 9px 10px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.section-nav {
    display: grid;
    gap: 4px;
}

.section-nav a {
    min-height: 46px;
    padding: 10px 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    transition:
        color 160ms ease,
        background 160ms ease,
        transform 160ms ease;
}

.section-nav a span {
    color: var(--kf-cyan);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.section-nav a:hover,
.section-nav a:focus-visible {
    background: var(--surface-soft);
    color: var(--kf-navy);
    transform: translateX(2px);
}

.section-nav a[href="#students"] {
    background: rgba(53, 185, 207, 0.1);
    color: var(--kf-navy);
}

.sidebar-help {
    margin-top: 20px;
    padding: 18px 15px;
    border-radius: 13px;
    background:
        linear-gradient(140deg, var(--kf-navy), var(--kf-purple-dark));
    color: var(--white);
}

.sidebar-help strong {
    font-size: 13px;
}

.sidebar-help p {
    margin: 6px 0 11px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.5;
}

.sidebar-help a {
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Resource sections ---------- */

.resource-content {
    min-width: 0;
}

.resource-section {
    scroll-margin-top: calc(var(--header-height) + 28px);
    padding: 0 0 70px;
}

.resource-section+.resource-section {
    padding-top: 58px;
    border-top: 1px solid var(--border);
}

.section-heading {
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(260px, 1fr);
    gap: 34px;
    align-items: end;
}

.section-kicker {
    margin: 0 0 5px;
    color: var(--kf-blue);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    color: var(--kf-navy);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.section-heading>p {
    max-width: 570px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
}

/* ---------- Cards ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.resource-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 7px 24px rgba(23, 57, 95, 0.055);
    display: flex;
    flex-direction: column;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.resource-card:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 127, 163, 0.25);
    box-shadow: var(--shadow-md);
}

.image-placeholder {
    aspect-ratio: 16 / 9;
    min-height: 160px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(var(--gradient-angle, 135deg),
            var(--gradient-a, #147fa3),
            var(--gradient-b, #7356a3));
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.image-placeholder::before,
.image-placeholder::after {
    content: "";
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.14);
    transform: rotate(30deg);
}

.image-placeholder::before {
    right: -35px;
    bottom: -50px;
    width: 155px;
    height: 155px;
    border-radius: 42px;
}

.image-placeholder::after {
    left: -22px;
    top: -44px;
    width: 115px;
    height: 115px;
    border-radius: 32px;
}

.image-placeholder span {
    position: relative;
    z-index: 1;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.card-body {
    padding: 22px 21px 20px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.resource-type {
    margin: 0 0 7px;
    color: var(--kf-blue);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.card-body h3 {
    margin: 0;
    color: var(--kf-navy);
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.card-body>p:not(.resource-type) {
    margin: 11px 0 20px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.62;
}

.card-link {
    margin-top: auto;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--kf-purple-dark);
    font-size: 13px;
    font-weight: 850;
}

.card-link span {
    font-size: 20px;
    line-height: 1;
    transition: transform 150ms ease;
}

.card-link:hover {
    color: var(--kf-blue);
}

.card-link:hover span {
    transform: translateX(3px);
}

/* ---------- Support section ---------- */

.support-panel {
    padding: 32px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 85% 15%, rgba(53, 185, 207, 0.23), transparent 28%),
        linear-gradient(135deg, var(--kf-navy), var(--kf-purple-dark));
    color: var(--white);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.support-label {
    margin: 0 0 6px;
    color: var(--kf-cyan);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.support-copy h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
}

.support-copy>p:last-child {
    max-width: 680px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.support-actions {
    min-width: 190px;
    display: grid;
    gap: 10px;
}

.button {
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 850;
    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--white);
    color: var(--kf-navy);
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ---------- Footer ---------- */

.site-footer {
    background: #102a47;
    color: var(--white);
}

.footer-shell {
    width: min(calc(100% - 40px), var(--content-width));
    margin: 0 auto;
    padding: 62px 0 50px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
}


.brand-logo-footer {
    height: 46px;
    max-width: 145px;
}

.brand-footer .brand-copy strong {
    color: var(--white);
}

.brand-footer .brand-copy small {
    color: rgba(255, 255, 255, 0.6);
}

.footer-brand>p {
    max-width: 520px;
    margin: 21px 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px;
}

.footer-links>div {
    display: grid;
    align-content: start;
    gap: 8px;
}

.footer-links strong {
    margin-bottom: 4px;
    color: var(--white);
    font-size: 13px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-bottom-shell {
    width: min(calc(100% - 40px), var(--content-width));
    min-height: 66px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.footer-bottom p,
.footer-bottom a {
    color: rgba(255, 255, 255, 0.52);
    font-size: 11px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom-shell>div {
    display: flex;
    gap: 20px;
}

/* ---------- Tablet ---------- */

@media (max-width: 1050px) {
    .primary-nav {
        display: none;
    }

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

    .hero-shell {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .partner-card {
        justify-self: start;
    }

    .hero-callout {
        max-width: 650px;
    }

    .layout-shell {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 30px;
    }

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

    .section-heading {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
    .partner-card {
        padding: 15px 18px 17px;
    }

    .partner-logo {
        width: min(100%, 245px);
    }


    .brand-logo-footer {
        height: 40px;
        max-width: 118px;
    }

    .brand-logo {
        height: 42px;
        max-width: 120px;
    }

    :root {
        --header-height: 72px;
    }

    .nav-shell,
    .hero-shell,
    .layout-shell,
    .footer-shell,
    .footer-bottom-shell {
        width: min(calc(100% - 28px), var(--content-width));
    }


    .brand-mark {
        width: 41px;
        height: 41px;
        border-radius: 12px;
    }

    .nav-cta {
        padding: 9px 13px;
        font-size: 12px;
    }

    .hero {
        padding: 50px 0 45px;
    }

    .hero h1 {
        font-size: clamp(2rem, 9.6vw, 3.1rem);
    }

    .hero-line {
        white-space: normal;
    }

    .hero-intro {
        font-size: 1rem;
    }

    .resource-layout {
        padding-top: 28px;
    }

    .layout-shell {
        display: block;
    }

    .section-sidebar {
        position: static;
        top: auto;
        height: auto;
        margin-bottom: 34px;
    }

    .sidebar-card {
        position: static;
        padding: 14px;
    }

    .sidebar-label,
    .sidebar-help {
        display: none;
    }

    .section-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 3px;
        scrollbar-width: thin;
    }

    .section-nav a {
        min-width: max-content;
        min-height: 40px;
        padding: 8px 11px;
        grid-template-columns: auto auto;
        border: 1px solid var(--border);
        background: var(--white);
        font-size: 12px;
    }

    .section-nav a[href="#students"] {
        border-color: rgba(53, 185, 207, 0.28);
    }

    .resource-section {
        padding-bottom: 54px;
    }

    .resource-section+.resource-section {
        padding-top: 44px;
    }

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

    .image-placeholder {
        min-height: 190px;
    }

    .support-panel {
        grid-template-columns: 1fr;
        padding: 25px 21px;
    }

    .support-actions {
        width: 100%;
    }

    .footer-shell {
        grid-template-columns: 1fr;
        gap: 42px;
        padding: 48px 0 38px;
    }

    .footer-bottom-shell {
        padding: 20px 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
}

@media (max-width: 460px) {
    .brand-copy strong {
        font-size: 15px;
    }

    .nav-cta {
        display: none;
    }

    .card-body {
        padding: 20px 18px 18px;
    }

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

/* ---------- Motion preference ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}