:root {
    --header-height: 96px;
}

body {
    padding-top: var(--header-height);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e2e8f0;
    z-index: 100000;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease;
}

.site-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.site-header__logo {
    display: inline-flex;
    align-items: center;
}

.site-header__logo img {
    height: 34px;
    width: auto;
}

.site-header__toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.site-header__toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.site-header__toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #1e293b;
    border-radius: 999px;
}

.site-header__nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.site-header__list {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header__item {
    position: relative;
}

.site-header__link {
    color: #4f5b68;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 350;
    letter-spacing: 0.008em;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
}

.site-header__link:hover,
.site-header__link:focus {
    color: #1d4ed8;
    text-decoration: none;
}

.site-header__link:focus-visible {
    outline: none;
    text-decoration: underline;
}

.dropdown-arrow {
    font-size: 10px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.site-header__badge img {
    height: 6.2em;
    width: auto;
    display: block;
}

.site-header__cta {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-header__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
    color: #ffffff;
}

.site-header__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 99998;
}

.site-header--open + .site-header__backdrop {
    opacity: 1;
    pointer-events: auto;
}

body.site-header-no-scroll {
    overflow: hidden;
}

.dropdown {
    position: relative;
}

@media (min-width: 901px) {
    .mega-dropdown-menu {
        display: none;
        position: absolute;
        top: calc(100% + 18px);
        left: 50%;
        transform: translateX(-50%);
        background: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
        min-width: 560px;
        max-width: 760px;
        z-index: 1000;
        padding: 0;
    }

    .dropdown:hover .mega-dropdown-menu {
        display: block;
    }

    .dropdown:focus-within .mega-dropdown-menu {
        display: block;
    }
}

@media (max-width: 1280px) and (min-width: 901px) {
    .site-header__inner {
        padding: 0 24px;
    }

    .site-header__logo img {
        height: 32px;
    }

    .site-header__list {
        gap: 24px;
    }

    .site-header__link {
        font-size: 0.88rem;
    }

    .site-header__actions {
        gap: 16px;
        margin-left: 28px;
    }

    .site-header__badge img {
        height: 5.6em;
    }

    .site-header__cta {
        padding: 9px 22px;
        height: 36px;
    }
}

@media (max-width: 1024px) and (min-width: 901px) {
    .site-header__inner {
        padding: 0 20px;
    }

    .site-header__list {
        gap: 20px;
    }

    .site-header__link {
        font-size: 0.86rem;
    }

    .site-header__badge img {
        height: 5.2em;
    }
}

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

    body {
        padding-top: var(--header-height);
    }

    .site-header__inner {
        padding: 0 18px;
        height: var(--header-height);
        gap: 18px;
    }

    .site-header__toggle {
        display: inline-flex;
    }

    .site-header__nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
        opacity: 0;
        transform: translateY(-12px);
        transition: opacity 0.25s ease, transform 0.25s ease;
        display: block;
    }

    .site-header--open .site-header__nav {
        pointer-events: auto;
        opacity: 1;
        transform: translateY(0);
    }

    .site-header__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 28px 24px 32px;
        background: rgba(10, 19, 38, 0.96);
        min-height: 100%;
        overflow-y: auto;
    }

    .site-header__link {
        font-size: 1.05rem;
        color: #f7f9ff;
    }

    .site-header__actions {
        gap: 12px;
        margin-left: auto;
    }

    .site-header__badge {
        display: none;
    }

    .mega-dropdown-menu {
        display: none;
        position: static;
        transform: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        background: none;
        width: 100%;
        margin-top: 6px;
    }

    .dropdown.open-mobile .mega-dropdown-menu {
        display: block;
    }

    .mega-dropdown-content {
        flex-direction: column;
        gap: 16px;
        padding: 0;
        background: none;
    }

    .mega-dropdown-left,
    .mega-dropdown-right {
        border: none;
        padding: 0;
    }

    .mega-dropdown-left h3,
    .mega-dropdown-right h3 {
        color: #f8fafc;
    }

    .mega-dropdown-left p,
    .mega-dropdown-right a {
        color: rgba(231, 236, 255, 0.82);
    }

    .dropdown.open-mobile .dropdown-arrow {
        transform: rotate(180deg);
    }

    .site-header__badge,
    .site-header__cta {
        width: 100%;
    }
}

/* Mega dropdown styling */
.mega-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 0;
    z-index: 1000;
    min-width: 600px;
    max-width: 800px;
}

.mega-dropdown.open .mega-dropdown-menu {
    display: block;
}

.mega-dropdown-content {
    display: flex;
    padding: 30px;
    gap: 40px;
}

.mega-dropdown-left {
    flex: 1;
}

.mega-dropdown-left h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.mega-dropdown-left p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 300;
}

.mega-cta-btn {
    background: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.mega-cta-btn:hover {
    background: #3b82f6;
    color: white;
    text-decoration: none;
}

.mega-dropdown-right {
    flex: 1;
    border-left: 1px solid #e5e7eb;
    padding-left: 30px;
}

.mega-dropdown-right h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.expertise-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expertise-list li {
    margin-bottom: 8px;
}

.expertise-list a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
    display: block;
    padding: 4px 0;
}

.expertise-list a:hover {
    color: #1d4ed8;
    text-decoration: none;
}
