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

.site-header {
    width: 100%;
    height: 78px;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999 !important;
    background: var(--color-white);
    border-bottom: 1px solid #eeeeee;
    margin: 0;
    padding: 0;
    transition: all 0.2s ease;
}

.header-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.header-container>a:first-child {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.header-container>a:first-child svg {
    display: block;
    width: 265px;
    height: 29px;
    max-width: 100%;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px 35px;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav>a {
    display: inline-flex;
    align-items: center;
    color: var(--body-text);
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    line-height: 100%;
    transition: color 0.2s ease;
}

.main-nav>a:hover {
    color: #000000;
}

.services-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.services-toggle {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #43535F;
    cursor: pointer;
    white-space: nowrap;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 100%;
}

.services-toggle:hover {
    color: var(--dark-text);
}

.services-dropdown .chevron {
    transition: all 0.2s ease;
}

.services-dropdown.active .chevron {
    transform: rotate(180deg);
}

.services-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    width: 280px;
    padding: 8px;
    background: var(--color-white);
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 9999999;
}

.services-dropdown.active .services-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.services-menu a {
    display: block;
    width: 100%;
    padding: 11px 14px;
    color: var(--body-text);
    text-decoration: none;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    transition: background 0.2s ease, color 0.2s ease;
}

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

.email {
    display: flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    color: var(--body-text);
}

.email:hover {
    color: var(--dark-text);
}

.quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 122px;
    padding: 0 20px;
    border: 0;
    border-radius: 9px;
    background: #17324D;
    color: #F4F1EA;
    text-decoration: none;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 13.5px;
    letter-spacing: 0.14px;
    transition: 0.2s ease;
}

.quote-btn:hover {
    background: var(--section-bg);
    color: var(--color-white);
}

.menu-toggle {
    width: 42px;
    height: 42px;
    padding: 0;
    margin: 0;
    border: 0;
    outline: 0;
    background: transparent;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 10px;
    background: #000000;
    transition: 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.main-nav .mobile-contact-info {
    display: none;
}

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

    .header-right .email {
        display: none;
    }
}

@media (max-width: 1100px) {

    .main-nav {
        gap: 18px;
    }

    .main-nav>a,
    .services-toggle {
        font-size: 13px;
    }

    .header-right {
        gap: 12px;
    }

    .quote-btn {
        min-width: 110px;
        padding: 0 16px;
    }

    .header-container>a:first-child svg {
        width: 220px;
        height: auto;
    }
}

@media (max-width: 1023.98px) {

    .site-header {
        height: 72px;
    }

    .header-container>a:first-child svg {
        width: 210px;
        height: auto;
    }

    .main-nav {
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 72px);
        overflow-x: hidden;
        overflow-y: auto;
        padding: 12px 20px 25px;
        background: var(--color-white);
        display: none;
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav>a {
        width: 100%;
        padding: 14px 0;
        color: var(--body-text);
        font-family: var(--font-primary);
        font-size: 14px;
        font-weight: 400;
        line-height: 100%;
    }

    .services-dropdown {
        width: 100%;
        display: block;
    }

    .services-toggle {
        width: 100%;
        min-height: 48px;
        padding: 14px 0;
        color: var(--body-text);
        font-size: 15px;
        font-weight: 400;
        line-height: 1.3;
    }

    .services-menu {
        position: static;
        width: 100%;
        display: none;
        padding: 0 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none !important;
    }

    .services-dropdown.active .services-menu {
        display: block;
    }

    .services-menu a {
        width: 100%;
    }

    .header-right {
        gap: 10px;
        margin-left: auto;
    }

    .header-right .quote-btn,
    .header-right .email {
        display: none;
    }

    .menu-toggle {
        display: flex;
        width: 20px;
        height: 20px;
    }

    .main-nav .mobile-contact-info {
        display: flex;
        flex-direction: column;
        gap: 18px;
        margin: 20px 0 0;
    }
}

@media (max-width: 768px) {

    .header-container {
        gap: 10px;
    }

    .header-container>a:first-child svg {
        width: 190px;
    }

    .quote-btn {
        min-width: 105px;
    }
}