.ef-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: transparent;
    padding: 10px 0;
    transition: box-shadow 0.15s linear;
}

.ef-header {
    /* No border-bottom on original */
    background: black;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ef-header__container {
    width: 100%;
    max-width: 1224px;
    margin: 0 auto;
    padding: 6px 16px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 32px;
}

.ef-header__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
}

.ef-header__menu .submenu-arrow svg {
    width: 14px;
    height: 14px;
}

.ef-mobile-menu .submenu-arrow svg {
    width: 14px;
    height: 14px;
}

.ef-header__logo img {
    width: 43px;
    height: 43px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.ef-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ef-header__menu {
    display: flex;
    align-items: center;
    gap: 31px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ef-header__menu>li {
    position: relative;
}

.ef-header__menu>li>a,
.submenu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

.ef-sticky-bar {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    top: 0;
    z-index: 1100;
    position: relative;
    z-index: 1;
}

.ef-sticky-bar__container {
    max-width: 1224px;
    min-height: 34px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ef-sticky-bar__text {
    margin: 0;
    color: #1a1a1a;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
}

.ef-sticky-bar__text span {
    color: #ff0000;
    font-weight: 900;
}

/* header base declarado acima */

.submenu-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.block-header-item__mobile-dropdown-trigger:checked~.block-header-item__label .submenu-arrow {
    transform: rotate(180deg);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 360px;
    max-width: 420px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    padding: 14px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 6px 14px 0px;
    z-index: 99999;
}

.sub-menu li a {
    display: block;
    padding: 12px 18px;
}

.menu-item-has-children::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
}

.menu-item-has-children {
    position: relative;
}

.sub-menu li {
    margin: 0;
}

.sub-menu a {
    display: block;
    padding: 12px 18px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
    transition: background 0.2s ease, color 0.2s ease;
}

.sub-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #efcb59;
}

.ef-header__socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ef-header__socials a,
.social-icons__link {
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.ef-header__socials a:hover,
.social-icons__link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.ef-header__socials svg,
.ef-mobile-menu__socials svg,
.social-icons__link svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Botão WhatsApp foi movido para .grid-button no início do arquivo */

.ef-header__hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.ef-header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.ef-header__hamburger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.ef-header__hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.ef-header__hamburger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.ef-mobile-menu {
    display: none;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 24px 26px;
    z-index: 2000;
}

.ef-header {
    z-index: 2000;
}

.ef-mobile-menu.is-open {
    display: block;
}

.ef-mobile-menu__list,
.ef-mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ef-mobile-menu__list>li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ef-mobile-menu__list>li>a,
.ef-mobile-submenu-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
    background: transparent;
    border: none;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.ef-mobile-submenu {
    display: none;
    padding-bottom: 8px;
}

/* Submenu mobile: Leia sobre */
.ef-mobile-submenu {
    max-height: calc(100dvh - 220px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 6px;
}

.ef-mobile-menu {
    height: calc(100dvh - var(--ef-header-total-height, 0px));
    overflow: hidden;
}

.ef-mobile-submenu {
    max-height: calc(75dvh - 220px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ef-mobile-submenu-item.is-open .ef-mobile-submenu {
    display: block;
}

.ef-mobile-submenu-item.is-open .submenu-arrow {
    transform: rotate(180deg);
}

.ef-mobile-submenu a {
    display: block;
    padding: 10px 0 10px 14px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
}

.ef-mobile-menu__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding-top: 20px;
}

.ef-mobile-menu__socials a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.ef-mobile-menu__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: 22px;
    padding: 0 20px;
    border-radius: 999px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.ef-header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
}

.ef-header__logo .custom-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    line-height: 0;
}

.ef-header__logo .custom-logo {
    display: block;
    width: 43px !important;
    height: 43px !important;
    max-width: 43px;
    max-height: 43px;
    object-fit: contain;
    border-radius: 0;
}

.ef-header__logo-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

/* Dropdown com checkbox hack (igual ao original) */
.block-header-item__mobile-dropdown-trigger {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.block-header-item__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 360px;
    max-width: 420px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    padding: 14px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 6px 14px 0px;
    z-index: 99999;
    display: block;
}

.block-header-item__dropdown-area {
    position: relative;
}

.block-header-item__mobile-dropdown-trigger:checked~.block-header-item__dropdown-area .block-header-item__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);

    min-height: 100px;
    max-height: min(70dvh, 520px);

    overflow-y: auto;
    overflow-x: hidden;

    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;

    padding-right: 8px;
}

.block-header-item__dropdown::-webkit-scrollbar {
    width: 6px;
}

.block-header-item__dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.block-header-item__dropdown::-webkit-scrollbar-thumb {
    background: rgba(224, 184, 74, 0.65);
    border-radius: 999px;
}

.block-header-item__dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(224, 184, 74, 0.95);
}

.block-header-item__dropdown {
    scrollbar-width: thin;
    scrollbar-color: rgba(224, 184, 74, 0.65) transparent;
}

.block-header-item__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

.item-content-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.block-header-item__dropdown li a {
    display: block;
    padding: 12px 18px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
    transition: background 0.2s ease, color 0.2s ease;
}

.block-header-item__dropdown li a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #efcb59;
}

.grid-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.grid-button--primary {
    min-height: 46px;
    padding: 14px 34px;
    border-radius: 999px;
    background: #fff;
    color: #000 !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.grid-button--primary:hover {
    background: rgb(29, 30, 32);
    color: rgb(255, 255, 255) !important;
}

