/* =============================
   RESET E CONFIGURAÇÕES BASE
============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    padding-top: 120px;
    /* compensa headers fixos */
}

/* =============================
   HEADER SUPERIOR (VERMELHO)
============================= */
.top-header {
    background-color: red;
    color: white;
    text-align: center;
    padding: 8px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    font-size: 14px;
}

/* =============================
   HEADER PRINCIPAL
============================= */
header {
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
    padding: 10px 20px;
    position: fixed;
    top: 40px;
    /* abaixo do header vermelho */
    width: 100%;
    z-index: 1000;
}

.top-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 80px;
    transition: 0.3s ease;
}

/* NAV */
.navigation {
    display: flex;
    gap: 15px;
}

.navigation a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    transition: 0.3s ease;
}

.navigation a:hover {
    color: rgb(7, 18, 87);
    font-weight: bold;
}

/* SOCIAL */
.social-media {
    display: flex;
    gap: 10px;
}

.social-media a {
    font-size: 20px;
    color: #333;
}

.social-media a:hover {
    color: rgb(7, 18, 87);
}

/* BOTÃO ÁREA TÉCNICA */
.technical-access .tech-button {
    background-color: #073464;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.technical-access .tech-button:hover {
    background-color: #23a123;
}

/* MENU MOBILE */
.menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

/* =============================
   CARROSSEL PRINCIPAL (IMAGENS)
============================= */
.carousel {
    width: 100%;
    overflow: hidden;
    display: flex;
}

.carousel img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: none;
}

.carousel img:first-child {
    display: block;
}

/* =============================
   SEÇÃO SOBRE / INFORMAÇÕES
============================= */
.info-section {
    padding: 40px 20px;
    background: #ffffff;
    margin-top: 20px;
    border-radius: 6px;
}

.info-section h2 {
    text-align: center;
}

.info-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.info-text {
    max-width: 800px;
    text-align: justify;
    line-height: 1.6;
}

/* =============================
   MISSÃO • VISÃO • VALORES
============================= */
.mv-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
    justify-content: center;
}

.mv-item {
    background: #1606921a;
    padding: 20px;
    border-radius: 6px;
    width: 300px;
    transition: 0.3s;
}

.mv-item:hover {
    background: #03264b;
    color: white;
    transform: translateY(-5px);
}

.mv-item h3 {
    margin-bottom: 10px;
}

/* =============================
   SERVIÇOS
============================= */
.services-section {
    padding: 40px 20px;
    background: #fff;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.service-item {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #ddd;
    text-align: center;
    transition: 0.3s ease;
}

.service-item i {
    font-size: 40px;
    margin-bottom: 10px;
    color: #05294f;
}

.service-item:hover {
    background: #03264b;
    color: white;
    transform: translateY(-10px);
}

.service-item:hover i {
    color: white;
}

/* =============================
   PARCEIROS – CARROSSEL
============================= */
.partners-section {
    padding: 40px 20px;
    text-align: center;
    background: #f1f1f1;
}

.partners-carousel {
    overflow: hidden;
    margin-top: 20px;
}

.carousel-inner {
    display: flex;
    gap: 100px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.carousel-inner img {
    max-width: 200px;
    height: 50px;
    object-fit: contain;
    filter: brightness(95%);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.partners-carousel:hover .carousel-inner {
    animation-play-state: paused;
}

/* =============================
   CONTATO
============================= */
.contact-section {
    padding: 40px 20px;
    background: #fff;
    text-align: center;
}

.contact-section ul {
    list-style: none;
    margin-top: 10px;
}

/* =============================
   RODAPÉ
============================= */
footer {
    text-align: center;
    padding: 20px;
    background: #f8f8f8;
    border-top: 1px solid #ddd;
}

/* =============================
   RESPONSIVIDADE
============================= */
@media (max-width: 900px) {
    .logo img {
        height: 60px;
    }
}

/* ============================================
   MENU MOBILE — CORREÇÃO FINAL E GARANTIDA
============================================ */
@media (max-width: 768px) {

    /* MOSTRA o botão do menu */
    .menu-button {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        cursor: pointer;
        border: none;
        background: none;
        position: relative;
        z-index: 9999;
    }

    /* Ícone hambúrguer */
    .menu-button span,
    .menu-button span::before,
    .menu-button span::after {
        content: "";
        width: 28px;
        height: 3px;
        background: #073464;
        border-radius: 3px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        transition: 0.3s ease;
    }

    .menu-button span {
        top: 50%;
    }

    .menu-button span::before {
        top: -8px;
    }

    .menu-button span::after {
        top: 8px;
    }

    /* ÍCONE vira X */
    .menu-button.active span {
        background: transparent;
    }

    .menu-button.active span::before {
        transform: translateX(-50%) rotate(45deg);
        top: 0;
    }

    .menu-button.active span::after {
        transform: translateX(-50%) rotate(-45deg);
        top: 0;
    }

    /* ESCONDER MENU ATÉ ABRIR */
    .navigation {
        display: none !important;
    }

    .navigation.active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 110px;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 1500;
        padding: 20px 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .navigation a {
        padding: 12px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .navigation a:last-child {
        border-bottom: none;
    }

    /* Ajustes no header */
    .top-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 12px;
    }

    .logo {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .logo img {
        height: 60px;
    }

    .social-media {
        display: none !important;
    }
}


/* ============================================
   PRELOADER PREMIUM — ADICIONADO AO FINAL
============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 245, 245, 0.98);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.6s ease-out;
}

.loader-container {
    text-align: center;
}

.loader-logo {
    width: 110px;
    animation: pulseLogo 2s ease-in-out infinite;
    filter: drop-shadow(0px 4px 12px rgba(0, 0, 0, 0.15));
}

/* Animação suave no logo */
@keyframes pulseLogo {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.06);
        opacity: 0.95;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Círculo animado estilo premium */
.loader-ring {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 22px auto 0;
}

.loader-ring div {
    box-sizing: border-box;
    position: absolute;
    width: 90px;
    height: 90px;
    border: 3px solid #073464;
    border-radius: 50%;
    animation: loaderRing 1.2s linear infinite;
    border-color: #073464 transparent transparent transparent;
}

/* Delay entre os círculos */
.loader-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.loader-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.loader-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

/* Animação 360° */
@keyframes loaderRing {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Desaparecer suavemente */
#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}