/**
 * style.css — Dra. Denise Ocampos (Clean Enterprise Edition)
 * Estilos principais do tema Light com profundidade 3D
 * @version 6.0.0-LIGHT
 */

/* Retina: base */
html {
    -webkit-text-size-adjust: 100%;
}

:root {
    /* === PALETA CLEAN LIGHT === */
    --bg-body: #FFFFFF;       /* Branco Puro */
    --bg-surface: #F8F9FA;    /* Off-white para contraste sutil */
    
    --primary: #0F766E;       /* Teal Profundo (WCAG AAA - Alta Legibilidade) */
    --primary-light: #CCFBF1;
    
    --secondary: #6D28D9;     /* Roxo Sóbrio */
    
    --text-heading: #111827;  /* Preto Quase Puro */
    --text-body: #374151;     /* Cinza Chumbo Escuro */
    --text-muted: #6B7280;    /* Cinza Médio */
    
    --border: #E5E7EB;
    
    /* Sistema de Sombras 3D Light */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-float: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius: 20px;
    --nav-h: 70px;
    --font-main: 'Inter', sans-serif;
    --font-serif: 'Lora', serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-body);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: var(--nav-h); /* Espaço para navbar fixa */
}

/* Retina / High-DPI: renderização nítida em telas densas */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-brand img {
        image-rendering: -webkit-optimize-contrast;
    }
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-main);
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }

/* === NAVBAR FIXA COM ÍCONE (HAMBURGUER) === */
.app-navbar {
    height: var(--nav-h);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: fixed; top: 0; left: 0; right: 0; z-index: 1040;
    display: flex; align-items: center;
}

.navbar-brand img { height: 42px; width: auto; }

/* Botão Hambúrguer Customizado */
.nav-toggler-btn {
    border: none;
    background: transparent;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    font-size: 1.4rem;
    color: var(--text-heading);
    border-radius: 12px;
    transition: background 0.2s;
}
.nav-toggler-btn:active { background: rgba(0,0,0,0.05); }

/* === MENU LATERAL (OFFCANVAS) === */
.offcanvas { border-radius: 0 var(--radius) var(--radius) 0; border: none; }
.nav-link-custom {
    padding: 16px 20px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-heading);
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.nav-link-custom i { color: var(--text-muted); font-size: 0.9rem; }
.nav-link-custom.active { background: var(--primary-light); color: var(--primary); border-bottom-color: transparent; }
.nav-link-custom.active i { color: var(--primary); }

/* === CARDS 3D CLEAN (FÍSICA DE SOMBRAS) === */
.card-3d {
    background: #FFFFFF;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s;
    position: relative;
    transform-style: preserve-3d;
    height: 100%;
}

/* Efeito de elevação física ao toque/hover */
.card-3d:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(15, 118, 110, 0.2);
    z-index: 2;
}

.card-3d:active { transform: scale(0.99); }

/* === BOTÕES (LEITURA CLARA) === */
.btn-primary-pro {
    background: var(--primary);
    color: #fff;
    border: none;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 50px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.3);
    transition: transform 0.2s;
    width: 100%; /* Mobile First: Largura total */
    font-size: 1rem;
}
.btn-primary-pro:hover {
    background: #0D655E; color: #fff; transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.4);
}

.btn-outline-pro {
    background: transparent;
    border: 2px solid var(--text-heading);
    color: var(--text-heading);
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 50px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: 0.2s;
    width: 100%;
}
.btn-outline-pro:hover { background: var(--text-heading); color: #fff; }

.bg-surface { background-color: var(--bg-surface); }

.chip {
    background: var(--bg-surface); border: 1px solid var(--border);
    padding: 8px 16px; border-radius: 100px;
    font-size: 0.9rem; font-weight: 600; color: var(--text-body);
    display: inline-flex; align-items: center; gap: 8px;
}
.chip i { color: var(--primary); }

/* === LAYOUT VERTICAL MOBILE === */
.vertical-layout {
    display: flex; flex-direction: column; gap: 40px;
    padding-top: 20px;
    padding-bottom: 60px;
}
.hero-title {
    font-size: 2.25rem; line-height: 1.15; margin-bottom: 1rem; color: var(--text-heading);
}
.hero-lead {
    font-size: 1.1rem; color: var(--text-body); margin-bottom: 2rem;
}
.profile-wrapper {
    position: relative; margin-bottom: 20px; display: inline-block;
}
.profile-img {
    width: 120px; height: 120px; border-radius: 50%;
    object-fit: cover; border: 4px solid #fff;
    box-shadow: var(--shadow-float);
}

@media(min-width: 992px) {
    .btn-primary-pro, .btn-outline-pro { width: auto; display: inline-flex; }
    .hero-title { font-size: 3.5rem; }
    .profile-img { width: 300px; height: 300px; border-radius: 24px; }
}

/* Animação Scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .reveal.visible { opacity: 1; }
    .card-3d, .banner-3d-card, .profile-img, .whatsapp-float,
    .sobre-slide-item, .btn-primary-pro, .banner-3d-btn { transition: none; }
}

/* === SEÇÃO SOBRE A DRA. DENISE === */
.sobre-section {
    margin: 2rem 0;
}

.sobre-container {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-float);
    border: 1px solid var(--border);
}

