/* Header Styles */
.site-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 max(0px, calc((100% - var(--max-width)) / 2));
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    background: transparent;
    transition: var(--transition);
    color: #fff;
}

.logo {
    display: block;
    height: 40px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.main-nav ul {
    position: relative;
}

.main-nav li {
    height: 40px;
    width: auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 8px;
    -webkit-transition: background-color 0.2s;
    -moz-transition: background-color 0.2s;
    transition: background-color 0.2s;
}

/* Fallback hover (disabled when JS pill is active) */
.main-nav li:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.site-header--scrolled .main-nav li:hover {
    background-color: #F2F2F2;
}

/* When JS pill is active, disable per-item hover background */
.main-nav ul.nav-hover-enhanced > li:hover {
    background-color: transparent;
}

.site-header--scrolled .main-nav ul.nav-hover-enhanced > li:hover {
    background-color: transparent;
}

/* Floating hover pill (Aceternity-style) */
.nav-hover-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    opacity: 0;
    z-index: 0;
    will-change: left, width, opacity;
    -webkit-transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                        width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                        opacity 0.2s ease;
    -moz-transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                     width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                     opacity 0.2s ease;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease;
}

.nav-hover-bg.is-visible {
    opacity: 1;
}

.site-header--scrolled .nav-hover-bg {
    background-color: #F2F2F2;
}

.main-nav a {
    position: relative;
    z-index: 1;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-style: normal;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0;
    vertical-align: middle;
}

.main-nav a:hover,
.main-nav a:focus {
    text-decoration: none;
    color: inherit;
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-left: auto;
}

.icon-btn {
    background: rgba(255,255,255,.0);
    border: 1px solid rgba(255,255,255,.0);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
}

.icon-btn:hover {
    background: rgba(255,255,255,.18);
}

.icon-search {
    width: 20px;
    height: 20px;
    position: relative;
}

.icon-search::before, .icon-search::after {
    content: "";
    position: absolute;
    border: 2px solid #fff;
    border-radius: 50%;
}

.icon-search::before {
    width: 10px;
    height: 10px;
    top: 0;
    left: 0;
}

.icon-search::after {
    width: 6px;
    height: 2px;
    top: 8px;
    left: 9px;
    transform: rotate(45deg);
    border-radius: 0;
    background: #fff;
    border: none;
}

.lang-switch button {
    background: rgba(255,255,255,.0);
    color: #fff;
    padding: .45rem .7rem;
    font-size: 16px;
    letter-spacing: .5px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .25rem;
    font-weight: 500;
    width: 100%;
    justify-content: space-between;
}

.lang-switch button:hover {
    background: rgba(255,255,255,.18);
}

.lang-switch .lang-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.header-actions {
    margin-left: auto;
}

/* btn-contact with fill-hover effect */
.site-header .btn-contact {
    --btn-fill-bg: transparent;
    --btn-fill-sweep: #fff;
    --btn-fill-text: #27201F;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    height: 40px;
    padding: 0 1.1rem;
    border: 1px solid #fff;
    border-radius: 8px;
    text-align: center;
    white-space: nowrap;
    background-image: none;
    vertical-align: middle;
    box-sizing: content-box;
}

.site-header .btn-contact.btn-fill-hover::after {
    border-radius: inherit;
}

.site-header .btn-contact svg {
    height: 40px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    border-radius: 8px;
}

.site-header .btn-contact rect {
    fill: none;
    stroke: transparent;
    stroke-width: 0;
    stroke-dasharray: 422, 0;
    rx: 8px;
    ry: 8px;
}

.site-header .btn-contact:hover {
    background: rgba(255, 255, 255, 0.2);
    -webkit-transition: background 0.2s ease;
    -moz-transition: background 0.2s ease;
    transition: background 0.2s ease;
}

.site-header .btn-contact {
    -webkit-transition: background 0.2s ease;
    -moz-transition: background 0.2s ease;
    transition: background 0.2s ease;
}

.site-header .btn-contact:hover rect {
    stroke-width: 2;
}

.site-header--scrolled .btn-contact svg [fill] {
    fill: none !important;
    stroke: #27201F !important;
}

/* Mega Menu (Aceternity UI Style) */
.has-dropdown {
    position: static;
}

