:root {
    --ace-blue: #323b97;
    --ace-blue-dark: #0c1261;
    --ace-orange: #f78d2d;
    --ace-pale-blue: #e1edf5;
    --ace-white: #ffffff;
    --ace-black: #000000;
    --ace-grey: #f5f5f5;
    --page-width: 1200px;
    --header-height: 104px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ace-white);
    color: var(--ace-black);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.45;
}

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

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

.page-width {
    width: min(
        calc(100% - 64px),
        var(--page-width)
    );
    margin-inline: auto;
}


/* HEADER */

.site-header {
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
}

.site-header__inner {
    width: min(
        calc(100% - 64px),
        var(--page-width)
    );
    min-height: var(--header-height);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-logo {
    flex: 0 0 auto;
}

.site-logo img {
    width: auto;
    height: 100px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
}

.main-nav a {
    color: var(--ace-white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--ace-orange);
}

.nav-toggle {
    display: none;
}


/* HERO */

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--ace-blue-dark);
}

.hero__picture,
.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__image {
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.30),
            rgba(0, 0, 0, 0.03) 60%,
            rgba(0, 0, 0, 0.12)
        );
}

.hero__content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__eyebrow {
    margin: 0;
    color: var(--ace-white);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
}


/* INTRO */

.intro-section {
    background: var(--ace-pale-blue);
}

.intro-section__inner {
    padding-top: 70px;
    padding-bottom: 70px;
}

.display-heading {
    max-width: 1000px;
    margin: 0;
    font-size: 48px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 400;
}

.display-heading strong {
    font-weight: 700;
}

.intro-copy {
    max-width: 1050px;
    margin: 34px 0 0;
    font-size: 18px;
    line-height: 1.55;
}


/* SERVICE CARDS */

.service-section {
    padding: 0 0 72px;
    background: var(--ace-pale-blue);
}

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

.service-card {
    position: relative;
    min-height: 350px;
    overflow: hidden;
    color: var(--ace-white);
    background: var(--ace-blue-dark);
}

.service-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card__image {
    transform: scale(1.025);
}

.service-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.40);
}

.service-card__content {
    position: relative;
    z-index: 2;
    min-height: 350px;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
}

.service-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
}

.service-card p {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.45;
}

.ace-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    background: var(--ace-blue);
    color: var(--ace-white);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.2;
    border: 0;
    border-radius: 0;
    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.ace-button:hover,
.ace-button:focus-visible {
    background: var(--ace-grey);
    color: var(--ace-black);
}


/* FIRST RESPONSIVE PASS */

@media (max-width: 1100px) {
    .main-nav {
        gap: 15px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .display-heading {
        font-size: 42px;
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 88px;
    }

    .page-width,
    .site-header__inner {
        width: min(
            calc(100% - 40px),
            var(--page-width)
        );
    }

    .site-logo img {
        height: 80px;
    }

    .main-nav {
        display: none;
    }

    .nav-toggle {
        width: 44px;
        height: 44px;
        padding: 9px;
        border: 0;
        background: transparent;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
    }

    .nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--ace-white);
    }

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

    .service-card,
    .service-card__content {
        min-height: 420px;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 16px;
    }

    .page-width,
    .site-header__inner {
        width: calc(100% - 32px);
    }

    .hero {
        min-height: 72vh;
    }

    .hero__content {
        min-height: 72vh;
        align-items: flex-end;
        padding-bottom: 44px;
    }

    .hero__image {
        object-fit: cover;
    }

    .intro-section__inner {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .display-heading {
        font-size: 32px;
        line-height: 1.08;
    }

    .intro-copy {
        margin-top: 26px;
        font-size: 16px;
    }

    .service-section {
        padding-bottom: 48px;
    }

    .service-card,
    .service-card__content {
        min-height: 380px;
    }
}


/* ==========================================================
   ACEJET BUILD 3A4-2
   WORLD / GALLERY / STORIES / FOOTER / INTERNAL PAGES
   ========================================================== */


/* WORLD */

.world-section {
    padding: 72px 0 38px;
    background: var(--ace-pale-blue);
}

