/* ==========================================
   MICHEL FALCON - HEADER
========================================== */

/* HEADER LAYOUT */

.michel-header .site-header-inr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

.michel-header .site-branding {
    flex-shrink: 0;
}

.michel-header .site-branding img {
    width: 160px;
    height: auto;
    display: block;
    transition: width .3s ease;
}

.michel-header.header-scrolled .site-branding img {
    width: 120px;
}

.michel-header .header-right-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-left: auto;
}

/* ==========================================
   DESKTOP MENU
========================================== */

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

.michel-header .michel-menu li {
    position: relative;
}

.michel-header .michel-menu > li > a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

/* ==========================================
   DESKTOP CONTACT BUTTON
========================================== */

.michel-header .header-contact-btn,
.mobile-menu-sidebar .mobile-contact-btn {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    background: transparent;
    color: #111;
    text-decoration: none;
}

.michel-header .header-contact-text,
.mobile-menu-sidebar .mobile-contact-text {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    background: #fff;
    border-radius: 50px;
    min-height: 48px;
    padding: 10px 21px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    color: #111;
    white-space: nowrap;
    transition: color .4s ease;
}

.michel-header .header-contact-arrow,
.mobile-menu-sidebar .mobile-contact-arrow {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    background: #fff;
    border-radius: 50%;
    color: #111;
    transition: color .4s ease;
}

/* Left to Right Fill Animation */

.michel-header .header-contact-text::before,
.michel-header .header-contact-arrow::before,
.mobile-menu-sidebar .mobile-contact-text::before,
.mobile-menu-sidebar .mobile-contact-arrow::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #ff9945;
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
    z-index: -1;
}

.michel-header .header-contact-btn:hover .header-contact-text::before,
.michel-header .header-contact-btn:hover .header-contact-arrow::before,
.mobile-menu-sidebar .mobile-contact-btn:hover .mobile-contact-text::before,
.mobile-menu-sidebar .mobile-contact-btn:hover .mobile-contact-arrow::before,
.michel-header .header-contact-btn:focus-visible .header-contact-text::before,
.michel-header .header-contact-btn:focus-visible .header-contact-arrow::before,
.mobile-menu-sidebar .mobile-contact-btn:focus-visible .mobile-contact-text::before,
.mobile-menu-sidebar .mobile-contact-btn:focus-visible .mobile-contact-arrow::before {
    transform: scaleX(1);
}

.michel-header .header-contact-btn:hover .header-contact-text,
.michel-header .header-contact-btn:hover .header-contact-arrow,
.mobile-menu-sidebar .mobile-contact-btn:hover .mobile-contact-text,
.mobile-menu-sidebar .mobile-contact-btn:hover .mobile-contact-arrow,
.michel-header .header-contact-btn:focus-visible .header-contact-text,
.michel-header .header-contact-btn:focus-visible .header-contact-arrow,
.mobile-menu-sidebar .mobile-contact-btn:focus-visible .mobile-contact-text,
.mobile-menu-sidebar .mobile-contact-btn:focus-visible .mobile-contact-arrow {
    color: #fff;
}

/* Arrow Animation */

.michel-header .header-contact-arrow svg,
.mobile-menu-sidebar .mobile-contact-arrow svg {
    width: 20px;
    height: 20px;
    transition: transform .35s ease;
}

.michel-header .header-contact-btn:hover .header-contact-arrow svg,
.mobile-menu-sidebar .mobile-contact-btn:hover .mobile-contact-arrow svg {
    transform: translateX(3px);
}

/* ==========================================
   DESKTOP SUBMENU
========================================== */

.michel-header .michel-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    background: #fff;
    padding: 12px;
    margin: 0;
    list-style: none;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
    z-index: 10;
}

.michel-header .michel-menu li:hover > .sub-menu,
.michel-header .michel-menu li:focus-within > .sub-menu {
    display: block;
}

.michel-header .michel-menu .sub-menu a {
    display: block;
    padding: 8px;
    color: #111;
    text-decoration: none;
}

/* ==========================================
   MOBILE MENU TOGGLE
========================================== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    background: transparent;
}

.mobile-menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

/* ==========================================
   MOBILE OVERLAY
========================================== */

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

body.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

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

/* ==========================================
   MOBILE SIDEBAR
========================================== */

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: min(400px, 90vw);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 10001;
    padding: 30px 28px 24px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    transform: translateX(100%);
    visibility: hidden;

    transition:
        transform .3s ease,
        visibility .3s ease;

    overflow-y: auto;
    overscroll-behavior: contain;
}

body.mobile-menu-open .mobile-menu-sidebar {
    transform: translateX(0);
    visibility: visible;
}

/* ==========================================
   SIDEBAR HEADER
========================================== */

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 38px;
}

.mobile-sidebar-title {
    font-size: 25px;
    line-height: 1.2;
    font-weight: 700;
    color: #111;
}

/* ==========================================
   CLOSE BUTTON
========================================== */

.mobile-menu-sidebar .mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #e7e7e7;
    border-radius: 50%;
    background: #f7f7f7;
    color: #111;
    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease,
        border-color .25s ease;
}

.mobile-menu-sidebar .mobile-menu-close svg {
    display: block;
    width: 20px;
    height: 20px;
}

.mobile-menu-sidebar .mobile-menu-close:hover,
.mobile-menu-sidebar .mobile-menu-close:focus-visible {
    background: #ff9945;
    border-color: #ff9945;
    color: #fff;
    transform: rotate(90deg);
}

