/* =========================================================
   KIAMAIKO PRIMARY SCHOOL & EDUCATION CENTRE
   GLOBAL STYLES

   Shared by every page.
========================================================= */


/* ---------------------------------------------------------
   ROOT
--------------------------------------------------------- */

:root {
    --brand-50: #F4F7FA;
    --brand-100: #E8F0F6;
    --brand-200: #C7E0F3;
    --brand-300: #AFCFE8;
    --brand-400: #829DB8;
    --brand-500: #5C677D;
    --brand-600: #4D576C;
    --brand-700: #3B4258;
    --brand-800: #2C3148;
    --brand-900: #222638;
    --brand-950: #171A28;

    --white: #FFFFFF;
    --border: #E5E7EB;

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;

    --shadow-soft:
        0 16px 45px rgba(44, 49, 72, .10);
}

 

/* ---------------------------------------------------------
   RESET
--------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: #fff;
    color: var(--brand-900);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
}

button,
a,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}


/* ---------------------------------------------------------
   ACCESSIBILITY
--------------------------------------------------------- */

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 9999;

    background: #fff;
    color: var(--brand-900);

    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;

    box-shadow: var(--shadow-soft);
}

.skip-link:focus {
    top: 20px;
}

:focus-visible {
    outline: 3px solid var(--brand-300);
    outline-offset: 3px;
}


/* ---------------------------------------------------------
   GLOBAL SECTION SYSTEM
--------------------------------------------------------- */

.section-space {
    padding-top: 88px;
    padding-bottom: 88px;
}

.section-title {
    color: var(--brand-900);
    font-size: clamp(2rem, 4vw, 3.45rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.04em;
}

.section-copy {
    color: #5f697d;
    font-size: 1.05rem;
    line-height: 1.9;
}

.section-eyebrow,
.section-eyebrow-light {
    display: flex;
    align-items: center;
    gap: 10px;

    text-transform: uppercase;
    letter-spacing: .19em;

    font-size: 11px;
    font-weight: 800;
}

.section-eyebrow {
    color: var(--brand-500);
}

.section-eyebrow-light {
    color: var(--brand-200);
}

.section-eyebrow::before,
.section-eyebrow-light::before {
    content: "";

    width: 26px;
    height: 2px;

    border-radius: 99px;
}

.section-eyebrow::before {
    background: var(--brand-500);
}

.section-eyebrow-light::before {
    background: var(--brand-200);
}


/* ---------------------------------------------------------
   BUTTON SYSTEM
--------------------------------------------------------- */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    border-radius: 12px;

    padding: 13px 20px;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

.btn-primary {
    color: #fff;
    background: var(--brand-800);
    box-shadow:
        0 10px 24px rgba(44, 49, 72, .17);
}

.btn-primary:hover {
    background: var(--brand-950);
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--brand-800);
    background: #fff;
    border: 1px solid #d9dee7;
}

.btn-secondary:hover {
    border-color: var(--brand-400);
    background: var(--brand-50);
    transform: translateY(-2px);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--brand-800);

    font-weight: 800;
    font-size: 14px;

    transition:
        gap .2s ease,
        color .2s ease;
}

.text-link:hover {
    gap: 14px;
    color: var(--brand-500);
}


/* ---------------------------------------------------------
   TOP BAR
--------------------------------------------------------- */

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #dbe4ec;

    transition: color .2s ease;
}

.topbar-link:hover {
    color: var(--brand-200);
}


/* ---------------------------------------------------------
   DESKTOP NAVIGATION
--------------------------------------------------------- */

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    padding: 10px 9px;

    color: var(--brand-900);

    font-size: 13px;
    font-weight: 700;

    border-radius: 10px;

    transition:
        background .2s ease,
        color .2s ease;
}

.nav-link:hover {
    background: var(--brand-50);
    color: var(--brand-500);
}

.nav-dropdown {
    position: relative;
}

.desktop-dropdown {
    position: absolute;

    top: calc(100% + 15px);
    left: 0;

    min-width: 240px;

    padding: 10px;

    border: 1px solid #e7ebf0;
    border-radius: 18px;

    background: #fff;

    box-shadow:
        0 18px 60px rgba(35, 40, 57, .14);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;
}