.mega-menu {
    position: fixed;
    top: calc(var(--header-h, 64px) + 6px); /* 6px below header */
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(10px) scale(0.97);
    -moz-transform: translateX(-50%) translateY(10px) scale(0.97);
    -ms-transform: translateX(-50%) translateY(10px) scale(0.97);
    transform: translateX(-50%) translateY(10px) scale(0.97);
    -webkit-transform-origin: top center;
    transform-origin: top center;
    width: min(95vw, 1328px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 1.5rem 2rem;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.4s ease, visibility 0.4s ease,
                        -webkit-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: opacity 0.4s ease, visibility 0.4s ease,
                     -moz-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.4s ease, visibility 0.4s ease,
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    border: 1px solid rgba(0,0,0,0.08);
    pointer-events: none;
}

.mega-menu::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background: transparent;
}

.has-dropdown:hover .mega-menu,
.mega-menu.is-active {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateX(-50%) translateY(0) scale(1);
    -moz-transform: translateX(-50%) translateY(0) scale(1);
    -ms-transform: translateX(-50%) translateY(0) scale(1);
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

/* Exiting dropdowns go behind the new active one */
.mega-menu.is-exiting {
    z-index: 99;
    pointer-events: none;
}
.dropdown-menu.is-exiting {
    z-index: 99;
    pointer-events: none;
}

.mega-menu__inner {
    display: grid;
    grid-template-columns: 1fr 1fr minmax(150px, 160px) 1fr 1fr;
    column-gap: 1rem;
    row-gap: 0;
}

.mega-menu__col h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #27201F;
    padding-bottom: 8px;
    white-space: normal;
    word-break: break-word;
    display: block;
    border-bottom: 2px solid #27201F;
    font-family: inherit;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
}

.mega-menu__col h4 .mega-menu__title-link {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 110%;
    white-space: normal;
    word-break: break-word;
    padding: 0.5rem 0.8rem;
    margin-left: -0.8rem;
    border-radius: 6px;
    -webkit-transition: background 0.2s ease;
    transition: background 0.2s ease;
}

.mega-menu__col h4:focus,
.mega-menu__col h4:hover {
    color: #DA291C !important;
    border-color: #DA291C;
    /* -webkit-transform: translateX(2px); */
    /* -ms-transform: translateX(2px); */
    /* transform: translateX(2px); */
}

.mega-menu__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mega-menu__col li {
    height: auto;
    width: auto;
    display: block;
    text-align: left;
    padding: 0;
}

.mega-menu__col li a {
    color: #27201F;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
    line-height: 1;
    padding: 8px 12px;
    border-radius: 6px;
    margin-left: -0.8rem;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
}

.mega-menu__col li a:hover {
    color: var(--clr-text);
    background: #f5f5f5;
    transform: translateX(8px);
}

/* Simple Dropdown */
.has-dropdown--simple {
    position: relative;
}

.has-dropdown--simple .dropdown-menu {
    /* Override Bootstrap's .dropdown-menu from calculator.css (higher specificity) */
    display: block;
    position: absolute;
    top: calc(var(--header-h, 64px) / 2 + 26px);
    left: 0;
    -webkit-transform: translateY(10px) scale(0.97);
    -moz-transform: translateY(10px) scale(0.97);
    -ms-transform: translateY(10px) scale(0.97);
    transform: translateY(10px) scale(0.97);
    -webkit-transform-origin: top left;
    transform-origin: top left;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.4s ease, visibility 0.4s ease,
                        -webkit-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: opacity 0.4s ease, visibility 0.4s ease,
                     -moz-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.4s ease, visibility 0.4s ease,
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    border: 1px solid rgba(0,0,0,0.08);
    pointer-events: none;
    margin: 0;
    float: none;
    font-size: 1rem;
    text-align: start;
    list-style: none;
    padding: 24px 0.8rem;
}

.dropdown-menu {
    position: absolute;
    top: calc(var(--header-h, 64px) / 2 + 26px); /* 6px below header */
    left: 0;
    -webkit-transform: translateY(10px) scale(0.97);
    -moz-transform: translateY(10px) scale(0.97);
    -ms-transform: translateY(10px) scale(0.97);
    transform: translateY(10px) scale(0.97);
    -webkit-transform-origin: top left;
    transform-origin: top left;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    padding: 1rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.4s ease, visibility 0.4s ease,
                        -webkit-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: opacity 0.4s ease, visibility 0.4s ease,
                     -moz-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.4s ease, visibility 0.4s ease,
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    border: 1px solid rgba(0,0,0,0.08);
    pointer-events: none;
}

.has-dropdown--simple:hover .dropdown-menu,
.dropdown-menu.is-active {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateY(0) scale(1);
    -moz-transform: translateY(0) scale(1);
    -ms-transform: translateY(0) scale(1);
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.has-dropdown--simple .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 40px;
    background: transparent;
}

.has-dropdown--simple .dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.has-dropdown--simple .dropdown-menu li {
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    text-align: left;
}