.sobre-slide-area {
    width: 100%;
    flex: 0 0 100%;
}

.sobre-container-full .sobre-slide-area {
    flex: 0 0 100%;
    max-width: 100%;
}

.sobre-slider {
    position: relative;
    width: 100%;
    height: 260px;
    background: var(--bg-surface);
}

.sobre-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.sobre-slide-item.ativo {
    opacity: 1;
    z-index: 1;
}

.sobre-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slide da página sobre.php - imagem em tamanho original, inteira visível */
.sobre-slider-page {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sobre-slider-page .sobre-slide-item-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.sobre-slider-page .sobre-slide-item-page img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.sobre-texto-area {
    width: 100%;
    flex: 0 0 100%;
    padding: 1.5rem;
}

.sobre-titulo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}

a.sobre-linkedin {
    display: inline-block;
    padding: 4px 10px;
    background: #0A66C2;
    color: #fff;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

a.sobre-linkedin:hover {
    color: #fff;
    background: #004182;
}

/* Botão LinkedIn - layout melhorado (sobre.php) */
a.btn-linkedin-pro {
    padding: 12px 24px;
    background: #0A66C2;
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(10, 102, 194, 0.3);
}
a.btn-linkedin-pro:hover {
    background: #004182;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 102, 194, 0.4);
}

/* === CONTAINER AGENDAMENTO (sobre.php) === */
.agendamento-box {
    border-top: 1px solid var(--border);
}

.agendamento-info {
    border: 1px solid var(--border);
}

/* Botões de Agendamento estilizados */
a.btn-agendamento {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
    min-height: 80px;
}

a.btn-agendamento:hover {
    transform: translateY(-4px);
}

.btn-agendamento-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.btn-agendamento-text {
    flex: 1;
}

.btn-agendamento-arrow {
    opacity: 0.7;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

a.btn-agendamento:hover .btn-agendamento-arrow {
    transform: translateX(4px);
}

/* Presencial - teal/primary */
a.btn-agendamento-presencial {
    background: linear-gradient(135deg, var(--primary) 0%, #0D655E 100%);
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.25);
}

a.btn-agendamento-presencial:hover {
    box-shadow: 0 12px 32px rgba(15, 118, 110, 0.35);
}

a.btn-agendamento-presencial .btn-agendamento-icon {
    background: rgba(255,255,255,0.25);
}

/* Telemedicina - roxo/secondary */
a.btn-agendamento-telemedicina {
    background: linear-gradient(135deg, var(--secondary) 0%, #5B21B6 100%);
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.25);
}

a.btn-agendamento-telemedicina:hover {
    box-shadow: 0 12px 32px rgba(109, 40, 217, 0.35);
}

a.btn-agendamento-telemedicina .btn-agendamento-icon {
    background: rgba(255,255,255,0.25);
}

.sobre-previa {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-body);
    margin-bottom: 1rem;
}

.sobre-btn-modal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.sobre-btn-modal:hover {
    background: #0D655E;
    color: #fff;
}

@media (min-width: 768px) {
    .sobre-slide-area {
        width: 45%;
        flex: 0 0 45%;
    }
    .sobre-container-full .sobre-slide-area {
        width: 100%;
        flex: 0 0 100%;
    }
    
    .sobre-texto-area {
        width: 55%;
        flex: 0 0 55%;
        padding: 2rem;
    }
    
    .sobre-slider {
        height: 320px;
    }
    .sobre-slider-page {
        min-height: 500px;
    }
}

/* === BANNER 3D - CONSULTA PRESENCIAL OU TELEMEDICINA === */
.banner-3d-wrapper {
    margin: 0 -0.5rem;
    perspective: 1200px;
}

.banner-3d {
    background: linear-gradient(145deg, var(--primary) 0%, #0D655E 50%, #0a4d47 100%);
    border-radius: calc(var(--radius) + 8px);
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow:
        0 25px 50px -12px rgba(15, 118, 110, 0.35),
        0 0 0 1px rgba(255,255,255,0.1) inset,
        -4px -4px 20px rgba(0,0,0,0.1);
}

.banner-3d::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.banner-3d-content {
    position: relative;
    z-index: 1;
}

.banner-3d-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.2);
    border-radius: 100px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.banner-3d .banner-3d-title {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.banner-3d-sub {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.banner-3d-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.banner-3d-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s;
    box-shadow:
        0 4px 6px -1px rgba(0,0,0,0.08),
        0 2px 4px -2px rgba(0,0,0,0.05);
}

.banner-3d-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 25px 50px -12px rgba(0,0,0,0.2),
        0 0 0 1px rgba(15,118,110,0.1);
}

.banner-3d-presencial {
    border-top: 4px solid var(--primary);
}

.banner-3d-telemedicina {
    border-top: 4px solid var(--secondary);
}

.banner-3d-card-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.banner-3d-btns,
.banner-3d-telemedicina .banner-3d-btn-fake {
    margin-top: auto;
}

.banner-3d-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.banner-3d-presencial .banner-3d-icon {
    background: var(--primary-light);
    color: var(--primary);
}

.banner-3d-telemedicina .banner-3d-icon {
    background: rgba(109, 40, 217, 0.15);
    color: var(--secondary);
}

.banner-3d-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    color: var(--text-heading);
}

