/* =========================================================
   MOTIF LUXE
   Shared Primary Header
   ========================================================= */

:root {
    --motif-header-white: #ffffff;
    --motif-header-black: #171717;
    --motif-header-charcoal: #262626;
    --motif-header-gold: #c6a15b;
    --motif-header-line: rgba(255,255,255,.32);
}


/* =========================================================
   DESKTOP HEADER
   ========================================================= */

.motif-main-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    z-index: 1000;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 96px;

    padding: 20px 48px;

    background: transparent;
    border: 0;

    box-sizing: border-box;
}


/* Logo = Home */

.motif-main-logo {
    display: flex;
    align-items: center;

    flex: 0 0 auto;

    text-decoration: none;
}

.motif-main-logo img {
    display: block;

/*  width: 215px; */
    height: 52;
}


/* Main navigation */

.motif-main-nav {
    display: flex;
    align-items: center;

    gap: 30px;

    margin-left: auto;
}


/* Main links */

.motif-main-nav > a,
.motif-nav-dropdown-toggle {

    position: relative;

    display: flex;
    align-items: center;

    padding: 12px 0;

    border: 0;
    background: transparent;

    color: var(--motif-header-white);

    font-family: 'Questrial', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;

    letter-spacing: .025em;

    text-decoration: none;

    cursor: pointer;
}


/* Underline */

.motif-main-nav > a::after,
.motif-nav-dropdown-toggle::after {

    content: "";

    position: absolute;

    right: 0;
    bottom: 5px;
    left: 0;

    height: 1px;

    background: var(--motif-header-white);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform .2s ease;
}

.motif-main-nav > a:hover::after,
.motif-main-nav > a:focus::after,
.motif-main-nav > a.active::after,
.motif-nav-dropdown:hover .motif-nav-dropdown-toggle::after,
.motif-nav-dropdown.active .motif-nav-dropdown-toggle::after {

    transform: scaleX(1);
}


/* =========================================================
   NEW DEVELOPMENTS DROPDOWN
   ========================================================= */

.motif-nav-dropdown {
    position: relative;
}

.motif-dropdown-arrow {

    display: inline-block;

    margin-left: 7px;

    font-size: 11px;

    transition: transform .2s ease;
}

.motif-nav-dropdown:hover .motif-dropdown-arrow,
.motif-nav-dropdown:focus-within .motif-dropdown-arrow {

    transform: rotate(180deg);
}


/* Dropdown panel */

.motif-nav-dropdown-menu {

    position: absolute;

    top: calc(100% + 4px);
    right: 0;

    width: 310px;

    padding: 10px 0;

    background: #fff;

    border: 1px solid rgba(0,0,0,.08);

    box-shadow:
        0 18px 45px rgba(0,0,0,.16);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}


/* Keeps mouse transition into menu clean */

.motif-nav-dropdown-menu::before {

    content: "";

    position: absolute;

    top: -12px;
    right: 0;
    left: 0;

    height: 12px;
}


.motif-nav-dropdown:hover .motif-nav-dropdown-menu,
.motif-nav-dropdown:focus-within .motif-nav-dropdown-menu {

    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* Dropdown links */

.motif-nav-dropdown-menu a {

    display: block;

    padding: 15px 20px;

    color: var(--motif-header-black);

    text-decoration: none;

    transition: background .18s ease;
}

.motif-nav-dropdown-menu a:hover,
.motif-nav-dropdown-menu a:focus {

    background: #f7f5f1;
}


.motif-nav-dropdown-menu span {

    display: block;

    margin-bottom: 4px;

    font-family: 'Questrial', sans-serif;
    font-size: 15px;
}


.motif-nav-dropdown-menu small {

    display: block;

    color: #777;

    font-family: 'Questrial', sans-serif;
    font-size: 11px;
    line-height: 1.45;

    letter-spacing: .015em;
}


/* =========================================================
   MOBILE BUTTON
   ========================================================= */

.motif-main-menu-button {

    display: none;

    width: 42px;
    height: 42px;

    padding: 8px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.motif-main-menu-button span {

    display: block;

    width: 24px;
    height: 1px;

    margin: 6px auto;

    background: #fff;
}


/* =========================================================
   MOBILE DRAWER
   ========================================================= */

.motif-mobile-nav {

    position: fixed;

    top: 0;
    right: -100%;

    z-index: 1200;

    width: min(88vw, 390px);
    height: 100vh;

    background: #171717;

    transition: right .28s ease;

    overflow-y: auto;
}

.motif-mobile-nav.active {
    right: 0;
}


.motif-mobile-overlay {

    position: fixed;

    inset: 0;

    z-index: 1150;

    background: rgba(0,0,0,.52);

    opacity: 0;

    pointer-events: none;

    transition: opacity .25s ease;
}

.motif-mobile-overlay.active {

    opacity: 1;

    pointer-events: auto;
}


body.motif-menu-open {
    overflow: hidden;
}


/* Drawer header */

.motif-mobile-nav-header {

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 92px;

    padding: 18px 22px;

    border-bottom: 1px solid rgba(255,255,255,.15);
}


.motif-mobile-logo img {

    display: block;

    width: 175px;
    height: auto;
}


.motif-mobile-close {

    border: 0;
    background: transparent;

    color: #fff;

    font-family: Arial, sans-serif;
    font-size: 34px;
    font-weight: 200;
    line-height: 1;

    cursor: pointer;
}


/* Drawer links */

.motif-mobile-nav nav {
    padding: 12px 22px 40px;
}


.motif-mobile-nav nav > a,
.motif-mobile-development-toggle {

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 18px 0;

    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.13);

    background: transparent;

    color: #fff;

    font-family: 'Questrial', sans-serif;
    font-size: 16px;

    text-align: left;
    text-decoration: none;

    cursor: pointer;
}


/* Mobile development submenu */

.motif-mobile-development-menu {

    display: none;

    padding: 4px 0 10px 18px;

    border-bottom: 1px solid rgba(255,255,255,.13);
}

.motif-mobile-development-menu.active {
    display: block;
}


.motif-mobile-development-menu a {

    display: block;

    padding: 14px 0;

    color: rgba(255,255,255,.78);

    font-family: 'Questrial', sans-serif;
    font-size: 14px;

    text-decoration: none;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {

    .motif-main-header {
        padding-right: 32px;
        padding-left: 32px;
    }

    .motif-main-logo img {
        width: 190px;
    }

    .motif-main-nav {
        gap: 22px;
    }

    .motif-main-nav > a,
    .motif-nav-dropdown-toggle {
        font-size: 14px;
    }

}


@media (max-width: 991.98px) {

    .motif-main-header {

        min-height: 78px;

        padding: 15px 18px;
    }

    .motif-main-logo img {
        width: 170px;
    }

    .motif-main-nav {
        display: none;
    }

    .motif-main-menu-button {

        display: block;

        margin-left: auto;
    }

}


@media (max-width: 575.98px) {

    .motif-main-header {
        padding: 14px 15px;
    }

    .motif-main-logo img {
        width: 150px;
    }

}