/* Header & Hero CTA Buttons */
.btn-contact,
.btn-primary-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: #ffffff;
    font-family: var(--font-secondary);
    font-size: 14.5px;
    font-weight: 600;
    padding: 10px 22px 10px 54px;
    border-radius: 999px;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s ease;
    box-shadow: 0 4px 12px rgba(207, 137, 41, 0.15);
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-contact .btn-icon,
.btn-primary-action .btn-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background-color: #ffffff;
    border-radius: 50%;
    color: var(--color-primary);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-contact .btn-icon svg,
.btn-primary-action .btn-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-contact:hover,
.btn-primary-action:hover {
    background-color: var(--color-secondary);
    /* Restored brand hover color */
    color: #ffffff;
    padding: 10px 54px 10px 22px;
    box-shadow: 0 4px 15px rgba(70, 44, 0, 0.2);
}

.btn-contact:hover .btn-icon,
.btn-primary-action:hover .btn-icon {
    left: calc(100% - 40px);
    transform: translateY(-50%);
    color: var(--color-secondary);
    /* Matches the brand hover color */
}

.btn-contact:hover .btn-icon svg,
.btn-primary-action:hover .btn-icon svg {
    transform: translateX(1px);
}

.btn-contact--ghost {
    background-color: transparent;
    color: var(--color-secondary);
    border-color: rgba(207, 137, 41, 0.65);
    box-shadow: none;
}

.btn-contact--ghost .btn-icon {
    background-color: #ffffff;
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(70, 44, 0, 0.08);
}

.btn-contact--ghost:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(207, 137, 41, 0.15);
}

