/* Shared header: desktop navigation and mobile menu switch together at 1200px. */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}
.header-area,
.header-area.menu-fixed {
    background: #fff;
    z-index: 1000;
}
.header-area::after,
.header-area .header__main::before {
    display: none;
}
.header-top .header__container,
.header-area .header__container {
    width: 100%;
    max-width: 1600px;
    padding: 0 24px;
}
.header-top .header-top-wrp .info,
.header-top .header-top-wrp .link-info {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}
.header-top {
    padding: 8px 0;
    background: #0b1f3a;
}
.header-top .header-top-wrp .info {
    gap: clamp(14px, 1.7vw, 28px);
    margin: 0;
}
.header-top .header-top-wrp .info li,
.header-top .header-top-wrp .link-info li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    float: none;
    line-height: 1.5;
    white-space: nowrap;
}
.header-top .header-top-wrp .info {
    font-size: 12px;
    letter-spacing: .01em;
}
.header-top .header-top-wrp .info a,
.header-top .header-top-wrp .info span {
    color: rgba(255, 255, 255, .88);
    font-size: inherit;
}
.header-top .header-contact-icon {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    color: #9ec0ff !important;
    background: rgba(255, 255, 255, .06);
}
.header-top .header-contact-icon i {
    padding: 0 !important;
    color: inherit !important;
}
.header-top .header-top-wrp .link-info {
    gap: 5px;
    margin: 0;
}
.header-top .header-top-wrp .link-info li a {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    color: rgba(255, 255, 255, .86);
}
.header-area .header__main {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 88px;
    padding: 0;
}
.header-area .header__main > .logo {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    align-self: stretch;
    flex: 0 0 190px;
    width: 190px;
    margin: 0;
    padding: 0;
}
.header-area .header__main > .logo::before {
    display: none;
}
.header-area .header__main > .logo img {
    display: block;
    width: 184px;
    height: auto;
    max-height: 53px;
    object-fit: contain;
}
.header-area .header-logo-white {
    display: none !important;
}
.header-area .main-menu {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    margin: 0;
}
.header-area .main-menu nav > ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.05vw, 20px);
    padding: 0;
    margin: 0;
    list-style: none;
}
.header-area .main-menu nav > ul > li {
    flex: 0 0 auto;
    margin: 0;
}
.header-area .main-menu nav > ul > li > a {
    display: block;
    padding: 30px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 28px;
    color: #1a1a2e;
    white-space: nowrap;
}
.header-area .main-menu nav > ul > li:hover > a,
.header-area .main-menu nav > ul > li:focus-within > a {
    color: #2b59ce;
}
.header-area .main-menu nav > ul > li > .sub-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    top: 100%;
    left: 0;
    width: 250px;
    margin: 0;
    padding: 8px 0;
    background: #fff;
    border-top: 3px solid #2b59ce;
    box-shadow: 0 12px 28px rgba(15, 13, 29, 0.15);
    z-index: 10;
}
.header-area .main-menu nav > ul > li:hover > .sub-menu,
.header-area .main-menu nav > ul > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.header-area .main-menu .sub-menu li {
    width: 100%;
    margin: 0;
}
.header-area .main-menu .sub-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    line-height: 24px;
    text-align: left;
}
.header-area .main-menu .sub-menu li a:hover,
.header-area .main-menu .sub-menu li a:focus-visible {
    background: #f3f6ff;
}
.header-area .main-menu .sub-menu li a i {
    transform: none;
}
.header-area .header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}
.header-area .header-actions .btn-one {
    padding: 12px 14px !important;
    font-size: 13px !important;
    line-height: 22px;
}
.header-area .header-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    font-size: 24px;
}
.header-area a:focus-visible,
.header-area button:focus-visible,
#targetElement a:focus-visible,
#targetElement button:focus-visible {
    outline: 2px solid #80a5ff;
    outline-offset: 3px;
}

/* Shared desktop header: keep one frosted treatment across every public page. */
@media (min-width: 1200px) {
    .header-area,
    .header-area.is-scrolled,
    .header-area.menu-fixed {
        border-bottom: 1px solid rgba(255, 255, 255, .18);
        background: rgba(5, 19, 40, .90);
        box-shadow: none;
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
    }

    body.domestica-home-page .header-area:not(.is-scrolled):not(.menu-fixed) {
        position: absolute;
        top: 46px;
        left: 0;
        width: 100%;
    }

    .header-area .header-logo-color {
        display: none !important;
    }

    .header-area .header-logo-white {
        display: block !important;
        width: 184px;
        height: auto;
        max-height: 53px;
    }

    .header-area .main-menu nav > ul > li > a {
        color: rgba(255, 255, 255, .92);
    }

    .header-area .main-menu nav > ul > li:hover > a,
    .header-area .main-menu nav > ul > li:focus-within > a {
        color: #9fc0ff;
    }

    .header-area.is-scrolled,
    .header-area.menu-fixed {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }
}

