:root {
    --ink: #18212f;
    --muted: #5e6a77;
    --paper: #f5f2ea;
    --panel: #ffffff;
    --line: rgba(24, 33, 47, .13);
    --line-strong: rgba(24, 33, 47, .22);
    --base: #111827;
    --runway: #2c3138;
    --accent: #b94a28;
    --accent-dark: #8c351d;
    --teal: #0f766e;
    --gold: #e6b74a;
    --sky: #e9f5f9;
    --radius: 8px;
    --shadow: 0 18px 48px rgba(24, 33, 47, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    line-height: 1.62;
    background:
        linear-gradient(90deg, rgba(24, 33, 47, .04) 1px, transparent 1px) 0 0 / 78px 78px,
        linear-gradient(180deg, #fff 0, var(--paper) 42%, #fff 100%);
    text-rendering: optimizeLegibility;
}

a {
    color: var(--accent);
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

a:hover {
    color: var(--accent-dark);
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    font-weight: 820;
    line-height: 1.12;
    letter-spacing: 0;
}

h1 {
    max-width: 880px;
    font-size: clamp(1.75rem, 3.1vw, 2.45rem);
}

h2 {
    font-size: clamp(1.38rem, 2vw, 1.85rem);
}

h3 {
    font-size: 1.06rem;
}

p,
li {
    color: var(--muted);
}

.lead,
.fs-4 {
    max-width: 760px;
    color: #4d5865;
    font-size: clamp(1rem, 1.25vw, 1.12rem) !important;
    line-height: 1.65;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(24, 33, 47, .08);
    backdrop-filter: blur(18px);
}

.navbar {
    min-height: 72px;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: .35rem .45rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.navbar-brand img {
    width: 190px;
    height: auto;
}

.navbar-toggler {
    border-color: var(--line-strong);
    filter: invert(1);
}

.nav-link {
    position: relative;
    color: #344054 !important;
    font-size: .88rem;
    font-weight: 760;
    padding: .45rem .55rem !important;
    border-radius: 999px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--base) !important;
    background: rgba(15, 118, 110, .09);
}

.nav-link.active:after {
    content: "";
    position: absolute;
    left: .8rem;
    right: .8rem;
    bottom: .18rem;
    height: 2px;
    background: var(--teal);
}

.btn {
    border-radius: 6px;
    font-weight: 800;
    letter-spacing: 0;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

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

.btn-lg {
    padding: .72rem 1.05rem;
    font-size: .98rem;
}

.btn-cta {
    background: var(--gold);
    border-color: var(--gold);
    color: #15120f;
    box-shadow: 0 12px 26px rgba(230, 183, 74, .25);
}

.btn-cta:hover {
    background: #f1c65c;
    border-color: #f1c65c;
    color: #15120f;
}

.btn-main {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 12px 26px rgba(185, 74, 40, .2);
}

.btn-main:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, .72);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--teal);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 900;
}

.eyebrow:before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

.hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, .95) 0 42%, rgba(17, 24, 39, .46) 64%, rgba(17, 24, 39, .1) 100%),
        var(--hero, url("/assets/img/academy-flightline.jpg")) center / cover no-repeat;
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 58%, rgba(230, 183, 74, .34) 58.2% 58.7%, transparent 59%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 96px);
    opacity: .44;
    pointer-events: none;
}

.hero:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    background: linear-gradient(180deg, transparent, rgba(245, 242, 234, .98));
}

.hero .container {
    position: relative;
    z-index: 2;
    padding-block: 5rem 6rem;
}

.hero h1,
.hero .lead,
.section-dark h1,
.section-dark h2,
.section-dark p {
    color: #fff;
}

.hero h1 {
    text-shadow: 0 18px 48px rgba(0, 0, 0, .38);
}

.hero .lead,
.section-dark p {
    color: rgba(255, 255, 255, .84);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: var(--radius);
    padding: 22px;
    color: var(--ink);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .24);
    backdrop-filter: blur(16px);
}

.hero-panel:before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--teal), var(--gold));
}

.hero-panel strong {
    display: block;
    color: var(--base);
    font-size: 1.35rem;
    line-height: 1;
}

.hero-panel span {
    display: block;
    color: var(--muted);
    font-size: .9rem;
}

.hero-panel hr {
    margin: 1rem 0;
    border-color: var(--line);
    opacity: 1;
}

.trust-strip {
    background: var(--runway);
    color: #fff;
    border-block: 1px solid rgba(255, 255, 255, .08);
    font-size: .9rem;
    font-weight: 800;
}

.trust-strip span {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, .88);
}

.trust-strip span:before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: .55rem;
    border-radius: 50%;
    background: var(--gold);
}

.section {
    position: relative;
    padding: 64px 0;
}

.section-alt,
main.section {
    background:
        linear-gradient(135deg, rgba(233, 245, 249, .92), rgba(255, 255, 255, .84)),
        url("/assets/img/academy-flightline.jpg") right center / 48% auto no-repeat;
    border-block: 1px solid rgba(24, 33, 47, .08);
}

