/* ==========================================
   1. VARIÁVEIS E CONFIGURAÇÕES GLOBAIS
   ========================================== */
:root {
    --primary: #295199;
    --secondary: #24c0f6;
    --light: #f5f5f5;
    --white: #fff;
    --gold: #d4af37;
    --font-monda: 'Monda', sans-serif;
    --font-roboto: 'Roboto Slab', serif;
    
    /* Cores Oficiais das Redes Sociais */
    --color-instagram: #E4405F;
    --color-facebook: #1877F2;
    --color-youtube: #FF0000;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-roboto);
    font-size: 18px;
    color: #333;
    font-weight: 300;
    overflow-x: hidden;
}

.bg-blue-custom {
    background-color: var(--primary);
}

section {
    scroll-margin-top: 90px;
}

/* ==========================================
   2. TIPOGRAFIA
   ========================================== */
.titulo {
    font-family: var(--font-monda);
    font-weight: 400; 
}

.subtitulo {
    font-family: var(--font-roboto);
    font-weight: 300; 
}

/* ==========================================
   3. MENU DE NAVEGAÇÃO (NAVBAR)
   ========================================== */
.navbar-brand img {
    width: 163px;
    height: auto;
}

.nav-link {
    color: var(--primary) !important;
    font-family: var(--font-monda);
    font-weight: 600;
    position: relative;
    transition: .3s;
}

@media (min-width: 992px) {
    /* Linha azul embaixo do link principal */
    .navbar .nav-link::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0%;
        height: 2px;
        background: var(--secondary) !important;
        transition: width 0.3s ease;
    }

    /* A linha aparece no hover e também quando o dropdown está aberto */
    .navbar .nav-link:hover::before,
    .navbar .nav-item.dropdown:hover > .nav-link::before {
        width: 100%;
    }

    .navbar .dropdown-menu {
        display: block; 
        opacity: 0;
        visibility: hidden;
        position: absolute;
        top: 100%;
        transform: translateY(10px); 
        transition: all 0.3s ease;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        border: none;
    }

    .navbar .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* --- ESTILO DOS ITENS DO DROPDOWN --- */
.navbar .dropdown-item {
    color: var(--primary);
    font-family: var(--font-monda);
    font-size: 15px;
    padding: 10px 20px;
    position: relative; /* Necessário para ancorar a barrinha azul */
    transition: .3s;
}

/* A barrinha azul de transição dentro do dropdown */
.navbar .dropdown-item::after {
    content: "";
    position: absolute;
    left: 20px; 
    bottom: 5px; 
    width: 0%;
    height: 2px;
    background: var(--secondary);
    transition: .3s;
}

.navbar .dropdown-item:hover {
    color: var(--primary);
    background-color: var(--light) !important; 
}

.navbar .dropdown-item:hover::after {
    width: calc(100% - 40px); 
}

/* Páginas ativas */
.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
    color: var(--secondary) !important;
}

/* ==========================================
   4. BOTÕES E ANIMAÇÕES
   ========================================== */

/* BOTÃO PRINCIPAL (Solicitar Orçamento) */
.btn-custom-primary {
    background-color: var(--secondary);
    color: #fff !important;
    font-family: var(--font-monda);
    font-weight: 600;
    transition: .3s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-custom-primary:hover { 
    background-color: var(--primary); 
    color: #fff !important; 
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(36, 192, 246, 0.4);
}

/* EFEITO SLIDER EXPERT (Saiba Mais / Especialista) */
.btn-expert, .btn-outline-light, .btn-outline-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: var(--font-monda);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.4s ease, border-color 0.4s ease;
    border-width: 2px;
    background-color: transparent !important;
}

.btn-expert::before, 
.btn-outline-light::before, 
.btn-outline-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform: translateX(-101%);
    transition: transform 0.4s ease;
}

.btn-expert:hover::before, 
.btn-outline-light:hover::before, 
.btn-outline-primary:hover::before {
    transform: translateX(0);
}

/* Cores dos Sliders */
.btn-expert { border-color: var(--gold); color: #fff; }
.btn-expert::before { background: var(--gold); }
.btn-expert:hover { color: #fff !important; }

.btn-outline-light { border-color: var(--white); color: var(--white); }
.btn-outline-light::before { background: var(--white); }
.btn-outline-light:hover { color: var(--primary) !important; }

.btn-outline-primary { border-color: var(--primary); color: var(--primary); }
.btn-outline-primary::before { background: var(--primary); }
.btn-outline-primary:hover { color: var(--white) !important; }

/* Especialista em seções claras */
.btn-expert-blue { color: var(--primary); }

/* Flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25d366; 
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    z-index: 1000;
    transition: .3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* ==========================================
   5. SEÇÕES DE CONTEÚDO
   ========================================== */

/* Hero (Banner Principal) */
.hero-section {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: -1;
}

/* Cards de Produtos */
.product-card {
    background: var(--light);
    border-radius: 15px;
    transition: .3s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-icon {
    height: 80px;
    object-fit: contain;
}

/* Quem Somos & Blob de Imagem */
.texto-quem-somos {
    font-size: 18px;
    color: #FFF;
    line-height: 1.8;
    margin-bottom: 20px;
}

.imagem-fluida-container {
    width: 100%;
    max-width: 480px;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 60% 40% 40% 60% / 60% 30% 70% 40%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
}

.imagem-fluida-container:hover {
    border-radius: 40% 60% 60% 40% / 40% 70% 30% 60%;
}

.imagem-fluida-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* ==========================================
   6. RODAPÉ (FOOTER)
   ========================================== */
.footer-icon {
    color: var(--secondary);
    transition: 0.3s;
}

.social-inst { color: var(--color-instagram) !important; }
.social-face { color: var(--color-facebook) !important; }
.social-yt   { color: var(--color-youtube) !important; }

.footer-link {
    color: var(--secondary);
    text-decoration: none;
    transition: 0.3s;
}

.footer-link:hover {
    color: var(--primary);
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-section { height: 60vh; }
    .whatsapp-float { width: 55px; height: 55px; font-size: 28px; }
    .imagem-fluida-container { height: 350px; }
}
