/* Responsive Styles and Animations */

/* General Responsive Styles */
@media (max-width: 992px) {
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    h1,
    h2 {
        font-size: calc(1.2rem + 1vw);
    }

    p {
        font-size: 14px;
    }
}

/* Mobile Navbar Styles */
.mobile-navbar {
    display: none;
    width: 100%;
    background-color: #ffffff;
    padding: 10px 0;
    position: relative;
    z-index: 1000;
}

.hamburger-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.hamburger-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    width: 40px;
    height: 40px;
}

.hamburger-icon,
.hamburger-icon:before,
.hamburger-icon:after {
    background-color: #13718a;
    content: '';
    display: block;
    height: 3px;
    position: absolute;
    transition: all 0.3s ease-in-out;
    width: 24px;
}

.hamburger-icon {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-icon:before {
    top: -8px;
}

.hamburger-icon:after {
    bottom: -8px;
}

.hamburger-button.active .hamburger-icon {
    background-color: transparent;
}

.hamburger-button.active .hamburger-icon:before {
    transform: rotate(45deg);
    top: 0;
}

.hamburger-button.active .hamburger-icon:after {
    transform: rotate(-45deg);
    bottom: 0;
}

.mobile-menu {
    display: none;
    background-color: #ffffff;
    width: 100%;
    position: absolute;
    left: 0;
    top: 100%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    animation: slideDown 0.3s ease-in-out;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-items {
    margin-bottom: 20px;
}

.mobile-menu .nav-item {
    margin: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.mobile-menu .nav-link {
    color: #13718a;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 0;
}

.mobile-menu .nav-link:hover {
    color: #00cbec;
    transform: translateX(5px);
}

.mobile-buttons .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-buttons .btn-outline-primary {
    color: #13718a;
    border-color: #13718a;
}

.mobile-buttons .btn-outline-primary:hover {
    background-color: #13718a;
    color: #ffffff;
}

.mobile-buttons .btn-info {
    background-color: #00cbec;
    border-color: #00cbec;
    color: #ffffff;
}

.mobile-buttons .btn-primary {
    background-color: #13718a;
    border-color: #13718a;
    color: #ffffff;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-in-out;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-in-out;
}

.bounce {
    animation: bounce 0.5s ease-in-out;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

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

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

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

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

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

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Card Component Enhancements */
.card-hover-effect {
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.cada-uteis,
.box-exame,
.box-unidade,
.overlap-group-2 {
    transition: all 0.3s ease;
    opacity: 0;
}

.cada-uteis.fade-in,
.box-exame.fade-in,
.box-unidade.fade-in,
.overlap-group-2.fade-in {
    opacity: 1;
}

/* Button Hover Effects */
.cta-nossas-unidades:hover,
.cta-seja-parceiro:hover,
.cta-consulte:hover,
.botao-exames:hover,
.botao-nossas-unidades:hover,
.convenios-botao:hover,
.btn-ligar-unidade:hover,
.btn-whats-unidade:hover {
    /* Removendo a transformação de escala */
    transform: none;
    /* Mantendo apenas a transição para cor ou outros efeitos */
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .nav-desk {
        display: none !important;
    }

    .mobile-navbar {
        display: block;
    }

    .submenu-nav {
        display: none;
    }

    .barra-menu {
        flex-wrap: wrap;
    }

    .barra-menu>div {
        margin-bottom: 10px;
    }

    .cada-uteis {
        height: auto;
        padding: 20px;
        margin-bottom: 20px;
    }

    .box-exame {
        min-height: auto;
        max-height: none;
        width: 100%;
        margin: 0 auto 20px;
    }

    .box-unidade {
        max-width: 100%;
        margin-left: 0;
        margin-bottom: 20px;
    }

    .bloco-conteudos-unidades {
        flex-wrap: wrap;
    }

    .priminha-lnha-footer {
        text-align: center;
    }

    .bloco3-linha1 {
        justify-content: center;
        margin-top: 30px;
    }

    .box-horarios-atendimentos {
        min-width: 100%;
    }

    /* Collection Component Responsiveness */
    .coleta-domiciliar,
    .coleta-empresarial,
    .coleta-infantil {
        display: flex;
        flex-direction: column;
    }

    .overlap-group-2 {
        margin-top: 0;
        margin-left: 0;
        width: 100%;
    }

    .img-2 {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    /* Exames Buscados Responsiveness */
    .cabecalho {
        flex-direction: column;
        text-align: center;
    }

    .exames-buscados-ver-todos,
    .nossas-unidades-ver-todos {
        text-align: center;
        margin-top: 20px;
    }

    .botao-exames,
    .botao-nossas-unidades {
        width: 100%;
    }

    /* Convenios Section Responsiveness */
    .convenios-conteudo {
        padding-right: 0;
    }

    .convenios-botao {
        width: 100%;
        text-align: center;
    }
}

/* Small Mobile Devices */
@media (max-width: 576px) {

    .text-wrapper-8,
    .convenios-titulo h2,
    .exames-buscados-titulo h2,
    .nossas-unidades-titulo h2,
    .titulo-duvida h2 {
        font-size: 32px;
        line-height: 36px;
    }

    .text-wrapper-10,
    .convenios-conteudo p,
    .subtitulo-duvida p {
        font-size: 16px;
    }

    .botao-exames a,
    .botao-nossas-unidades a,
    .convenios-botao a {
        font-size: 20px;
    }

    .titulo-exame h2,
    .titulo-unidade h2 {
        font-size: 20px;
        line-height: 28px;
    }

    .conteudo-exame p,
    .bloco-texto {
        font-size: 14px;
    }

    .accordion-flush .accordion-item .accordion-button {
        font-size: 16px;
    }

    .accordion-body {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .coleta-desktop {
        display: none !important;
    }

    .coleta-mobile {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .coleta-desktop {
        display: flex !important;
    }

    .coleta-mobile {
        display: none !important;
    }
}