.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    overflow: visible;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.header-container.loaded {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.offer-bar[hidden] {
    display: none !important;
}

.offer-bar {
    background: #004370;
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;

    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.offer-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 300px;
}

.offer-tag {
    background: #b90101;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.offer-text {
    flex: 1;
    font-weight: 500;
}

.countdown {
    display: flex;
    gap: 5px;
    align-items: center;
}

.time-unit {
    background: #b90101;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    min-width: 35px;
    text-align: center;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 7px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;
    flex: 0 0 28px;

    border: 1px solid #6b7280;
    border-radius: 50%;

    background: #004370;
    color: #ffffff;

    font-size: 11px;
    text-decoration: none;
    opacity: 1;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.social-icon:hover {
    border-color: #ffffff;
    background: #00437000;
    color: #ffffff;
}

.close-offer {
    display: none;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;
    padding: 0;

    border: 2px solid #ccccccb2;
    border-radius: 50%;

    background: #00000000;
    color: #ffffff;

    font-size: 11px;
    cursor: pointer;
    opacity: 1;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.close-offer:hover {
    border-color: #ffffff;
    background: #00000000;
    transform: rotate(90deg);
}

.mobile-contact-offer {
    display: none;
    align-items: center;
    gap: 8px;
    margin-right: auto;
    font-size: 13px;
}

.mobile-contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-number {
    font-weight: 600;
}

.desktop-social {
    display: flex;
}

.main-header {
    padding: 15px 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 30px;
    width: auto;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.search-input {
    display: block;
    width: 100%;
    height: 48px;

    padding: 0 58px 0 20px;

    border: 2px solid #d7dde3;
    border-radius: 999px;

    outline: none;
    background: #ffffff;
    color: #111827;

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.search-input::placeholder {
    color: #64748b;
    opacity: 1;
}

.search-input:focus {
    border-color: #111111;

    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.06);
}

.search-submit {
    position: absolute;
    top: 50%;
    right: 5px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    padding: 0;

    border: 1px solid #5f6670;
    border-radius: 50%;

    background: #004370;
    color: #ffffff;

    font-size: 14px;
    cursor: pointer;

    transform: translateY(-50%);

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;
    flex: 0 0 36px;

    border: 1px solid #002741;
    border-radius: 50%;

    background: #004370;
    color: #ffffff;

    font-size: 12px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.desktop-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 18px 20px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: block;
    transition: color 0.3s ease;
    position: relative;
    background: transparent !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: calc(100% - 40px);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-icon {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    border: 2px solid #004370;
    border-radius: 50%;

    background: #004370;
    color: #ffffff;

    font-size: 13px;
    text-decoration: none;
    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-icon .badge {
    top: -5px;
    right: -5px;

    min-width: 17px;
    height: 17px;
    padding: 0 4px;

    border: 2px solid #ffffff;
    border-radius: 999px;

    background: var(--accent, #009b5b);
    color: #ffffff;

    font-size: 9px;
    line-height: 1;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: white;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.get-quote-btn {
    background: #007a48;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.get-quote-btn:hover {
    background: linear-gradient(135deg, #00824c, #00693d);
}

.profile-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #007a48;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.mobile-header {
    display: none;
    background: white;
    padding: 10px 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 98%;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 8px 8px 0 0;
}

.mobile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mobile-logo-img {
    height: 25px;
    width: auto;
}

.mobile-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mobile-get-quote-btn {
    background: linear-gradient(135deg, var(--accent), #007a48);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 10px 0;
    z-index: 1000;
}

.nav-items {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--gray);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

.nav-item-mobile.active {
    color: var(--primary);
}

.nav-icon-mobile {
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: background 0.2s;
}

.nav-item-mobile.active .nav-icon-mobile {
    background: rgba(0, 67, 112, 0.1);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    backdrop-filter: blur(5px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: white;
    z-index: 2001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-items {
    list-style: none;
    padding: 0;
}

.mobile-menu-item {
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-menu-item a {
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-item a:hover {
    color: var(--primary);
}

#header {
    position: relative;
    z-index: 1500;
}

.desktop-nav {
    position: relative;
}

.services-nav-item {
    position: static;
}

.services-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
}

.services-menu-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.services-mega-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    z-index: 100;

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transform: translateY(-12px) scale(0.985);
    transform-origin: top center;

    transition:
        opacity 0.25s ease,
        transform 0.3s ease,
        visibility 0.25s ease;
}
.services-mega-menu::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 16px;
}

.services-nav-item:hover .services-mega-menu,
.services-nav-item:focus-within .services-mega-menu,
.services-nav-item.is-open .services-mega-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.services-nav-item:hover .services-menu-arrow,
.services-nav-item:focus-within .services-menu-arrow,
.services-nav-item.is-open .services-menu-arrow {
    transform: rotate(180deg);
}

.services-mega-content {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(210px, 0.72fr);

    gap: 26px;
    width: 100%;
    padding: 20px;

    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;

    background: #ffffff;

}

.services-mega-feature {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.services-mega-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin-bottom: 18px;
    border-radius: 10px;
    background: #e2e8f0;
}

.services-mega-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition:
        transform 0.45s ease,
        filter 0.45s ease;
}

.services-mega-feature:hover
.services-mega-image img {
    transform: scale(1.06);
    filter: saturate(1.06);
}

.services-mega-feature-content h3 {
    margin: 0 0 9px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.services-mega-feature-content p {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.65;
}

.services-mega-feature-content span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--accent, #009b5b);
    font-size: 14px;
    font-weight: 700;
}

.services-mega-feature-content span i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.services-mega-feature:hover
.services-mega-feature-content span i {
    transform: translateX(4px);
}

.services-mega-links {
    padding: 9px 10px 9px 28px;
    border-left: 1px solid #dce3e9;
}

.services-mega-links h3 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
}

.services-mega-links a {
    display: block;
    padding: 10px 0;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.services-mega-links a:hover {
    color: var(--accent, #009b5b);
    transform: translateX(5px);
}

.services-nav-item.is-open
.services-menu-trigger {
    color: var(--primary, #004370);
}

.services-nav-item.is-open
.services-menu-trigger::after {
    width: calc(100% - 40px);
}

@media (max-width: 1100px) {
    .services-mega-content {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr)
            190px;
        gap: 18px;
    }

    .services-mega-image {
        height: 150px;
    }

    .services-mega-links {
        padding-left: 18px;
    }
}

@media (max-width: 820px) {
    .services-mega-menu {
        display: none;
    }
}

@media (max-width: 560px) {
    .search-container {
        padding: 5px;
    }

    .search-input {
        height: 40px;
        padding-left: 16px;
        font-size: 13px;
    }

    .search-submit {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}