.acm-header {
    position: relative;
    z-index: 999;
    width: 100%;
    background: #ffffff;
    --acm-main-height: 0px;
    --acm-nav-height: 0px;
}

/* =========================================================
   CONTAINER
========================================================= */

.acm-header-container {
    width: 100%;
    max-width: 1216px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* =========================================================
   TOPO CINZA
========================================================= */

.acm-header-top {
    background: #f3f3f3;
    border-bottom: 1px solid #e5e7eb;
    color: #34415e;
}

.acm-header-top-inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.acm-social-list {
    display: flex;
    align-items: center;
    gap: 14px;
}

.acm-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #52607e;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
}

.acm-social-link:hover {
    color: var(--color-primary);
    transform: translateY(-1px);
}

.acm-top-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    font-size: 14px;
    font-weight: 500;
}

.acm-top-info-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #34415e;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.35;
    transition: color 180ms ease;
}

.acm-top-info-item:hover {
    color: var(--color-primary);
}

.acm-top-info-item svg {
    color: var(--color-primary);
    flex: 0 0 auto;
}

/* =========================================================
   FAIXA ROXA SUPERIOR
========================================================= */

.acm-header-strip {
    background: var(--color-primary);
    color: #ffffff;
}

.acm-header-strip-inner {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.acm-header-strip p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
}

.acm-brand-tags {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.acm-brand-tags span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.acm-brand-tags i {
    width: 8px;
    height: 8px;
    display: block;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
}

/* =========================================================
   BLOCO BRANCO: LOGO + CARDS + BOTÃO
========================================================= */

.acm-header-main {
    position: relative;
    z-index: 3;
    background: #ffffff;
    transition: box-shadow 220ms ease, background 220ms ease;
}

.acm-header-main-inner {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    transition: min-height 220ms ease, padding 220ms ease;
}

.acm-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
}

.acm-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.acm-logo img {
    width: 170px;
    max-width: 100%;
    height: auto;
    display: block;
    transition: width 220ms ease, transform 220ms ease;
}

.acm-header-contact-cards {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(260px, 315px) minmax(340px, 1fr) 198px;
    align-items: center;
    gap: 24px;
    transition: opacity 220ms ease, transform 220ms ease;
}

.acm-contact-card {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f6f7fb;
    color: #111827;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.acm-contact-card:hover {
    background: #eef1f7;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.acm-contact-card-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #e5e3ef;
    color: var(--color-primary);
}

.acm-contact-card-icon svg {
    display: block;
}

