/* ==========================================================================
   RESET & CONFIGURAÇÕES BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth; /* Rolagem suave nativa */
}

:root {
    /* Paleta de Cores - Tema Escuro Moderno */
    --primary: #fbc02d;      /* Amarelo Principal */
    --secondary: #f4511e;    /* Laranja Secundário */
    --bg-main: #0a0a0a;      /* Fundo Principal Profundo */
    --bg-card: #161616;      /* Fundo de Cards/Elementos */
    --text-main: #ffffff;    /* Texto Principal */
    --text-dim: #9ca3af;     /* Texto Secundário/Desativado */
    --border: #262626;       /* Bordas Suaves */
    --success: #25d366;      /* Verde WhatsApp */
    --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden; /* Evita rolagem horizontal acidental */
}

/* ==========================================================================
   TIPOGRAFIA GLOBAL (Otimizada para Legibilidade)
   ========================================================================== */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; } /* Mobile first */
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Base para Links Globais - Se houver fora da Nav */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    color: var(--text-main);
}

/* ==========================================================================
   COMPONENTES REUTILIZÁVEIS
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Botões Modernos */
.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    color: #000;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 8px;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    text-align: center;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 81, 30, 0.4);
    color: #000; /* Garante que o texto não mude no hover global */
}

.btn-whatsapp {
    background: var(--success);
    color: #fff;
}

.btn-whatsapp:hover {
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    color: #fff;
}

/* Estilo para Seções */
section {
    padding: 100px 0; /* Padding vertical generoso para "respiro" */
}

/* Títulos de Seção Padronizados */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    color: var(--text-main);
}

.section-header h2 span {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   HEADER & NAVEGAÇÃO
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.85); /* Fundo semi-transparente */
    backdrop-filter: blur(15px); /* Efeito de vidro */
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

/* Barra de progresso visual no topo */
.site-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-brand);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* Altura fixa para o header */
}

.header-container img {
    height: 80px; /* Altura da logo controlada */
    width: auto;
}

/* Nav Links - Desktop */
.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

/* Efeito de underline moderno */
.nav-links a:not(.btn-admin)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-admin):hover::after {
    width: 100%;
}

/* Botão Admin Especial na Nav */
.nav-links a.btn-admin {
    background: transparent;
    border: 2px solid var(--border);
    padding: 8px 16px;
    border-radius: 6px;
    color: var(--text-dim);
    transition: all 0.3s ease;
}

.nav-links a.btn-admin:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ==========================================================================
   MENU MOBILE (Botão Hamburguer)
   ========================================================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor:pointer;
    z-index: 1100;
    background: transparent;
    border: none;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animação do Hamburguer para X */
.menu-toggle.active span:nth-child(1){
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2){
    opacity: 0;
}

