* { margin: 0; padding: 0; box-sizing: border-box;font-family: 'Montserrat', sans-serif; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Top Bar */
.top-bar { background: #1a1a1a; color: #fff; font-size: 12px; padding: 6px 0; }
.top-bar-inner { display: flex; justify-content: flex-end; gap: 24px; }
.top-bar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s ease; }
.top-bar a svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.2s ease, color 0.2s ease; }
.top-bar a:hover { color: #e53935; }
.top-bar a:hover svg { transform: translateY(-1px); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid #e5e5e5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

/* Logo */
.logo img { height: 56px; width: auto; }

/* Nav */
.nav { display: flex; align-items: center; gap: 32px; }
.nav > a, .dropdown > button { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 500; color: #222; text-decoration: none; background: none; border: none; cursor: pointer; }
.nav > a:hover, .dropdown > button:hover { color: #e53935; }
.dropdown > button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.dropdown > button::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2.5px solid #8a8f99;
    border-bottom: 2.5px solid #8a8f99;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.dropdown:hover > button::after,
.dropdown.open > button::after {
    border-color: #D06015;
    transform: rotate(45deg) translateY(0);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background: #f1f1f1;
    border: 1px solid #dfdfdf;
    border-radius: 4px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    padding: 12px 10px;
    min-width: 225px;
    z-index: 100;
    backdrop-filter: none;
    animation: dropdownFade 0.22s ease;
}
.dropdown-menu::before {
    display: none;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 700;
    color: #3f4755;
    text-decoration: none;
    border-radius: 6px;
    letter-spacing: 0.1px;
    line-height: 1.28;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.dropdown-menu a:hover {
    color: #e53935;
    background: #e8e8e8;
}

/* Mega Menu */
.mega-menu {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    min-width: 920px;
    padding: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: #f3f3f3;
    border: 1px solid #e3e3e3;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.dropdown:hover .mega-menu { display: grid; }
.dropdown.open .mega-menu { display: grid; }
.mega-col {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 12px 14px;
}
.mega-col .country {
    font-size: 15px;
    font-weight: 700;
    color: #2e3643;
    margin: 10px 0 2px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}
.mega-col .country:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.mega-menu .mega-col a {
    font-size: 16px;
    color: #4a5260;
    padding: 6px 0 6px 18px;
    line-height: 1.3;
    position: relative;
    background: transparent;
    border-radius: 0;
}
.mega-menu .mega-col a::before {
    content: "\2022";
    position: absolute;
    left: 2px;
    top: 6px;
    color: #8b94a3;
}
.mega-menu .mega-col a:hover {
    color: #e53935;
    background: transparent;
}

/* Services Mega Menu */
.services-menu {
    width: min(max-content, calc(100vw - 40px));
    min-width: 0;
    max-width: calc(100vw - 40px);
    gap: 16px;
    padding: 14px 16px;
    background: #f5f5f5;
    border: 1px solid #dcdcdc;
    border-top: 2px solid #D16015;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.services-menu:not(.services-menu-locations):not(.services-menu-resources) .mega-col-solo-stack h4 + h4 {
    margin-top: 14px;
}

/* Desktop only: two side-by-side stacks + flex when hovered/open. Keeps .dropdown-menu { display:none } when closed; avoids overriding mobile .dropdown.open > .mega-menu { display:block }. */
@media (min-width: 993px) {
    .services-menu:not(.services-menu-locations):not(.services-menu-resources) {
        min-width: min(600px, calc(100vw - 40px));
    }

    .services-menu:not(.services-menu-locations):not(.services-menu-resources) .services-mega-column {
        display: flex;
        flex-direction: column;
        gap: 16px;
        flex: 1 1 0;
        min-width: 0;
        max-width: min(280px, 50%);
    }

    .services-menu:not(.services-menu-locations):not(.services-menu-resources) .mega-col {
        width: 100%;
        max-width: 280px;
    }

    .dropdown:hover .services-menu:not(.services-menu-locations):not(.services-menu-resources),
    .dropdown.open .services-menu:not(.services-menu-locations):not(.services-menu-resources) {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: center;
        gap: 20px;
        max-height: min(72vh, 520px);
        overflow-y: auto;
        overflow-x: hidden;
    }
}

.services-menu-locations {
    grid-template-columns: repeat(3, max-content);
    width: min(max-content, calc(100vw - 40px));
    min-width: 0;
    max-width: calc(100vw - 40px);
    align-items: start;
    gap: 14px;
}

.services-menu-locations .mega-col {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 10px 12px;
}

.services-menu-locations .mega-col h4 {
    color: #D06015;
    border-bottom: 1px solid #ededed;
}

.services-menu-resources {
    grid-template-columns: max-content;
    width: min(max-content, calc(100vw - 40px));
    min-width: 0;
    max-width: calc(100vw - 40px);
}

.services-menu .mega-col {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0 8px;
}

.services-menu .mega-col h4 a.sub-menu-title{
    margin: 0 0 10px;
    padding: 0 0 8px;
    border-bottom: 1px solid #dedede;
    color: #616161;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Solo-stack title pairs only (e.g. Country / Double Decker) — no divider under each title */
.services-menu .mega-col-solo-stack h4 a.sub-menu-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.services-menu-resources .mega-col h4 + h4 {
    margin-top: 8px;
}

.services-menu .mega-col a {
    display: block;
    padding: 6px 0;
    color: #555;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    border-radius: 0;
}

.services-menu .mega-col a::before {
    display: none;
}

.services-menu .mega-col a:hover {
    color: #D06015;
    background: transparent;
}

@keyframes dropdownFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (hover: none), (pointer: coarse) {
    .dropdown:hover .dropdown-menu,
    .dropdown:hover .mega-menu {
        display: none;
    }
}

@media (max-width: 992px) {
    .top-bar {
        display: none;
    }

    .header-inner {
        height: 64px;
        position: relative;
    }

    .logo img {
        height: 46px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border: 1px solid #e3e3e3;
        border-radius: 12px;
        background: #fff;
        color: #1f2633;
        font-size: 26px;
        line-height: 1;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .menu-overlay {
        display: none;
    }

    .nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        width: 100%;
        max-width: none;
        max-height: calc(100vh - 86px);
        background: #f7f7f8;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        overflow-y: auto;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    }

    .nav > a,
    .dropdown > button {
        width: 100%;
        text-align: left;
        padding: 12px 14px;
        font-size: 15px;
        font-weight: 500;
        color: #3b4250;
        border-bottom: 1px solid #e7e7ea;
        background: transparent;
        border-left: 0;
        border-right: 0;
        border-top: 0;
        border-radius: 0;
    }

    .dropdown > button {
        position: relative;
        padding-right: 28px;
    }

    /* Match desktop chevron (Unicode ▾ renders unevenly on Android) */
    .dropdown > button::after {
        content: "";
        position: absolute;
        right: 14px;
        top: 50%;
        width: 7px;
        height: 7px;
        border-right: 2px solid #8a8f99;
        border-bottom: 2px solid #8a8f99;
        transform: translateY(-50%) rotate(45deg);
        transition: transform 0.2s ease, border-color 0.2s ease;
    }

    .dropdown.open > button::after {
        transform: translateY(-50%) rotate(225deg);
        border-color: #D06015;
    }

    .dropdown {
        position: static;
    }

    .dropdown-menu,
    .mega-menu {
        display: none;
        position: static;
        min-width: 100%;
        width: 100%;
        transform: none;
        left: auto;
        top: auto;
        margin: 0 10px 10px;
        box-shadow: none;
        border-radius: 10px;
        padding: 8px;
        background: #fff;
        border: 1px solid #e5e7ec;
    }

    .mega-menu {
        grid-template-columns: 1fr;
        gap: 8px;
        min-width: 100%;
        border-radius: 10px;
    }

    .mega-col h4 {
        font-size: 15px;
    }

    .mega-col {
        border-radius: 8px;
        border: 1px solid #eceef2;
        padding: 10px 12px;
    }

    .services-menu {
        min-width: 100%;
        border-top: 1px solid #e5e7ec;
        border-radius: 10px;
        padding: 8px;
    }

    .services-menu-locations,
    .services-menu-resources {
        min-width: 100%;
        left: auto;
        transform: none;
    }

    .services-menu .mega-col {
        border: 1px solid #eceef2;
        border-radius: 8px;
        padding: 10px 12px;
    }

    .services-menu .mega-col h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .services-menu:not(.services-menu-locations):not(.services-menu-resources) .services-mega-column {
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: none;
        max-width: 100%;
    }

    .services-menu:not(.services-menu-locations):not(.services-menu-resources) .mega-col {
        max-width: 100%;
    }

    .dropdown.open > .dropdown-menu {
        display: block;
    }

    .dropdown.open > .mega-menu {
        display: block;
    }

    .dropdown-menu a,
    .mega-menu .mega-col a {
        font-size: 14px;
        color: #4a5260;
        padding: 8px 10px;
        border-radius: 6px;
    }

    .nav::-webkit-scrollbar {
        width: 8px;
    }

    .nav::-webkit-scrollbar-track {
        background: #efeff1;
        border-radius: 999px;
    }

    .nav::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #d3d6dd, #b9bec8);
        border-radius: 999px;
    }

    .nav::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #bcc2cd, #a8aeb9);
    }

    .nav {
        scrollbar-width: thin;
        scrollbar-color: #bcc2cd #efeff1;
    }

    body.menu-open .nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    body.menu-open .menu-toggle {
        font-size: 28px;
        line-height: 1;
    }
}

@media (min-width: 993px) {
    .menu-toggle,
    .menu-overlay {
        display: none;
    }
}
