:root {
    /* Paleta Premium */
    --navy-dark: #020617;     /* Quase preto, azul profundo */
    --navy-light: #1e293b;    /* Azul ardósia para cartões */
    --gold-main: #d4af37;     /* Dourado clássico */
    --gold-light: #f3e5ab;    /* Dourado claro para brilhos */
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #aa8420 100%);

    --text-body: #475569;
    --bg-light: #f8fafc;

    /* Fontes */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Manrope', sans-serif;
}

/* Reset & Base */
body {
    font-family: var(--font-sans);
    color: var(--text-body);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--navy-dark);
}

/* Utilitários de Texto */
.text-gold { color: var(--gold-main) !important; }
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.ls-2 { letter-spacing: 2px; }
.fs-7 { font-size: 0.75rem; }

/* Navbar Glassmorphism */
#mainNav {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    transition: all 0.4s ease;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gold-gradient);
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 12px 0 12px; /* Borda assimétrica moderna */
    font-size: 1.2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.hover-gold:hover {
    color: var(--gold-main) !important;
    opacity: 1 !important;
}

/* Botão Premium (Oposto do Bootstrap padrão) */
.btn-premium {
    background: var(--gold-gradient);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 35px;
    border: none;
    border-radius: 2px; /* Cantos mais retos = mais seriedade */
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efeito elástico suave */
    box-shadow: 0 10px 20px -5px rgba(212, 175, 55, 0.4);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--navy-dark);
    z-index: -1;
    transition: width 0.3s ease;
}

.btn-premium:hover::before {
    width: 100%;
}

.btn-premium:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 25px -5px rgba(2, 6, 23, 0.5);
}

/* Hero Section - Imersiva */
.hero-section {
    position: relative; /* Essential for pseudo-element positioning */
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden; /* Prevents blur from spilling out */

    /* --- NOVA IMAGEM DE FUNDO --- */
    background-image: url('../img/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- EFEITO DE BLUR NA ESQUERDA --- */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%; /* Controla a área do blur */
    height: 100%;

    /* O truque do blur que afeta o que está atrás dele */
    backdrop-filter: blur(8px) brightness(0.9); /* Blur + leve escurecimento para legibilidade */

    /* Máscara para suavizar a transição do blur */
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, black 80%, transparent 100%);

    z-index: 1; /* Fica entre o fundo e o conteúdo */
}

/* Garante que o conteúdo fique por cima do blur */
.hero-content {
    position: relative;
    z-index: 2;
}


/* Padrão de fundo técnico (Grid) */
.hero-bg-pattern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(194, 33, 33, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: 0;
}

/* Overlay gradiente */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(21, 35, 71, 0.6), var(--navy-dark) 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold-main);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    background: rgba(212, 175, 55, 0.05);
}

/* Cards Flutuantes (Quebra de Grid) */
.services-overlap {
    margin-top: -100px; /* Puxa para cima da Hero */
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

.card-premium {
    background: #fff;
    border: none;
    border-radius: 0; /* Design mais arquitetônico */
    padding: 40px 30px;
    height: 100%;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); /* Sombra difusa premium */
    border-bottom: 3px solid transparent;
}

.card-premium::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 50px 50px 0;
    border-color: transparent var(--bg-light) transparent transparent;
    transition: all 0.3s;
}

.card-premium:hover {
    transform: translateY(-15px);
    border-bottom-color: var(--gold-main);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--navy-dark);
    color: var(--gold-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    transition: 0.3s;
}

.card-premium:hover .icon-box {
    background-color: var(--gold-main);
    color: var(--navy-dark);
}

/* Seção Engenheiro - Clean */
.engineer-section {
    padding: 100px 0;
    background: #fff;
    position: relative;
}

.engineer-img-wrapper {
    position: relative;
    padding: 20px;
}

.engineer-img-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 60%; height: 80%;
    border: 2px solid var(--gold-main);
    z-index: 0;
}

.engineer-img {
    position: relative;
    z-index: 1;
    box-shadow: 20px 20px 0px var(--navy-light); /* Sombra sólida estilo brutalista/moderno */
}

/* Formulário Minimalista */
.form-premium .form-control {
    border: none;
    border-bottom: 2px solid #e2e8f0;
    border-radius: 0;
    padding: 15px 0;
    background: transparent;
    font-family: var(--font-sans);
    font-weight: 500;
    transition: all 0.3s;
}

.form-premium .form-control:focus {
    box-shadow: none;
    border-color: var(--navy-dark);
    background: transparent;
}

.form-premium label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-top: 10px;
}

/* Footer Dark */
footer {
    background-color: var(--navy-dark);
    border-top: 3px solid var(--gold-main);
    color: #64748b;
}

/* Responsividade */
@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .services-overlap { margin-top: 50px; }
    .card-premium { margin-bottom: 20px; }
}


/* --- Botão WhatsApp Fixado (Canto Inferior Esquerdo) --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px; /* Alterado de left para right */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}


.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- CTA Premium com Animações --- */

/* Base do botão CTA para remover cara de Bootstrap */
.btn-cta {
    position: relative;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #b89230 100%); /* Gradiente sutil dourado */
    color: var(--primary-color);
    font-weight: 800;
    padding: 16px 40px; /* Botão maior */
    border-radius: 6px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden; /* Essencial para o efeito de brilho não vazar */
    z-index: 1;
    box-shadow: 0 4px 15px rgba(204, 164, 59, 0.3);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    color: #fff;
    box-shadow: 0 8px 25px rgba(204, 164, 59, 0.5);
    transform: translateY(-2px);
}

/* Animação de Pulso Discreto (Zoom In/Out suave) */
@keyframes pulse-premium {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); } /* Zoom muito leve */
    100% { transform: scale(1); }
}

/* Animação do Brilho (Shine Effect) */
@keyframes shine-pass {
    0% { left: -100%; opacity: 0; }
    20% { left: -100%; opacity: 0; } /* Delay visual */
    50% { opacity: 0.5; }
    100% { left: 200%; opacity: 0; }
}

/* Classe utilitária para aplicar as animações */
.btn-premium-anim {
    animation: pulse-premium 3s infinite ease-in-out; /* Pulso lento (3s) */
}

.btn-premium-anim:hover{
    animation: none;}


/* O elemento do brilho */
.btn-premium-anim::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); /* Inclinação do brilho */
    z-index: 2;
    animation: shine-pass 4s infinite; /* Brilho passa a cada 4 segundos */
    pointer-events: none; /* Não interfere no clique */
}

/* --- Cookie Banner Premium --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95); /* Azul Navy bem escuro e translúcido */
    backdrop-filter: blur(10px); /* Efeito de desfoque no fundo */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);

    /* Animação de entrada */
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

/* Ajuste para mobile para não cobrir o botão do WhatsApp */
@media (max-width: 768px) {
    .cookie-banner {
        padding-bottom: 80px; /* Espaço extra se necessário */
    }
}