.has-dropdown--simple .dropdown-menu a {
    display: block;
    padding: 10px;
    color: #27201f;
    text-decoration: none;
    font-size: 1rem;
    white-space: nowrap;
    transition: all 0.2s;
    border-radius: 6px;
    font-weight: 400;
    line-height: 1;
}

.has-dropdown--simple .dropdown-menu a:hover {
    color: var(--clr-text);
    background: #f5f5f5;
    transform: translateX(5px);
    text-decoration: none;
}

/* Shared dropdown backdrop (Aceternity morph effect) */
.nav-dropdown-backdrop {
    position: fixed;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.08);
    pointer-events: none;
    opacity: 0;
    z-index: 99;
    -webkit-transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                        top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                        width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                        height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                        opacity 0.25s ease;
    -moz-transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                     top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                     width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                     height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                     opacity 0.25s ease;
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
}

.nav-dropdown-backdrop.is-visible {
    opacity: 1;
}

/* When switching dropdowns, the backdrop morphs - dropdowns keep their backgrounds
   but the backdrop fills the gap during the crossfade transition */

/* During morph transition, dropdown is transparent so backdrop morph is visible */
.mega-menu.is-morphing,
.dropdown-menu.is-morphing {
    background: transparent !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

/* Directional content slide when switching between menu items */
.mega-menu__inner,
.dropdown-menu > ul {
    -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease;
    -moz-transition: opacity 0.3s ease, -moz-transform 0.3s ease;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Enter from right */
.mega-menu.is-active[data-enter="right"] .mega-menu__inner,
.dropdown-menu.is-active[data-enter="right"] > ul {
    -webkit-animation: navContentSlideInRight 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation: navContentSlideInRight 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Enter from left */
.mega-menu.is-active[data-enter="left"] .mega-menu__inner,
.dropdown-menu.is-active[data-enter="left"] > ul {
    -webkit-animation: navContentSlideInLeft 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation: navContentSlideInLeft 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Exit to left */
.mega-menu.is-exiting[data-exit="left"] .mega-menu__inner,
.dropdown-menu.is-exiting[data-exit="left"] > ul {
    -webkit-animation: navContentSlideOutLeft 0.25s ease both;
    animation: navContentSlideOutLeft 0.25s ease both;
}

/* Exit to right */
.mega-menu.is-exiting[data-exit="right"] .mega-menu__inner,
.dropdown-menu.is-exiting[data-exit="right"] > ul {
    -webkit-animation: navContentSlideOutRight 0.25s ease both;
    animation: navContentSlideOutRight 0.25s ease both;
}

@-webkit-keyframes navContentSlideInRight {
    from { opacity: 0; -webkit-transform: translateX(20px); }
    to   { opacity: 1; -webkit-transform: translateX(0); }
}
@keyframes navContentSlideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

@-webkit-keyframes navContentSlideInLeft {
    from { opacity: 0; -webkit-transform: translateX(-20px); }
    to   { opacity: 1; -webkit-transform: translateX(0); }
}
@keyframes navContentSlideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

@-webkit-keyframes navContentSlideOutLeft {
    from { opacity: 1; -webkit-transform: translateX(0); }
    to   { opacity: 0; -webkit-transform: translateX(-20px); }
}
@keyframes navContentSlideOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-20px); }
}

@-webkit-keyframes navContentSlideOutRight {
    from { opacity: 1; -webkit-transform: translateX(0); }
    to   { opacity: 0; -webkit-transform: translateX(20px); }
}
@keyframes navContentSlideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(20px); }
}


/* Menu Toggle Styles */
.menu-toggle {
    display: none;
}

.hamburger-box {
    width: 20px;
    height: 14px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 20px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    position: absolute;
    transition: transform 0.15s ease;
}

.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -6px;
}

.hamburger-inner::after {
    bottom: -6px;
}

.site-header--scrolled .hamburger-inner,
.site-header--scrolled .hamburger-inner::before,
.site-header--scrolled .hamburger-inner::after {
    background-color: #27201F;
}

/* Hide mobile menu elements by default (desktop) */
.mobile-menu-drawer, .mobile-menu-overlay {
    display: none;
}

/* Scrolled header state */
.site-header--scrolled {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    color: #000000 !important;
}



.site-header--scrolled .btn-contact {
    --btn-fill-bg: transparent;
    --btn-fill-sweep: #27201F;
    --btn-fill-text: #fff;
    border: 1px solid #27201F !important;
    color: #27201F !important;
}

.site-header--scrolled .lang-switch button {
    color: #27201F;
}