.btn-contact--ghost:hover .btn-icon {
    color: var(--color-primary);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid rgba(70, 44, 0, 0.12);
    box-shadow: 0 8px 22px rgba(70, 44, 0, 0.08);
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Transparent header over homepage hero & inner page heroes with dark backgrounds */
body.has-transparent-header .site-header:not(.is-scrolled):not(.mobile-menu-active),
body:not(.has-solid-header):not(.error404):not(.page-template-page-who-we-are):not(.page-template-page-who-we-are-php):not(.page-template-page-career):not(.page-template-page-career-php):not(.page-template-template-contact):not(.page-template-template-contact-php) .site-header:not(.is-scrolled):not(.mobile-menu-active) {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
}

body.has-transparent-header .site-header:not(.is-scrolled):not(.mobile-menu-active) .primary-menu > .menu-item > a,
body:not(.has-solid-header):not(.error404):not(.page-template-page-who-we-are):not(.page-template-page-who-we-are-php):not(.page-template-page-career):not(.page-template-page-career-php):not(.page-template-template-contact):not(.page-template-template-contact-php) .site-header:not(.is-scrolled):not(.mobile-menu-active) .primary-menu > .menu-item > a {
    color: #ffffff;
}

body.has-transparent-header .site-header:not(.is-scrolled):not(.mobile-menu-active) .primary-menu > .menu-item > a:hover,
body:not(.has-solid-header):not(.error404):not(.page-template-page-who-we-are):not(.page-template-page-who-we-are-php):not(.page-template-page-career):not(.page-template-page-career-php):not(.page-template-template-contact):not(.page-template-template-contact-php) .site-header:not(.is-scrolled):not(.mobile-menu-active) .primary-menu > .menu-item > a:hover {
    color: #ffffff;
}

body.has-transparent-header .site-header:not(.is-scrolled):not(.mobile-menu-active) .primary-menu > .menu-item > a::after,
body:not(.has-solid-header):not(.error404):not(.page-template-page-who-we-are):not(.page-template-page-who-we-are-php):not(.page-template-page-career):not(.page-template-page-career-php):not(.page-template-template-contact):not(.page-template-template-contact-php) .site-header:not(.is-scrolled):not(.mobile-menu-active) .primary-menu > .menu-item > a::after {
    background-color: #ffffff;
}

body.has-transparent-header .site-header:not(.is-scrolled):not(.mobile-menu-active) .primary-menu > .menu-item > a:hover::after,
body.has-transparent-header .site-header:not(.is-scrolled):not(.mobile-menu-active) .primary-menu > .menu-item.current-menu-item > a::after,
body.has-transparent-header .site-header:not(.is-scrolled):not(.mobile-menu-active) .primary-menu > .menu-item.current_page_item > a::after,
body:not(.has-solid-header):not(.error404):not(.page-template-page-who-we-are):not(.page-template-page-who-we-are-php):not(.page-template-page-career):not(.page-template-page-career-php):not(.page-template-template-contact):not(.page-template-template-contact-php) .site-header:not(.is-scrolled):not(.mobile-menu-active) .primary-menu > .menu-item > a:hover::after,
body:not(.has-solid-header):not(.error404):not(.page-template-page-who-we-are):not(.page-template-page-who-we-are-php):not(.page-template-page-career):not(.page-template-page-career-php):not(.page-template-template-contact):not(.page-template-template-contact-php) .site-header:not(.is-scrolled):not(.mobile-menu-active) .primary-menu > .menu-item.current-menu-item > a::after,
body:not(.has-solid-header):not(.error404):not(.page-template-page-who-we-are):not(.page-template-page-who-we-are-php):not(.page-template-page-career):not(.page-template-page-career-php):not(.page-template-template-contact):not(.page-template-template-contact-php) .site-header:not(.is-scrolled):not(.mobile-menu-active) .primary-menu > .menu-item.current_page_item > a::after {
    background-color: var(--color-primary);
}

body.has-transparent-header .site-header:not(.is-scrolled):not(.mobile-menu-active) .primary-menu > .menu-item > a .arrow,
body:not(.has-solid-header):not(.error404):not(.page-template-page-who-we-are):not(.page-template-page-who-we-are-php):not(.page-template-page-career):not(.page-template-page-career-php):not(.page-template-template-contact):not(.page-template-template-contact-php) .site-header:not(.is-scrolled):not(.mobile-menu-active) .primary-menu > .menu-item > a .arrow {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    opacity: 0.95;
}

body.has-transparent-header .site-header:not(.is-scrolled):not(.mobile-menu-active) .language-switcher,
body:not(.has-solid-header):not(.error404):not(.page-template-page-who-we-are):not(.page-template-page-who-we-are-php):not(.page-template-page-career):not(.page-template-page-career-php):not(.page-template-template-contact):not(.page-template-template-contact-php) .site-header:not(.is-scrolled):not(.mobile-menu-active) .language-switcher {
    background-color: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.has-transparent-header .site-header:not(.is-scrolled):not(.mobile-menu-active) .switcher-pill,
body:not(.has-solid-header):not(.error404):not(.page-template-page-who-we-are):not(.page-template-page-who-we-are-php):not(.page-template-page-career):not(.page-template-page-career-php):not(.page-template-template-contact):not(.page-template-template-contact-php) .site-header:not(.is-scrolled):not(.mobile-menu-active) .switcher-pill {
    background-color: rgba(255, 255, 255, 0.92);
}

body.has-transparent-header .site-header:not(.is-scrolled):not(.mobile-menu-active) .lang-link,
body:not(.has-solid-header):not(.error404):not(.page-template-page-who-we-are):not(.page-template-page-who-we-are-php):not(.page-template-page-career):not(.page-template-page-career-php):not(.page-template-template-contact):not(.page-template-template-contact-php) .site-header:not(.is-scrolled):not(.mobile-menu-active) .lang-link {
    color: rgba(255, 255, 255, 0.88);
}

body.has-transparent-header .site-header:not(.is-scrolled):not(.mobile-menu-active) .lang-link.active,
body:not(.has-solid-header):not(.error404):not(.page-template-page-who-we-are):not(.page-template-page-who-we-are-php):not(.page-template-page-career):not(.page-template-page-career-php):not(.page-template-template-contact):not(.page-template-template-contact-php) .site-header:not(.is-scrolled):not(.mobile-menu-active) .lang-link.active {
    color: var(--color-secondary);
}

body.has-transparent-header .site-header:not(.is-scrolled):not(.mobile-menu-active) .btn-contact,
body:not(.has-solid-header):not(.error404):not(.page-template-page-who-we-are):not(.page-template-page-who-we-are-php):not(.page-template-page-career):not(.page-template-page-career-php):not(.page-template-template-contact):not(.page-template-template-contact-php) .site-header:not(.is-scrolled):not(.mobile-menu-active) .btn-contact {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: none;
}

body.has-transparent-header .site-header:not(.is-scrolled):not(.mobile-menu-active) .btn-contact .btn-icon,
body:not(.has-solid-header):not(.error404):not(.page-template-page-who-we-are):not(.page-template-page-who-we-are-php):not(.page-template-page-career):not(.page-template-page-career-php):not(.page-template-template-contact):not(.page-template-template-contact-php) .site-header:not(.is-scrolled):not(.mobile-menu-active) .btn-contact .btn-icon {
    background-color: #ffffff;
    color: var(--color-primary);
}

body.has-transparent-header .site-header:not(.is-scrolled):not(.mobile-menu-active) .btn-contact:hover,
body:not(.has-solid-header):not(.error404):not(.page-template-page-who-we-are):not(.page-template-page-who-we-are-php):not(.page-template-page-career):not(.page-template-page-career-php):not(.page-template-template-contact):not(.page-template-template-contact-php) .site-header:not(.is-scrolled):not(.mobile-menu-active) .btn-contact:hover {
    background-color: #ffffff;
    color: var(--color-secondary);
    border-color: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

body.has-transparent-header .site-header:not(.is-scrolled):not(.mobile-menu-active) .btn-contact:hover .btn-icon,
body:not(.has-solid-header):not(.error404):not(.page-template-page-who-we-are):not(.page-template-page-who-we-are-php):not(.page-template-page-career):not(.page-template-page-career-php):not(.page-template-template-contact):not(.page-template-template-contact-php) .site-header:not(.is-scrolled):not(.mobile-menu-active) .btn-contact:hover .btn-icon {
    background-color: var(--color-secondary);
    color: #ffffff;
}

body.has-transparent-header .site-header:not(.is-scrolled):not(.mobile-menu-active) .custom-logo,
body:not(.has-solid-header):not(.error404):not(.page-template-page-who-we-are):not(.page-template-page-who-we-are-php):not(.page-template-page-career):not(.page-template-page-career-php):not(.page-template-template-contact):not(.page-template-template-contact-php) .site-header:not(.is-scrolled):not(.mobile-menu-active) .custom-logo {
    filter: brightness(0) invert(1);
}

.header-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 14px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.site-logo {
    justify-self: start;
}

.main-navigation {
    justify-self: center;
}

.site-logo a {
    display: flex;
    align-items: center;
}

.custom-logo {
    width: 200px;
    height: auto;
    display: block;
}

.primary-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.primary-menu .menu-item {
    position: relative;
}

.primary-menu .menu-item a {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-charcoal);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
    position: relative;
    letter-spacing: 0.02em;
}

.primary-menu .menu-item a:hover {
    color: var(--color-charcoal);
}

.primary-menu>.menu-item>a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-charcoal);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.primary-menu>.menu-item>a:hover::after,
.primary-menu>.menu-item.current-menu-item>a::after,
.primary-menu>.menu-item.current_page_item>a::after {
    width: 100%;
    background-color: var(--color-primary);
}

.primary-menu>.menu-item.current-menu-item>a,
.primary-menu>.menu-item.current_page_item>a {
    font-weight: 700;
}

.primary-menu .menu-item a .arrow {
    display: inline-block;
    width: 15px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e1b18' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.primary-menu .menu-item:hover a .arrow {
    transform: rotate(180deg);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background-color: #ffffff;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(70, 44, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    border: 1px solid rgba(207, 137, 41, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.sub-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.primary-menu .menu-item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(2px);
}

.sub-menu .menu-item {
    width: 100%;
}

.sub-menu .menu-item a {
    padding: 10px 20px;
    margin: 2px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--color-secondary);
    display: block;
    opacity: 0.85;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sub-menu .menu-item a::after {
    display: none;
}

.sub-menu .menu-item a:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    padding-left: 24px;
    opacity: 1;
    box-shadow: none;
}

