/* =========================================
   Variáveis - Tema Odontologia
========================================= */
:root {
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --primary-blue: #0f172a;   /* Azul muito escuro para títulos e base */
    --accent-teal: #06b6d4;    /* Ciano vibrante para chamar atenção */
    --accent-hover: #0891b2;
    --text-main: #334155;      /* Cinza chumbo para leitura fácil */
    --text-light: #94a3b8;
    
    --font-main: 'Poppins', sans-serif;
}

/* Base em 16px para usar REM facilmente e Trava Global Horizontal */
html, body {
    font-size: 100%; 
    scroll-behavior: smooth;
    overflow-x: hidden; 
    width: 100%;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
}

.container { 
    max-width: 75rem; 
    margin: 0 auto; 
    padding: 0 1.5rem; 
}

h1, h2, h3 {
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.2;
}

.text-accent { color: var(--accent-teal); }
.text-center { text-align: center; }

.section-header { margin-bottom: 3rem; }
.section-header h2 { font-size: 2.5rem; }
.subtitle { color: var(--text-light); font-size: 1.125rem; margin-top: 0.5rem; }

/* =========================================
   Header 
========================================= */
.navbar {
    position: fixed;
    top: 0; 
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(0.625rem);
    border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo { 
    font-size: 1.5rem; 
    font-weight: 700; 
    text-decoration: none; 
    color: var(--primary-blue); 
}

.logo span { color: var(--accent-teal); }

.nav-menu { 
    display: flex; 
    gap: 2rem; 
}

.link-nav { 
    text-decoration: none; 
    color: var(--text-main); 
    font-size: 1rem;
    font-weight: 500; 
    transition: 0.3s; 
}

.link-nav:hover { color: var(--accent-teal); }

/* Botões */
.btn { 
    padding: 0.875rem 1.75rem; 
    font-size: 1rem;
    font-weight: 600; 
    text-decoration: none; 
    border-radius: 3rem; 
    transition: 0.3s ease; 
    display: inline-block;
    border: 0.125rem solid transparent;
}

.btn-primary { 
    background: var(--accent-teal); 
    color: var(--bg-white); 
}

.btn-primary:hover { 
    background: var(--accent-hover); 
    transform: translateY(-0.125rem);
    box-shadow: 0 0.5rem 1rem rgba(6, 182, 212, 0.2);
}

.btn-outline {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--bg-white);
}

/* =========================================
   Hero Section 
========================================= */
.hero-odonto {
    padding-top: 8rem;
    padding-bottom: 5rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-hover);
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-texto h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-texto p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-imagem {
    position: relative;
    border-radius: 1.5rem;
}

.hero-imagem img {
    width: 100%;
    border-radius: 1.5rem;
    box-shadow: 0 1.5rem 3rem rgba(0,0,0,0.1);
    display: block;
}

/* Card flutuante */
.floating-card {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: var(--bg-white);
    padding: 1.25rem;
    border-radius: 1rem;
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.floating-card .icon { font-size: 2rem; }
.floating-card strong { color: var(--primary-blue); font-size: 1.25rem; display: block; }
.floating-card p { font-size: 0.875rem; color: var(--text-light); margin: 0; }

/* =========================================
   Especialidades (Cards)
========================================= */
.section-light {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.servico-card {
    background: var(--bg-light);
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: 0.3s;
    border: 0.0625rem solid rgba(0,0,0,0.02);
}

.servico-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.05);
}

.card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 3rem;
    height: 3rem;
    color: var(--accent-teal); 
    transition: 0.3s ease;
}

.servico-card:hover .card-icon svg {
    transform: scale(1.15);
}

.servico-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.servico-card p { 
    font-size: 0.95rem; 
}

.card-destaque {
    background: var(--primary-blue);
    color: var(--bg-white);
}

.card-destaque h3, .card-destaque p { 
    color: var(--bg-white); 
}

.card-destaque .card-icon svg {
    color: var(--bg-white);
}

/* =========================================
   A Clínica 
========================================= */
.section-blue {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.clinica-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.clinica-visual img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.1);
}