.site-header--scrolled .lang-toggle {
    color: #27201F;
}

.site-header--scrolled .btn.btn-contact.btn-fill-hover:hover,
.site-header--scrolled .btn.btn-contact.btn-fill-hover:focus {
    color: #fff !important;
}

.site-header--scrolled .icon-btn {
    background: transparent;
    border: 1px solid rgba(0,0,0,0);
}

.site-header--scrolled .icon-btn:hover,
.site-header--scrolled .icon-btn:active {
    background: #f0f0f0;
}

.site-header--scrolled .icon-search::before,
.site-header--scrolled .icon-search::after {
    border-color: #27201F;
}

.site-header--scrolled svg {
    color: #27201F;
}

.site-header--scrolled img:not(.logo) {
    filter: brightness(0) saturate(100%) !important;
}

/* .site-header--scrolled, .site-header--scrolled * {
    -webkit-text-fill-color: #27201F !important;
    color: #27201F;
} */

.site-header--scrolled svg [fill],
.site-header--scrolled svg [stroke] {
    fill: #27201F !important;
    stroke: #27201F !important;
}

.site-header--scrolled::before {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: var(--site-header-h, 64px);
    background: #fff;
    z-index: -1;
}

/* Language switch global helpers */
.lang-switch {
    position: relative;
    display: inline-block;
    min-width: 5.5rem;
}

.lang-list li {
    white-space: nowrap;
}

.lang-toggle {
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .25rem
}

.lang-toggle:focus {
    outline: 2px solid;
    outline-offset: 2px
}

.lang-list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    color: #333;
    border: 2px solid #ff000000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: .5rem 0;
    display: none;
    z-index: 9999;
    list-style: none;
    margin: 0;
    border-radius: 8px;
    box-sizing: border-box;
}

.lang-list li {
    padding: .6rem 1.2rem;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    transition: background .2s;
}

.lang-list li[aria-selected="true"] {
    font-weight: 600;
    background: #f9f9f9;
    color: #d40000;
}

.lang-list li:hover {
    background: #f0f0f0;
}

.lang-list.show {
    display: block !important;
    animation: fadeInUp .2s ease-out;
    opacity: 1;
    visibility: visible;
}

.lang-switch .lang-toggle[aria-expanded="true"] {
    background: rgba(255,255,255,0.2);
}

.site-header--scrolled .lang-toggle[aria-expanded="true"] {
    background: #f0f0f0;
}

.site-header--scrolled .lang-toggle:hover {
    background: #f0f0f0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width:840px) {
    .site-header {
        flex-wrap: wrap;
    }
    .header-actions {
        width: 100%;
        text-align: right;
    }
}

@media (max-width:1023px) {
    .main-nav, .site-header .btn-contact, .lang-switch {
        display: none;
    }
    .menu-toggle {
        display: grid;
    }
    .site-header {
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        padding: 0 1.25rem;
        height: 64px;
    }
}


@media (min-width:1400px) {
    .site-header {
        height: 64px;
        padding: 0 max(0px, calc((100% - var(--max-width)) / 2));
    }
}

@media (min-width:1280px) and (max-width:1897px) {
    .site-header {
        height: 64px;
        padding: 0 32px;
        max-width: 100%;
        left: 50%;
        transform: translateX(-50%);
    }
    .main-nav {
        margin: 0 auto;
    }
    .site-header--scrolled::before {
        left: 50%;
        right: auto;
        width: var(--max-width);
        transform: translateX(-50%);
    }
}

