/**
 * Cabeçalho BAW (body.machion-baw-header) — grid do menu, logo e CTA.
 * Carregado no layout do site público; evita repetir este bloco em cada CSS de página.
 */

/* Faixa superior do cabeçalho */
body.machion-baw-header .header-top .outer-container {
    padding-top: 10px;
    padding-bottom: 10px;
}

body.machion-baw-header .header-top .social-links li h5,
body.machion-baw-header .header-top .links-list li {
    font-size: 14px;
    line-height: 20px;
}

body.machion-baw-header .header-top .social-links li a {
    font-size: 16px;
}

body.machion-baw-header .header-top .social-links li:before {
    top: 10px;
}

body.machion-baw-header .header-top .links-list li a {
    white-space: nowrap;
}

/* Header inferior: esquerda | centro (nav) | direita */
@media (min-width: 768px) {
    body.machion-baw-header .main-header .header-lower .outer-box,
    body.machion-baw-header .sticky-header .outer-box {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 0;
    }

    body.machion-baw-header .main-header .header-lower .menu-left-content,
    body.machion-baw-header .sticky-header .menu-left-content {
        grid-column: 1;
        justify-self: start;
        margin-right: 0;
        border-right: none;
        padding-right: 36px;
    }

    body.machion-baw-header .main-header .header-lower .menu-area,
    body.machion-baw-header .sticky-header .menu-area {
        grid-column: 2;
        justify-self: stretch;
        display: flex;
        justify-content: center;
        align-items: center;
        flex: none !important;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        border-left: 1px solid #e2e2e2;
        border-right: 1px solid #e2e2e2;
        padding-left: 32px;
        padding-right: 32px;
    }

    body.machion-baw-header .main-header .header-lower .menu-area .main-menu,
    body.machion-baw-header .sticky-header .menu-area .main-menu {
        float: none;
        margin: 0 auto;
        flex-shrink: 0;
    }

    body.machion-baw-header .main-header .header-lower .menu-right-content,
    body.machion-baw-header .sticky-header .menu-right-content {
        grid-column: 3;
        justify-self: end;
        margin-left: 0;
        border-left: none;
        padding-left: 36px;
    }
}

body.machion-baw-header .main-header .header-lower .menu-left-content,
body.machion-baw-header .sticky-header .menu-left-content {
    padding-top: 20px;
    padding-bottom: 20px;
}

body.machion-baw-header .main-header .header-lower .menu-left-content .logo-box,
body.machion-baw-header .sticky-header .menu-left-content .logo-box {
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 32px;
}

body.machion-baw-header .main-header .header-lower .menu-left-content .logo-box img,
body.machion-baw-header .sticky-header .menu-left-content .logo-box img {
    max-height: 52px;
    width: auto;
    vertical-align: middle;
}

body.machion-baw-header .main-header .header-lower .menu-left-content .logo-box:before,
body.machion-baw-header .sticky-header .menu-left-content .logo-box:before {
    display: none;
}

body.machion-baw-header .main-header .header-lower .menu-right-content,
body.machion-baw-header .sticky-header .menu-right-content {
    padding-top: 20px;
    padding-bottom: 20px;
}

body.machion-baw-header .main-header .header-lower .menu-right-content .option-list,
body.machion-baw-header .sticky-header .menu-right-content .option-list {
    margin-right: 0;
}

body.machion-baw-header .main-header .header-lower .menu-right-content .option-list:not(:has(> li)),
body.machion-baw-header .sticky-header .menu-right-content .option-list:not(:has(> li)) {
    display: none;
}

body.machion-baw-header .main-header .header-lower .menu-right-content .option-list:not(:has(> li)):before,
body.machion-baw-header .sticky-header .menu-right-content .option-list:not(:has(> li)):before {
    display: none;
}

body.machion-baw-header .main-header .header-lower .menu-right-content .option-list:before,
body.machion-baw-header .sticky-header .menu-right-content .option-list:before {
    height: 52px;
    right: -28px;
}

body.machion-baw-header .main-header .header-lower .menu-right-content .btn-box,
body.machion-baw-header .sticky-header .menu-right-content .btn-box {
    padding-left: 44px;
}

body.machion-baw-header .main-header .header-lower .menu-right-content .btn-box .icon-box,
body.machion-baw-header .sticky-header .menu-right-content .btn-box .icon-box {
    width: 40px;
    height: 40px;
    line-height: 42px;
    font-size: 18px;
    top: -4px;
}

body.machion-baw-header .main-header .header-lower .menu-right-content .btn-box a,
body.machion-baw-header .sticky-header .menu-right-content .btn-box a {
    font-size: 14px;
    line-height: 24px;
}

body.machion-baw-header .main-header .header-lower .main-menu .navigation > li,
body.machion-baw-header .sticky-header .main-menu .navigation > li {
    margin-left: 12px;
    margin-right: 12px;
}

body.machion-baw-header .main-header .header-lower .main-menu .navigation > li > a,
body.machion-baw-header .sticky-header .main-menu .navigation > li > a {
    padding-top: 16px;
    padding-bottom: 16px;
    line-height: 26px;
    font-size: 16px;
    white-space: nowrap;
}

body.machion-baw-header .main-header .header-lower .main-menu .navigation > li > a:before,
body.machion-baw-header .sticky-header .main-menu .navigation > li > a:before {
    top: 16px;
}

body.machion-baw-header .main-header .header-lower .main-menu .navigation > li > a:after,
body.machion-baw-header .sticky-header .main-menu .navigation > li > a:after {
    top: 17px;
}

body.machion-baw-header .header-top .links-list li a .numerodtel {
    display: inline;
}

