/* =========================================
   1. CONFIGURAÇÕES BASE & VARIÁVEIS
   ========================================= */
:root {
    --primary: #002B5B;
    /* Azul Corporativo Escuro */
    --secondary: #00A8CC;
    /* Ciano Vibrante (Destaque) */
    --dark: #0F172A;
    /* Fundo Principal */
    --darker: #020617;
    /* Fundo Secundário (Preto Profundo) */
    --light: #F8FAFC;
    /* Texto Claro */
    --gray: #94a3b8;
    /* Texto Suave/Cinza */
    --white: #ffffff;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--light);
    background-color: var(--dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    color: var(--white);
    font-weight: 800;
    letter-spacing: -0.02em;
}

strong {
    color: var(--secondary);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* =========================================
   2. HEADER & NAVEGAÇÃO
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
    padding: 15px 0;
    background: rgba(2, 6, 23, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 45px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
}

.btn-header {
    background: var(--secondary);
    color: #fff;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 0 20px rgba(0, 168, 204, 0.3);
}

.btn-header:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 168, 204, 0.5);
    background: #fff;
    color: var(--secondary);
}

.mobile-menu-icon {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   3. ELEMENTOS GERAIS
   ========================================= */
.section {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--darker);
}

.sub-title {
    color: var(--secondary);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.btn-primary {
    background: var(--secondary);
    color: #fff;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-outline {
    background: transparent;
    color: #fff;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* =========================================
   4. HOME: HERO SLIDER (CORRIGIDO)
   ========================================= */
.hero-slider {
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
}

.swiper {
    width: 100%;
    padding-bottom: 40px;
}

/* FIX CRÍTICO: Aplica estilos de grid APENAS ao slider da Hero, não à galeria */
.hero-slider .swiper-slide {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 40px;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s;
}

.hero-slider .swiper-slide-active {
    opacity: 1;
}

.hero-slider h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-slider span {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.hero-slider p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 35px;
    max-width: 95%;
}

.slide-image-right {
    height: 450px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-group {
    display: flex;
    gap: 20px;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(rgba(0, 43, 91, 0.9), rgba(0, 43, 91, 0.9)), url('../assets/image_5.jpg');
    background-attachment: fixed;
    background-size: cover;
    padding: 80px 0;
    color: #fff;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* Services Grid */
.services-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card-home {
    background: var(--darker);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card-home:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 10px 40px rgba(0, 168, 204, 0.15);
}

.service-card-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary);
    transform: scaleY(0);
    transition: transform 0.4s;
}

.service-card-home:hover::before {
    transform: scaleY(1);
}

/* =========================================
   5. SEÇÃO EXPERTS (AZULEJOS)
   ========================================= */
.tech-section {
    padding: 80px 0;
    background: var(--dark);
    position: relative;
}

.tech-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.tech-title {
    color: var(--secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 800;
    margin-bottom: 50px;
    display: inline-block;
    position: relative;
}

.tech-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.brands-grid-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: center;
}

.brand-tile {
    background: #ffffff;
    width: 100%;
    max-width: 220px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    padding: 25px;
    transition: all 0.4s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.brand-tile img {
    max-height: 55px;
    width: auto;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition);
}

.brand-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 168, 204, 0.25);
    border-color: var(--secondary);
}

.brand-tile:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* =========================================
   6. PÁGINAS INTERNAS
   ========================================= */
.page-header {
    padding: 180px 0 100px 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), var(--dark)), url('../assets/image_5.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

.rich-text p {
    margin-bottom: 25px;
    color: #cbd5e1;
    font-size: 1.05rem;
    text-align: justify;
}

.rich-list li {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    color: #cbd5e1;
    align-items: center;
}

.rich-list i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.compliance-box {
    background: linear-gradient(135deg, #002B5B 0%, #00152e 100%);
    border-radius: 20px;
    padding: 60px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.compliance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.check-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: #fff;
}

.check-item i {
    color: #25d366;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 35px;
    border-radius: 16px;
    transition: var(--transition);
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.value-card i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
}

.value-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.sector-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.sector-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.sector-card i {
    font-size: 1.8rem;
    color: var(--gray);
    margin-bottom: 15px;
    transition: var(--transition);
}

.sector-card:hover i {
    color: var(--secondary);
}

.sector-card h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--darker);
    padding: 60px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.05);
}

footer {
    background: var(--darker);
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray);
}

/* =========================================
   7. CASES COMPACTOS (GRID)
   ========================================= */
.cases-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.case-card-compact {
    background: var(--darker);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.case-card-compact:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 168, 204, 0.15);
    border-color: var(--secondary);
}

/* Area da Imagem (Logo Grande) */
.case-compact-img {
    height: 180px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.case-compact-img img {
    max-height: 150px;
    max-width: 95%;
    object-fit: contain;
    transition: transform 0.4s;
}

.case-card-compact:hover .case-compact-img img {
    transform: scale(1.1);
}

.case-compact-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-compact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
}

.case-compact-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 10px;
}

.compact-list {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.compact-list li {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
}

.compact-list li i {
    color: var(--secondary);
}

/* =========================================
   8. GALERIA DE FOTOS (CARROSSEL)
   ========================================= */
.gallery-swiper {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* FIX CRÍTICO: Garante que os slides da galeria funcionem como bloco (não Grid) */
.gallery-swiper .swiper-slide {
    display: block !important;
    height: 100%;
    opacity: 1 !important;
    /* Garante que sejam visíveis */
}

.gallery-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* =========================================
   9. MEDIA QUERIES (RESPONSIVO FINAL)
   ========================================= */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
    }

    #nav-menu.active .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--darker);
        padding: 30px;
        gap: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .grid-2,
    .contact-wrapper,
    .compliance-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-slider {
        height: auto;
        padding-top: 120px;
        padding-bottom: 80px;
        text-align: center;
        display: block;
    }

    .hero-slider .swiper-slide {
        display: flex;
        flex-direction: column;
        gap: 50px;
    }

    /* Ajustado para hero */
    .hero-slider h1 {
        font-size: 2.5rem;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        margin-bottom: 20px;
    }

    .btn-group a {
        width: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    .slide-image-right {
        height: 350px;
        width: 100%;
        margin-top: 0;
    }

    .cases-grid-compact {
        grid-template-columns: 1fr;
    }
}