/* =====================================================
   ODONTO SORRISO - CLÍNICA ODONTOLÓGICA
   Folha de Estilos Principal
   =====================================================

   ÍNDICE:
   1. Variáveis CSS (cores, sombras, etc.)
   2. Reset e Base
   3. Tipografia
   4. Botões
   5. Header/Navegação
   6. Hero Section
   7. Seção Sobre
   8. Seção Serviços
   9. Seção Destaques
   10. Seção Benefícios
   11. Seção Depoimentos
   12. Seção FAQ
   13. Seção Contato
   14. Footer
   15. Responsividade

   ===================================================== */

/* ========== 1. VARIÁVEIS CSS ========== */
/* EDITÁVEL: Personalize as cores principais do tema aqui */
:root {
    /* Cores principais - tons de azul e verde para saúde */
    --primary: #0077b6;           /* Azul principal */
    --primary-dark: #005f8a;      /* Azul escuro */
    --secondary: #00b4d8;         /* Azul claro */
    --accent: #90e0ef;            /* Azul bem claro */

    /* Cores de fundo */
    --bg: #f8fcff;                /* Fundo principal (branco azulado) */
    --bg-alt: #e8f4f8;            /* Fundo alternativo */

    /* Cores de texto */
    --text: #1a2b3c;              /* Texto principal */
    --text-light: #5a6b7c;        /* Texto secundário */
    --white: #ffffff;

    /* Efeitos */
    --shadow: 0 4px 20px rgba(0, 119, 182, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 119, 182, 0.2);

    /* Bordas e transições */
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s ease;
}

/* ========== 2. RESET E BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

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

ul {
    list-style: none;
}

/* ========== 3. TIPOGRAFIA ========== */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ========== 4. BOTÕES ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.5);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
    margin-top: 10px;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

/* ========== 5. HEADER / NAVEGAÇÃO ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: var(--transition);
}

/* ========== 6. HERO SECTION ========== */
/* Hero com imagem de fundo e overlay */
.hero {
    position: relative;
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Background com imagem real */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay com gradiente azul */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.9), rgba(0, 119, 182, 0.7));
}

/* Container precisa estar acima do overlay */
.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Textos do hero ficam brancos sobre o overlay */
.hero h1 {
    color: #fff;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container da imagem circular do dentista */
.hero-image-container {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 119, 182, 0.4);
    border: 5px solid rgba(255, 255, 255, 0.2);
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Manter compatibilidade com placeholder antigo */
.hero-image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 119, 182, 0.3);
}

.main-icon {
    font-size: 8rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.floating-badge {
    position: absolute;
    bottom: 30px;
    background: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow);
}

/* ========== 7. SEÇÕES GERAIS ========== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header p {
    font-size: 1.125rem;
}

/* ========== 8. SEÇÃO SOBRE ========== */
.sobre {
    background: var(--white);
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Imagem da equipe/clínica */
.sobre-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sobre-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.sobre-image:hover img {
    transform: scale(1.05);
}

.sobre-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.sobre-features {
    display: grid;
    gap: 30px;
}

.feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.feature h3 {
    color: var(--text);
    margin-bottom: 5px;
}

.feature p {
    margin: 0;
    font-size: 0.95rem;
}

/* ========== 9. SEÇÃO GALERIA ========== */
/* Galeria de fotos do consultório */
.galeria {
    background: #f8fcff;
    padding: 100px 0;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 15px;
}

/* Item grande ocupa 2 colunas e 2 linhas */
.galeria-item.grande {
    grid-column: span 2;
    grid-row: span 2;
}

.galeria-item {
    border-radius: 8px;
    overflow: hidden;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.galeria-item:hover img {
    transform: scale(1.1);
}

/* ========== 10. SEÇÃO SERVIÇOS ========== */
.servicos {
    background: var(--bg-alt);
}

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

.servico-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.servico-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Imagem do serviço */
.servico-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.servico-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.servico-card:hover .servico-image img {
    transform: scale(1.1);
}

/* Conteúdo do card */
.servico-content {
    padding: 25px;
    text-align: center;
}

.servico-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.servico-card h3 {
    color: var(--text);
    margin-bottom: 15px;
}

.servico-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.preco {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========== 11. SEÇÃO DESTAQUES ========== */
.destaques {
    background: var(--white);
}

.destaques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.destaque-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.destaque-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.destaque-image {
    height: 200px;
    overflow: hidden;
}

.destaque-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.destaque-card:hover .destaque-image img {
    transform: scale(1.1);
}

/* Manter compatibilidade com placeholder */
.destaque-placeholder {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.before-after {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
}

.destaque-content {
    padding: 25px;
}

.destaque-content h3 {
    color: var(--text);
    margin-bottom: 10px;
}

.destaque-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
}

/* ========== 12. SEÇÃO BENEFÍCIOS ========== */
.beneficios {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.beneficios .section-header h2,
.beneficios .section-header p {
    color: var(--white);
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.beneficio-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.beneficio-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.beneficio-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.beneficio-card h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.beneficio-card p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.95rem;
}

/* ========== 13. SEÇÃO DEPOIMENTOS ========== */
.depoimentos {
    background: var(--bg-alt);
}

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

.depoimento-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.depoimento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.depoimento-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* Avatar com imagem real */
.avatar-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Manter compatibilidade com avatar de iniciais */
.avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.depoimento-info h4 {
    color: var(--text);
    margin-bottom: 2px;
}

.depoimento-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.depoimento-card p {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.7;
}

.depoimento-stars {
    font-size: 1rem;
    letter-spacing: 2px;
}

/* ========== 14. SEÇÃO FAQ ========== */
.faq {
    background: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    background: var(--bg);
    border: none;
    padding: 20px 25px;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-alt);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--white);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px 25px;
}

.faq-answer p {
    margin: 0;
}

/* ========== 15. SEÇÃO CONTATO ========== */
.contato {
    background: var(--bg-alt);
}

.contato-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-item h4 {
    color: var(--text);
    margin-bottom: 5px;
}

.info-item p {
    margin: 0;
}

.contato-mapa {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mapa-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px dashed var(--text-light);
}

.mapa-placeholder:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-alt), var(--white));
}

.mapa-pin {
    font-size: 3rem;
    margin-bottom: 10px;
}

.mapa-placeholder p {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

.mapa-placeholder span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ========== ÁREA DO AGENTE DE IA ========== */
.ai-agent-area {
    min-height: 0;
    padding: 0;
}

/* ========== 16. FOOTER ========== */
.footer {
    background: var(--text);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-social a {
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-social a:hover {
    transform: scale(1.2);
}

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

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* ========== POLÍTICA DE PRIVACIDADE ========== */
.privacidade {
    background: #0d1b2a;
    padding: 40px 0;
}

.privacidade h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.privacidade p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* ========== 17. RESPONSIVIDADE ========== */

/* Tablets e telas médias */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image-placeholder,
    .hero-image-container {
        max-width: 300px;
    }

    .main-icon {
        font-size: 6rem;
    }

    .sobre-content {
        grid-template-columns: 1fr;
    }

    /* Galeria responsiva para tablets */
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .galeria-item.grande {
        grid-column: span 2;
        grid-row: span 1;
    }

    .contato-content {
        grid-template-columns: 1fr;
    }
}

/* Celulares */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    section {
        padding: 60px 0;
    }

    /* Galeria responsiva para celulares */
    .galeria-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .galeria-item.grande {
        grid-column: span 1;
        grid-row: span 1;
    }

    .servicos-grid,
    .destaques-grid,
    .beneficios-grid,
    .depoimentos-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* Celulares pequenos */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}
