/* =========================================================
   CORNERSTONE HEADER
   ========================================================= */

.cs-header {
    position: relative;

    width: 100%;

    background: var(--cs-background);

    border-bottom: 1px solid var(--cs-border);

    z-index: 1000;
}


/* =========================================================
   INNER CONTAINER
   ========================================================= */

.cs-header-inner {
    --width: 100%;
    --max-width: 1240px;

    width: min(calc(100% - 48px), 1240px) !important;
    max-width: 1240px !important;

    min-height: 88px;

    margin-left: auto !important;
    margin-right: auto !important;

    display: flex !important;

    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: center !important;
    justify-content: space-between !important;

    gap: 35px;
}


/* =========================================================
   BRAND
   ORDER 1
   ========================================================= */

.cs-header .cs-header-brand {
    --width: auto;
    --max-width: none;

    width: auto !important;
    max-width: none !important;

    flex: 0 0 auto !important;

    display: flex !important;

    align-items: center !important;
    justify-content: flex-start !important;

    order: 1 !important;
}


/* Elementor image widget */

.cs-header .cs-logo {
    --width: auto;
    --max-width: 170px;

    width: auto !important;
    max-width: 170px !important;
}

.cs-header .cs-logo .elementor-widget-container {
    width: auto !important;
}

.cs-header .cs-logo img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 170px !important;
    max-height: 105px !important;

    object-fit: contain;
}


/* =========================================================
   NAVIGATION
   ORDER 2
   ========================================================= */

.cs-header .cs-header-navigation {
    --width: auto;
    --max-width: none;

    width: auto !important;
    max-width: none !important;

    flex: 1 1 auto !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    order: 2 !important;
}


.cs-header .cs-nav {
    width: auto !important;
    max-width: none !important;
}


.cs-header .cs-nav .elementor-nav-menu {
    display: flex !important;

    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 8px;
}


/* =========================================================
   MENU LINKS
   ========================================================= */

.cs-header
.cs-nav
.elementor-nav-menu
> li
> a.elementor-item {
    position: relative;

    padding: 16px 12px;

    color: var(--cs-dark);

    background: transparent;

    font-family: "Manrope", sans-serif;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        color 0.25s ease,
        opacity 0.25s ease;
}


/* hover */

.cs-header
.cs-nav
.elementor-nav-menu
> li
> a.elementor-item:hover {
    color: var(--cs-primary);
}


/* active */

.cs-header
.cs-nav
.elementor-nav-menu
> li
> a.elementor-item.elementor-item-active {
    color: var(--cs-primary);
}


/* =========================================================
   CUSTOM UNDERLINE
   ========================================================= */

.cs-header
.cs-nav
.elementor-nav-menu
> li
> a.elementor-item::before {
    content: "";

    position: absolute;

    left: 12px;
    right: 12px;
    bottom: 6px;

    height: 2px;

    background: var(--cs-accent);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.25s ease;
}


/* hover underline */

.cs-header
.cs-nav
.elementor-nav-menu
> li
> a.elementor-item:hover::before {
    transform: scaleX(1);
}


/* active underline */

.cs-header
.cs-nav
.elementor-nav-menu
> li
> a.elementor-item.elementor-item-active::before {
    transform: scaleX(1);
}


/* Elementor pointer neutralization */

.cs-header
.cs-nav
.elementor-nav-menu
> li
> a.elementor-item::after {
    content: none;
    display: none;
}


/* =========================================================
   ACTIONS
   ORDER 3
   ========================================================= */

.cs-header .cs-header-actions {
    --width: auto;
    --max-width: none;

    width: auto !important;
    max-width: none !important;

    flex: 0 0 auto !important;

    display: flex !important;

    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: center !important;
    justify-content: flex-end !important;

    gap: 18px;

    order: 3 !important;
}


/* =========================================================
   LANGUAGE SWITCHER
   ========================================================= */

.cs-header .cs-language a {
    display: inline-flex !important;
    align-items: center !important;

    width: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: var(--cs-secondary);

    font-size: 12px;
    font-weight: 500;

    line-height: 1 !important;

    letter-spacing: 0.06em;

    text-decoration: none !important;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}


/* list */

.cs-header .cs-language ul {
    display: flex !important;
    flex-direction: row !important;

    align-items: center !important;
    justify-content: flex-start !important;

    gap: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}


/* language item */

.cs-header .cs-language li {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    width: auto !important;
    min-width: 0 !important;
}


/* remove extra spacing from Elementor / menu styles */

.cs-header .cs-language li + li {
    margin-left: 0 !important;
    padding-left: 0 !important;
}


/* links */

.cs-header .cs-language a {
    display: inline-flex !important;

    align-items: center !important;

    margin: 0 !important;
    padding: 0 !important;

    width: auto !important;

    color: var(--cs-secondary);

    font-size: 12px;
    font-weight: 500;

    line-height: 1 !important;

    text-decoration: none !important;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}


/* separator */

.cs-header .cs-language li:not(:last-child)::after {
    content: "/";

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-left: 10px;
    margin-right: 10px;

    padding: 0;

    color: rgba(38, 39, 36, 0.45);

    font-size: 12px;
    font-weight: 400;

    line-height: 1;

    letter-spacing: 0;
}


/* hover */

.cs-header .cs-language a:hover {
    color: var(--cs-primary);
}


/* active language */

.cs-header .cs-language .current-lang > a,
.cs-header .cs-language li.current-lang > a {
    color: var(--cs-accent);

    font-weight: 800;
}


/* remove flags */

.cs-header .cs-language img {
    display: none !important;
}

.cs-header .cs-language ul {
    gap: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
}

.cs-header .cs-language li {
    gap: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    width: auto !important;
    min-width: 0 !important;
}

.cs-header .cs-language li + li {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.cs-header .cs-language a {
    margin-inline: 0 !important;
}


/* =========================================================
   ORDER BUTTON
   ========================================================= */

.cs-header .cs-header-order {
    --width: auto;
    --max-width: none;

    width: auto !important;
    max-width: none !important;

    flex: 0 0 auto !important;

    order: 2 !important;
}


.cs-header .cs-header-order .elementor-button {
    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 24px !important;

    background: var(--cs-primary) !important;

    border: 1px solid var(--cs-primary) !important;
    border-radius: 999px !important;

    color: #ffffff !important;

    font-family: "Manrope", sans-serif;

    font-size: 12px !important;
    font-weight: 700 !important;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    white-space: nowrap;

    box-shadow: none !important;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}


.cs-header .cs-header-order .elementor-button:hover {
    background: var(--cs-accent) !important;
    border-color: var(--cs-accent) !important;

    color: var(--cs-dark) !important;

    transform: translateY(-2px);
}