/* ===========================
   MEGA MENU PLUGIN - CSS
   Prefixo: mm- (para evitar conflito com o tema)
   =========================== */

/* ===========================
   BARRA SUPERIOR
   =========================== */
.mm-top-bar {
    background: linear-gradient(270deg, #8A70FF 0%, #E13F96 100%);
    padding: 8px 40px;
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    z-index: 9999;
    position: relative;
}

.mm-top-bar a {
    color: white !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}

.mm-top-bar a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* ===========================
   NAVBAR
   =========================== */
.mm-navbar {
    background: #FDEAE2;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 70px;
    z-index: 9998;
}

.mm-logo {
    text-decoration: none !important;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mm-logo img,
.mm-logo .mm-logo-img {
    height: 35px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain;
}

/* Força a logo do WordPress (custom_logo) a ficar pequena */
.mm-logo .custom-logo-link,
.mm-logo .custom-logo-link img,
.mm-logo .custom-logo {
    height: 35px !important;
    width: auto !important;
    max-width: 180px !important;
}

.mm-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #3a3a3a !important;
    text-decoration: none !important;
}

/* Ícones dos itens do menu (Font Awesome JS → SVG inline) */
.mm-icon {
    margin-right: 5px;
    font-size: 13px;
    color: #DB3460;
}

/* Quando FA JS converte <i> para <svg>, garante tamanho e cor */
.mm-navbar svg.svg-inline--fa {
    width: 14px;
    height: 14px;
    color: #DB3460;
    margin-right: 5px;
    vertical-align: middle;
}

/* ===========================
   MENU DESKTOP
   =========================== */
.mm-menu-desktop {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mm-menu-desktop > li {
    position: relative;
    height: 70px;
    display: flex;
    align-items: center;
    list-style: none !important;
}

.mm-menu-desktop > li > a,
.mm-menu-desktop > li > .mm-trigger {
    padding: 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #3a3a3a !important;
    cursor: pointer;
    transition: color 0.2s;
    border: none;
    background: none;
    font-family: inherit;
    text-decoration: none !important;
    white-space: nowrap;
}

.mm-menu-desktop > li > a:hover,
.mm-menu-desktop > li > .mm-trigger:hover,
.mm-menu-desktop > li.mm-active > a,
.mm-menu-desktop > li.mm-active > .mm-trigger {
    color: #DB3460 !important;
    text-decoration: none !important;
    background: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove fundo cinza que aparece ao clicar */
.mm-menu-desktop > li > .mm-trigger:focus,
.mm-menu-desktop > li > .mm-trigger:active,
.mm-menu-desktop > li > a:focus,
.mm-menu-desktop > li > a:active {
    background: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #DB3460 !important;
}

.mm-arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.mm-menu-desktop > li.mm-active .mm-arrow {
    transform: rotate(180deg);
}

/* Item rosa (Clínicas) */
.mm-item-pink > a {
    color: #FF7D9F !important;
}

.mm-item-pink > a:hover {
    color: #e0607f !important;
}

/* ===========================
   MEGA DROPDOWN (Desktop)
   =========================== */
.mm-mega-dropdown {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    background: #f3f3f3;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 30px 40px;
    display: none;
    z-index: 10000;
    animation: mmFadeInLeft 0.25s ease;
    box-sizing: border-box;
}

.mm-mega-dropdown.mm-align-left {
    left: 0;
    right: 0;
}

.mm-mega-dropdown.mm-align-right {
    left: auto;
    right: 0;
    transform: none;
}

.mm-menu-desktop > li.mm-active .mm-mega-dropdown {
    display: flex;
}

@keyframes mmFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes mmFadeInLeft {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Imagem lateral */
.mm-mega-image {
    min-width: 200px;
    max-width: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 24px;
    flex-shrink: 0;
    align-self: stretch;
    position: relative;
}

.mm-mega-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mm-mega-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 250px;
    background: linear-gradient(135deg, #DB3460, #FF7D9F);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
}

/* Colunas */
.mm-mega-columns {
    display: flex;
    gap: 30px;
    flex: 1;
}

.mm-mega-column {
    flex: 1;
    min-width: 180px;
}

.mm-mega-column h4 {
    font-size: 13px;
    font-weight: 700;
    color: #3a3a3a;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #DB3460;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mm-mega-column ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mm-mega-column ul li {
    list-style: none !important;
}

.mm-mega-column ul li a {
    display: block;
    padding: 6px 0;
    font-size: 13px;
    color: #555 !important;
    transition: all 0.2s;
    text-decoration: none !important;
}

.mm-mega-column ul li a:hover {
    color: #DB3460 !important;
    padding-left: 6px;
    text-decoration: none !important;
}

.mm-mega-column ul li a::before {
    content: "●";
    font-size: 6px;
    margin-right: 8px;
    color: #DB3460;
    vertical-align: middle;
}

/* Dropdown simples (Acessos) */
.mm-simple-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #f3f3f3;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    padding: 12px 0;
    display: none;
    min-width: 200px;
    z-index: 10000;
    animation: mmFadeInLeft 0.25s ease;
}

.mm-menu-desktop > li.mm-active .mm-simple-dropdown {
    display: block;
}

.mm-simple-dropdown ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mm-simple-dropdown ul li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: #555 !important;
    transition: all 0.2s;
    text-decoration: none !important;
}

.mm-simple-dropdown ul li a:hover {
    background: #e9e9e9;
    color: #DB3460 !important;
    text-decoration: none !important;
}

/* ===========================
   HAMBURGER (Mobile)
   =========================== */
.mm-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 10010;
}

.mm-hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #3a3a3a;
    border-radius: 3px;
    transition: all 0.3s;
}

