/* =========================================================
   MILLIONS OF SOLUTIONS
   FINAL PUBLIC HEADER + FOOTER
========================================================= */

:root {
    --mos-nav-navy: #07182d;
    --mos-nav-navy-2: #0b2542;
    --mos-nav-gold: #d6a94f;
    --mos-nav-gold-2: #f0cf87;
    --mos-nav-border: rgba(255,255,255,.09);
}

/* Prevent anchor targets from being hidden behind sticky header. */
html {
    scroll-padding-top: 90px;
}

/* =========================================================
   HEADER
========================================================= */

.mos-public-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    color: #fff;
    background: rgba(6,21,41,.94);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition:
        background .2s ease,
        box-shadow .2s ease;
}

.mos-public-header.mos-scrolled {
    background: rgba(6,21,41,.985);
    box-shadow: 0 14px 38px rgba(0,0,0,.15);
}

.mos-header-shell {
    width: min(1240px, calc(100% - 40px));
    min-height: 78px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr auto;
    align-items: center;
    gap: 28px;
}

.mos-header-brand,
.mos-footer-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.mos-header-logo {
    display: block;
    width: 218px;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
}

.mos-header-brand-fallback,
.mos-footer-brand-fallback {
    display: none;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.mos-header-brand-fallback strong,
.mos-footer-brand-fallback strong {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(214,169,79,.5);
    border-radius: 10px;
    color: var(--mos-nav-gold);
    font-family: Georgia,serif;
}

.mos-header-brand-fallback span,
.mos-footer-brand-fallback span {
    font-size: 12px;
    font-weight: 800;
}

/* DESKTOP NAV */

.mos-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.mos-nav-link {
    position: relative;
    display: inline-flex;
    height: 44px;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    color: rgba(255,255,255,.74);
    background: transparent;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: .18s ease;
}

.mos-nav-link:hover,
.mos-nav-link.is-active,
.mos-nav-dropdown.is-active > .mos-nav-link {
    color: #fff;
    background: rgba(255,255,255,.055);
}

.mos-nav-link.is-active::after,
.mos-nav-dropdown.is-active > .mos-nav-link::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 5px;
    left: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--mos-nav-gold);
}

.mos-dropdown-toggle svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .18s ease;
}

.mos-nav-dropdown {
    position: relative;
}

.mos-nav-dropdown:hover .mos-dropdown-toggle svg,
.mos-nav-dropdown.mos-open .mos-dropdown-toggle svg {
    transform: rotate(180deg);
}

.mos-services-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    width: 385px;
    padding: 10px;
    transform: translate(-50%,10px);
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 17px;
    background:
        radial-gradient(circle at 100% 0,rgba(214,169,79,.08),transparent 28%),
        rgba(7,24,45,.99);
    box-shadow: 0 24px 65px rgba(0,0,0,.28);
    transition:
        opacity .18s ease,
        transform .18s ease;
}

.mos-services-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    right: 0;
    left: 0;
    height: 12px;
}

.mos-nav-dropdown:hover .mos-services-menu,
.mos-nav-dropdown.mos-open .mos-services-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%,0);
}

.mos-services-menu > a {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 11px;
    color: #fff;
    text-decoration: none;
    transition: .18s ease;
}

.mos-services-menu > a:hover,
.mos-services-menu > a.is-active {
    background: rgba(255,255,255,.06);
}

.mos-menu-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 12px;
    color: var(--mos-nav-gold);
    background: rgba(214,169,79,.09);
}

.mos-menu-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mos-services-menu strong,
.mos-services-menu small {
    display: block;
}

.mos-services-menu strong {
    color: #fff;
    font-size: 11px;
}

.mos-services-menu small {
    margin-top: 4px;
    color: rgba(255,255,255,.48);
    font-size: 8px;
    line-height: 1.5;
}

/* CTA / MOBILE BUTTON */

.mos-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.mos-header-cta {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 17px;
    border-radius: 10px;
    color: #07182d;
    background: linear-gradient(135deg,var(--mos-nav-gold-2),var(--mos-nav-gold));
    box-shadow: 0 10px 28px rgba(214,169,79,.13);
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: .18s ease;
}

.mos-header-cta:hover {
    transform: translateY(-1px);
    color: #07182d;
    box-shadow: 0 14px 30px rgba(214,169,79,.2);
}

.mos-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    align-content: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    color: #fff;
    background: rgba(255,255,255,.045);
    cursor: pointer;
}

.mos-mobile-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: .2s ease;
}

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

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

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

/* MOBILE MENU */

.mos-mobile-menu {
    display: none;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,.06);
    background: #07182d;
}

.mos-mobile-menu.mos-open {
    display: block;
}

.mos-mobile-menu-inner {
    width: min(100% - 28px,700px);
    margin: 0 auto;
    padding: 13px 0 22px;
}

.mos-mobile-menu-inner > a,
.mos-mobile-services-toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    color: rgba(255,255,255,.77);
    background: transparent;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    text-align: left;
}

.mos-mobile-menu-inner > a.is-active {
    color: var(--mos-nav-gold);
}

.mos-mobile-services-toggle {
    cursor: pointer;
}