.block-header__button {
    margin-left: auto;
}

/* Hambúrguer igual ao original */
.burger {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
    opacity: 0;
}

.burger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.block-header-item__dropdown::-webkit-scrollbar {
    width: 6px;
}

.block-header-item__dropdown::-webkit-scrollbar-thumb {
    background: rgba(224, 184, 74, 0.7);
    border-radius: 999px;
}

.block-header-item__dropdown a:hover {
    background: rgba(224, 184, 74, 0.08);
    color: #e0b84a;
}

.block-header-item__dropdown {
    max-height: min(70vh, 520px);
}

.block-header-item__dropdown {
    mask-image: linear-gradient(to bottom,
            transparent,
            black 20px,
            black calc(100% - 20px),
            transparent);
}

/* ========================================
   HEADER - HOVER LINKS
======================================== */

.ef-header__menu>li>a,
.block-header-item__label {
    transition: color 0.2s ease, opacity 0.2s ease;
}

.ef-header__menu>li>a:hover,
.ef-header__menu>li>a:focus-visible,
.block-header-item__label:hover,
.block-header-item__label:focus-visible {
    color: rgb(237, 237, 237);
    /* Matching original header link hover color */
}

.ef-header__menu>li>a:hover .submenu-arrow,
.block-header-item__label:hover .submenu-arrow {
    color: #efcb59;
}

.ef-header__menu>li>a,
.submenu-toggle {
    position: relative;
    transition: color .24s ease, opacity .24s ease;
}

.ef-header__menu>li>a::after,
.submenu-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 1px;
    border-radius: 999px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transform-origin: center;
    opacity: .9;
    transition: transform .28s;
}

.ef-header__menu>li>a:hover::after,
.submenu-toggle:hover::after {
    transform: scaleX(1);
}

@media (min-width: 993px) {
    .ef-mobile-menu {
        display: none !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    body.menu-open {
        overflow: auto;
    }
}

/* Desktop hover-based dropdown activation */

@media (max-width: 1200px) {
    .ef-header__container {
        grid-template-columns: min-content auto min-content;
    }

    .ef-header__socials {
        display: none;
    }
}

@media (max-width: 992px) {
    .ef-header__container {
        grid-template-columns: min-content 1fr min-content;
        gap: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ef-header__nav,
    .ef-header__cta,
    .block-header__button {
        display: none;
    }

    .ef-header__hamburger,
    .burger,
    .block-header__hamburger-menu {
        /* This class is used in header.php */
        display: flex;
        position: absolute;
        left: 20px;
    }

    .ef-mobile-menu__socials {
        justify-content: center;
    }

    .ef-mobile-menu__list>li>a,
    .ef-mobile-submenu-toggle {
        justify-content: center;
    }

    .ef-mobile-submenu a {
        text-align: center;
    }

    .ef-mobile-submenu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }


    .menu-item-has-children:hover>.sub-menu,
    .ef-header__menu>li:hover>.sub-menu,
    .ef-header__menu>li:hover .block-header-item__dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* ========================================
   QA UX/UI FINAL — HEADER 2026-04-26
   Dropdown responsivo, scroll premium e correção mobile → desktop
======================================== */

@media (min-width: 993px) {

    .block-header-item__dropdown,
    .sub-menu {
        max-height: min(70dvh, 520px);
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(224, 184, 74, 0.72) transparent;
    }

    .block-header-item__dropdown::-webkit-scrollbar,
    .sub-menu::-webkit-scrollbar {
        width: 6px;
    }

    .block-header-item__dropdown::-webkit-scrollbar-track,
    .sub-menu::-webkit-scrollbar-track {
        background: transparent;
    }

    .block-header-item__dropdown::-webkit-scrollbar-thumb,
    .sub-menu::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, rgba(249, 242, 149, 0.82), rgba(224, 184, 74, 0.72));
        border-radius: 999px;
    }

    .block-header-item__dropdown a:hover,
    .sub-menu a:hover {
        background: rgba(224, 184, 74, 0.085);
        color: #efcb59;
    }

    .ef-mobile-menu {
        display: none !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    body.menu-open {
        overflow: auto;
    }
}

@media (max-width: 992px) {
    body.menu-open {
        overflow: hidden;
    }

    .ef-mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 1800;
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
        padding: 120px 24px calc(26px + env(safe-area-inset-bottom, 0px));
        background: #000;
    }


    .ef-mobile-menu.is-open {
        display: flex;
        flex-direction: column;
    }

    .ef-mobile-menu__nav {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .ef-mobile-submenu {
        max-height: min(52dvh, 420px);
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(224, 184, 74, 0.55) transparent;
    }

    .ef-mobile-menu__nav::-webkit-scrollbar,
    .ef-mobile-submenu::-webkit-scrollbar {
        width: 4px;
    }

    .ef-mobile-menu__nav::-webkit-scrollbar-track,
    .ef-mobile-submenu::-webkit-scrollbar-track {
        background: transparent;
    }

    .ef-mobile-menu__nav::-webkit-scrollbar-thumb,
    .ef-mobile-submenu::-webkit-scrollbar-thumb {
        background: rgba(224, 184, 74, 0.58);
        border-radius: 999px;
    }

    .ef-mobile-menu__socials,
    .ef-mobile-menu__cta {
        flex: 0 0 auto;
    }

    .ef-sticky-bar__text {
        font-size: 15px;
        padding: 8px;
    }
}

body.menu-open .ef-home-whatsapp,
body.menu-open .ef-whatsapp-float {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.84);
}