@media (max-width: 1279px) {
    .main-nav, .site-header .btn-contact, .lang-switch {
        display: none;
    }
    .menu-toggle {
        display: grid;
    }
    .site-header {
        padding: 0 1.25rem;
        height: 64px;
    }
    .nav-tools {
        gap: 1.5rem;
    }

    /* Mobile Menu Styles */
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }

    .mobile-menu-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-drawer {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 700px;
        max-width: none;
        background: #fff;
        z-index: 9999;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .mobile-menu-drawer.is-open {
        transform: translateX(0);
    }

    .mobile-menu__header {
        padding: 1rem 1.5rem;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        border-bottom: 1px solid #CCCED2;
    }

    .mobile-menu__close {
        background: none;
        border: none;
        color: #333;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-family: Poppins;
        font-weight: 500;
        font-size: 18px;
        line-height: 100%;
        letter-spacing: 0%;
        vertical-align: middle;

    }

    .mobile-menu__close .close-icon {
        width: 20px;
        height: 20px;
    }

    .mobile-menu__content {
        flex: 1;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .mobile-nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-item {
        border-bottom: 1px solid #CCCED2;
    }

    .mobile-nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 1rem 1.5rem;
        background: none;
        border: none;
        text-align: left;
        font-weight: 500;
        color: #27201F;
        text-decoration: none;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        font-family: Poppins;
        font-style: Medium;
        font-size: 18px;
        line-height: 100%;
        letter-spacing: 0%;
        vertical-align: middle;

    }

    .mobile-nav-link .arrow {
        width: 20px;
        height: 20px;
        transition: transform 0.2s;
    }

    .mobile-nav-link[aria-expanded="true"] .arrow {
        transform: rotate(180deg);
    }

    .mobile-submenu {
        list-style: none;
        padding: 24px 0;
        margin: 0;
        background: #f9f9f9;
        display: none;
    }

    .mobile-submenu.is-open {
        display: block;
    }

    .mobile-submenu > li > a {
        display: block;
        padding: 0.8rem 1.5rem;
        color: #555;
        text-decoration: none;
        font-weight: 400;
        font-size: 16px;
        line-height: 100%;
        letter-spacing: 0%;
    }

    .mobile-submenu > li > a:hover {
        color: var(--clr-text);
        background: #f5f5f5;
        transform: translateX(2px);
    }

    /* Mega Submenu Styles */
    .mobile-submenu--mega.is-open {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 1rem;
        padding: 1.5rem 1.5rem;
    }

    .mobile-mega-group h4 {
        font-size: 0.85rem;
        font-weight: 700;
        color: #27201F;
        margin: 0 0 0.8rem 0;
    }

    .mobile-mega-group ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-mega-group li {
        margin-bottom: 0.6rem;
    }

    .mobile-mega-group li a {
        font-size: 0.9rem;
        color: #555;
        text-decoration: none;
        line-height: 1.4;
        display: block;
    }

    .mobile-mega-group li a:hover {
        color: #d40000;
    }

    .mobile-lang-switch {
        margin-top: 0;
        padding: 1.2rem 1.5rem;
        border-bottom: 1px solid #CCCED2;
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        background: #fff;
    }

    .mobile-lang-switch button {
        background: none;
        border: none;
        font-size: 0.95rem;
        color: #333;
        cursor: pointer;
        padding: 0;
    }

    .mobile-lang-switch button.is-active {
        color: #000;
        font-weight: 600;
    }
    .lang-switch {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .mobile-menu-drawer {
        width: 100%;
        border-radius: 0;
    }

    .mobile-submenu--mega.is-open {
        gap: 1.5rem 0.5rem;
        padding: 1.5rem 1.5rem;
    }
}

@media (max-width: 530px) {
    .mobile-submenu--mega.is-open {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width:640px) {
    .lang-list {
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
    }
}

/* ── Header search bar ── */
.search-wrapper {
    position: relative;
}

.header-search-bar {
    position: fixed;
    width: 400px;
    opacity: 0;
    visibility: hidden;
    -webkit-transform: translateY(-8px);
    -moz-transform: translateY(-8px);
    -ms-transform: translateY(-8px);
    -o-transform: translateY(-8px);
    transform: translateY(-8px);
    -webkit-transition: opacity 0.3s ease, visibility 0.3s ease, -webkit-transform 0.3s ease;
    -moz-transition: opacity 0.3s ease, visibility 0.3s ease, -moz-transform 0.3s ease;
    -ms-transition: opacity 0.3s ease, visibility 0.3s ease, -ms-transform 0.3s ease;
    -o-transition: opacity 0.3s ease, visibility 0.3s ease, -o-transform 0.3s ease;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1100;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.header-search-bar.is-open {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
}

.header-search-input {
    width: 100%;
    height: 52px;
    padding: 0 12px;
    font-size: 14px;
    color: #27201F;
    background: #fff;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    outline: none;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: border-color 0.3s cubic-bezier(.25,.01,.25,1);
    -moz-transition: border-color 0.3s cubic-bezier(.25,.01,.25,1);
    -ms-transition: border-color 0.3s cubic-bezier(.25,.01,.25,1);
    -o-transition: border-color 0.3s cubic-bezier(.25,.01,.25,1);
    transition: border-color 0.3s cubic-bezier(.25,.01,.25,1);
}

.header-search-input:hover,
.header-search-input:focus {
    border-color: #27201F;
    outline: none;
}

.header-search-input::placeholder {
    color: #999 !important;
    -webkit-text-fill-color: #999 !important;
    opacity: 1;
}

/* ≤400px: search input full width edge-to-edge */
@media (max-width: 400px) {
    .header-search-bar.is-open {
        padding: 0 !important;
    }

    .header-search-input {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}