:root {
    --primary: #e7ba66; /* Preto Dourado - SECUNDÁRIA */
    --primary-dark: #cc9f4c; /* Dourado Escuro calculado para efeitos de hover (mouse em cima) */
    --secondary: #000000; /* Preto - PRIMÁRIA (Rodapé e Títulos) */
    --bg-light: rgba(
        207,
        207,
        209,
        0.25
    ); /* Cinza Claro a 50% - APOIO (Fundo de sessões como Hero e Especialidades) */
    --white: #ffffff; /* Branco - PRIMÁRIA (Fundo principal e Cards) */
    --text-dark: #000000; /* Texto principal */
    --text-muted: #555555; /* Texto descritivo mais suave para não brigar com o preto puro */
    --whatsapp: #25d366;
    --whatsapp-dark: #128c7e;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Evita que o menu fixo cubra os títulos ao rolar a página */
}

body {
    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Acessibilidade para navegação via teclado */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.logo-placeholder {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    overflow: hidden;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
    transition: color 0.2s ease;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 5%;
    background: var(--bg-light);
    gap: 4rem;
    min-height: 80vh;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--whatsapp);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.hero-image-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-image-container::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary);
    opacity: 0.1;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    z-index: 0;
    top: -5%;
    right: -5%;
    transform: scale(1.05);
}

.dentist-photo-placeholder {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 3/4;
    background: var(--white);
    border-radius: 20px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--primary);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.dentist-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dentist-caption {
    margin-top: 2.2rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary);
    z-index: 1;
}

.dentist-caption span {
    display: block;
    font-size: 1.45rem;
    color: var(--primary);
    font-weight: 700;
}

.placeholder-text {
    text-align: center;
    color: var(--secondary);
    opacity: 0.7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.placeholder-text span {
    font-weight: 600;
    font-size: 1.2rem;
}

/* About Section */
.about-section {
    padding: 5rem 5%;
    background: var(--white);
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.services {
    padding: 5rem 5%;
    text-align: center;
    background: var(--bg-light);
}

.services h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: left;
    border-top: 4px solid var(--primary);
}

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

.service-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-muted);
}

.app-footer {
    background: var(--secondary);
    color: var(--white);
    padding: 3rem 5%;
}

.app-footer .logo-placeholder {
    background: var(--primary);
    color: var(--white);
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand,
.footer-contact {
    flex: 1;
    min-width: 280px;
}

.footer-contact h3 {
    color: var(--primary);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

.footer-contact p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-contact a {
    color: var(--white);
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.app-footer p {
    opacity: 0.8;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
        padding-bottom: 2rem;
        gap: 2.5rem; /* Menos espaço entre o texto e a imagem */
        min-height: auto;
    }
    .hero-text h1 {
        font-size: 2.2rem; /* Fonte menor para caber melhor */
    }
    .hero-text p {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }
    .dentist-photo-placeholder {
        max-width: 320px; /* Reduz a largura da foto no celular */
        margin: 0 auto;
    }
    .about-section,
    .services,
    .app-footer {
        padding: 3rem 5%; /* Menos espaço sobrando no topo e fundo das seções */
    }
    .about-text h2,
    .services h2 {
        font-size: 2rem;
    }
    .nav-links {
        gap: 1rem;
    }
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Telas grandes (Monitores amplos) - 6 cards por linha */
@media (min-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.5rem;
    }
    .service-card {
        padding: 1.5rem;
    }
    .service-card h3 {
        font-size: 1.25rem;
    }
}