.mos-mobile-services-toggle span {
    color: var(--mos-nav-gold);
    font-size: 18px;
    font-weight: 400;
    transition: transform .2s ease;
}

.mos-mobile-services-toggle.mos-open span {
    transform: rotate(45deg);
}

.mos-mobile-services {
    display: none;
    padding: 6px 0 8px 16px;
}

.mos-mobile-services.mos-open {
    display: grid;
}

.mos-mobile-services a {
    padding: 11px 12px;
    color: rgba(255,255,255,.56);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.mos-mobile-services a:hover {
    color: var(--mos-nav-gold);
}

.mos-mobile-menu-inner > a.mos-mobile-cta {
    min-height: 48px;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    border: 0;
    border-radius: 10px;
    color: #07182d;
    background: linear-gradient(135deg,var(--mos-nav-gold-2),var(--mos-nav-gold));
}

/* =========================================================
   FOOTER
========================================================= */

.mos-public-footer {
    position: relative;
    color: #fff;
    background:
        radial-gradient(circle at 80% 10%,rgba(47,120,223,.10),transparent 27%),
        #051426;
}

.mos-footer-accent {
    height: 3px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(214,169,79,.35) 15%,
            var(--mos-nav-gold) 50%,
            rgba(214,169,79,.35) 85%,
            transparent
        );
}

.mos-footer-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.mos-footer-main {
    display: grid;
    grid-template-columns: 1.45fr .72fr .9fr .95fr;
    gap: 52px;
    padding: 72px 0 58px;
}

.mos-footer-logo {
    display: block;
    width: 225px;
    max-height: 70px;
    object-fit: contain;
    object-position: left center;
}

.mos-footer-brand > p {
    max-width: 390px;
    margin: 21px 0 24px;
    color: rgba(255,255,255,.54);
    font-size: 11px;
    line-height: 1.8;
}

.mos-footer-email {
    display: inline-grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
}

.mos-footer-email-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(214,169,79,.25);
    border-radius: 11px;
    color: var(--mos-nav-gold);
    background: rgba(214,169,79,.06);
}

.mos-footer-email-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mos-footer-email small,
.mos-footer-email strong {
    display: block;
}

.mos-footer-email small {
    color: var(--mos-nav-gold);
    font-size: 6px;
    font-weight: 900;
    letter-spacing: .13em;
}

.mos-footer-email strong {
    margin-top: 4px;
    color: rgba(255,255,255,.8);
    font-size: 10px;
}

.mos-footer-title {
    display: block;
    margin-bottom: 19px;
    color: var(--mos-nav-gold);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .16em;
}

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

.mos-footer-column a {
    padding: 7px 0;
    color: rgba(255,255,255,.58);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: .18s ease;
}

.mos-footer-column a:hover {
    color: #fff;
    transform: translateX(3px);
}

.mos-footer-project h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.25;
}

.mos-footer-project p {
    margin: 10px 0 18px;
    color: rgba(255,255,255,.52);
    font-size: 10px;
    line-height: 1.65;
}

.mos-footer-project-btn {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 15px;
    border: 1px solid rgba(214,169,79,.35);
    border-radius: 10px;
    color: var(--mos-nav-gold);
    background: rgba(214,169,79,.05);
    font-size: 9px;
    font-weight: 900;
    text-decoration: none;
    transition: .18s ease;
}

.mos-footer-project-btn:hover {
    color: #07182d;
    background: var(--mos-nav-gold);
}

.mos-footer-bottom {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,.07);
    color: rgba(255,255,255,.39);
    font-size: 8px;
}

.mos-footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.mos-footer-bottom-links a {
    color: rgba(255,255,255,.45);
    text-decoration: none;
}

.mos-footer-bottom-links a:hover {
    color: var(--mos-nav-gold);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1120px) {
    .mos-header-shell {
        grid-template-columns: 210px 1fr auto;
        gap: 15px;
    }

    .mos-header-logo {
        width: 190px;
    }

    .mos-nav-link {
        padding: 0 8px;
        font-size: 11px;
    }

    .mos-footer-main {
        grid-template-columns: 1.2fr .7fr .9fr;
    }

    .mos-footer-project {
        grid-column: 1 / -1;
        max-width: 520px;
    }
}

@media (max-width: 930px) {
    .mos-header-shell {
        grid-template-columns: 1fr auto;
        min-height: 72px;
    }

    .mos-desktop-nav {
        display: none;
    }

    .mos-header-cta {
        display: none;
    }

    .mos-mobile-toggle {
        display: grid;
    }

    .mos-header-logo {
        width: 205px;
    }

    .mos-footer-main {
        grid-template-columns: 1.2fr 1fr;
        gap: 42px;
    }

    .mos-footer-project {
        grid-column: auto;
    }
}

@media (max-width: 620px) {
    .mos-header-shell,
    .mos-footer-shell {
        width: min(100% - 28px,1180px);
    }

    .mos-header-logo {
        width: 184px;
    }

    .mos-footer-main {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 55px 0 45px;
    }

    .mos-footer-column {
        padding-top: 3px;
    }

    .mos-footer-project {
        max-width: none;
    }

    .mos-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 20px 0;
    }

    .mos-footer-bottom-links {
        justify-content: flex-start;
    }
}
