
/* ==========================================
   AS PROJECT STUDIO
   PREMIUM HEADER — TYPOGRAPHY REFINED
========================================== */

.as-site-header {
    --header-navy: #101d35;
    --header-teal: #087f8c;
    --header-text: #334155;

    position: relative;
    z-index: 1000;
    width: 100%;

    background: #ffffff;
    border-bottom: 1px solid #e8edf2;

    font-family: 'Inter', Arial, sans-serif;
}

.as-site-header *,
.as-site-header *::before,
.as-site-header *::after {
    box-sizing: border-box;
}

/* HEADER CONTAINER */

.as-header-inner {
    width: min(1440px, calc(100% - 64px));
    min-height: 90px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

/* CUSTOM COMPANY LOGO */

.as-header-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.as-header-logo img {
    display: block;
    width: auto;
    max-width: 225px;
    height: 58px;
    object-fit: contain;
    object-position: left center;
}

/* DESKTOP NAVIGATION */

.as-header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 1.5vw, 26px);
    margin-left: auto;
}

.as-header-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;

    padding: 15px 0;

    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;

    color: var(--header-text);
    text-decoration: none;
    white-space: nowrap;

    transition: color .2s ease;
}

.as-header-nav a:hover,
.as-header-nav a[aria-current="page"] {
    color: var(--header-teal);
}

.as-header-nav a::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;

    width: 0;
    height: 2px;

    background: var(--header-teal);
    border-radius: 2px;

    transition: width .2s ease;
}

.as-header-nav a:hover::after,
.as-header-nav a[aria-current="page"]::after {
    width: 100%;
}

/* DISCOVERY CALL BUTTON */

.as-header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 47px;
    padding: 13px 18px;

    background: var(--header-navy);
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;

    text-decoration: none;
    white-space: nowrap;

    border-radius: 7px;
    flex-shrink: 0;

    transition: background .2s ease, transform .2s ease;
}

.as-header-button:hover {
    background: var(--header-teal);
    color: #ffffff;
    transform: translateY(-2px);
}

/* MOBILE MENU */

.as-mobile-menu {
    display: none;
    position: relative;
    margin-left: auto;
}

.as-mobile-menu > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 44px;
    padding: 11px 13px;

    border: 1px solid #dae3eb;
    border-radius: 7px;

    background: #ffffff;
    color: var(--header-navy);

    font-family: inherit;
    font-size: 15px;
    font-weight: 500;

    cursor: pointer;
    list-style: none;
}

.as-mobile-menu > summary::-webkit-details-marker {
    display: none;
}

.as-menu-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.as-menu-lines span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--header-navy);
    border-radius: 2px;
}

.as-menu-close {
    display: none;
    font-size: 25px;
    line-height: 20px;
}

.as-mobile-menu[open] .as-menu-lines {
    display: none;
}

.as-mobile-menu[open] .as-menu-close {
    display: inline;
}

/* MOBILE DROPDOWN */

.as-mobile-links {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;

    width: min(350px, calc(100vw - 32px));
    padding: 12px;

    display: flex;
    flex-direction: column;
    gap: 3px;

    background: #ffffff;
    border: 1px solid #e4eaf0;
    border-radius: 12px;

    box-shadow: 0 20px 50px rgba(16,29,53,.15);
}

.as-mobile-links a {
    display: block;
    padding: 14px 15px;

    color: var(--header-text);

    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;

    text-decoration: none;
    border-radius: 6px;
}

.as-mobile-links a:hover {
    background: #f0f6f7;
    color: var(--header-teal);
}

.as-mobile-links .as-mobile-cta {
    margin-top: 8px;
    background: var(--header-teal);
    color: #ffffff;

    font-weight: 600;
    text-align: center;
}

.as-mobile-links .as-mobile-cta:hover {
    background: #066a74;
    color: #ffffff;
}

/* ACCESSIBILITY */

.as-site-header a:focus-visible,
.as-site-header summary:focus-visible {
    outline: 3px solid var(--header-teal);
    outline-offset: 3px;
}

/* TABLET */

@media (max-width: 1150px) {

    .as-header-inner {
        width: calc(100% - 48px);
        min-height: 78px;
    }

    .as-header-nav,
    .as-header-button {
        display: none;
    }

    .as-mobile-menu {
        display: block;
    }
}

/* MOBILE */

@media (max-width: 600px) {

    .as-header-inner {
        width: calc(100% - 32px);
        min-height: 72px;
    }

    .as-header-logo img {
        max-width: 175px;
        height: 49px;
    }
}

/* SMALL PHONES */

@media (max-width: 360px) {

    .as-header-logo img {
        max-width: 150px;
    }

    .as-menu-text {
        display: none;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .as-site-header *,
    .as-site-header *::before,
    .as-site-header *::after {
        transition: none !important;
    }
}
