* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color:
        #003c46;
}

.nav-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: rem;
    width: 100%;
    height: 100px;
    position: sticky;
    top: 0px;
    backdrop-filter: blur(50px);
    background-color: #003c46;

    /* Sombra */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logo img {
    width: 150px;
    height: auto;
}

ul {
    display: flex;
    list-style: none;
    gap: 5rem;
}

ul li a {
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    /* Adiciona isso aqui */
    transition: transform 0.2s, color 0.2s, opacity 0.2s;
}

ul li a:hover {
    transform: scale(1.1);
    opacity: 0.8;
    color: #ddd;
}


.icons {
    display: flex;
    gap: 2rem;
    /* espaço entre os ícones */
    justify-content: center;
    /* centraliza horizontalmente */
    align-items: center;
    /* alinha verticalmente */
    padding: 10px;
}

.icons i {
    font-size: 24px;
    /* tamanho dos ícones */
    color: #fff;
    /* cor do ícone (WhatsApp verde por padrão) */
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

.icons i.bi-instagram {
    color: #fff;
    /* cor do Instagram */
}

.icons i:hover {
    transform: scale(1.2);
    /* animação ao passar o mouse */
    opacity: 0.8;
}



.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    background-color: #003c46;
    gap: 3rem;
    flex-wrap: wrap;
    /* Remover altura fixa para permitir ajuste automático */
    height: auto;
}

.hero-img img {
    width: 100%;
    max-width: 5300px;
    border-radius: 10px;
}

.hero-text {
    color: white;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

}

/* Título */
.hero-titulo h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Parágrafo */
.hero-paragrafo p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #e0e0e0;
}

/* Botão */
.hero-botao {
    display: flex;
    /* justify-content: space-around; */
}

.btn-agendar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #1ebe5d;
    color: #fff;
    font-weight: 600;
    padding: 20px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.5rem;
    transition: background 0.3s ease;
    width: fit-content;
}

.btn-agendar:hover {
    background-color: #25d366;
}


@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        align-items: center;
    }

    .hero-titulo h1 {
        font-size: 2rem;
    }

    .hero-paragrafo p {
        font-size: 1.1rem;
    }

    .btn-agendar {
        font-size: 0.95rem;
        padding: 15px 25px;
    }
}

@media (max-width: 480px) {
    .hero-titulo h1 {
        font-size: 1.8rem;
    }

    .hero-paragrafo p {
        font-size: 1rem;
    }

    .btn-agendar {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}


/* #sobre {
    background-color: #fff;
    height: 400px;
} */

#sobre {
    background-color: #ffffff;
    color: #1a1a1a;
    padding: 3rem 2rem;
    max-width: 100%;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    /* Removido height fixa */
}

#sobre h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

#sobre p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    padding-left: 1rem;
    padding-right: 1rem;
}


@media (max-width: 768px) {
    #sobre {
        padding: 2rem 1.5rem;
    }

    #sobre h2 {
        font-size: 1.7rem;
        padding-left: 0;
        text-align: center;
    }

    #sobre p {
        font-size: 1rem;
        padding: 0;
        text-align: justify;
    }
}

@media (max-width: 480px) {
    #sobre h2 {
        font-size: 1.5rem;
    }

    #sobre p {
        font-size: 0.95rem;
    }
}



#especialidades {
    background-color: #003a40;
    padding: 60px 20px;
    color: white;
    text-align: center;
}

#especialidades h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-family: 'Poppins', sans-serif;
}