/* Telas menores (menu hambúrguer): sem linhas, CTA oculto, hambúrguer à direita, topo alinhado à direita.
   Alinhado ao tema (responsive.css esconde .main-menu em max-width: 1200px). */
@media (max-width: 1200px) {
    body.machion-baw-header .header-top .outer-container {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
    }

    body.machion-baw-header .header-top .social-links,
    body.machion-baw-header .header-top .links-list {
        width: 100%;
        text-align: right;
    }

    body.machion-baw-header .header-top .social-links li,
    body.machion-baw-header .header-top .links-list li {
        float: none;
    }

    body.machion-baw-header .header-top .social-links li:before {
        display: none;
    }

    body.machion-baw-header .main-header .header-lower .outer-box {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    body.machion-baw-header .main-header .header-lower .menu-left-content {
        flex: 0 0 auto;
        border-right: none !important;
        padding-right: 0;
        margin-right: 0;
    }

    body.machion-baw-header .main-header .header-lower .menu-left-content .logo-box {
        margin-right: 0;
    }

    body.machion-baw-header .main-header .header-lower .menu-area {
        flex: 1 1 auto;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: auto;
        max-width: none;
        border-left: none !important;
        border-right: none !important;
        padding-left: 0;
        padding-right: 0;
    }

    body.machion-baw-header .main-header .header-lower .menu-area .mobile-nav-toggler {
        float: none;
        margin-left: 0;
    }

    body.machion-baw-header .main-header .header-lower .menu-right-content {
        display: none;
    }
}

/* 1201–1499px: o tema (responsive.css) esconde .btn-box. Especificidade maior, sem !important. */
@media (min-width: 1201px) and (max-width: 1499px) {
    body.machion-baw-header .main-header .header-lower .menu-right-content .btn-box,
    body.machion-baw-header .sticky-header .menu-right-content .btn-box {
        display: block;
    }
}

/* 1400–1699.98px: mesmo layout, compactado. Ícone + texto no CTA. */
@media (min-width: 1400px) and (max-width: 1699.98px) {
    body.machion-baw-header .main-header .header-lower .menu-left-content,
    body.machion-baw-header .sticky-header .menu-left-content {
        padding-right: 16px;
    }

    body.machion-baw-header .main-header .header-lower .menu-left-content .logo-box,
    body.machion-baw-header .sticky-header .menu-left-content .logo-box {
        margin-right: 16px;
    }

    body.machion-baw-header .main-header .header-lower .menu-area,
    body.machion-baw-header .sticky-header .menu-area {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.machion-baw-header .main-header .header-lower .menu-right-content,
    body.machion-baw-header .sticky-header .menu-right-content {
        padding-left: 16px;
    }

    body.machion-baw-header .main-header .header-lower .menu-right-content .btn-box,
    body.machion-baw-header .sticky-header .menu-right-content .btn-box {
        padding-left: 40px;
    }

    body.machion-baw-header .main-header .header-lower .main-menu .navigation > li,
    body.machion-baw-header .sticky-header .main-menu .navigation > li {
        margin-left: 6px;
        margin-right: 6px;
    }

    body.machion-baw-header .main-header .header-lower .main-menu .navigation > li > a,
    body.machion-baw-header .sticky-header .main-menu .navigation > li > a {
        font-size: 15px;
    }
}

/* 1201–1399.98px: compactação maior. CTA só com o quadrado laranja. */
@media (min-width: 1201px) and (max-width: 1399.98px) {
    body.machion-baw-header .main-header .header-lower .menu-left-content,
    body.machion-baw-header .sticky-header .menu-left-content {
        padding-right: 12px;
    }

    body.machion-baw-header .main-header .header-lower .menu-left-content .logo-box,
    body.machion-baw-header .sticky-header .menu-left-content .logo-box {
        margin-right: 12px;
    }

    body.machion-baw-header .main-header .header-lower .menu-area,
    body.machion-baw-header .sticky-header .menu-area {
        padding-left: 10px;
        padding-right: 10px;
    }

    body.machion-baw-header .main-header .header-lower .menu-right-content,
    body.machion-baw-header .sticky-header .menu-right-content {
        padding-left: 12px;
    }

    body.machion-baw-header .main-header .header-lower .main-menu .navigation > li,
    body.machion-baw-header .sticky-header .main-menu .navigation > li {
        margin-left: 4px;
        margin-right: 4px;
    }

    body.machion-baw-header .main-header .header-lower .main-menu .navigation > li > a,
    body.machion-baw-header .sticky-header .main-menu .navigation > li > a {
        font-size: 15px;
    }

    body.machion-baw-header .main-header .header-lower .menu-right-content .btn-box,
    body.machion-baw-header .sticky-header .menu-right-content .btn-box {
        width: 40px;
        height: 40px;
        padding-left: 0;
    }

    body.machion-baw-header .main-header .header-lower .menu-right-content .btn-box .icon-box,
    body.machion-baw-header .sticky-header .menu-right-content .btn-box .icon-box {
        top: 0;
        line-height: 40px;
        pointer-events: none;
    }

    body.machion-baw-header .main-header .header-lower .menu-right-content .btn-box a,
    body.machion-baw-header .sticky-header .menu-right-content .btn-box a {
        position: absolute;
        inset: 0;
        z-index: 1;
        padding: 0;
        overflow: hidden;
    }

    body.machion-baw-header .main-header .header-lower .menu-right-content .btn-box a .baw-cta-text,
    body.machion-baw-header .sticky-header .menu-right-content .btn-box a .baw-cta-text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }

    body.machion-baw-header .main-header .header-lower .menu-right-content .btn-box a i,
    body.machion-baw-header .sticky-header .menu-right-content .btn-box a i {
        display: none;
    }
}
