/* ----------------------------------------------------------------------
   AGÊNCIA HMOsorio - FOLHA DE ESTILO v.4.9.1
   Correção de Compatibilidade de Scrollbar & Blindagem de Interface
   ---------------------------------------------------------------------- */

:root {
    --primary-blue: #0A58CA;
    --secondary-green: #20C997;
    --accent-gold: #D4AF37;
    --bg-white: #FFFFFF;
    --bg-pastel: #F8FAFC;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease-in-out;
}

/* 1. CONFIGURAÇÕES GERAIS */
body {
    background-color: var(--bg-pastel);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow-x: hidden;
}

/* Impede a seleção de texto em todo o site */
body {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;     /* IE 10 e Edge */
    user-select: none;         /* Padrão moderno */
}

/* 2. COMPONENTES DE DESIGN */
.hmo-card {
    background: var(--bg-white);
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    overflow: hidden;
}

.hmo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 88, 202, 0.12);
}

.img-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-container:hover img {
    transform: scale(1.08);
}

/* 3. TIPOGRAFIA E EFEITOS */
.text-gradient {
    background: linear-gradient(90deg, #0A58CA, #20C997, #0A58CA);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #0A58CA; 
    display: inline-block;
}

/* 4. SIDEBAR E SISTEMA DE SCROLL (SOLUÇÃO SEM ALERTAS) */
.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    width: 280px;
    background: #111217;
    z-index: 1000;
    transition: var(--transition);
}

/* Substituindo 'scrollbar-width' para evitar alertas no VS Code.
   Usamos apenas o seletor webkit que cobre Chrome, Safari e Edge.
   O Firefox mostrará a barra fina padrão, o que não fere o design luxo.
*/
.sidebar-nav-container, 
.sidebar-scroll-container {
    flex: 1;
    overflow-y: auto;
    -ms-overflow-style: none; /* IE e Edge Antigo */
}

.sidebar-nav-container::-webkit-scrollbar, 
.sidebar-scroll-container::-webkit-scrollbar {
    width: 0px;
    background: transparent; /* Esconde no Chrome/Safari/Edge Moderno */
    display: none;
}

.nav-link {
    color: #a0a0b0 !important;
    border-radius: 10px;
    margin: 5px 15px;
    padding: 12px;
    transition: var(--transition);
    border: none;
    background: none;
    text-align: left;
}

.nav-link.active, .nav-link:hover {
    background: var(--primary-blue);
    color: #fff !important;
}

/* 5. RESPONSIVIDADE ERGONÔMICA */
@media (max-width: 768px) {
    .sidebar { margin-left: -280px; }
    .sidebar.active { margin-left: 0; }
    .main-content { margin-left: 0 !important; padding: 15px !important; }

    .btn, .nav-link {
        font-size: 0.85rem !important;
        padding: 10px 14px !important;
    }
}

/* 6. MODAIS E FINALIZAÇÃO */
.price-box {
    background: rgba(10, 88, 202, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(10, 88, 202, 0.1);
    padding: 15px;
}

#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #1a1d20; 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