main > .section:first-child:not(.hero):not(.section-dark),
article.section {
    min-height: 300px;
    display: flex;
    align-items: center;
}

main > .section:first-child:not(.hero):not(.section-dark) .container,
article.section .container,
main.section .container {
    position: relative;
    z-index: 1;
}

main > .section:first-child:not(.hero):not(.section-dark):before,
article.section:before,
main.section:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .96) 0 58%, rgba(255, 255, 255, .68) 76%, rgba(255, 255, 255, .22) 100%),
        linear-gradient(180deg, rgba(17, 24, 39, .03), transparent);
    pointer-events: none;
}

.section-dark {
    background:
        linear-gradient(90deg, rgba(17, 24, 39, .94) 0 56%, rgba(17, 24, 39, .58) 100%),
        url("/assets/img/academy-flightline.jpg") center / cover no-repeat;
    border: 0;
}

.layout-ribbon {
    border-top: 0;
}

.layout-ribbon:after,
article.section:after,
main.section:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(40vw, 480px);
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--teal), var(--gold));
}

.feature-card,
.post-card,
.stat-card,
.path-card,
.locator-panel,
.faq details {
    height: 100%;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 34px rgba(24, 33, 47, .07);
}

.feature-card,
.post-card,
.path-card,
.locator-panel {
    padding: 24px;
}

.feature-card,
.post-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.feature-card:hover,
.post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 118, 110, .28);
    box-shadow: var(--shadow);
}

.feature-card h2,
.post-card h2,
.path-card h3,
.locator-panel h2 {
    margin-bottom: .7rem;
}

.feature-card ul {
    padding-left: 1.1rem;
}

.stat-card {
    padding: 18px;
    border-left: 5px solid var(--teal);
}

.stat-card strong {
    display: block;
    color: var(--accent);
    font-size: 1.45rem;
    line-height: 1;
    margin-bottom: .35rem;
}

.stat-card span {
    color: var(--muted);
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.path-card {
    position: relative;
}

.path-card span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--runway);
    color: #fff;
    font-weight: 900;
    font-size: .9rem;
}

.academy-band {
    background:
        linear-gradient(180deg, rgba(17, 24, 39, .03), rgba(255, 255, 255, .92)),
        var(--paper);
    border-block: 1px solid var(--line);
}

.split-band {
    padding: 44px 0;
    color: #fff;
    background:
        linear-gradient(100deg, rgba(17, 24, 39, .96), rgba(15, 118, 110, .9)),
        url("/assets/img/academy-flightline.jpg") center / cover no-repeat;
}

.split-band h2,
.split-band p {
    color: #fff;
}

.split-band p {
    color: rgba(255, 255, 255, .78);
}

.faq details {
    height: auto;
    padding: 18px 20px;
    margin-bottom: 12px;
}

.faq summary {
    color: var(--ink);
    font-weight: 820;
    cursor: pointer;
}

.article-body {
    max-width: 900px;
}

.article-body h2 {
    margin-top: 1.8rem;
}

.form-label,
label {
    color: var(--ink);
    font-weight: 760;
    font-size: .92rem;
}

.form-control,
.form-select {
    border-color: var(--line-strong);
    border-radius: 6px;
    min-height: 44px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .14);
}

.site-footer {
    color: rgba(255, 255, 255, .76);
    padding: 52px 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, .98), rgba(32, 42, 56, .96)),
        var(--base);
}

.site-footer img {
    width: 210px;
    height: auto;
    padding: .35rem;
    background: #fff;
    border-radius: var(--radius);
}

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

.site-footer a {
    display: block;
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
    margin: .38rem 0;
}

.site-footer a:hover {
    color: #fff;
}

.footer-title {
    color: #fff;
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.mobile-cta {
    display: none;
}

@media (max-width: 1199px) {
    .navbar-nav {
        padding-block: 1rem;
        gap: .2rem;
    }

    .nav-link.active:after {
        display: none;
    }
}

@media (max-width: 991px) {
    .section {
        padding: 50px 0;
    }

    .hero {
        min-height: 560px;
        background:
            linear-gradient(90deg, rgba(17, 24, 39, .95), rgba(17, 24, 39, .72)),
            var(--hero, url("/assets/img/academy-flightline.jpg")) center / cover no-repeat;
    }

    .hero .container {
        padding-block: 4rem 5rem;
    }

    .hero-panel {
        margin-top: 18px;
    }

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

    .section-alt,
    main.section {
        background: linear-gradient(135deg, var(--sky), #fff);
    }

    .mobile-cta {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }
}

@media (max-width: 575px) {
    .navbar {
        min-height: 66px;
    }

    .navbar-brand img {
        width: 164px;
    }

    h1 {
        font-size: 1.72rem;
    }

    h2 {
        font-size: 1.32rem;
    }

    .hero {
        min-height: auto;
    }

    .hero .container {
        padding-block: 3.2rem 4rem;
    }

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

    .feature-card,
    .post-card,
    .path-card,
    .locator-panel {
        padding: 20px;
    }
}
