/* --- Variáveis "Clean Luxury" --- */
:root {
    --primary-color: #dcbbb1; /* Nude Rosado (Rose Gold suave) */
    --accent-color: #bfa693;  /* Tom terra suave */
    --text-dark: #2c2c2c;     /* Cinza Chumbo (nunca preto puro) */
    --text-light: #6c757d;
    --bg-light: #fcfcfc;      /* Off-white */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: var(--font-serif);
    color: var(--text-dark);
}

/* Utilitários de Texto */
.ls-1 { letter-spacing: 1px; }
.ls-2 { letter-spacing: 2px; }
.ls-3 { letter-spacing: 3px; }
.font-serif { font-family: var(--font-serif); }
.text-accent { color: var(--accent-color); }

/* --- Topbar --- */
.topbar {
    background-color: #f8f5f2;
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 500;
}

/* --- Navbar --- */
.navbar {
    padding: 20px 0;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    position: relative;
}

/* Efeito de linha fina no hover do menu */
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width .3s;
    margin-top: 5px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.bg-white-glass {
    background: rgba(255, 255, 255, 0.9); /* Branco quase sólido */
    backdrop-filter: blur(10px); /* Desfoque atrás */
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Linha divisória ultra sutil */
    padding: 15px 0;
}

.fs-xs { font-size: 0.75rem; font-weight: 600; }
.text-accent { color: #d4a373; line-height: 0; position: relative; top: 5px; } /* Ponto dourado */

/* --- Botões Premium --- */
.btn-premium {
    background-color: var(--text-dark);
    color: #fff;
    border: 1px solid var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: all 0.4s ease;
}

.btn-premium:hover {
    background-color: transparent;
    color: var(--text-dark);
}

.btn-outline-premium {
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 8px 25px;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-outline-premium:hover {
    background-color: var(--text-dark);
    color: #fff;
}

/* Botão Play Redondo */
.play-btn {
    width: 50px;
    height: 50px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--accent-color);
}

.group-hover:hover .play-btn {
    border-color: var(--accent-color);
    transform: scale(1.1);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    position: relative;
    padding-top: 80px; /* Espaço da navbar */
    overflow: hidden;
}

/* Layout Criativo: Imagem deslocada para a direita */
.hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%; /* Ocupa quase metade da tela */
    height: 100%;
    z-index: -1;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Filtro suave para a imagem não brigar com o menu */
    filter: brightness(0.95) contrast(1.05); 
}

/* Animações Suaves (Fade In) */
.animate-fade-up {
    animation: fadeUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.animate-fade-left {
    animation: fadeLeft 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
    transform: translateX(50px);
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
    to { opacity: 1; transform: translateX(0); }
}

/* --- Seção de Tratamentos --- */
.bg-light-gray { background-color: #f9f9f9; }

.treatment-card {
    cursor: pointer;
    border-radius: 0; /* Luxury design usa cantos retos ou muito suaves */
}

/* A Imagem */
.treatment-card img {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: brightness(0.9);
}

.treatment-card:hover img {
    transform: scale(1.05); /* Zoom suave e lento */
    filter: brightness(0.7); /* Escurece para o texto aparecer */
}

/* O Overlay (Gradiente Invisível que sobe) */
.overlay-hover {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    opacity: 0.8;
    transition: all 0.5s ease;
}

.treatment-card:hover .overlay-hover {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}

/* O Texto que aparece (Reveal) */
.hover-reveal {
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.treatment-card:hover .hover-reveal {
    opacity: 1 !important;
    transform: translateY(0);
}

.object-fit-cover { object-fit: cover; }

/* --- Antes e Depois Slider (Premium Logic) --- */
.comparison-slider-wrapper {
    position: relative;
    width: 100%;
    height: 500px; /* Altura fixa para o efeito funcionar bem */
    overflow: hidden;
    border-radius: 4px; /* Levemente arredondado */
}

.comparison-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    overflow: hidden;
}

.comparison-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* A div "Before" começa com 50% de largura */
.comparison-image.before {
    width: 50%;
    z-index: 2;
    border-right: 1px solid rgba(255,255,255,0.5);
}

/* A div "After" fica no fundo */
.comparison-image.after {
    z-index: 1;
}

/* Labels (Badges) */
.label-badge {
    position: absolute;
    top: 20px;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 2px;
    z-index: 3;
}

.before-label { left: 20px; }
.after-label { right: 20px; }

/* O Puxador (Visual) */
.slider-handle {
    position: absolute;
    top: 0; bottom: 0; left: 50%; /* Segue o range */
    width: 2px;
    background: #fff;
    z-index: 4;
    transform: translateX(-50%);
    pointer-events: none; /* Deixa o clique passar para o input */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.handle-circle {
    width: 40px; height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 1px solid var(--accent-color);
}

/* O Input Range (Invisível mas funcional) */
.slider-range {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    z-index: 5;
    cursor: ew-resize; /* Cursor de redimensionar */
}

/* --- Seção Doutora --- */
.doctor-image-wrapper {
    position: relative;
    z-index: 1;
}

/* Círculo decorativo que gira levemente */
.spin-circle {
    position: absolute;
    top: -20px; left: -20px;
    width: 440px; height: 440px;
    border: 1px dashed var(--accent-color);
    border-radius: 50%;
    z-index: -1;
    animation: spinSlow 30s linear infinite;
}

@keyframes spinSlow {
    100% { transform: rotate(360deg); }
}

/* --- Instagram Feed --- */
.insta-item {
    height: 250px; /* Altura fixa para todos serem iguais */
}

.insta-item img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.insta-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(220, 187, 177, 0.8); /* Cor Rose Gold translúcida */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.insta-item:hover .insta-overlay {
    opacity: 1;
}

.insta-item:hover img {
    transform: scale(1.1); /* Zoom suave */
}

@media (max-width: 768px) {
    .insta-item { height: 150px; } /* Menor no mobile */
}

/* --- Footer Minimalista Updates --- */
.bg-light-creme {
    background-color: #fdfbf7; /* Cor Creme/Bege muito suave */
    border-top: 1px solid #efebe6;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(3px); /* Movimento sutil */
}

/* Badge de CRM/Responsável Técnico */
.legal-badge {
    border-color: rgba(0,0,0,0.1) !important; /* Linha um pouco mais visível */
    line-height: 1.4; /* Garante que as linhas não se cruzem */
}

/* Garante que o texto 'small' não fique minúsculo demais */
.legal-badge .small {
    font-size: 0.8rem;
    display: block; /* Garante que cada span ocupe sua linha */
}

/* Ícones Sociais */
.transition-colors:hover {
    color: var(--accent-color) !important;
}

/* Botão pequeno no footer */
.btn-sm {
    font-size: 0.7rem;
    padding: 8px 10px;
}

/* Ajustes Mobile */
@media (max-width: 768px) {
    .comparison-slider-wrapper { height: 350px; }
}

@media (max-width: 991px) {
    .spin-circle { display: none; } /* Remove no mobile para não quebrar layout */
    .doctor-image-wrapper img { width: 300px !important; height: 300px !important; }
}


@media (max-width: 991px) {
    .hero-section {
        text-align: center;
        background: url('https://images.unsplash.com/photo-1616394584738-fc6e612e71b9?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    }
    
    /* Overlay branco para ler o texto em cima da foto no mobile */
    .hero-section::before {
        content: '';
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(255,255,255,0.85);
        z-index: -1;
    }

    .hero-image-wrapper { display: none; }
    
    .display-2 { font-size: 3rem; }
    
    .hero-section .d-flex {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .play-btn { margin-top: 20px; margin-right: 0 !important; }
}