:root {
    --background-dark: #121212;
    --surface-dark: #1E1E1E;
    --primary-accent: #D4AF37; /* Dourado */
    --text-light: #F5F5F5;
    --text-muted: #a0a0a0;
    --font-family-base: 'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family-base);
    background-color: var(--background-dark);
    color: var(--text-light);
    padding-top: 70px;
}

/* --- Componentes Reutilizáveis --- */
.section-title {
    font-weight: 700;
    color: var(--text-light); 
    margin-bottom: 1rem;
    font-size: 2.5rem;
}
.btn-primary {
    background-color: var(--primary-accent); border-color: var(--primary-accent);
    padding: 12px 30px; font-weight: 600; transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #b38f29; border-color: #b38f29; transform: translateY(-3px);
}
.btn-outline-light {
    padding: 12px 30px; font-weight: 600; transition: all 0.3s ease;
    border-color: var(--text-muted); color: var(--text-muted);
}
.btn-outline-light:hover {
    background-color: var(--primary-accent); color: var(--background-dark);
    border-color: var(--primary-accent);
}
p { color: var(--text-muted); line-height: 1.8; }

/* --- Header --- */
.navbar { 
    background-color: var(--background-dark);
    min-height: 70px;
}
.nav-link {
    color: var(--text-light); 
    font-weight: 500;
    position: relative;
    padding-bottom: 8px;
    transition: color 0.3s;
}
.nav-link:hover {
    color: var(--text-light);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-accent);
    transition: width 0.3s ease-in-out;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* --- Seções --- */
.hero-section {
    height: calc(100vh - 70px);
    background-color: #000; 
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('../images/dr-felipe-banner.webp');
    background-repeat: no-repeat; 
    background-position: center center; 
    
    /* Estilo padrão para DESKTOP */
    background-size: contain; 
    background-attachment: fixed;
}

#sobre, #clinica { padding-top: 100px; padding-bottom: 100px; }

@media (min-width: 992px) {
  #sobre .row .col-lg-6:last-child {
    padding-left: 6rem; 
  }
}
@media (max-width: 991.98px) {
  #sobre .row .col-lg-6:last-child {
    padding-left: 0; 
    margin-top: 2.5rem; 
  }
}

.bg-dark-subtle { background-color: var(--surface-dark) !important; }
.cta-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/cursos-bg.jpg') no-repeat center center;
    background-size: cover;
}
.cta-section .btn-light:hover {
    background-color: var(--primary-accent);
    color: var(--background-dark);
    border-color: var(--primary-accent);
}

/* --- GALERIA IMERSIVA --- */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(212, 175, 55, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gallery-item:hover .overlay {
    opacity: 1;
}

/* --- Footer --- */
footer { 
    background-color: var(--background-dark); 
}
.social-icons a { 
    color: var(--text-light); 
    transition: color 0.3s; 
}
.social-icons a:hover { 
    color: var(--primary-accent); 
}

/* ================================================================== */
/* ============ AJUSTE RESPONSIVO PARA O BANNER NO MOBILE ============= */
/* ================================================================== */

@media (max-width: 767.98px) {
    .hero-section {
        /* 1. Muda o dimensionamento para cobrir a tela */
        background-size: cover;
        /* 2. Desativa o efeito parallax para melhor performance */
        background-attachment: scroll;
    }
}