.acm-contact-card-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.acm-contact-card-content small {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.acm-contact-card-content strong {
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.acm-contact-card-address strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.acm-service-button {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 28px;
    border-radius: 12px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
    text-align: left;
    transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.acm-service-button:hover {
    background: var(--color-secondary);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.acm-service-button svg {
    flex: 0 0 auto;
}

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

.acm-main-nav {
    position: relative;
    z-index: 4;
    width: 100%;
    background: var(--color-primary);
    color: #ffffff;
    transition: box-shadow 220ms ease, transform 220ms ease, opacity 220ms ease;
}

.acm-nav-panel {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: min-height 220ms ease, padding 220ms ease;
}

.acm-nav-list {
    display: flex;
    align-items: center;
    gap: 36px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.acm-nav-list li {
    margin: 0;
    padding: 0;
}

.acm-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 80px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: color 180ms ease, min-height 220ms ease, opacity 180ms ease, background 180ms ease;
}

.acm-nav-link:hover {
    color: #ffffff;
    opacity: 0.92;
}

.acm-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    height: 3px;
    border-radius: 999px;
    background: #00b050;
    opacity: 0;
    transform: scaleX(0.6);
    transform-origin: center;
    transition: opacity 180ms ease, transform 180ms ease, bottom 220ms ease;
}

.acm-nav-link:hover::after,
.acm-nav-link.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* =========================================================
   HAMBURGUER
========================================================= */

.acm-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: var(--color-primary);
    color: #ffffff;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
}

.acm-mobile-toggle:hover {
    background: var(--color-secondary);
    transform: translateY(-1px);
}

.acm-mobile-toggle svg {
    display: block;
}

.acm-mobile-icon-close {
    display: none;
}

.acm-header.is-menu-open .acm-mobile-icon-open {
    display: none;
}

.acm-header.is-menu-open .acm-mobile-icon-close {
    display: block;
}

.acm-mobile-contact {
    display: none;
}

/* =========================================================
   DESKTOP: MENU FIXO SÓ QUANDO ENCOSTA NO TOPO
========================================================= */

@media (min-width: 992px) {
    .acm-header.is-nav-fixed {
        padding-bottom: var(--acm-nav-height);
    }

    .acm-header.is-nav-fixed .acm-main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 9999;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
        animation: acmNavDrop 220ms ease both;
    }

    .acm-header.is-nav-fixed .acm-nav-panel {
        min-height: 64px;
    }

    .acm-header.is-nav-fixed .acm-nav-link {
        min-height: 64px;
    }

    .acm-header.is-nav-fixed .acm-nav-link::after {
        bottom: 14px;
    }
}

@keyframes acmNavDrop {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

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

/* =========================================================
   RESPONSIVO INTERMEDIÁRIO
========================================================= */

@media (max-width: 1180px) {
    .acm-header-contact-cards {
        grid-template-columns: minmax(240px, 300px) minmax(280px, 1fr) 180px;
        gap: 16px;
    }

    .acm-contact-card-content strong {
        font-size: 13px;
    }

    .acm-service-button {
        padding: 12px 20px;
    }
}

/* =========================================================
   MOBILE / TABLET
========================================================= */

@media (max-width: 991px) {
    .acm-header {
        z-index: 9999;
        background: #ffffff;
    }

    .acm-header-container {
        padding: 0 16px;
    }

    /*
      No mobile o topo cinza e a faixa superior somem.
      As informações importantes entram dentro do menu.
      Sim, menu mobile precisa ser menu, não uma planilha dobrável.
    */
    .acm-header-top,
    .acm-header-strip {
        display: none;
    }

    .acm-header-main {
        position: sticky;
        top: 0;
        z-index: 10002;
        background: #ffffff;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    }

    .acm-header-main-inner {
        min-height: 74px;
        padding-top: 10px;
        padding-bottom: 10px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .acm-logo-wrap {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .acm-logo img {
        width: 142px;
    }

    .acm-header.is-mobile-compact .acm-header-main {
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
    }

    .acm-header.is-mobile-compact .acm-header-main-inner {
        min-height: 66px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .acm-header.is-mobile-compact .acm-logo img {
        width: 126px;
    }

    .acm-mobile-toggle {
        display: inline-flex;
        flex: 0 0 44px;
    }

    /*
      Os cards grandes NÃO aparecem no mobile fora do menu.
      Eles estavam empurrando os links para baixo, porque claro que estavam.
    */
    .acm-header-contact-cards {
        display: none;
    }

    .acm-main-nav {
        position: fixed;
        top: var(--acm-main-height);
        left: 0;
        right: 0;
        bottom: auto;
        z-index: 10001;
        display: block;
        background: var(--color-primary);
        color: #ffffff;
        box-shadow: 0 18px 34px rgba(15, 23, 42, 0.28);
        border-bottom: 18px solid #ffffff;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 200ms ease, visibility 200ms ease, transform 200ms ease;
    }

    .acm-header.is-menu-open .acm-main-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .acm-nav-panel {
        display: flex;
        min-height: auto;
        max-height: calc(100vh - var(--acm-main-height));
        overflow-y: auto;
        padding: 22px 0 26px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 22px;
    }

    .acm-nav-list {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin: 0;
        padding: 0;
    }

    .acm-nav-list li {
        width: 100%;
    }

    .acm-nav-link {
        width: 100%;
        min-height: 52px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-align: center;
    }

    .acm-nav-link:hover,
    .acm-nav-link.is-active {
        background: rgba(255, 255, 255, 0.16);
        opacity: 1;
    }

    .acm-nav-link::after {
        left: 50%;
        right: auto;
        bottom: 6px;
        width: 72px;
        transform: translateX(-50%) scaleX(0.6);
    }

    .acm-nav-link:hover::after,
    .acm-nav-link.is-active::after {
        transform: translateX(-50%) scaleX(1);
    }

    .acm-mobile-contact {
        display: flex;
        flex-direction: column;
        gap: 13px;
        width: 100%;
        padding: 18px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .acm-mobile-contact-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: rgba(255, 255, 255, 0.94);
        font-size: 13px;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
        line-height: 1.35;
    }

    .acm-mobile-contact-item svg {
        flex: 0 0 auto;
    }

    .acm-mobile-service-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        margin-top: 4px;
        border-radius: 14px;
        background: #ffffff;
        color: var(--color-primary);
        font-size: 14px;
        font-weight: 800;
        text-decoration: none;
        transition: background 180ms ease, transform 180ms ease;
    }

    .acm-mobile-service-button:hover {
        background: #f8fafc;
        transform: translateY(-1px);
    }

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

/* =========================================================
   CELULAR PEQUENO
========================================================= */

@media (max-width: 640px) {
    .acm-header-container {
        padding: 0 14px;
    }

    .acm-header-main-inner {
        min-height: 70px;
    }

    .acm-logo img {
        width: 136px;
    }

    .acm-header.is-mobile-compact .acm-logo img {
        width: 122px;
    }

    .acm-mobile-toggle {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 10px;
    }

    .acm-nav-panel {
        padding-top: 18px;
        padding-bottom: 22px;
        gap: 20px;
    }

    .acm-nav-list {
        gap: 8px;
    }

    .acm-nav-link {
        min-height: 50px;
        font-size: 13px;
        border-radius: 12px;
    }

    .acm-mobile-contact-item {
        font-size: 12.5px;
    }

    .acm-mobile-service-button {
        min-height: 48px;
        border-radius: 12px;
    }
}