.world-section__copy {
    max-width: 900px;
    margin: 28px 0 0;
    font-size: 18px;
    line-height: 1.55;
}


/* GALLERY */

.gallery-section {
    padding: 10px 0 72px;
    background: var(--ace-grey);
}

.gallery-shell {
    position: relative;
}

.gallery-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(
        (100% - 24px) / 3
    );
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-card {
    margin: 0;
    overflow: hidden;
    scroll-snap-align: start;
    background: var(--ace-grey);
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.gallery-control {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ace-black);
    display: grid;
    place-items: center;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.gallery-control:hover,
.gallery-control:focus-visible {
    background: var(--ace-blue);
    color: var(--ace-white);
}

.gallery-control--previous {
    left: -20px;
}

.gallery-control--next {
    right: -20px;
}


/* WINDOW SEAT STORIES */

.stories-section {
    padding: 64px 0 72px;
    background: var(--ace-white);
}

.stories-placeholder {
    min-height: 24px;
}


/* FOOTER */

.site-footer {
    background: var(--ace-blue-dark);
    color: var(--ace-white);
}

.site-footer__inner {
    width: min(
        calc(100% - 64px),
        var(--page-width)
    );
    margin-inline: auto;
    padding: 58px 0 44px;
    display: grid;
    grid-template-columns:
        minmax(220px, 1.2fr)
        minmax(220px, 1fr)
        minmax(180px, 0.7fr);
    gap: 54px;
    align-items: start;
}

.site-footer__brand img {
    width: auto;
    max-width: 230px;
    height: auto;
}

.site-footer p {
    margin: 0 0 10px;
}

.site-footer a {
    color: var(--ace-white);
    text-decoration: none;
    transition: color 0.25s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--ace-orange);
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer__bottom p {
    width: min(
        calc(100% - 64px),
        var(--page-width)
    );
    margin: 0 auto;
    padding: 18px 0 22px;
    font-size: 12px;
    opacity: 0.78;
}


/* INTERNAL PAGE BASELINE */

body:not(.home-page) .site-header {
    position: relative;
    background: var(--ace-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body:not(.home-page) .main-nav a {
    color: var(--ace-black);
}

body:not(.home-page) .main-nav a:hover,
body:not(.home-page) .main-nav a:focus-visible {
    color: var(--ace-orange);
}

body:not(.home-page) .nav-toggle span {
    background: var(--ace-black);
}

body:not(.home-page) main {
    min-height: 55vh;
}

body:not(.home-page) main > section,
body:not(.home-page) main > article {
    width: min(
        calc(100% - 64px),
        var(--page-width)
    );
    margin-inline: auto;
    padding-top: 64px;
    padding-bottom: 72px;
}

body:not(.home-page) main h1 {
    margin: 0 0 28px;
    font-size: 48px;
    line-height: 1.05;
    font-weight: 500;
}

body:not(.home-page) main h2 {
    font-size: 30px;
    line-height: 1.15;
}

body:not(.home-page) main p {
    max-width: 900px;
}


/* FORMS */

form {
    max-width: 720px;
}

form p {
    margin: 0 0 22px;
}

form label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #dfdfdf;
    border-radius: 4px;
    background: var(--ace-white);
    color: var(--ace-black);
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: 2px solid rgba(50, 59, 151, 0.20);
    border-color: var(--ace-blue);
}

form button[type="submit"] {
    min-height: 44px;
    padding: 10px 22px;
    border: 0;
    background: var(--ace-blue);
    color: var(--ace-white);
    cursor: pointer;
}

form button[type="submit"]:hover,
form button[type="submit"]:focus-visible {
    background: var(--ace-blue-dark);
}


/* RESPONSIVE CONTINUATION */

@media (max-width: 900px) {
    .world-section {
        padding-top: 54px;
    }

    .gallery-track {
        grid-auto-columns: calc(
            (100% - 12px) / 2
        );
    }

    .gallery-control--previous {
        left: -12px;
    }

    .gallery-control--next {
        right: -12px;
    }

    .site-footer__inner {
        width: min(
            calc(100% - 40px),
            var(--page-width)
        );
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }

    .site-footer__bottom p {
        width: min(
            calc(100% - 40px),
            var(--page-width)
        );
    }

    body:not(.home-page) main > section,
    body:not(.home-page) main > article {
        width: min(
            calc(100% - 40px),
            var(--page-width)
        );
    }
}

@media (max-width: 767px) {
    .world-section {
        padding: 48px 0 28px;
    }

    .world-section__copy {
        margin-top: 22px;
        font-size: 16px;
    }

    .gallery-section {
        padding: 8px 0 48px;
    }

    .gallery-track {
        grid-auto-columns: 88%;
        gap: 12px;
    }

    .gallery-control {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .gallery-control--previous {
        left: -8px;
    }

    .gallery-control--next {
        right: -8px;
    }

    .stories-section {
        padding: 48px 0;
    }

    .site-footer__inner {
        width: calc(100% - 32px);
        padding: 44px 0 34px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .site-footer__brand {
        grid-column: auto;
    }

    .site-footer__brand img {
        max-width: 190px;
    }

    .site-footer__bottom p {
        width: calc(100% - 32px);
    }

    body:not(.home-page) main > section,
    body:not(.home-page) main > article {
        width: calc(100% - 32px);
        padding-top: 44px;
        padding-bottom: 52px;
    }

    body:not(.home-page) main h1 {
        font-size: 34px;
    }
}


/* ==========================================================
   ACEJET BUILD 3A5 MOBILE NAV
   ========================================================== */

@media (max-width: 900px) {
    .main-nav.is-open {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 20px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    }

    .main-nav.is-open a {
        padding: 13px 4px;
        color: var(--ace-black);
        font-size: 14px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    }

    .main-nav.is-open a:last-child {
        border-bottom: 0;
    }

    .nav-toggle.is-open span {
        background: var(--ace-black);
    }

    .nav-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-toggle span {
        transition:
            transform 0.2s ease,
            opacity 0.2s ease,
            background-color 0.2s ease;
    }
}


/* ==========================================================
   ACEJET HANGAR JOURNALS
   EDITORIAL LISTING
   ========================================================== */

.journal-index {
    width: min(
        calc(100% - 64px),
        var(--page-width)
    ) !important;
    padding-top: 58px !important;
    padding-bottom: 80px !important;
}

.journal-index__header {
    margin-bottom: 42px;
}

.journal-index__header h1 {
    margin: 0;
    font-size: 48px;
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 54px 28px;
}

.journal-card {
    min-width: 0;
}

.journal-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(300px, 0.75fr);
    gap: 38px;
    align-items: center;
}

.journal-card__image-link {
    display: block;
    overflow: hidden;
    background: var(--ace-grey);
    text-decoration: none;
}

.journal-card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.journal-card:not(.journal-card--featured)
.journal-card__image {
    aspect-ratio: 4 / 3;
}

.journal-card__image-link:hover
.journal-card__image {
    transform: scale(1.02);
}

.journal-card__content {
    padding-top: 18px;
}

.journal-card--featured
.journal-card__content {
    padding-top: 0;
}

.journal-card__date {
    margin: 0 0 12px;
    color: #666666;
    font-size: 12px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.journal-card__title {
    margin: 0;
    font-size: 27px !important;
    line-height: 1.12 !important;
    font-weight: 500;
    letter-spacing: -0.015em;
}

.journal-card--featured
.journal-card__title {
    font-size: 38px !important;
}

.journal-card__title a {
    color: inherit;
    text-decoration: none;
}

.journal-card__title a:hover,
.journal-card__title a:focus-visible {
    color: var(--ace-blue);
}

.journal-card__excerpt {
    margin: 18px 0 0 !important;
    font-size: 15px;
    line-height: 1.55;
}

.journal-card__read-more {
    display: inline-block;
    margin-top: 20px;
    color: var(--ace-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.journal-card__read-more:hover,
.journal-card__read-more:focus-visible {
    color: var(--ace-orange);
}

@media (max-width: 900px) {
    .journal-index {
        width: min(
            calc(100% - 40px),
            var(--page-width)
        ) !important;
    }

    .journal-card--featured {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .journal-card--featured
    .journal-card__content {
        padding-top: 18px;
    }

    .journal-card--featured
    .journal-card__title {
        font-size: 31px !important;
    }
}

@media (max-width: 767px) {
    .journal-index {
        width: calc(100% - 32px) !important;
        padding-top: 42px !important;
        padding-bottom: 56px !important;
    }

    .journal-index__header {
        margin-bottom: 30px;
    }

    .journal-index__header h1 {
        font-size: 36px;
    }

    .journal-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .journal-card--featured {
        grid-column: auto;
    }

    .journal-card__title,
    .journal-card--featured
    .journal-card__title {
        font-size: 25px !important;
    }

    .journal-card__image,
    .journal-card:not(.journal-card--featured)
    .journal-card__image {
        aspect-ratio: 4 / 3;
    }
}


/* ==========================================================
   ACEJET FIND US PAGE
   ========================================================== */

.find-us-page {
    width: min(
        calc(100% - 64px),
        var(--page-width)
    ) !important;
    padding-top: 64px !important;
    padding-bottom: 82px !important;
}

.find-us-page__header {
    margin-bottom: 48px;
}

.find-us-page__header h1 {
    margin: 0;
    font-size: clamp(44px, 5vw, 72px);
    line-height: 0.98;
    font-weight: 300;
    letter-spacing: -0.035em;
}

.find-us-page__header strong {
    font-weight: 700;
}

.find-us-page__grid {
    display: grid;
    grid-template-columns:
        minmax(260px, 0.72fr)
        minmax(0, 1.65fr);
    gap: 54px;
    align-items: stretch;
}

.find-us-page__details {
    padding: 38px 0;
}

.find-us-page__eyebrow {
    margin: 0 0 18px !important;
    color: var(--ace-orange);
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.find-us-page__details h2 {
    margin: 0 0 20px;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 500;
}

.find-us-page__details address {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    font-style: normal;
}

.find-us-page__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 28px;
}

.find-us-page__contact a {
    color: inherit;
    font-size: 17px;
    text-decoration: none;
}

.find-us-page__contact a:hover,
.find-us-page__contact a:focus-visible {
    color: var(--ace-blue);
}

.find-us-page__maps-link {
    display: inline-block;
    margin-top: 30px;
    padding: 13px 20px;
    color: var(--ace-white);
    background: var(--ace-blue);
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.find-us-page__maps-link:hover,
.find-us-page__maps-link:focus-visible {
    background: var(--ace-blue-dark);
    transform: translateY(-1px);
}

.find-us-page__map {
    min-height: 500px;
    background: var(--ace-grey);
}

.find-us-page__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: 0;
}

@media (max-width: 900px) {
    .find-us-page {
        width: min(
            calc(100% - 40px),
            var(--page-width)
        ) !important;
    }

    .find-us-page__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .find-us-page__details {
        padding: 0;
    }
}

@media (max-width: 767px) {
    .find-us-page {
        width: calc(100% - 32px) !important;
        padding-top: 42px !important;
        padding-bottom: 56px !important;
    }

    .find-us-page__header {
        margin-bottom: 36px;
    }

    .find-us-page__header h1 {
        font-size: 42px;
    }

    .find-us-page__details h2 {
        font-size: 28px;
    }

    .find-us-page__map,
    .find-us-page__map iframe {
        min-height: 420px;
    }
}


/* ==========================================================
   ACEJET FIND US VISUAL FIX 1
   CONTACT STACK / ADDRESS
   ========================================================== */

.find-us-page .find-us-page__details address {
    display: block;
    margin: 0;
    font-style: normal !important;
    font-size: 18px;
    line-height: 1.55;
}

.find-us-page .find-us-page__contact {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-top: 28px;
}

.find-us-page .find-us-page__contact a {
    display: block !important;
    width: fit-content;
    margin: 0 !important;
    color: inherit;
    font-size: 17px;
    line-height: 1.4;
    text-decoration: none;
}

.find-us-page .find-us-page__maps-link {
    display: inline-block !important;
    margin-top: 30px !important;
    text-decoration: none !important;
}
