/* Configurações básicas e cores (Nova Paleta: Azul Marinho e Ouro) */
:root {
    --primary-color: #007BFF; /* Azul para botões e links */
    --accent-color: #28A745; /* Verde para sucesso e CTAs */
    --text-color: #343A40; /* Cinza escuro para o texto */
    --bg-light: #F8F9FA; /* Fundo cinza claro */
    --border-color: #DEE2E6; /* Cinza para bordas e linhas */
    --gray-light: #E9ECEF;
    
    --navbar-bg-color: #0A192F; /* Azul Marinho para o cabeçalho */
    --nav-text-color: #DAA520; /* Ouro Envelhecido para o texto */
}

/* Reseta o estilo padrão do navegador */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    padding-top: 60px;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Estilos da Barra de Navegação */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--navbar-bg-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--nav-text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    width: 25px;
    height: 25px;
    transition: transform 0.2s;
}

.nav-icon-link {
    display: block;
}

.nav-icon:hover {
    transform: scale(1.1);
}

/* Estilos para o WhatsApp Flutuante */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.floating-whatsapp-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.floating-whatsapp-icon:hover {
    transform: scale(1.1);
}

/* Estilos de Tipografia */
h1, h2, h3 {
    font-weight: 600;
    color: var(--primary-color);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: center;
}

p {
    margin-bottom: 15px;
}

/* Estilo do botão principal */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 30px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* Seção Principal com Imagem de Fundo */
.hero-image {
    position: relative;
    padding: 180px 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/foto-destaque.jpg') no-repeat center 30%/cover;
    filter: brightness(60%);
    z-index: -1;
}

.hero-image h1 {
    font-size: 4rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-image h2 {
    font-size: 1.8rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    margin-top: 100px;
}

/* Estilo das seções gerais */
section {
    padding: 80px 0;
}

/* Seção Sobre o Dr. Bruno Oliveira */
.about {
    background-color: #fff;
    text-align: center;
}

.about-content {
    display: flex;
    justify-content: center;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.profile-pic {
    width: 300px;
    height: 300px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* Seção de Especialidades */
.services {
    background-color: var(--bg-light);
}

.services .container {
    text-align: center;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-top: 5px solid var(--primary-color);
    transition: transform 0.3s;
    text-align: left;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Seção de Procedimentos */
.procedimentos {
    background-color: #fff;
}
.procedimento-list ul {
    list-style: none;
    padding: 0;
    text-align: center;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}
.procedimento-list ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.procedimento-list ul li:last-child {
    border-bottom: none;
}

/* Seção de Artigos/Conteúdo */
.articles {
    background-color: #fff;
    padding: 80px 0;
}

.article-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.article-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card h3 {
    padding: 15px 20px 0;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.article-card p {
    padding: 0 20px 15px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.article-card .read-more {
    display: block;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.article-card .read-more:hover {
    background-color: #0056b3;
}

/* Seção de Depoimentos (Prova Social) */
.testimonials {
    background-color: var(--gray-light);
    padding: 80px 0;
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-color);
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.testimonial-card span {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
}

/* Seção de Locais de Atendimento */
.location {
    background-color: #fff;
    text-align: center;
}

.location-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.location-card {
    background-color: var(--bg-light);
    width: 250px;
    height: 100px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.location-card a {
    text-decoration: none;
    color: var(--text-color);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.location-card h3 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--primary-color);
}

.location-pin {
    font-size: 1.5rem;
    color: red;
    margin-top: 5px;
}

/* Estilos para a página de detalhes de local */
.location-header {
    background-color: var(--bg-light);
    padding: 60px 0 20px;
    text-align: center;
}

.location-details {
    padding: 40px 0;
    text-align: center;
}

.location-details .container {
    max-width: 800px;
}

/* Layout de 2 colunas: imagem à esquerda e texto à direita */
.detail-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    text-align: left;
}

.detail-content .location-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.detail-content .info {
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.service-type {
    font-weight: bold;
    color: var(--accent-color);
}

/* Container de convênios com imagem */
.convenios-section {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    justify-content: center;
}

.convenios-section .convenios-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.convenios-section .info {
    text-align: center;
}

.map-button {
    display: inline-block;
    margin-top: 20px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.map-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.back-link {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.back-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.back-link a:hover {
    color: #0056b3;
}

/* Seção de Instagram */
.instagram-feed {
    background-color: var(--bg-light);
    padding: 80px 0;
    text-align: center;
}

.instagram-username {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 30px;
}

/* Rodapé */
footer {
    background-color: var(--text-color);
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

footer a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    margin-left: 15px;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-color);
}

/* Responsividade */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .nav-icons {
        margin-left: 0;
        justify-content: center;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-image {
        padding: 80px 0;
    }

    .hero-content {
        margin-top: 150px;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-pic {
        margin-bottom: 20px;
        width: 200px;
        height: 200px;
    }

    section {
        padding: 50px 0;
    }

    .service-cards, .article-cards, .testimonial-cards, .location-cards {
        grid-template-columns: 1fr;
    }
    .location-card {
        width: 100%;
        height: 80px;
    }

    .cta-button, .nav-cta-button, .map-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .detail-content {
        flex-direction: column;
        align-items: center;
    }
    .info {
        text-align: center;
    }
    .convenios-section {
        flex-direction: column-reverse;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    .hero-content {
        margin-top: 100px;
    }
    .floating-whatsapp-icon {
        width: 50px;
        height: 50px;
    }
}