:root {
    --landing-green: #087f5b;
    --landing-blue: #0b5f8a;
    --landing-ink: #102027;
    --landing-muted: #5e6b73;
    --landing-line: #d9e5e4;
    --landing-bg: #f7fbfb;
    --landing-soft: #eef8f5;
    --landing-accent: #f5a524;
    --landing-white: #ffffff;
    --landing-shadow: 0 18px 42px rgba(14, 42, 55, .12);
    --landing-radius: 8px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    color: var(--landing-ink);
    background: var(--landing-white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

body.menu-open,
body.lightbox-open { overflow: hidden; }

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

a { color: inherit; }

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(217, 229, 228, .9);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    width: min(1180px, calc(100% - 28px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
}

.brand-logo {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: var(--landing-radius);
    background: #123;
    overflow: hidden;
    flex: 0 0 auto;
}

.brand-copy {
    display: grid;
    min-width: 0;
}

.brand-name {
    max-width: 270px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--landing-ink);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}

.brand-kicker {
    color: var(--landing-muted);
    font-size: .78rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-menu > a {
    color: #263b42;
    font-size: .94rem;
    font-weight: 650;
    text-decoration: none;
}

.nav-menu > a:hover { color: var(--landing-green); }

.nav-actions,
.hero-actions,
.cta-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--landing-radius);
    padding: 10px 16px;
    font-weight: 750;
    line-height: 1.1;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

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

.btn-primary {
    color: #fff;
    background: var(--landing-green);
    border-color: var(--landing-green);
    box-shadow: 0 10px 24px rgba(8, 127, 91, .24);
}

.btn-primary:hover {
    color: #fff;
    background: #066d4e;
    border-color: #066d4e;
}

.btn-outline {
    color: var(--landing-blue);
    background: #fff;
    border-color: rgba(11, 95, 138, .24);
}

.btn-outline:hover {
    color: var(--landing-blue);
    border-color: var(--landing-blue);
}

.btn-light {
    color: var(--landing-ink);
    background: #fff;
    border-color: rgba(255, 255, 255, .9);
}

.btn-lg {
    min-height: 48px;
    padding: 13px 18px;
}

.nav-toggle {
    width: 44px;
    height: 44px;
    display: none;
    place-items: center;
    color: var(--landing-ink);
    background: #fff;
    border: 1px solid var(--landing-line);
    border-radius: var(--landing-radius);
}

.hero {
    min-height: clamp(590px, 76svh, 760px);
    display: flex;
    align-items: center;
    color: #fff;
    background-color: #063b43;
    background-position: center;
    background-size: cover;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 10px;
    background: linear-gradient(90deg, var(--landing-green), var(--landing-blue), var(--landing-accent));
}

.hero-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 80px 0 92px;
}

.hero-copy { max-width: 760px; }

.eyebrow {
    margin: 0 0 12px;
    color: var(--landing-accent);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4.9rem);
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: 0;
}

.hero-subtitle {
    max-width: 620px;
    margin: 22px 0 28px;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.section {
    padding: 84px 0;
    scroll-margin-top: 88px;
}

.muted { background: var(--landing-bg); }

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
    gap: 48px;
    align-items: center;
}

.section-copy h2,
.section-heading h2,
.contact-section h2,
.cta-section h2 {
    margin: 0;
    color: var(--landing-ink);
    font-size: clamp(1.9rem, 3vw, 3rem);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: 0;
}

.section-copy p:not(.eyebrow),
.section-heading,
.facility-card p,
.program-card p,
.site-footer p { color: var(--landing-muted); }

.section-heading {
    max-width: 690px;
    margin-bottom: 32px;
}

.section-heading.wide { max-width: 840px; }

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.feature-list span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #213940;
    font-weight: 700;
}

.feature-list i { color: var(--landing-green); }

.image-panel {
    min-height: 430px;
    border-radius: var(--landing-radius);
    overflow: hidden;
    background: var(--landing-soft);
    box-shadow: var(--landing-shadow);
}

