/* ====== Header ====== */
:root {
    --makani-header-offset: 143px;
}

.makani-header {
    --accent: #0f3d3a;
    --gold: rgba(200, 164, 90, 1);
    background: #fff;
}

.top-rail {
    height: 43px;
    background: var(--accent);
}

.navbar {
    padding-block: .45rem;
    border-bottom: 2px solid rgba(15, 61, 58, .18);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
    height: 100px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    color: #1c1c1c;
    text-decoration: none;
}

.navbar-brand .logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.brand-text {

    font-weight: 400;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;

}

.navbar-nav {
    gap: 1rem;
}

.nav-link {
    color: #2b2b2b;
    padding: .4rem .75rem;
    border-radius: .5rem;
    transition: .15s ease;
    font-weight: 400;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;


}

.nav-link:hover {
    color: #fff !important;
    background: var(--accent);
    angle: 0deg;
    opacity: 1;
    border-radius: 4px;
    padding: 10px;
    gap: 10px;
}

.nav-link.active {
    background: var(--accent);
    color: #fff !important;
    angle: 0deg;
    opacity: 1;
    border-radius: 4px;
    padding: 10px;
    gap: 10px;

}

.btn-cta {
    background: var(--gold);
    color: #fff;
    font-weight: 700;
    border: 1px solid transparent;
    padding: .5rem 1rem;
    border-radius: .5rem;
}


@media (max-width: 991.98px) {
    :root {
        --makani-header-offset: 107px;
    }

    .navbar-collapse {
        padding: .75rem 0;
        border-top: 1px solid rgba(15, 61, 58, .12);
        margin-top: .5rem;
        background: #ffffff;
    }

    .navbar-nav {
        gap: .25rem;
    }

    .nav-link {
        padding: .6rem .75rem;
    }
}

.makani-header.sticky-top {
    z-index: 1050;
}

.makani-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1080;
    width: 100%;
}

html {
    scroll-behavior: smooth;
}


.makani-header {
    position: relative;
    z-index: 1100;
}

.makani-header .navbar {
    min-height: 100px;
    height: auto;
}

@media (max-width: 991.98px) {
    .makani-header .navbar {
        position: relative;
        min-height: 64px;
    }

    #mainNav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid rgba(15, 61, 58, .12);
        box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
        display: none;
        z-index: 1090;
    }

    #mainNav.collapsing {
        height: auto !important;
        transition: none !important;
    }

    #mainNav.show {
        display: block;
    }

    .navbar-nav {
        padding: .5rem;
    }

    body.nav-open {
        overflow: hidden;
    }

    body.nav-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .35);
        z-index: 1079;
    }
}

.cta-pair {
    gap: .75rem;
}


.btn-cta {

    font-weight: 700;
    border: 1px solid transparent;
    padding: .5rem 1rem;
    border-radius: .5rem;
}

.mobile-cta-row {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.mobile-cta-row .btn-cta {
    flex: 1 1 auto;
    text-align: center;
}

@media (max-width: 991.98px) {
    .cta-pair {
        display: none !important;
    }

    .mobile-cta-row {
        display: flex;
    }
}

/* Makani logo refresh */
.navbar-brand.makani-brand {
    gap: .7rem;
}

.makani-brand__mark {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 61, 58, .12);
}

.makani-brand__mark img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.makani-brand__copy {
    display: flex;
    flex-direction: column;
    gap: .12rem;
    line-height: 1;
}

.makani-brand__name {
    position: relative;
    display: inline-block;
    color: #505151;
    font-weight: 900;
    font-size: 29px;
    letter-spacing: 0;
    line-height: 1.3;
    padding-bottom: 6px;
}

.makani-brand__name::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 72%;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #c6a15b, #ead59e 48%, #c6a15b);
}

.makani-brand__tagline {
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}


@media (max-width: 991.98px) {
    .makani-brand__mark {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .makani-brand__mark img {
        width: 34px;
        height: 34px;
    }

    .makani-brand__name {
        font-size: 24px;
    }

    .makani-brand__tagline {
        display: none;
    }
}

/* Professional language selector without flags */
.language-dropdown {
    position: relative;
}

.language-toggle {
    min-height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(15, 61, 58, .18);
    border-radius: 8px;
    background: #ffffff;
    color: var(--accent);
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 22px rgba(15, 61, 58, .1);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.language-toggle:hover,
.language-toggle[aria-expanded="true"] {
    border-color: rgba(15, 61, 58, .36);
    box-shadow: 0 12px 28px rgba(15, 61, 58, .15);
    transform: translateY(-1px);
}

.language-toggle__label {
    font-size: 14px;
    white-space: nowrap;
}

.language-toggle__code {
    min-width: 30px;
    min-height: 26px;
    padding-inline: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(15, 61, 58, .1);
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

.language-menu {
    min-width: 172px;
    padding: 8px;
    border: 1px solid rgba(15, 61, 58, .12);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(15, 61, 58, .14);
}

.language-menu__item {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 6px;
    color: #123b36;
    font-weight: 700;
}

.language-menu__item.active,
.language-menu__item:active,
.language-menu__item:hover {
    background: rgba(15, 61, 58, .1);
    color: var(--accent);
}

@media (max-width: 991.98px) {
    .language-dropdown {
        flex: 0 0 auto;
    }

    .language-toggle {
        min-width: 118px;
    }
}
