/* Mobile menu styles */
.toggle_menu {
    display: none; /* Hide by default */
}

/* Show only on mobile devices (max-width: 767px) */
@media (max-width: 767px) {
    .toggle_menu {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        z-index: 1000;
    }

    .page_header.ls.affix-top .logo {
		max-height: 40px !important;
		margin-left: 5px !important;
	}

    .page_header {
        transition:initial 0.5s ease;
    }

    .serv-page .media {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 40px;
    }

    .serv-page .media:last-child {
        margin-bottom: 0;
    }

    /* Para a coluna da esquerda, o HTML tem o texto antes do ícone. Invertemos a ordem no mobile. */
    .serv-page .media.text-xl-right .media-body {
        order: 2;
    }
    .serv-page .media.text-xl-right .icon-styled {
        order: 1;
    }

    .toggle_menu span {
        display: block;
        width: 30px;
        height: 3px;
        background-color: #fff;
        position: relative;
        transition: all 0.3s ease;
    }

    .toggle_menu span:before,
    .toggle_menu span:after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: #fff;
        transition: all 0.3s ease;
    }

    .toggle_menu span:before {
        top: -8px;
    }

    .toggle_menu span:after {
        bottom: -8px;
    }

    /* Animation for menu icon when active */
    .toggle_menu.active span {
        background-color: transparent;
    }

    .toggle_menu.active span:before {
        transform: rotate(45deg);
        top: 0;
    }

    .toggle_menu.active span:after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    .flag-text {
        background-size: 300% auto !important; /* dar zoom para se ajustar ao texto menor */
        background-position: 30% 40% !important;
        font-size: 28px !important;
        line-height: 1.05 !important;
    }
    .flag-text--optionA { background-position: 18% 35% !important; }
    .flag-text--optionB { background-position: 45% 55% !important; }

    /* Carousel responsivo para mobile */
    .hero-carousel .carousel-item img {
        min-height: auto !important;
        max-height: 300px !important;
        object-fit: contain !important;
    }

    .page_slider.hero-carousel {
        padding-top: 0 !important;
    }
}

/* Hide menu on larger screens */
@media (min-width: 768px) {
    .toggle_menu {
        display: none !important;
    }
}