.image-panel img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.image-fallback,
.empty-gallery,
.map-placeholder {
    min-height: 300px;
    display: grid;
    place-items: center;
    gap: 14px;
    text-align: center;
    color: var(--landing-muted);
    background: linear-gradient(135deg, #e9f7f2, #edf6fb);
}

.card-grid {
    display: grid;
    gap: 20px;
}

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

.program-card,
.facility-card,
.step-card {
    border: 1px solid var(--landing-line);
    border-radius: var(--landing-radius);
    background: #fff;
    box-shadow: 0 14px 32px rgba(14, 42, 55, .08);
}

.program-card {
    min-height: 294px;
    padding: 26px;
    display: flex;
    flex-direction: column;
}

.program-card h3,
.facility-card h3,
.step-card h3 {
    margin: 0;
    color: var(--landing-ink);
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0;
}

.program-card p { margin: 12px 0 24px; }

.icon-badge {
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    display: grid;
    place-items: center;
    color: var(--landing-blue);
    background: #e9f4fa;
    border-radius: var(--landing-radius);
    font-size: 1.45rem;
}

.icon-badge.small {
    width: 44px;
    height: 44px;
    margin: 0;
    font-size: 1.18rem;
    flex: 0 0 auto;
}

.card-link {
    margin-top: auto;
    color: var(--landing-green);
    font-weight: 800;
    text-decoration: none;
}

.facility-card {
    min-height: 170px;
    padding: 22px;
    display: flex;
    gap: 16px;
}

.facility-card p { margin: 8px 0 0; }

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

.step-card {
    min-height: 150px;
    padding: 24px;
}

.step-card span {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--landing-green);
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admission-note {
    margin-top: 22px;
    padding: 18px 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #5d3d05;
    background: #fff7e7;
    border: 1px solid #f7d58f;
    border-radius: var(--landing-radius);
}

.admission-note p {
    margin: 0;
    font-weight: 650;
}

.admission-note i { color: #c77800; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 12px;
}

.gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: var(--landing-radius);
    overflow: hidden;
    background: var(--landing-soft);
    box-shadow: 0 10px 22px rgba(14, 42, 55, .1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .25s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 6px 10px;
    color: #fff;
    background: rgba(7, 38, 47, .78);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--landing-radius);
    font-size: .76rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(8px);
}

.empty-gallery {
    min-height: 280px;
    padding: 32px;
    border: 1px dashed var(--landing-line);
    border-radius: var(--landing-radius);
}

.empty-gallery p {
    max-width: 560px;
    margin: 0;
}

.cta-section {
    padding: 64px 0;
    color: #fff;
    background: #073f56;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cta-section h2 {
    max-width: 680px;
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
    gap: 34px;
    align-items: stretch;
}

.contact-list {
    margin-top: 24px;
    display: grid;
    gap: 14px;
}

.contact-list p {
    margin: 0;
    display: flex;
    gap: 12px;
    color: var(--landing-muted);
    font-weight: 650;
}

.contact-list i {
    color: var(--landing-green);
    flex: 0 0 auto;
}

.map-placeholder {
    min-height: 360px;
    border: 1px solid var(--landing-line);
    border-radius: var(--landing-radius);
}

.map-placeholder i {
    color: var(--landing-blue);
    font-size: 2.4rem;
}

.site-footer {
    color: rgba(255, 255, 255, .82);
    background: #0c242b;
}

.footer-grid {
    padding: 52px 0 36px;
    display: grid;
    grid-template-columns: 1.4fr .7fr 1fr;
    gap: 32px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 12px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0;
}

.site-footer h2 { font-size: 1.35rem; }
.site-footer h3 { font-size: .98rem; }

.site-footer a {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
}

.site-footer p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, .72);
}

.footer-bottom {
    padding: 18px 16px;
    color: rgba(255, 255, 255, .65);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(3, 18, 24, .9);
}

.lightbox img {
    max-width: min(1100px, 94vw);
    max-height: 86vh;
    border-radius: var(--landing-radius);
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: var(--landing-radius);
}

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

    .nav-menu {
        position: fixed;
        inset: 76px 0 auto;
        display: none;
        padding: 18px;
        background: #fff;
        border-bottom: 1px solid var(--landing-line);
        box-shadow: 0 24px 44px rgba(14, 42, 55, .14);
    }

    .nav-menu.is-open {
        display: grid;
        gap: 4px;
    }

    .nav-menu > a {
        padding: 13px 4px;
        border-bottom: 1px solid #eef3f2;
    }

    .nav-actions { margin-top: 12px; }
    .nav-actions .btn { flex: 1 1 190px; }

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

@media (max-width: 760px) {
    .container,
    .hero-inner,
    .nav-wrap { width: min(100% - 24px, 1120px); }

    .brand-name { max-width: 190px; }

    .hero {
        min-height: 620px;
        background-position: center;
    }

    .hero-inner { padding: 68px 0 78px; }

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

    .section { padding: 62px 0; }

    .two-column,
    .contact-grid,
    .cta-inner {
        display: grid;
        grid-template-columns: 1fr;
    }

    .feature-list,
    .card-grid.three,
    .card-grid.facilities,
    .steps-grid,
    .footer-grid { grid-template-columns: 1fr; }

    .image-panel,
    .image-panel img { min-height: 320px; }

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

    .gallery-item { aspect-ratio: 4 / 3; }
}

@media (max-width: 440px) {
    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .brand-name { max-width: 152px; }
    .brand-kicker { display: none; }
    .gallery-grid { grid-template-columns: 1fr; }
}