.mm-hamburger.mm-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mm-hamburger.mm-active span:nth-child(2) {
    opacity: 0;
}

.mm-hamburger.mm-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===========================
   OVERLAY MOBILE
   =========================== */
.mm-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
}

.mm-mobile-overlay.mm-active {
    display: block;
}

/* ===========================
   MENU MOBILE
   =========================== */
.mm-mobile {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background: white;
    z-index: 10005;
    overflow-y: auto;
    transition: right 0.35s ease;
    padding-top: 70px;
}

.mm-mobile.mm-active {
    right: 0;
}

.mm-mobile > ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mm-mobile > ul > li {
    border-bottom: 1px solid #eee;
    list-style: none !important;
}

.mm-mobile > ul > li > a,
.mm-mobile > ul > li > .mm-mobile-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #3a3a3a !important;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    font-family: inherit;
    text-align: left;
    text-decoration: none !important;
}

.mm-mobile > ul > li > a:hover,
.mm-mobile > ul > li > .mm-mobile-trigger:hover {
    background: #f9f9f9;
    text-decoration: none !important;
}

.mm-mobile-arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.mm-mobile > ul > li.mm-mobile-open > .mm-mobile-trigger .mm-mobile-arrow {
    transform: rotate(180deg);
}

.mm-mobile > ul > li.mm-mobile-open > .mm-mobile-trigger {
    color: #DB3460 !important;
}

/* Submenu mobile */
.mm-mobile-submenu {
    display: none;
    background: #f7f7f7;
    padding: 0 20px 16px 20px;
}

.mm-mobile > ul > li.mm-mobile-open .mm-mobile-submenu {
    display: block;
}

.mm-mobile-submenu h5 {
    font-size: 12px;
    font-weight: 700;
    color: #DB3460;
    margin: 14px 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mm-mobile-submenu ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mm-mobile-submenu ul li {
    list-style: none !important;
}

.mm-mobile-submenu ul li a {
    display: block;
    padding: 8px 0 8px 12px;
    font-size: 13px;
    color: #555 !important;
    border-left: 2px solid #ddd;
    transition: all 0.2s;
    text-decoration: none !important;
}

.mm-mobile-submenu ul li a:hover {
    color: #DB3460 !important;
    border-left-color: #DB3460;
    text-decoration: none !important;
}

/* Item rosa no mobile */
.mm-mobile-pink > a {
    color: #FF7D9F !important;
}

/* ===========================
   RESPONSIVO
   =========================== */
@media (max-width: 1024px) {
    .mm-top-bar {
        display: none;
    }

    .mm-menu-desktop {
        display: none !important;
    }

    .mm-hamburger {
        display: flex;
    }

    .mm-mobile {
        display: block;
    }

    .mm-navbar {
        padding: 0 20px;
    }
}

@media (min-width: 1025px) {
    .mm-mobile,
    .mm-mobile-overlay,
    .mm-hamburger {
        display: none !important;
    }
}