/* Container dos cards */
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilo individual dos cards */
.card {
    background-color: #005057;
    border-radius: 0px;
    padding: 2rem;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card .icon img {
    width: 90px;
    height: auto;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.card p {
    font-size: 1rem;
    color: #e0e0e0;
    font-family: 'Poppins', sans-serif;
}

/* Responsividade para tablets */
@media (max-width: 768px) {
    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 80%;
    }
}

/* Responsividade para celulares */
@media (max-width: 480px) {
    #especialidades h2 {
        font-size: 2rem;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .card p {
        font-size: 0.95rem;
    }
}


.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.card {
    width: 220px;
    text-align: center;
    color: white;
}

.card .icon {
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.card p {
    font-size: 0.95rem;
    color: #c0c9cc;
}

.icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.localizacao {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    background-color: #003c46;
    /* ou qualquer cor de fundo desejada */
}

.texto-localizacao,
.predio {
    flex: 1 1 45%;
    /* 45% para dar margem do gap sem quebrar */
    box-sizing: border-box;
}

.texto-localizacao {
    background-color: #fff;
    padding: 1rem;

}

.texto-localizacao h2 {
    text-align: center;
    padding: 2rem;
    color: #003a40;
}

.texto-localizacao p {
    color: #003a40;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
}

.predio {
    background-color: #003c46;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px;
}

.imagem-meio {
    flex: 1 1 45%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 0.5rem;
    height: 320px;
    /* mesma altura das outras */
    gap: 1rem;
    /* Espaçamento entre as imagens */
}

.imagem-meio img {
    max-height: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
    /* opcional: bordas arredondadas */
}

@media (max-width: 768px) {
    .localizacao {
        flex-direction: column;
        align-items: center;
    }

    .texto-localizacao,
    .imagem-meio,
    .predio {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .imagem-meio {
        flex-wrap: wrap;
        /* permite que as imagens quebrem para a linha de baixo */
        height: auto;
        /* altura automática para se ajustar ao conteúdo */
        gap: 0.5rem;
    }

    .imagem-meio img {
        width: 50%;
        max-height: 200px;
        /* limitar altura em telas pequenas */
    }

    .predio iframe {
        width: 100% !important;
        height: 250px !important;
    }
}



#footer {
    background-color: #003a40;
    color: #fff;
    padding: 2rem 2rem;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-contact h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-contact p {
    margin: 5px 0;
    font-size: 1rem;
}

.footer-social {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social .icons {
    display: flex;
    gap: 1.5rem;
}

.footer-social .icons a {
    font-size: 1.5rem;
    color: #fff;
    transition: transform 0.3s, opacity 0.3s;
}

.footer-social .icons a:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.footer-logo {
    width: 120px;
    height: auto;
}

.footer-desc {
    max-width: 400px;
    font-size: 1rem;
    text-align: center;
    margin-top: 1rem;
}

/* 🌐 Responsividade */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-contact,
    .social-desc {
        width: 100%;
    }

    .footer-social {
        flex-direction: column;
    }

    .footer-social .icons {
        justify-content: center;
    }

    .footer-desc {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
}


#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: none;
    /* Oculto por padrão */
    background-color: #1a9dae;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 12px 16px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop:hover {
    opacity: 0.8;
    transform: scale(1.1);
}


/* ========== MENU MOBILE ========== */
.mobile-menu-button {
    display: none;
    /* Escondido por padrão */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Media query para dispositivos móveis */
@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
        /* Mostra o botão em telas pequenas */
    }

    .nav-bar ul {
        display: none;
        /* Esconde os links por padrão */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #003c46;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem 0;
        z-index: 1000;
        gap: 2rem;
    }

    .nav-bar ul.active {
        display: flex;
        /* Mostra os links quando a classe active está presente */
    }

    .nav-bar ul li {
        width: 100%;
        text-align: center;
    }

    .nav-bar ul li a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
    }

    .nav-bar .icons {
        display: none;
        /* Esconde os ícones sociais no mobile */
    }

    /* Animação do ícone para X quando o menu está aberto */
    .mobile-menu-button.open .menu-icon:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-button.open .menu-icon:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-button.open .menu-icon:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Ajuste para o logo não ficar muito grande no mobile */
    .logo img {
        width: 120px;
    }
}

/* Ajuste para telas um pouco maiores que 768px mas ainda pequenas */
@media (max-width: 900px) {
    .nav-bar ul {
        gap: 2rem;
    }
}