.menu-toggle.active span:nth-child(3){
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================================================
   BARRA CTA TOPO (Otimização de SEO/Conversão)
   ========================================================================== */
.top-cta {
    background: #111;
    color: var(--text-main);
    text-align: center;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    margin-top: 80px; /* Compensa o Header Fixed */
}

.top-cta a {
    color: var(--success);
    font-weight: 700;
    margin-left: 5px;
}

.top-cta a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   HERO SECTION (Otimizada para Impacto)
   ========================================================================== */
.hero {
    min-height: 90vh; /* Ligeiramente menor que full para ver o início da prox seção */
    background: url('../images/manutencao_2-1.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    padding: 60px 0;
}

/* Overlay de gradiente para garantir leitura do texto */
.hero::before {
    content:'';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #000000 30%, rgba(0,0,0,0.6) 70%, transparent 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2; /* Acima do overlay */
}

.hero-content {
    max-width: 650px;
}

.hero-content h1 {
    font-size: 3rem; /* Desktop H1 */
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--secondary);
}

.hero-content p.hero-lead {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 2rem;
}

.hero-meta {
    font-size: 0.9rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-meta::before {
    content: '⚡';
    color: var(--primary);
}

/* ==========================================================================
   SERVIÇOS (TECH SECTION) - Grid Responsivo Moderno
   ========================================================================== */
.tech-section {
    background: var(--bg-card); /* Leve contraste com o fundo principal */
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Grid Fluido */
    gap: 30px;
}

.tech-card {
    background: var(--bg-main); /* Card Escuro */
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.tech-card .card-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.tech-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tech-card:hover img {
    transform: scale(1.05);
}

.tech-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tech-content h3 {
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.tech-content p {
    font-size: 0.95rem;
    margin-bottom: 0; /* Pára o parágrafo não empurrar o final do card */
}

/* ==========================================================================
   CLIENTES PREMIUM - Estilo Glow Industrial
   ========================================================================== */
.clients-section {
    position: relative;
    background: radial-gradient(
        circle at center,
        rgba(244, 81, 30, 0.15) 0%,
        var(--bg-main) 70%
    );
    overflow: hidden;
}

/* Glow suave de fundo */
.clients-section::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(254, 192, 45, 0.1), transparent 70%);
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(150px);
    z-index: 0;
}

.clients-section .container {
    position: relative;
    z-index: 1;
}

.clients-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Grid de Logos */
    gap: 20px;
    justify-items: center;
    align-items: center;
    margin-top: 50px;
}

.client-logo-item {
    background: rgba(255, 255, 255, 0.03); /* Fundo quase invisível */
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.client-logo-item:hover {
    background: rgba(255, 255, 255, 1); /* Revela fundo branco no hover */
    transform: scale(1.05);
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(244, 81, 30, 0.2);
}

.clients-logos img {
    max-height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6); /* Logos apagadas inicialmente */
    transition: all 0.3s ease;
}

.client-logo-item:hover img {
    filter: grayscale(0%) opacity(1); /* Revela logo colorida */
}

/* ==========================================================================
   CONTATO - Layout de 2 Colunas Responsivo
   ========================================================================== */
.contact-section {
    background: var(--bg-card);
}

.contact-card-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 colunas no desktop */
    gap: 50px;
    background: var(--bg-main);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.contact-info h2 {
    color: var(--text-main);
}

/* Lista de benefícios moderna */
.benefits-list {
    list-style: none;
    margin-top: 30px;
}

.benefits-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 500;
}

/* Ícone de check moderno */
.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: rgba(37, 211, 102, 0.15);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
}

/* Formulário Moderno */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.modern-form input,
.modern-form textarea {
    padding: 16px;
    border-radius: 8px;
    border: 2px solid var(--border);
    background: #111;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.modern-form input:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.modern-form textarea {
    resize: vertical;
    min-height: 120px;
}

.status-msg {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

.status-msg.success {
    background: rgba(37, 211, 102, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    background: #000;
    color: var(--text-dim);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

.site-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* ==========================================================================
   WHATSAPP FLOAT (Modernizado)
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--success);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
}

.whatsapp-float img {
    width: 32px;
    height: auto;
}

/* ==========================================================================
   MEDIA QUERIES (Responsividade)
   ========================================================================== */

/* Tablets e Desktops Pequenos (< 992px) */
@media (max-width: 992px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .hero-content h1 { font-size: 2.5rem; }
    
    .contact-card-layout {
        padding: 40px;
        gap: 30px;
    }
}

/* Mobile (< 768px) - Mudanças Drásticas */
@media (max-width: 768px) {
    /* Tipografia Mobile */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    
    section { padding: 70px 0; }
    
    .section-header { margin-bottom: 40px; }

    /* Header Mobile */
    .header-container img { height: 80px; }

    .menu-toggle {
        display: flex; /* Revela o hamburguer */
    }

    /* Menu Lateral Mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Escondido */
        width: 80%; /* Não ocupa a tela toda para dar contexto */
        max-width: 300px;
        height: 100vh;
        background: #0d0d0d;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        padding: 100px 30px;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        border-left: 1px solid var(--border);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0; /* Mostra o menu */
    }
    
    .nav-links a {
        width: 100%;
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-links a::after { display: none; } /* Remove efeito hover de desktop */

    .nav-links a.btn-admin {
        margin-top: 20px;
        text-align: center;
        border-color: var(--border);
    }

    /* Hero Mobile */
    .hero {
        text-align: center;
        min-height: auto;
        padding: 120px 0 80px 0;
    }
    
    .hero::before {
        background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.9) 100%);
    }

    .hero-content { max-width: 100%; }
    
    .hero-content h1 { font-size: 2.2rem; }
    
    .hero-btns { justify-content: center; }
    
    .hero-meta { justify-content: center; }

    /* Tech Grid Mobile - força 1 coluna */
    .tech-grid {
        grid-template-columns: 1fr;
    }

    /* Contato Mobile - força 1 coluna */
    .contact-card-layout {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    
    .contact-info { text-align: center; }
    
    .benefits-list {
        display: inline-block;
        text-align: left;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float img { width: 26px; }
}