/* ==========================================
   MOBILE NAVIGATION
========================================== */

.mobile-sidebar-body {
    flex: 0 0 auto;
}

.mobile-menu-list,
.mobile-menu-list .sub-menu {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-menu-list > li {
    border-bottom: 1px solid #ececec;
}

.mobile-menu-list a {
    display: block;
    padding: 17px 0;
    font-size: 17px;
    line-height: 1.45;
    color: #111;
    text-decoration: none;

    transition:
        color .2s ease,
        padding-left .2s ease;
}

.mobile-menu-list a:hover,
.mobile-menu-list .current-menu-item > a {
    color: #d97425;
    padding-left: 5px;
}

.mobile-menu-list .sub-menu {
    padding-left: 18px;
}

.mobile-menu-list .sub-menu a {
    font-size: 14px;
    padding: 10px 0;
}

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

.mobile-menu-sidebar .mobile-contact-btn {
    margin-top: 32px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111;
    justify-content: flex-start;
}

.mobile-menu-sidebar .mobile-contact-text,
.mobile-menu-sidebar .mobile-contact-arrow {
    background: #f89649;
    color: #ffffff;
}

/* Hover Animation - Orange to Black */
.mobile-menu-sidebar .mobile-contact-text::before,
.mobile-menu-sidebar .mobile-contact-arrow::before {
    background: #000000;
}

/* Keep Text & Arrow White */
.mobile-menu-sidebar .mobile-contact-btn:hover .mobile-contact-text,
.mobile-menu-sidebar .mobile-contact-btn:hover .mobile-contact-arrow,
.mobile-menu-sidebar .mobile-contact-btn:focus-visible .mobile-contact-text,
.mobile-menu-sidebar .mobile-contact-btn:focus-visible .mobile-contact-arrow {
    color: #ffffff;
}

/* ==========================================
   SIDEBAR BOTTOM SOCIAL ICONS
========================================== */

.mobile-sidebar-footer {
    margin-top: auto;
    padding-top: 35px;
}

.mobile-social-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 14px;
}

.mobile-sidebar-social .wp-block-social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-sidebar-social .wp-social-link {
    list-style: none;
    margin: 0;
}

.mobile-sidebar-social .wp-social-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 50%;
    background: #f3f3f3;
    color: #111;
    box-sizing: border-box;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}

.mobile-sidebar-social .wp-social-link a:hover {
    background: #ff9945;
    color: #fff;
    transform: translateY(-3px);
}

.mobile-sidebar-social .wp-social-link svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

/* ==========================================
   HEADER POSITION & STICKY
========================================== */

.michel-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 20px 0;
    background: transparent;

    transition:
        background-color .3s ease,
        box-shadow .3s ease;
}

.michel-header.header-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 0;
    background: #115C99;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    animation: headerSlideDown .45s ease-out both;
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* WordPress Admin Bar */

body.admin-bar.home #site-header {
    top: 32px;
}


/* ==========================================
   MOBILE SIDEBAR - SOCIAL ICONS
========================================== */

.mobile-sidebar-footer {
    margin-top: auto;
    padding-top: 35px;
    padding-bottom: 5px;
}

.mobile-social-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 15px;
}

.mobile-sidebar-social .mf-mobile-social-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-sidebar-social .mf-mobile-social-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-sidebar-social .mf-mobile-social-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 11px;
    border-radius: 50%;
    background: #f4f4f4;
    color: #111;
    box-sizing: border-box;
    text-decoration: none;

    transition:
        background .3s ease,
        color .3s ease,
        transform .3s ease;
}

.mobile-sidebar-social .mf-mobile-social-item a:hover {
    background: #f89649;
    color: #fff;
    transform: translateY(-3px);
}

.mobile-sidebar-social .mf-mobile-social-item svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
}

.mobile-sidebar-social .mf-social-fallback {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}


@media (max-width: 782px) {
    body.admin-bar.home #site-header {
        top: 46px;
    }
}

/* ==========================================
   RESPONSIVE - TABLET
========================================== */

@media (max-width: 1024px) {
    .michel-header .header-right-wrapper {
        display: none;
    }

    .michel-header .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .michel-header .site-branding img {
        width: 130px;
    }

    .michel-header.header-scrolled .site-branding img {
        width: 105px;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
========================================== */

@media (max-width: 767px) {
    .michel-header .site-branding img {
        width: 115px;
    }

    .michel-header .site-header-inr {
        gap: 15px;
    }

    .mobile-menu-sidebar {
        padding: 24px 22px 22px;
    }

    .mobile-sidebar-header {
        margin-bottom: 28px;
    }

    .mobile-sidebar-title {
        font-size: 23px;
    }
	
	.michel-header {
    padding: 12px 0;
}
}

@media (max-width: 380px) {
    .mobile-menu-sidebar .mobile-contact-text {
        padding: 10px 15px;
        font-size: 14px;
        min-height: 44px;
    }

    .mobile-menu-sidebar .mobile-contact-arrow {
        width: 44px;
        height: 44px;
    }
}

/* ==========================================
   ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {
    .michel-header .header-contact-text::before,
    .michel-header .header-contact-arrow::before,
    .michel-header .header-contact-arrow svg,
    .mobile-menu-sidebar .mobile-contact-text::before,
    .mobile-menu-sidebar .mobile-contact-arrow::before,
    .mobile-menu-sidebar .mobile-contact-arrow svg,
    .mobile-menu-sidebar .mobile-menu-close {
        transition: none;
    }
}