/* ========================================
   MEGA MENU STYLING
   ======================================== */
@media (min-width: 992px) {
    .header-container {
        position: relative;
        overflow: visible;
    }

    .main-navigation,
    .primary-menu,
    .menu-item-mega {
        overflow: visible;
    }

    .menu-item-mega {
        position: static !important;
    }

    .mega-menu {
        position: absolute;
        top: 100%;
        left: 2%;
        right: 2%;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
        z-index: 1001;
        padding: 12px 0 0;
        pointer-events: none;
        overflow: visible;
    }

    .mega-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 12px;
        background: transparent;
    }

    .primary-menu .menu-item-mega:hover > .mega-menu,
    .primary-menu .menu-item-mega:focus-within > .mega-menu,
    .primary-menu .menu-item-mega.is-mega-open > .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .mega-menu-container {
        display: block;
        width: 100%;
        background-color: #ffffff;
        border-radius: 20px;
        box-shadow: 0 24px 60px rgba(70, 44, 0, 0.14);
        border: 1px solid rgba(207, 137, 41, 0.1);
        overflow: hidden;
    }

    .mega-menu-mobile {
        display: none !important;
    }

    .mega-menu-desktop {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        text-align: left;
    }

    /* Reset global primary-menu link styles inside mega menu */
    .mega-menu a:not(.btn-primary-action):not(.btn-contact):not(.mega-menu-company-card),
    .primary-menu .menu-item-mega .mega-menu a:not(.btn-primary-action):not(.btn-contact):not(.mega-menu-company-card) {
        display: flex;
        align-items: stretch;
        gap: 0;
        padding: 0;
        margin: 0;
        font-size: inherit;
        font-weight: inherit;
        letter-spacing: normal;
        color: inherit;
        text-decoration: none;
        position: static;
    }

    .mega-menu a:not(.btn-primary-action):not(.btn-contact):not(.mega-menu-company-card)::after,
    .primary-menu .menu-item-mega .mega-menu a:not(.btn-primary-action):not(.btn-contact):not(.mega-menu-company-card)::after {
        display: none !important;
        content: none !important;
        width: 0 !important;
    }

    .mega-menu button {
        font: inherit;
        color: inherit;
        background: none;
        appearance: none;
        -webkit-appearance: none;
    }

    .mega-menu-sector-nav > li {
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .mega-menu-topbar {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 22px 28px 18px;
        border-bottom: 1px solid rgba(70, 44, 0, 0.08);
        flex-shrink: 0;
        box-sizing: border-box;
        width: 100%;
    }

    .mega-menu-search {
        position: relative;
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
    }

    .mega-menu-search i.fa-magnifying-glass {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--color-primary);
        font-size: 14px;
        pointer-events: none;
        line-height: 1;
        z-index: 1;
    }

    .mega-menu-search-input {
        width: 100%;
        height: 52px;
        border: 1px solid rgba(70, 44, 0, 0.12);
        border-radius: 999px;
        background: #f7f5f1;
        padding: 0 48px 0 46px;
        font-family: var(--font-secondary);
        font-size: 14.5px;
        color: var(--color-charcoal);
        outline: none;
        box-sizing: border-box;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    }

    .mega-menu-search-input::-webkit-search-cancel-button {
        display: none;
    }

    .mega-menu-search-input::placeholder {
        color: rgba(140, 133, 123, 0.9);
    }

    .mega-menu-search-input:focus {
        background: #ffffff;
        border-color: rgba(207, 137, 41, 0.45);
        box-shadow: 0 0 0 4px rgba(207, 137, 41, 0.12);
    }

    .mega-menu-search-clear {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border: none;
        border-radius: 50%;
        background: rgba(70, 44, 0, 0.08);
        color: var(--color-secondary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background-color 0.2s ease, color 0.2s ease;
        padding: 0;
    }

    .mega-menu-search-clear:hover {
        background: rgba(207, 137, 41, 0.18);
        color: var(--color-primary);
    }

    .mega-menu-search-clear i {
        font-size: 12px;
        line-height: 1;
    }

    .mega-menu-search-meta {
        margin: 0;
        flex-shrink: 0;
        font-family: var(--font-secondary);
        font-size: 13px;
        font-weight: 600;
        color: var(--color-primary);
        white-space: nowrap;
    }

    .mega-menu-body {
        display: grid;
        grid-template-columns: 272px minmax(0, 1fr);
        flex: 1 1 auto;
        min-height: 0;
        align-items: stretch;
    }

    .mega-menu-sidebar {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 22px 16px 20px;
        border-right: 1px solid rgba(70, 44, 0, 0.08);
        background: #fcfbf9;
        min-height: 0;
        box-sizing: border-box;
        overflow: visible;
    }

    .mega-menu-sidebar-label {
        margin: 0 12px 4px;
        font-family: var(--font-secondary);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--color-primary);
        line-height: 1.2;
        flex-shrink: 0;
    }

    .mega-menu-sector-nav {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
        overflow: visible;
        flex: 0 0 auto;
        width: 100%;
    }

    .mega-menu-sector-btn {
        width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        padding: 12px 14px 12px 12px;
        border: none;
        border-radius: 12px;
        background: transparent;
        color: var(--color-secondary);
        cursor: pointer;
        text-align: left;
        transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
        border-left: 3px solid transparent;
    }

    .mega-menu-sector-btn-main {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
        font-family: var(--font-secondary);
        font-size: 14px;
        font-weight: 600;
        line-height: 1.35;
    }

    .mega-menu-sector-btn-main span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mega-menu-sector-btn-main i {
        width: 18px;
        flex-shrink: 0;
        text-align: center;
        color: rgba(70, 44, 0, 0.35);
        font-size: 14px;
        transition: color 0.2s ease;
    }

    .mega-menu-sector-btn:hover {
        background: rgba(207, 137, 41, 0.08);
    }

    .mega-menu-sector-btn.is-active {
        background: rgba(207, 137, 41, 0.12);
        color: var(--color-primary);
        border-left-color: var(--color-primary);
        box-shadow: inset 0 0 0 1px rgba(207, 137, 41, 0.08);
    }

    .mega-menu-sector-btn.is-active .mega-menu-sector-btn-main i {
        color: var(--color-primary);
    }

    .mega-menu-panels {
        position: relative;
        min-width: 0;
        min-height: 0;
        overflow: visible;
        padding: 22px 28px 24px;
        box-sizing: border-box;
    }

    .mega-menu-panel {
        display: none;
        width: 100%;
    }

    .mega-menu-panel.is-active {
        display: block;
    }

    .mega-menu-panel-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 24px;
        margin-bottom: 20px;
        width: 100%;
    }

    .mega-menu-panel-copy {
        flex: 1 1 auto;
        min-width: 0;
    }

    .mega-menu-panel-title {
        margin: 0 0 8px;
        font-family: var(--font-primary);
        font-size: 28px;
        font-weight: 700;
        line-height: 1.15;
        color: var(--color-primary);
    }

    .mega-menu-panel-desc {
        margin: 0;
        max-width: 520px;
        font-family: var(--font-secondary);
        font-size: 14px;
        line-height: 1.55;
        color: var(--color-gray);
    }

    .primary-menu .menu-item-mega .mega-menu a.mega-menu-explore.btn-primary-action {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: flex-start;
        flex-shrink: 0;
        gap: 0 !important;
        width: auto;
        min-height: 44px;
        padding: 8px 20px 8px 50px !important;
        margin: 0 !important;
        border-radius: 999px;
        border: 1px solid transparent;
        background-color: var(--color-primary) !important;
        color: #ffffff !important;
        font-family: var(--font-secondary);
        font-size: 13.5px !important;
        font-weight: 600 !important;
        letter-spacing: normal;
        line-height: 1.2;
        text-decoration: none;
        white-space: nowrap;
        box-shadow: 0 4px 12px rgba(207, 137, 41, 0.15);
        transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            box-shadow 0.4s ease;
    }

    .primary-menu .menu-item-mega .mega-menu a.mega-menu-explore.btn-primary-action .btn-icon {
        position: absolute !important;
        top: 50%;
        left: 6px;
        transform: translateY(-50%);
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        margin: 0;
        padding: 0;
        background-color: #ffffff;
        border-radius: 50%;
        color: var(--color-primary);
        box-shadow: none;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease;
    }

    .primary-menu .menu-item-mega .mega-menu a.mega-menu-explore.btn-primary-action .btn-icon svg {
        width: 14px;
        height: 14px;
        stroke: currentColor;
        display: block;
    }

    .primary-menu .menu-item-mega .mega-menu a.mega-menu-explore.btn-primary-action .btn-text {
        color: #ffffff;
        font-size: inherit;
        font-weight: inherit;
        line-height: inherit;
    }

    .primary-menu .menu-item-mega .mega-menu a.mega-menu-explore.btn-primary-action:hover {
        background-color: var(--color-secondary) !important;
        color: #ffffff !important;
        padding: 8px 50px 8px 20px !important;
        box-shadow: 0 4px 15px rgba(70, 44, 0, 0.2);
        border-color: transparent;
    }

    .primary-menu .menu-item-mega .mega-menu a.mega-menu-explore.btn-primary-action:hover .btn-icon {
        left: calc(100% - 36px);
        color: var(--color-secondary);
    }

    .primary-menu .menu-item-mega .mega-menu a.mega-menu-explore.btn-primary-action:hover .btn-text {
        color: #ffffff;
    }

    .mega-menu-company-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
        align-items: stretch;
    }

    .mega-menu-company-grid--single {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mega-menu-company-grid--duo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .mega-menu-company-grid--trio {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .mega-menu-company-card {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        padding: 12px 14px !important;
        border-radius: 14px;
        border: 1px solid rgba(70, 44, 0, 0.09);
        background: #ffffff;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(70, 44, 0, 0.02);
        transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
        min-height: 76px;
        height: auto;
        box-sizing: border-box;
        text-align: left;
    }

    .mega-menu-company-card-media {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 110px;
        height: 58px;
        padding: 6px 10px;
        border-radius: 10px;
        background: #fbf9f6;
        border: 1px solid rgba(70, 44, 0, 0.07);
        box-sizing: border-box;
        overflow: hidden;
        transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    }

    .mega-menu-company-card-logo {
        display: block;
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: transform 0.25s ease;
    }

    .mega-menu-company-card-initials {
        font-family: var(--font-primary);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.04em;
        color: var(--color-primary);
    }

    .mega-menu-company-card-body {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
        flex: 1 1 auto;
        min-width: 0;
    }

    .mega-menu-company-card-name {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
        font-family: var(--font-primary);
        font-size: 14px;
        font-weight: 700;
        color: var(--color-secondary);
        line-height: 1.3;
        letter-spacing: -0.01em;
        -webkit-font-smoothing: antialiased;
        transition: color 0.2s ease;
    }

    .mega-menu-company-card-action {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        min-height: 34px;
        padding: 0;
        border-radius: 50%;
        background: rgba(207, 137, 41, 0.09);
        color: #cf8929;
        transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
    }

    .mega-menu-card-action-arrow {
        width: 14px;
        height: 14px;
        stroke-width: 2.2;
        flex-shrink: 0;
        transition: transform 0.25s ease;
    }

    .mega-menu-company-card:hover .mega-menu-company-card-action {
        background: var(--color-primary);
        color: #ffffff;
        transform: translateX(3px);
    }

    .mega-menu-company-card-desc {
        display: none;
    }

    .mega-menu-company-card:hover,
    .mega-menu-company-card.is-featured {
        border-color: rgba(207, 137, 41, 0.45);
        box-shadow: 0 8px 24px rgba(70, 44, 0, 0.08);
        transform: translateY(-2px);
        background: #ffffff;
        color: inherit;
    }

    .mega-menu-company-card:hover .mega-menu-company-card-media {
        background: #ffffff;
        box-shadow: 0 3px 12px rgba(70, 44, 0, 0.06);
        border-color: rgba(207, 137, 41, 0.25);
    }

    .mega-menu-company-card:hover .mega-menu-company-card-logo {
        transform: scale(1.05);
    }


    .mega-menu-company-card:hover .mega-menu-company-card-name {
        color: var(--color-secondary);
    }

    .mega-menu-company-card.is-search-hidden {
        display: none !important;
    }

    .mega-menu-search-empty {
        padding: 48px 20px;
        text-align: center;
        color: var(--color-gray);
        font-family: var(--font-secondary);
        font-size: 14px;
    }

    .mega-menu-search-empty-title {
        margin: 0 0 8px;
        font-family: var(--font-primary);
        font-size: 18px;
        font-weight: 600;
        color: var(--color-secondary);
    }

    .mega-menu-search-empty-hint {
        margin: 0;
        font-size: 13.5px;
        color: var(--color-gray);
    }

    .mega-menu-desktop.is-searching .mega-menu-company-card {
        animation: megaMenuCardIn 0.18s ease both;
        flex-direction: row;
        align-items: center;
        padding: 12px 14px !important;
        min-height: 0;
        height: auto;
    }

    .mega-menu-desktop.is-searching .mega-menu-company-card--featured {
        max-width: none;
        justify-self: stretch;
    }

    @keyframes megaMenuCardIn {
        from {
            opacity: 0;
            transform: translateY(4px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mega-menu-desktop.is-searching .mega-menu-sidebar,
    .mega-menu-desktop.is-searching .mega-menu-panel-header {
        display: none;
    }

    .mega-menu-desktop.is-searching .mega-menu-body {
        grid-template-columns: 1fr;
    }

    .mega-menu-desktop.is-searching .mega-menu-panels {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        align-content: start;
        padding-top: 18px;
    }

    .mega-menu-desktop.is-searching .mega-menu-panel,
    .mega-menu-desktop.is-searching .mega-menu-panel[hidden],
    .mega-menu-desktop.is-searching .mega-menu-company-grid {
        display: contents !important;
    }

    .mega-menu-desktop.is-searching .mega-menu-search-empty {
        grid-column: 1 / -1;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .mega-menu {
        left: 1.5%;
        right: 1.5%;
    }

    .mega-menu-body {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .mega-menu-sidebar {
        padding: 18px 14px 16px;
        gap: 14px;
    }

    .mega-menu-sector-nav {
        gap: 5px;
    }

    .mega-menu-sector-btn {
        padding: 10px 12px 10px 11px;
    }

    .mega-menu-company-grid:not(.mega-menu-company-grid--single):not(.mega-menu-company-grid--trio),
    .mega-menu-desktop.is-searching .mega-menu-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mega-menu-panel-title {
        font-size: 24px;
    }
}

/* Fallback/Mobile/Tablet support: hide desktop panel */
@media (max-width: 991px) {
    .mega-menu-desktop {
        display: none !important;
    }

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

/* ========================================
   MOBILE NAVIGATION
   ======================================== */
.mobile-menu-toggle,
.mobile-menu-overlay,
.mobile-nav-header,
.mobile-contact-wrapper {
    display: none;
}

.mobile-menu-toggle {
    position: relative;
    z-index: 1003;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(70, 44, 0, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-secondary);
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.25s ease;
    box-shadow: 0 2px 10px rgba(70, 44, 0, 0.05);
}

.mobile-menu-toggle:hover {
    border-color: rgba(207, 137, 41, 0.4);
    color: var(--color-primary);
    box-shadow: 0 4px 14px rgba(207, 137, 41, 0.14);
    transform: translateY(-1px);
}

.mobile-menu-toggle:focus-visible {
    outline: 2px solid rgba(207, 137, 41, 0.55);
    outline-offset: 2px;
}

.mobile-menu-toggle__icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4.5px;
    width: 16px;
}

.mobile-menu-toggle__icon span {
    display: block;
    width: 100%;
    height: 1.75px;
    border-radius: 99px;
    background: currentColor;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s ease, width 0.35s ease;
    transform-origin: center;
}

.mobile-menu-toggle__icon span:nth-child(2) {
    width: 70%;
}

.site-header.mobile-menu-active .mobile-menu-toggle__icon span:nth-child(1) {
    transform: translateY(6.25px) rotate(45deg);
}

.site-header.mobile-menu-active .mobile-menu-toggle__icon span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.site-header.mobile-menu-active .mobile-menu-toggle__icon span:nth-child(3) {
    transform: translateY(-6.25px) rotate(-45deg);
}

body.has-transparent-header .site-header:not(.is-scrolled):not(.mobile-menu-active) .mobile-menu-toggle,
body:not(.has-solid-header):not(.error404):not(.page-template-page-who-we-are):not(.page-template-page-who-we-are-php):not(.page-template-page-career):not(.page-template-page-career-php):not(.page-template-template-contact):not(.page-template-template-contact-php) .site-header:not(.is-scrolled):not(.mobile-menu-active) .mobile-menu-toggle {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.site-header.mobile-menu-active .mobile-menu-toggle,
.site-header.is-scrolled .mobile-menu-toggle,
body.has-solid-header .mobile-menu-toggle,
body.page-template-page-who-we-are .mobile-menu-toggle,
body.page-template-page-who-we-are-php .mobile-menu-toggle,
body.page-template-page-career .mobile-menu-toggle,
body.page-template-page-career-php .mobile-menu-toggle {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(70, 44, 0, 0.1);
    color: var(--color-secondary);
    box-shadow: 0 2px 10px rgba(70, 44, 0, 0.05);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: end;
}

.language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    background-color: #eff1f4;
    padding: 4px;
    border-radius: 8px;
}

.switcher-pill {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: 0;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: left 0.4s cubic-bezier(0.65, 0, 0.35, 1), width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 1;
}

.lang-link {
    font-family: var(--font-secondary);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-charcoal);
    padding: 6px 16px;
    border-radius: 6px;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    display: inline-block;
    line-height: 1.2;
}

.lang-link.lang-ar {
    font-size: 13px;
}

.lang-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