.banner-3d-card p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 0.25rem;
}

.banner-3d-card small {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
    display: block;
}

.banner-3d-btns {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.banner-3d-btn,
a.banner-3d-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

a.banner-3d-btn:hover {
    background: #0D655E;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.4);
}

.banner-3d-btn-fake {
    pointer-events: none;
}

a.banner-3d-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

a.banner-3d-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .banner-3d-options {
        grid-template-columns: 1fr;
    }
    
    .banner-3d-title {
        font-size: 1.5rem;
    }
}

@media (min-width: 992px) {
    .banner-3d-wrapper {
        margin: 0;
    }
    
    .banner-3d {
        padding: 2.5rem;
    }
}

/* Utilidade de cor (usada no contato) */
.text-heading { color: var(--text-heading); }

/* === BREADCRUMB === */
main .breadcrumb {
    font-size: 0.85rem;
}
main .breadcrumb-item a {
    color: var(--primary);
}
main .breadcrumb-item.active {
    color: var(--text-muted);
}

/* === FAQ ACCORDION === */
#faqAccordion .accordion-item {
    background: #fff;
    border-color: var(--border) !important;
}
#faqAccordion .accordion-button {
    background: #fff;
    color: var(--text-heading);
    font-size: 1rem;
    padding: 1rem 1.25rem;
}
#faqAccordion .accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary);
    box-shadow: none;
}
#faqAccordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(15, 118, 110, 0.15);
}
#faqAccordion .accordion-body {
    padding: 1rem 1.25rem;
    background: #fff;
}

/* Páginas jurídicas (termos, privacidade) */
.vertical-layout article.card-3d h2 {
    color: var(--text-heading);
}
.vertical-layout article.card-3d a {
    color: var(--primary);
    text-decoration: underline;
}

/* === BOTÃO FLUTUANTE WHATSAPP === */
.whatsapp-float {
    position: fixed;
    bottom: max(24px, env(safe-area-inset-bottom));
    right: max(24px, env(safe-area-inset-right));
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 1050;
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

/* === LIGHTBOX SLIDER SOBRE === */
#sobreSliderLightbox .modal-dialog {
    max-width: 100%;
    margin: 0;
}
#sobreSliderLightbox .modal-content {
    min-height: 100vh;
}
.sobre-lb-container {
    background: #1a1a1a;
}
.sobre-lb-img {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
    display: block;
}
@media (max-width: 768px) {
    .sobre-lb-img {
        max-width: 100%;
        max-height: 85vh;
    }
}
#sobreSliderLightbox .btn.rounded-circle:hover {
    background: rgba(255,255,255,0.2) !important;
    color: #fff;
}
.js-sobre-slider-img {
    cursor: pointer;
}