.clinica-texto h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.clinica-texto p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.lista-check { list-style: none; }
.lista-check li {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75em;
}

/* =========================================
   Corpo Clínico (Equipe)
========================================= */
.equipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.dentista-card {
    text-align: center;
}

.dentista-img {
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    border: 0.375rem solid var(--bg-white);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.08);
    display: block;
}

.dentista-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.cro {
    color: var(--accent-teal);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* =========================================
   Depoimentos
========================================= */
.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    gap: 2rem;
}

.depoimento-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.04);
}

.estrelas {
    color: #fbbf24;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.125rem;
}

.depoimento-texto {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.cliente-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cliente-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--accent-teal);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.cliente-info strong {
    display: block;
    color: var(--primary-blue);
}

.paciente-tag {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* =========================================
   FAQ (Sanfona Nativa HTML)
========================================= */
.faq-container {
    max-width: 45rem;
    margin: 0 auto;
}

details {
    background: var(--bg-white);
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    border: 0.0625rem solid rgba(0,0,0,0.05);
    overflow: hidden;
}

summary {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-teal);
    font-weight: 400;
}

details[open] summary::after {
    content: '-';
}

details p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

/* =========================================
   Footer Completo 
========================================= */
.footer-odonto {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    padding: 4rem 0 2rem 0;
    width: 100%;
    max-width: 100vw;
    overflow: hidden; /* Corta na raiz qualquer vazamento lateral */
}

.footer-odonto .logo { 
    color: var(--bg-white); 
    display: inline-block;
    margin-bottom: 1.25rem;
}

.footer-odonto h3 { 
    color: var(--bg-white); 
    font-size: 1.25rem; 
    margin-bottom: 1.5rem; 
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1.2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    transition: 0.3s ease;
}

.social-links a:hover { 
    color: var(--accent-teal); 
}

.footer-links { list-style: none; }

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-teal);
    transform: translateX(0.25rem);
}

.contato-lista { list-style: none; }

.contato-lista li {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.875rem;
    line-height: 1.5;
    word-break: break-all; /* Força quebra de palavras muito longas */
    overflow-wrap: anywhere;
}

.contato-lista strong {
    color: var(--bg-white);
    font-weight: 600;
}

/* Mapa - Iframe e Imagem travados com !important */
.mapa-container {
    width: 100%;
    height: 10rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 0.0625rem solid rgba(255, 255, 255, 0.1);
}

.mapa-container img,
.mapa-container iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    border: none;
}

.footer-bottom {
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    width: 100%;
}

.desenvolvedor a {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.desenvolvedor a:hover { 
    color: var(--accent-teal); 
}

/* =========================================
   Responsividade (Max-Width em PX)
========================================= */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-texto { margin-bottom: 3rem; }
    .hero-buttons { justify-content: center; }
    
    .floating-card {
        bottom: -1rem;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        justify-content: center;
    }

    .clinica-grid { grid-template-columns: 1fr; }
    .clinica-visual { order: 2; }
    .clinica-texto { order: 1; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    
    .logo { font-size: 1.25rem; }
    .navbar .btn { 
        padding: 0.5rem 1rem; 
        font-size: 0.85rem; 
    }
    
    .hero-texto h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    
    .cards-grid { grid-template-columns: 1fr; }
    
    /* Footer no Mobile - Compacto e rigorosamente travado */
    .footer-odonto {
        padding: 3rem 0 1.5rem 0;
    }

    .footer-grid { 
        width: 100%;
        max-width: 100%;
        grid-template-columns: minmax(0, 1fr); 
        gap: 2rem;
        text-align: center; 
        overflow: hidden;
    }
    
    .social-links { justify-content: center; }
    .footer-links a:hover { transform: translateY(-0.25rem); }
}

@media (max-width: 480px) {
    .hero-texto h1 { font-size: 2.2rem; }
    
    .navbar .btn { display: none; }
    
    .floating-card {
        width: 95%;
        padding: 1rem;
    }
}