/* The drawer has one menu, one backdrop, and the same logo as the header. */
body.domestica-menu-open {
    overflow: hidden;
}
.domestica-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.5);
}
#targetElement.sidebar-area {
    width: 380px;
    max-width: calc(100vw - 20px);
    height: 100vh;
    height: 100dvh;
    padding: 18px 22px;
    right: 0;
    z-index: 100001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.25s ease, opacity 0.25s ease;
}
#targetElement.sidebar__hide {
    right: 0;
    transform: translateX(100%);
    pointer-events: none;
}
#targetElement > .logo {
    width: auto;
    margin: 0 52px 14px 0;
}
#targetElement > .logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 36px;
}
#targetElement #closeButton {
    top: 16px;
    right: 20px;
    width: 38px;
    height: 38px;
    line-height: 38px;
}
#targetElement .sidebar__search {
    margin-bottom: 22px;
}
#targetElement .mean-bar,
#targetElement .mean-nav {
    background: transparent;
    float: none;
}
#targetElement .mean-bar {
    z-index: auto;
}
#targetElement .mobile-menu {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(128, 165, 255, .5) transparent;
}
#targetElement .mean-bar *,
#targetElement .mean-nav ul li,
#targetElement .mean-nav ul li a {
    box-sizing: border-box;
}
#targetElement .mean-nav ul li,
#targetElement .mean-nav ul li a {
    float: none;
}
#targetElement .mean-nav > ul > li > a:not(.mean-expand) {
    padding: 9px 44px 9px 0;
    font-size: 14px;
    line-height: 22px;
    border-color: rgba(255, 255, 255, .18);
}
#targetElement .mean-nav a.mean-expand {
    top: 5px;
    right: 0;
    display: inline-flex !important;
    width: 32px;
    height: 32px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    color: #fff;
    background: rgba(74, 122, 235, .24);
    font-size: 0 !important;
    line-height: 1;
}
#targetElement .mean-nav a.mean-expand::before {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px);
    transition: transform .2s ease;
}
#targetElement .mean-nav a.mean-expand.mean-clicked::before {
    transform: rotate(225deg) translate(-1px, -1px);
}
#targetElement .mean-nav ul ul {
    margin: 3px 0 7px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
}
#targetElement .mean-nav ul ul li a {
    width: 100%;
    padding: 7px 13px;
    border-color: rgba(255, 255, 255, .1);
    font-size: 12px;
    line-height: 18px;
    opacity: .88;
}
#targetElement .sidebar-btns {
    padding: 0;
    margin-top: auto;
    padding-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    flex: 0 0 auto;
}
#targetElement .sidebar-btns .btn-one {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 9px 8px !important;
    font-size: 12px !important;
    line-height: 1.25;
}
#targetElement .sidebar-btns .btn-one:first-child {
    grid-column: 1 / -1;
}
#targetElement .info {
    margin-top: 24px;
    padding-top: 24px !important;
}
#targetElement .social-icon {
    display: flex;
    justify-content: center;
    margin-top: 12px !important;
    flex: 0 0 auto;
}
@media (min-width: 1400px) {
    .header-area .main-menu nav > ul > li > a {
        font-size: 15px;
    }
    .header-area .header-actions .btn-one {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
}
@media (min-width: 1200px) and (max-width: 1399px) {
    .header-area .header__main {
        gap: 16px;
    }
    .header-area .main-menu nav > ul {
        gap: 11px;
    }
    .header-area .header-actions .btn-one {
        padding: 11px 12px !important;
        font-size: 12px !important;
    }
}
@media (max-width: 1199px) {
    .header-top {
        display: none !important;
    }
    .header-area,
    .header-area.menu-fixed {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, .2);
        background: rgba(5, 19, 40, .90);
        box-shadow: none;
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        transition: background-color .24s ease, box-shadow .24s ease, border-color .24s ease;
    }
    .header-area.is-scrolled,
    .header-area.menu-fixed {
        border-bottom-color: rgba(255, 255, 255, .2);
        background: rgba(5, 19, 40, .90);
        box-shadow: none;
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
    }
    .header-area .header__container {
        max-width: none;
        padding: 0 20px;
    }
    .header-area .header__main {
        min-height: 76px;
        padding: 0;
    }
    .header-area .header__main > .logo {
        flex: 0 1 auto;
        width: auto;
    }
    .header-area .header__main > .logo::before {
        display: none;
    }
    .header-area .header__main > .logo img {
        width: auto;
        height: 38px;
    }
    .header-area .header-logo-color {
        display: none !important;
    }
    .header-area .header-logo-white {
        display: block !important;
    }
    .header-area.is-scrolled .header-logo-color,
    .header-area.menu-fixed .header-logo-color {
        display: none !important;
    }
    .header-area.is-scrolled .header-logo-white,
    .header-area.menu-fixed .header-logo-white {
        display: block !important;
    }
    .header-area .main-menu,
    .header-area .header-actions {
        display: none;
    }
    .header-area .header-menu-toggle {
        display: inline-flex;
    }
    .header-area.is-scrolled .header-menu-toggle,
    .header-area.menu-fixed .header-menu-toggle {
        color: #fff;
        border-color: rgba(255, 255, 255, .42);
        background: rgba(255, 255, 255, .08);
    }
}
@media (max-width: 1199px) and (max-height: 680px) {
    #targetElement.sidebar-area { padding-top: 14px; padding-bottom: 14px; }
    #targetElement > .logo { margin-bottom: 8px; }
    #targetElement > .logo img { height: 30px; }
    #targetElement #closeButton { top: 11px; }
    #targetElement .mean-nav > ul > li > a:not(.mean-expand) {
        padding: 6px 40px 6px 0;
        font-size: 13px;
        line-height: 20px;
    }
    #targetElement .mean-nav a.mean-expand { top: 3px; width: 30px; height: 30px; }
    #targetElement .mean-nav ul ul li a { padding: 5px 11px; line-height: 17px; }
    #targetElement .sidebar-btns { margin-top: auto; padding-top: 8px; }
    #targetElement .sidebar-btns .btn-one { min-height: 36px; padding: 7px 6px !important; }
    #targetElement .social-icon { margin-top: 8px !important; }
    #targetElement .social-icon a { width: 34px; height: 34px; line-height: 34px; }
}
@media (max-width: 575px) {
    .whatsapp-btn {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
        padding: 0;
        justify-content: center;
        gap: 0;
    }
    .whatsapp-btn i {
        font-size: 24px;
    }
}
@media (prefers-reduced-motion: reduce) {
    #targetElement.sidebar-area {
        transition: none;
    }
}
