/* Importação de Fonte do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;600;700&display=swap');

/* Variáveis de Cor */
:root {
    --primary-color: #1b1a1a; /* Grafite super escuro */
    --secondary-color: #7f8c8d; /* Cinza médio */
    --light-gray-color: #f4f4f4;
    --dark-color: #333;
    --gold-color: #c5a572; /* Dourado */
    --light-color: #fff;
    --font-family: 'Noto Sans', sans-serif;
}

/* Reset e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    margin-top: 20px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: 2px solid var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-color); /* Fundo preto */
    color: var(--gold-color); /* Texto dourado */
    border-color: var(--gold-color);
    transform: translateY(-2px);
}

/* Header */
.main-header {
    background: #222121;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1.5rem 0; /* Aumentado para o efeito de encolher */
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: padding 0.3s ease-in-out, border-bottom-color 0.3s ease-in-out; /* Transição suave */
    border-bottom: 3px solid transparent; /* Borda inicial transparente */
}

.main-header.scrolled {
    padding: 0.8rem 0;
    border-bottom-color: var(--gold-color); /* Borda dourada ao rolar */
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-color);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--gold-color);
    font-weight: 600;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--light-color);
}

/* Botão Hamburguer */
.hamburger {
    display: none; /* Escondido no desktop */
    background: none;
    border: none;
    color: var(--gold-color);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Seções */
.section-padding {
    padding: 60px 0;
    border-top: 3px solid var(--gold-color);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: var(--primary-color);
}

/* Banner (Home) */
.banner {
    position: relative; /* Necessário para posicionar o conteúdo filho de forma absoluta */
    width: 100%;
    height: 0;
    padding-top: 56.25%; /* Proporção da imagem (1080 / 1920 * 100) */
    
    /* Imagem do banner principal */
    background: linear-gradient(to left, rgba(52, 73, 94, 0.85) 40%, rgba(52, 73, 94, 0.1) 100%), url('../img/home0.jpg') no-repeat top center/contain;
    background-color: var(--primary-color); /* Cor de fundo para preencher espaços vazios */
    color: var(--light-color);
}

.banner-content {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    max-width: 50%;
    text-align: right;
}

.banner-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 1.5rem;
    font-weight: 300;
}

/* Sobre Mim */
.content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1.5;
}

.about-text h2 {
    margin-bottom: 20px;
    font-size: 2.2rem;
    color: var(--primary-color);
}

.credentials {
    margin-top: 25px;
}

.credentials h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}
.credentials ul {
    list-style-position: inside;
}
/* Tratamentos */
.bg-light {
    background-color: var(--light-gray-color);
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Contato */
.contact-wrapper {
    display: flex;
    gap: 40px;
}
.contact-info, .contact-map {
    flex: 1;
}
.contact-info a {
    color: var(--dark-color);
    text-decoration: none;
}
.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Estilos dos Ícones de Contato Modernos */
.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color); /* Fundo preto */
    color: var(--gold-color); /* Ícone dourado */
    font-size: 1.1rem;
    margin-right: 15px;
    flex-shrink: 0; /* Impede que o ícone encolha */
}

.social-links a {
    color: var(--primary-color);
    font-size: 1.1rem; /* Tamanho do texto do @ */
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.social-links a:hover {
    color: var(--secondary-color);
}

.social-links .icon-wrapper {
    margin-right: 8px; /* Espaço entre o ícone e o texto */
}

/* Footer */
.main-footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 40px 0 20px;
    text-align: center;
    border-top: 3px solid var(--gold-color);
}
.footer-content {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    text-align: left;
}
.footer-nav, .footer-contact, .footer-convenios {
    flex: 1;
}
.footer-content h4 {
    color: var(--gold-color);
    margin-bottom: 15px;
}
.footer-nav a, .footer-contact a {
    display: block;
    color: var(--light-gray-color);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}
.footer-convenios p {
    color: var(--light-gray-color);
}
.footer-nav a:hover, .footer-contact a:hover {
    color: var(--secondary-color);
}
.footer-author {
    border-top: 1px solid #555;
    padding-top: 20px;
    font-size: 0.9rem;
}
.footer-author a {
    color: var(--light-gray-color);
}

/* Bordas específicas para a seção Tratamentos */
#tratamentos,
#contato {
    border-top-color: var(--primary-color);
}

/* Responsividade */
@media (max-width: 992px) {
    .treatments-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .content-wrapper, .contact-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .about-text h2 {
        margin-top: 20px;
    }

    .contact-info {
        margin-bottom: 40px;
        text-align: left;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav, .footer-contact, .footer-convenios {
        margin-bottom: 30px;
    }

    .footer-convenios ul {
        flex-direction: column;
        justify-content: center;
        gap: 20px; /* Ajusta o espaçamento vertical */
    }

    .main-nav {
        display: none; /* Esconde o menu de navegação normal */
        position: absolute;
        top: 100%; /* Posiciona abaixo do header */
        left: 0;
        width: 100%;        
        background-color: var(--primary-color);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }

    .main-nav.active {
        display: flex; /* Mostra o menu quando ativo */
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav ul li {
        margin: 10px 0;
        text-align: center;
        width: 100%;
    }

    .main-nav ul li a {
        padding: 10px 0;
        display: block;
    }

    .hamburger {
        display: block; /* Mostra o botão hamburguer */
    }

    .banner {
        /* A proporção é mantida, então height e padding-top não mudam */
        /* Apenas o gradiente e o alinhamento da imagem de fundo mudam */
        background: linear-gradient(rgba(27, 26, 26, 0.7), rgba(27, 26, 26, 0.7)), url('../img/home0.svg') no-repeat top center/contain;
        background-color: var(--primary-color); /* Cor de fundo para preencher espaços vazios */
    }
    
    .banner-content {
        /* Centraliza o conteúdo na tela */
        top: 50%;
        left: 50%;
        right: auto; /* Reseta a propriedade 'right' do desktop */
        transform: translate(-50%, -50%);
        width: 90%; /* Garante um espaçamento nas laterais */
        max-width: 100%; 
        text-align: center;
    }

    .banner-content h1 { font-size: 1.75rem; } /* Reduzido em 30% de 2.5rem */
    .banner-content p { font-size: 0.84rem; } /* Reduzido em 30% de 1.2rem */

    .section-title, .about-text h2 {
        font-size: 2rem;
    }

    .treatments-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .banner-content h1 {
        font-size: 1.4rem; /* Reduzido em 30% de 2rem */
    }

    .banner-content p {
        font-size: 0.77rem; /* Reduzido em 30% de 1.1rem */
    }

    .section-padding {
        padding: 40px 0;
    }
