/* Global public-site styling */
html {
    font-size: 16px;
}

body {
    margin: 0;
    color: #263746;
    background: #eef2f6;
    font-family: "Segoe UI", "Open Sans", Arial, sans-serif;
    line-height: 1.55;
}

* {
    box-sizing: border-box;
}

a {
    color: #2b63aa;
}

a:hover {
    color: #245590;
}

.site-main {
    min-height: 60vh;
}

.home {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.home-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: transparent;
    box-shadow:
        0 8px 22px rgba(30, 55, 78, .07),
        0 0 30px rgba(43, 99, 170, .10);
}

.home-hero img {
    display: block;
    width: 100%;
    height: auto;
}

.home-intro {
    padding: 36px 28px 10px;
    text-align: center;
}

.home-intro h1 {
    margin: 0 0 10px;
    color: #193a61;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    line-height: 1.15;
}

.home-intro p {
    max-width: 760px;
    margin: 0 auto;
    color: #536575;
    font-size: 1.06rem;
}

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

.home-card {
    display: flex;
    flex-direction: column;
    min-height: 205px;
    padding: 24px;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(30, 55, 78, .07);
}

.home-card h2 {
    margin: 0 0 9px;
    color: #234b78;
    font-size: 1.35rem;
    text-align: center;
}

.home-card p {
    margin: 0 0 18px;
    color: #5e6f7e;
    flex: 1;
    text-align: left;
}

.card-link {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 9px;
    background: #2b63aa;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.card-link:hover {
    background: #245590;
    color: #fff;
}

.site-footer {
    background: #f7f9fb;
    border-top: 1px solid #d9e2ec;
}

.footer-inner {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: .92rem;
}

.footer-links a {
    color: #405568;
    text-decoration: none;
}

.footer-links a:hover {
    color: #245590;
}

.footer-brand img {
    display: block;
    max-width: min(320px, 42vw);
    height: auto;
}

@media (max-width: 820px) {
    .home-grid {
        grid-template-columns: 1fr;
    }

    .home-card {
        min-height: 0;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-brand img {
        max-width: 260px;
    }
}

@media (max-width: 560px) {
    .home {
        width: min(100% - 20px, 1080px);
        padding-top: 10px;
    }

    .home-hero {
        border-radius: 12px;
    }

    .home-intro {
        padding: 28px 18px 6px;
    }
}

/* Shared SchoolMission.net shell styling */
/* SchoolMissionModern public-site shell */

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #d9e2ec;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    padding: 18px 24px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 72px;
}

.menu-toggle {
    position: absolute;
    right: 24px;
    display: none;
    border: 1px solid #b7c7d9;
    border-radius: 10px;
    padding: 10px 13px;
    background: #fff;
    color: #244f82;
    font: inherit;
    cursor: pointer;
}

.menu-icon {
    margin-left: 7px;
}

