/* =========================================
   SHARED HEADER / NAVIGATION
   Our firm
========================================= */


/* =========================================
   CONSISTENT BOX SIZING
========================================= */

.site-header,
.site-header *,
.site-header *::before,
.site-header *::after {
    box-sizing: border-box;
}


/* =========================================
   SHARED HEADER
========================================= */

.site-header {
    width: 100%;
    height: 115px;

    background: #ffffff;
    color: #17203a;

    padding: 15px 7%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    position: relative;
    z-index: 1000;
}


/* =========================================
   BRAND / LOGO
========================================= */

.brand {
    display: flex;
    align-items: center;

    height: 100%;

    flex-shrink: 0;
}

.brand a {
    display: flex;
    align-items: center;

    height: 100%;

    text-decoration: none;
}

.header-logo {
    display: block;

    width: 340px;
    max-width: 100%;
    height: auto;

    object-fit: contain;
    transform: translateX(-50px);
}


/* =========================================
   RIGHT SIDE OF HEADER
========================================= */

.header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;

    flex-wrap: nowrap;

    gap: 55px;

    white-space: nowrap;

    min-width: 0;
}


/* =========================================
   MAIN NAVIGATION
========================================= */

.main-nav {
    display: flex;
    align-items: center;

    flex-wrap: nowrap;

    gap: 30px;
}

.main-nav > a,
.nav-dropdown-trigger {
    position: relative;

    display: block;

    color: #2c3550;

    text-decoration: none;

    font-size: 15px;
    font-weight: bold;
    line-height: normal;

    text-transform: uppercase;

    padding: 16px 0;

    white-space: nowrap;
}

.main-nav > a:hover,
.main-nav > a:focus,
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger {
    color: #c5222a;

    font-size: 15px;
    font-weight: bold;
}


/* =========================================
   NAVIGATION UNDERLINE
========================================= */

.main-nav > a::after,
.nav-dropdown-trigger::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 5px;

    width: 0;
    height: 2px;

    background: #c5222a;

    transition: width 0.25s ease;
}

.main-nav > a:hover::after,
.main-nav > a:focus::after,
.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after {
    width: 100%;
}


/* =========================================
   PRACTICE AREAS DROPDOWN
========================================= */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    cursor: pointer;
}

.nav-dropdown-menu {
    position: absolute;

    top: calc(100% - 2px);
    left: 50%;

    transform:
        translateX(-50%)
        translateY(10px);

    min-width: 285px;

    background: #ffffff;

    border-top: 3px solid #c5222a;

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, 0.16);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    z-index: 2000;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}

.nav-dropdown-menu a {
    display: block;

    padding: 16px 22px;

    color: #2c3550;

    text-decoration: none;

    font-size: 15px;
    font-weight: bold;
    line-height: 1.3;

    text-transform: uppercase;

    white-space: nowrap;

    border-bottom: 1px solid #eeeeee;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.nav-dropdown-menu a:last-child {
    border-bottom: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
    background: #f5f6f8;
    color: #c5222a;
}


/* =========================================
   LANGUAGE SWITCHER
========================================= */

.language-switcher {
    display: flex;
    align-items: center;

    gap: 8px;

    color: #7b8190;

    font-size: 18px;
    font-weight: bold;
    line-height: normal;

    white-space: nowrap;

    flex-shrink: 0;
}

.language-switcher button {
    appearance: none;

    border: 0;

    background: transparent;

    color: #7b8190;

    font: inherit;
    font-weight: bold;

    cursor: pointer;

    padding: 3px 2px;

    transition: color 0.2s ease;
}

.language-switcher button:hover,
.language-switcher button:focus,
.language-switcher button.active {
    color: #c5222a;
}

.language-divider {
    color: #b5b8c0;
}


/* =========================================
   RTL / ARABIC HEADER
========================================= */

html[dir="rtl"] .site-header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .header-right {
    flex-direction: row-reverse;
}

html[dir="rtl"] .main-nav {
    flex-direction: row-reverse;
}


/* =========================================
   TABLET / SMALL DESKTOP
========================================= */

@media (max-width: 1150px) {

    .site-header {
        padding-left: 5%;
        padding-right: 5%;

        gap: 25px;
    }

    .header-logo {
        width: 320px;
    }

    .header-right {
        gap: 25px;
    }

    .main-nav {
        gap: 18px;
    }

    .main-nav > a,
    .nav-dropdown-trigger {
        font-size: 15px;
    }

    .language-switcher {
        font-size: 15px;
    }

}


/* =========================================
   MOBILE / NARROW TABLET
========================================= */

@media (max-width: 900px) {

    .site-header {
        height: auto;
        min-height: 115px;

        flex-direction: column;
        align-items: center;
        justify-content: center;

        padding-top: 14px;
        padding-bottom: 14px;

        gap: 8px;
    }

    .brand {
        height: auto;
    }

    .brand a {
        height: auto;
    }

    .header-logo {
        width: 320px;
    }

    .header-right {
        width: 100%;

        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 8px;
    }

    .main-nav {
        display: flex;

        flex-wrap: wrap;

        align-items: center;
        justify-content: center;

        gap: 18px;
    }

    .nav-dropdown-menu {
        left: 50%;

        transform:
            translateX(-50%)
            translateY(10px);
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        transform:
            translateX(-50%)
            translateY(0);
    }

    html[dir="rtl"] .site-header {
        flex-direction: column;
    }

    html[dir="rtl"] .header-right {
        flex-direction: column;
        align-items: center;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 600px) {

    .site-header {
        height: auto;
        min-height: 90px;

        padding: 14px 5%;
    }

    .header-logo {
        width: 290px;
    }

    .main-nav {
        gap: 13px;
    }

    .main-nav > a,
    .nav-dropdown-trigger {
        font-size: 12px;

        padding: 10px 0;
    }

    .language-switcher {
        font-size: 12px;
    }

    .nav-dropdown-menu {
        min-width: 235px;
    }

    .nav-dropdown-menu a {
        font-size: 12px;

        padding: 14px 17px;
    }

}