.nav-dropdown:hover .desktop-dropdown,
.nav-dropdown.is-open .desktop-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-dropdown::before {
    content: "";

    position: absolute;

    top: -16px;
    left: 0;

    width: 100%;
    height: 18px;
}

.desktop-dropdown a {
    display: block;

    padding: 10px 12px;

    color: var(--brand-700);

    font-size: 13px;
    font-weight: 650;

    border-radius: 10px;

    transition:
        background .18s ease,
        color .18s ease;
}

.desktop-dropdown a:hover {
    color: var(--brand-900);
    background: var(--brand-50);
}

.wide-dropdown {
    width: 490px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 14px;
}

.dropdown-heading {
    padding: 7px 12px;

    color: var(--brand-400);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .14em;
}

.dropdown-icon {
    transition: transform .2s ease;
}

.nav-dropdown:hover .dropdown-icon,
.nav-dropdown.is-open .dropdown-icon {
    transform: rotate(180deg);
}




/* ---------------------------------------------------------
   MOBILE MENU
--------------------------------------------------------- */

.mobile-menu {
    max-height: 0;

    overflow: hidden;

    background: #fff;

    border-top: 1px solid transparent;

    transition:
        max-height .4s ease,
        border-color .3s ease;
}

.mobile-menu.is-open {
    max-height: calc(100vh - 78px);

    overflow-y: auto;

    border-top-color: #e5e7eb;
}

.mobile-nav-group {
    border-bottom: 1px solid #edf0f4;
}

.mobile-dropdown-toggle {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 2px;

    color: var(--brand-900);

    font-size: 15px;
    font-weight: 750;

    background: transparent;
    border: 0;
}

.mobile-dropdown-toggle span {
    font-size: 22px;

    color: var(--brand-400);

    transition: transform .2s ease;
}

.mobile-nav-group.open
.mobile-dropdown-toggle span {
    transform: rotate(45deg);
}

.mobile-dropdown-content {
    max-height: 0;

    overflow: hidden;

    padding-left: 12px;

    transition: max-height .35s ease;
}

.mobile-nav-group.open
.mobile-dropdown-content {
    max-height: 650px;

    padding-bottom: 12px;
}

.mobile-dropdown-content a {
    display: block;

    padding: 9px 12px;

    color: var(--brand-600);

    font-size: 14px;

    border-radius: 10px;
}

.mobile-dropdown-content a:hover {
    background: var(--brand-50);
    color: var(--brand-900);
}

.mobile-main-link {
    display: block;

    padding: 15px 2px;

    border-bottom: 1px solid #edf0f4;

    color: var(--brand-900);

    font-size: 15px;
    font-weight: 750;
}


/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.site-footer {
    background:
        linear-gradient(
            140deg,
            #171a28 0%,
            #222638 48%,
            #2c3148 100%
        );
}

.footer-title {
    color: #fff;

    font-size: 13px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .12em;

    margin-bottom: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-links a {
    color: #9fa8b8;

    font-size: 14px;

    transition:
        color .2s ease,
        transform .2s ease;
}

.footer-links a:hover {
    color: var(--brand-200);
    transform: translateX(3px);
}


/* ---------------------------------------------------------
   MOBILE QUICK ACTIONS
--------------------------------------------------------- */

.mobile-quick-actions {
    position: fixed;

    bottom: 0;
    left: 0;
    right: 0;

    z-index: 45;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    background: var(--brand-900);

    box-shadow:
        0 -10px 30px rgba(23, 26, 40, .14);
}

.mobile-quick-actions a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;

    color: #fff;

    font-size: 13px;
    font-weight: 700;
}

.mobile-quick-actions .mobile-apply {
    background: var(--brand-200);
    color: var(--brand-900);
}


/* ---------------------------------------------------------
   REDUCED MOTION
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 768px) {

    .section-space {
        padding-top: 66px;
        padding-bottom: 66px;
    }

    body {
        padding-bottom: 52px;
    }

}








