/* ===================== RESET & VARIÁVEIS ===================== */
:root {
    --azul-escuro: #0A2540;
    --azul-medio: #1E88E5;
    --azul-claro: #42A5F5;
    --branco: #FFFFFF;
    --cinza-claro: #F5F7FA;
    --sombra-glow: 0 0 30px rgba(30,136,229,0.35);
    --fonte: 'Poppins', sans-serif;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { font-family:var(--fonte); background:#fff; color:#333; overflow-x:hidden; }

/* Circuit pattern global */
.circuit-bg {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='1.2' fill='%231E88E5' opacity='0.25'/%3E%3Ccircle cx='25' cy='25' r='0.8' fill='%231E88E5' opacity='0.18'/%3E%3Ccircle cx='75' cy='75' r='0.8' fill='%231E88E5' opacity='0.18'/%3E%3Cline x1='50' y1='50' x2='75' y2='50' stroke='%231E88E5' stroke-width='0.4' opacity='0.3'/%3E%3Cline x1='50' y1='50' x2='50' y2='75' stroke='%231E88E5' stroke-width='0.4' opacity='0.3'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ========== NAVBAR MODERNA ========== */
#mainNav {
    background: rgba(10, 37, 64, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#mainNav.scrolled {
    background: rgba(10, 37, 64, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 4px 0;
}

/* Logo */
.logo-img {
    height: 42px;
    transition: transform 0.3s;
}
.navbar-brand:hover .logo-img {
    transform: scale(1.05);
}

/* Links do menu */
.navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 16px !important;
    border-radius: 30px;
    transition: all 0.3s;
    position: relative;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #ffffff !important;
    background: rgba(30, 136, 229, 0.25);
}
/* Indicador de link ativo */
.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--azul-medio);
    border-radius: 3px;
}

/* Avatar do usuário logado */
.avatar-circle {
    width: 32px;
    height: 32px;
    background: var(--azul-medio);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Dropdown menu */
.dropdown-menu {
    background: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 10px 20px;
    transition: 0.2s;
}
.dropdown-item:hover {
    background: rgba(30, 136, 229, 0.3);
    color: white;
}

/* Botão de login (ícone discreto) */
.btn-login-nav {
    opacity: 0.7;
    font-size: 1.1rem;
}
.btn-login-nav:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Botão de orçamento */
.btn-orcamento-nav {
    background: linear-gradient(135deg, #25D366, #1da851);
    color: white !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.92rem;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    letter-spacing: 0.3px;
}
.btn-orcamento-nav:hover {
    background: linear-gradient(135deg, #1da851, #128C7E);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    transform: translateY(-2px);
    color: white !important;
}

/* Toggler mobile */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255,255,255,0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Ajuste no mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(10, 37, 64, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        padding: 20px;
        margin-top: 15px;
    }
    .navbar .nav-link {
        text-align: center;
    }
    .btn-orcamento-nav {
        display: block;
        text-align: center;
        margin-top: 10px;
    }
}
/* ===================== HERO ===================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #06172B 0%, #0A2540 40%, #0D3558 100%);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset:0;
    background: inherit;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='c' width='80' height='80' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='40' cy='40' r='1' fill='%231E88E5' opacity='0.35'/%3E%3Ccircle cx='20' cy='20' r='0.7' fill='%2342A5F5' opacity='0.25'/%3E%3Cline x1='40' y1='40' x2='60' y2='40' stroke='%231E88E5' stroke-width='0.3' opacity='0.3'/%3E%3Cline x1='40' y1='40' x2='40' y2='60' stroke='%231E88E5' stroke-width='0.3' opacity='0.3'/%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23c)' width='200' height='200'/%3E%3C/svg%3E");
    opacity: 0.6;
    animation: drift 30s linear infinite;
    z-index: 1;
}
@keyframes drift { 0%{ background-position:0 0; } 100%{ background-position:200px 200px; } }
.hero-content { position: relative; z-index: 3; }
.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 40px rgba(30,136,229,0.5);
}
.hero-title span { color: #64B5F6; }
.hero-subtitle { color: #B0C4DE; font-weight: 300; max-width: 560px; }
.btn-hero {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-whats { background:#25D366; color:#fff; box-shadow:0 6px 24px rgba(37,211,102,0.5); }
.btn-whats:hover { background:#1da851; transform:translateY(-3px); }
.btn-servicos { background:transparent; border:2px solid rgba(255,255,255,0.5); color:#fff; }
.btn-servicos:hover { background:rgba(255,255,255,0.1); border-color:#fff; transform:translateY(-3px); }
.hero-illustration img { max-width:100%; filter:drop-shadow(0 20px 50px rgba(30,136,229,0.5)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-20px); } }
/* partículas serão geradas pelo JS */

/* ===================== SERVIÇOS ===================== */
.servico-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s;
    box-shadow: 0 8px 30px rgba(10,37,64,0.07);
    border: 1px solid rgba(30,136,229,0.15);
}
.servico-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(30,136,229,0.18);
}
.servico-card i {
    font-size: 2.6rem;
    color: var(--azul-medio);
    margin-bottom: 15px;
}

/* ===================== LOGIN PAGE ===================== */
.login-container {
    min-height: 100vh;
    display: flex;
    background: #0A2540;
}
.login-left {
    flex: 1;
    background: url("data:image/svg+xml,...") center/cover, linear-gradient(135deg, #06172B, #0A2540);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #fff;
    position: relative;
}
.login-left img { max-width: 220px; margin-bottom: 2rem; filter: drop-shadow(0 0 20px rgba(30,136,229,0.7)); }
.login-left h3 { font-weight: 600; }
.login-left p { opacity: 0.8; max-width: 300px; }
.login-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #F5F7FA;
}
.glass-card {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(10,37,64,0.2);
    border: 1px solid rgba(255,255,255,0.5);
}
.form-control {
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}
.form-control:focus {
    border-color: var(--azul-medio);
    box-shadow: 0 0 0 3px rgba(30,136,229,0.2);
}
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}
.btn-login {
    background: var(--azul-medio);
    border: none;
    padding: 12px;
    border-radius: 30px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 20px rgba(30,136,229,0.5);
    transition: 0.3s;
}
.btn-login:hover { background: #1565C0; transform: translateY(-2px); }

/* ===================== FOOTER ===================== */
footer { background: #071a2e; color: #ccc; }
footer a { color: #90CAF9; text-decoration: none; }
footer a:hover { color: #fff; }

/* ===================== RESPONSIVO ===================== */
@media (max-width: 768px) {
    .login-container { flex-direction: column; }
    .login-left { padding: 3rem 1rem; }
    .login-right { padding: 2rem 1rem; }
}
/* HERO VISÃO */
.hero-vision {
    min-height: 100vh;
    background: linear-gradient(135deg, #0A2540 0%, #0D3558 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
    color: var(--azul-medio);
}
@keyframes blink {
    50% { opacity: 0; }
}

/* SERVIÇOS SCROLL HORIZONTAL */
.servicos-scroll .row.flex-nowrap {
    scrollbar-width: thin;
    scrollbar-color: var(--azul-medio) #eee;
}
.servicos-scroll .row.flex-nowrap::-webkit-scrollbar {
    height: 6px;
}
.servicos-scroll .row.flex-nowrap::-webkit-scrollbar-thumb {
    background: var(--azul-medio);
    border-radius: 10px;
}

/* CARDS DE SERVIÇO */
.card-servico {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.card-servico:hover {
    transform: translateY(-5px);
    border-color: var(--azul-medio);
    box-shadow: 0 15px 30px rgba(30,136,229,0.15);
}

/* BOTÃO AZUL MÉDIO (usado no formulário) */
.btn-azul-medio {
    background-color: var(--azul-medio);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-azul-medio:hover {
    background-color: #1565C0;
    color: #fff;
}
/* Diferenciais */
.diferenciais-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}
.card-diferencial {
    transition: all 0.3s ease;
    border: 1px solid rgba(30,136,229,0.1);
}
.card-diferencial:hover {
    transform: translateY(-10px);
    border-color: var(--azul-medio);
    box-shadow: 0 20px 40px rgba(30,136,229,0.2);
}
.diferencial-icone {
    width: 80px;
    height: 80px;
    background: rgba(30,136,229,0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
/* ========== ANTES & DEPOIS ========== */
.comparison-wrapper {
    max-width: 100%;
    margin: 0 auto;
}
.comparison-image {
    position: relative;
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    cursor: col-resize;
}
.comparison-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-right: 2px solid white;
    pointer-events: none; /* para não atrapalhar o range */
}
.comparison-range {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    -webkit-appearance: none;
    background: transparent;
    z-index: 10;
}
.comparison-range::-webkit-slider-runnable-track {
    height: 6px;
    background: rgba(255,255,255,0.7);
    border-radius: 3px;
}
.comparison-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--azul-medio);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    margin-top: -8px;
}
.comparison-range::-moz-range-track {
    height: 6px;
    background: rgba(255,255,255,0.7);
    border-radius: 3px;
}
.comparison-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: var(--azul-medio);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}
/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(135deg, #0A2540 0%, #1E88E5 100%);
}
.cta-bg {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10 L40 10 L40 40 L10 40 Z' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3Ccircle cx='70' cy='30' r='8' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3Ccircle cx='30' cy='70' r='12' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Cpath d='M60 60 L90 60 L90 90 L60 90 Z' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.6;
}
.glass-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.5);
}
.form-floating label {
    color: #6c757d;
}
.form-control, .form-select {
    border-radius: 12px;
    border: 1px solid #dee2e6;
    padding: 12px 16px;
    font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--azul-medio);
    box-shadow: 0 0 0 3px rgba(30,136,229,0.2);
}
.btn-cta {
    background: #25D366;
    color: white;
    border: none;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(37,211,102,0.4);
}
.btn-cta:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37,211,102,0.6);
    color: white;
}
/* ========== FOOTER VISION ========== */
.footer-vision {
    position: relative;
    background: linear-gradient(160deg, #071a2e 0%, #0A2540 50%, #0D3558 100%);
    color: #fff;
    overflow: hidden;
}
.footer-bg {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='20' cy='20' r='1.5'/%3E%3Ccircle cx='60' cy='60' r='1.5'/%3E%3Ccircle cx='60' cy='20' r='1'/%3E%3Ccircle cx='20' cy='60' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    position: relative;
}
.footer-link:hover {
    color: #fff;
    padding-left: 5px;
}
.footer-link::before {
    content: '▹';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: 0.2s;
    color: var(--azul-medio);
}
.footer-link:hover::before {
    left: -12px;
    opacity: 1;
}

/* Botões sociais */
.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    text-decoration: none;
    transition: 0.3s;
}
.btn-social:hover {
    background: var(--azul-medio);
    color: #fff;
    transform: translateY(-3px);
}

/* Botão de login escondido (já existente, mas garantindo) */
.login-escondido {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(10, 37, 64, 0.8);
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
}
.login-escondido:hover {
    background: var(--azul-medio);
    transform: scale(1.15);
    color: #fff;
}

/* Responsivo */
@media (max-width: 768px) {
    .footer-vision .row > div {
        text-align: center;
    }
    .btn-social {
        margin: 0 auto;
    }
}