/* 1. ESTILOS GERAIS E RESET */
:root {
    --cor-principal: #2e3b51;  /* Azul escuro elegante */
    --cor-secundaria: #9ea9ba; /* Cinza-azulado claro */
    --cor-terciaria: #A3BFFA; /* Cinza-azulado claro */
    --cor-texto: #343a40; /* Cinza escuro para texto */
    --cor-fundo: #f8f9fa; /* Fundo levemente acinzentado */
    --cor-branco: #ffffff;
}

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

html {
    scroll-behavior: smooth; /* Para rolagem suave ao clicar nos links do menu */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--cor-texto);
    background-color: var(--cor-fundo);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    color: var(--cor-principal);
    margin-bottom: 1rem;
}

section {
    padding: 60px 0;
}

/* 2. CABEÇALHO E NAVEGAÇÃO */
header {
    background-color: var(--cor-principal);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;    
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column; /* Novo: Muda a direção para empilhar os itens (vertical) */
    align-items: center;    /* Novo: Centraliza os itens horizontalmente */
    text-decoration: none;
    gap: 5px; /* Espaço entre a logo e o texto */
}

.logo-container img {
    width: 180px; 
    height: auto;
}

.logo-container span {
    font-size: 1rem;
    font-weight: bold;
    color: var(--cor-secundaria);
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--cor-secundaria);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(---cor-terciaria);
}

/* Menu Hambúrguer para Celular */
.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: none;
}
.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--cor-principal);
    transition: all 0.3s ease-in-out;
}

/* 3. SEÇÃO INICIAL (HOME) */
#home {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/sorriso-6-desk.jpg');
    background-color: var(--cor-terciaria);
    background-size: contain; /* Tenta ajustar a imagem inteira dentro da div */
    background-position: center 155px;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--cor-branco);
}

#home h1 {
    font-size: 3rem;
    color: var(--cor-branco);
}

#home p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--cor-principal);
    color: var(--cor-branco);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3; /* Azul mais escuro */
}

/* 4. SEÇÃO ESPECIALIDADES (CARDS) */
#especialidades h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.cards-container {
    display: grid;
    gap: 25px;
    /* Inicia com 1 coluna (mobile-first) */
    grid-template-columns: 1fr;
}

.card {
    background-color: var(--cor-branco);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-top: 0;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--cor-secundaria);
    margin-bottom: 15px;
}

.card-content a {
    text-decoration: none;
    color: var(--cor-principal);
    font-weight: bold;
}

/* 5. SEÇÃO FALE CONOSCO */
#contato {
    background-color: var(--cor-branco);
}

#contato h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.contato-info {
    text-align: center;
}
.contato-info p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* 6. RODAPÉ */
footer {
    background-color: var(--cor-texto);
    color: var(--cor-branco);
    text-align: center;
    padding: 20px 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Espaço entre os ícones */
    margin-top: 20px;
}

.social-icons .social-link svg {
    transition: transform 0.3s ease;
}

.social-icons .social-link:hover svg {
    transform: scale(1.1);
}

#sobre {
    padding: 60px 0;
    background-color: var(--cor-branco);
}

.sobre-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.sobre-text {
    max-width: 600px;
}

.sobre-text p {
    margin-bottom: 1rem;
    color: var(--cor-texto);
}

.sobre-carousel {
    position: relative;
    width: 100%;
    max-width: 350px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    width: 100%;
    flex-shrink: 0;
    display: none;
    /* height: 400px; */
    object-fit: cover;
}

.carousel-item.active {
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--cor-branco);
    border: none;
    padding: 10px 15px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

#clinica {
    padding: 60px 20px;
    background: #f9f9f9;
    text-align: center;
}

#clinica h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

#clinica p {
    color: #555;
    margin-bottom: 30px;
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.gallery-row img {
    width: 100%;
    max-width: 300px; /* tamanho padrão para retratos */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-row img:hover {
    transform: scale(1.05);
}

.paisagens img {
    max-width: 450px; /* deixa maior as horizontais */
}

/* 7. RESPONSIVIDADE (MEDIA QUERIES) */

/* Para Tablets */
@media (min-width: 768px) {
    .cards-container {
        /* 2 colunas para tablets */
        grid-template-columns: repeat(2, 1fr);
    }
    #home {
        /* Estilos específicos para tablets. Exemplo: */
        background-size: cover;        
    }
    #home h1 {
        font-size: 4rem;
    } 
    
    .sobre-content {
        flex-direction: row;
        text-align: left;
        gap: 60px;
    }
}

/* Para Desktops */
@media (min-width: 1024px) {
    .cards-container {
        /* 3 colunas para desktops */
        grid-template-columns: repeat(3, 1fr);
    }
    
    #home {
        /* Estilos específicos para tablets. Exemplo: */
        background-size: cover;      
    }
}

/* Ajustes para o menu em telas menores */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--cor-branco);
        flex-direction: column;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .navbar {
        justify-content: center; /* Centraliza tudo */
        position: relative;
    }

    .logo-container {
        margin: 0 auto;
    }
    
    .hamburger {
        position: absolute;
        right: 20px; /* mantém o menu hambúrguer no canto direito */
        top: 50%;
        transform: translateY(-50%);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }  
    
    #home {
        background-size: cover;
        background-repeat: no-repeat;  
        background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/sorriso-6-cel.jpg');
    }
}

/* 8. ESTILO DO BOTÃO FLUTUANTE WHATSAPP */
.whatsapp-button {
    position: fixed; /* Fica fixo na tela */
    bottom: 25px; /* 25 pixels de distância do fundo */
    right: 25px; /* 25 pixels de distância da esquerda */
    width: 60px; /* Largura do botão */
    height: 60px; /* Altura do botão */
    background-color: #25D366; /* Cor oficial do WhatsApp */
    border-radius: 50%; /* Deixa o botão redondo */
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3); /* Sombra para dar profundidade */
    z-index: 1000; /* Garante que ele fique acima de outros elementos */
    
    /* Centraliza o ícone SVG dentro do círculo */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Efeito suave na transição */
    transition: transform 0.3s ease;
}

.whatsapp-button svg {
    width: 32px; /* Tamanho do ícone */
    height: 32px;
}

.whatsapp-button:hover {
    transform: scale(1.1); /* Aumenta um pouco o tamanho ao passar o mouse */
}