.site-nav {
    background: #2b63aa;
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.nav-link,
.dropdown a {
    color: #fff;
    text-decoration: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 13px 18px;
    font-size: .98rem;
    font-weight: 600;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-group:hover > .nav-link {
    background: #245590;
    color: #eaf5ff;
}

.nav-group {
    position: relative;
}

.chevron {
    font-size: .8em;
}

.dropdown {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 230px;
    background: #2b63aa;
    box-shadow: 0 12px 24px rgba(22, 43, 70, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.nav-group:hover .dropdown,
.nav-group:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 11px 15px;
    font-size: .94rem;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.dropdown a:hover,
.dropdown a:focus-visible {
    background: #245590;
    color: #eaf5ff;
}

.site-main {
    flex: 1;
    background: linear-gradient(180deg, #f6f9fc 0%, #ffffff 48%);
}

@media (max-width: 760px) {
    .header-inner {
        padding: 13px 18px;
    }

    .brand {
        display: block;
        max-width: calc(100% - 72px);
    }

    .brand img {
        width: auto;
        height: 58px;
        max-width: 100%;
    }

    .menu-toggle {
        right: 18px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
    }

    .site-nav {
        display: none;
    }

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

    .nav-inner {
        display: block;
        padding: 4px 0 10px;
    }

    .nav-link {
        padding: 13px 18px;
        border-top: 1px solid rgba(255,255,255,.10);
    }

    .dropdown {
        position: static;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        background: #245590;
    }

    .nav-group:hover .dropdown,
    .nav-group:focus-within .dropdown {
        display: block;
    }

    .dropdown a {
        padding: 11px 28px;
    }
}

/* Unified site-wide breadcrumb navigation */
.site-breadcrumb {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    color: #64798d;
    font-size: 14px;
    line-height: 1.4;
}

.site-breadcrumb a {
    color: #2b63aa;
    text-decoration: none;
}

.site-breadcrumb a:hover,
.site-breadcrumb a:focus-visible {
    text-decoration: underline;
}

.site-breadcrumb-current {
    color: #64798d;
}

.site-breadcrumb-separator {
    display: inline-block;
    margin: 0 7px;
    color: #8da0b1;
}

@media (max-width: 560px) {
    .site-breadcrumb {
        width: calc(100% - 20px);
        padding: 10px 0 13px;
        font-size: 13px;
    }

    .site-breadcrumb-separator {
        margin: 0 5px;
    }
}

/* ========================================================================
   PUBLIC NAVIGATION — DEV-SITE HOVER DECORATION
   Reproduced from SchoolMissionDev/styles/SchoolMission.css.
   Desktop only; mobile menu behavior is unchanged.
   ======================================================================== */

@media screen and (min-width: 761px) {
    .site-nav .nav-inner > .nav-link {
        position: relative;
    }

    .site-nav .nav-inner > .nav-link::after {
        content: "";
        position: absolute;
        left: 18px;
        right: 18px;
        bottom: 1px;
        height: 2px;
        background-color: rgba(223, 242, 254, 0.95);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 160ms ease;
        pointer-events: none;
    }

    .site-nav .nav-inner > .nav-link:hover::after,
    .site-nav .nav-inner > .nav-link:focus-visible::after {
        transform: scaleX(1);
    }

    .site-nav .nav-inner > .nav-group {
        position: relative;
    }

    .site-nav .nav-inner > .nav-group::after {
        content: "";
        position: absolute;
        left: 18px;
        right: 18px;
        bottom: 1px;
        height: 2px;
        background-color: rgba(223, 242, 254, 0.95);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 160ms ease;
        pointer-events: none;
    }

    .site-nav .nav-inner > .nav-group:hover::after,
    .site-nav .nav-inner > .nav-group:focus-within::after {
        transform: scaleX(1);
    }

    .site-nav .nav-group .dropdown a {
        position: relative;
    }

    .site-nav .nav-group .dropdown a::before {
        content: "";
        position: absolute;
        left: 8px;
        top: 10px;
        bottom: 10px;
        width: 2px;
        background-color: rgba(223, 242, 254, 0.95);
        transform: scaleY(0);
        transform-origin: center;
        transition: transform 140ms ease;
        pointer-events: none;
    }

    .site-nav .nav-group .dropdown a:hover::before,
    .site-nav .nav-group .dropdown a:focus-visible::before {
        transform: scaleY(1);
    }
}

/* ========================================================================
   2026-09-22 PUBLIC HEADER UPDATE
   Header-only change: logo and navigation share one blue top bar.
   The homepage hero and all other page content remain unchanged.
   ======================================================================== */

.site-header {
    background: #2b63aa;
    border-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    width: min(1080px, calc(100% - 32px));
    max-width: 1080px;
    min-height: 82px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
}

.brand img {
    display: block;
    width: auto;
    height: 58px;
    max-width: 100%;
}

.site-nav {
    flex: 0 0 auto;
    background: transparent;
}

.nav-inner {
    max-width: none;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
}

.nav-link {
    padding: 13px 17px;
    font-size: .98rem;
    font-weight: 600;
    color: #fff;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-group:hover > .nav-link,
.nav-link-split:hover .nav-link,
.nav-link-split:focus-within .nav-link {
    background: rgba(36, 85, 144, .72);
    color: #fff;
}

.dropdown {
    background: #2b63aa;
}

.menu-toggle {
    display: none;
}

@media (max-width: 920px) and (min-width: 761px) {
    .header-inner {
        gap: 10px;
    }

    .brand img {
        height: 50px;
    }

    .nav-link {
        padding-left: 10px;
        padding-right: 10px;
        font-size: .9rem;
    }
}

@media (max-width: 760px) {
    .site-header {
        position: sticky;
        top: 0;
    }

    .header-inner {
        width: calc(100% - 20px);
        min-height: 74px;
        padding: 8px 0;
        justify-content: space-between;
    }

    .brand {
        max-width: calc(100% - 92px) !important;
    }

    .brand img {
        height: 48px;
        max-height: 48px;
    }

    .menu-toggle {
        position: static;
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        border: 1px solid rgba(255,255,255,.55);
        border-radius: 8px;
        padding: 8px 11px;
        background: transparent;
        color: #fff;
        font: inherit;
        cursor: pointer;
    }

    .menu-icon {
        margin-left: 7px;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #2b63aa;
    }

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

    .nav-inner {
        display: block;
        width: 100%;
        padding: 4px 0 10px;
    }

    .nav-link {
        padding: 13px 18px;
    }
}

/* ========================================================================
   2026-09-23 PUBLIC HEADER SIZE ADJUSTMENT
   Header/menu only. The existing logo artwork and all page/hero content
   remain unchanged.
   ======================================================================== */

@media screen and (min-width: 761px) {
    .site-nav {
        align-self: stretch;
        flex: 0 0 auto;
    }

    .nav-inner {
        height: 100%;
        width: max-content;
        max-width: none;
        flex-wrap: nowrap;
        white-space: nowrap;
        align-items: stretch;
    }

    .nav-inner > .nav-link,
    .nav-inner > .nav-group {
        flex: 0 0 auto;
        height: 100%;
        box-sizing: border-box;
        white-space: nowrap;
    }

    .nav-inner > .nav-link {
        align-items: center;
    }

    .nav-inner > .nav-group > .nav-link {
        height: 100%;
        box-sizing: border-box;
        align-items: center;
        white-space: nowrap;
    }
}

@media screen and (min-width: 921px) {
    .header-inner {
        min-height: 72px;
    }

    .brand img {
        height: 48px;
    }

    .site-nav {
        height: 72px;
    }

    .nav-link {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* 2026-09-23 PUBLIC DROPDOWN ALIGNMENT FIX
   Desktop only. Keeps dropdown menu labels vertically centered in the
   shorter blue header. No logo or page content changes. */
@media screen and (min-width: 761px) {
    .nav-inner > .nav-group > .nav-link-split {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .nav-inner > .nav-group > .nav-link-split > .nav-link,
    .nav-inner > .nav-group > .nav-link-split > .nav-dropdown-toggle {
        height: 100%;
        box-sizing: border-box;
        align-items: center;
    }

    .nav-inner > .nav-group > .nav-link-split > .nav-link {
        display: flex;
    }
}

/* ========================================================================
   HOMEPAGE CARDS — APPROVED REFERENCE DESIGN
   Targeted homepage-card styling only.
   ======================================================================== */

.home-card {
    padding: 0;
    overflow: hidden;
}

.home-card-image {
    height: 108px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background: #e8f0f7;
}

.home-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-card-content {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 24px 22px;
}

.home-card-icon {
    position: absolute;
    top: -22px;
    left: 22px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #27a9e1;
    box-shadow: 0 2px 7px rgba(30, 55, 78, .18);
}

.home-card-icon-inservice {
    background: #35b779;
}

.home-card-icon-contact {
    background: #7667d9;
}

.home-card-icon svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

.home-card h2 {
    margin: 0 0 8px;
    padding-left: 66px;
    min-height: 50px;
    display: flex;
    align-items: center;
    color: #234b78;
    font-size: 1.35rem;
    line-height: 1.2;
    text-align: left;
}

.home-card p {
    margin: 0 0 18px;
    color: #5e6f7e;
    flex: 1;
    text-align: left;
}

.card-link {
    align-self: center;
    margin-top: auto;
}

@media (max-width: 820px) {
    .home-card-image {
        height: 115px;
    }
}

@media (max-width: 560px) {
    .home-card-image {
        height: 120px;
    }

    .home-card-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-card-icon {
        left: 18px;
    }

    .home-card h2 {
        padding-left: 62px;
    }
}
