/* ===== HARMONIZAÇÃO DO HEADER DAS PÁGINAS HTML COM O INDEX ===== */

/* Header com cores e estilos idênticos ao index */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.75);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
    transition: all 0.3s ease;
    color: #ffffff;
    /* Remove espaço branco embaixo */
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Navbar com padding idêntico ao index */
.navbar {
    padding: 1rem 0;
    margin: 0;
}

/* Container de navegação */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo com estilos idênticos ao index */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
}

.logo {
    width: 150px;
    height: auto;
    border-radius: 0%;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-family: 'Comfortaa', cursive;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

/* Menu de navegação idêntico ao index */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #0DA7D9;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0DA7D9, #E5D70F);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger menu idêntico ao index */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    padding: 0;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Ajuste do conteúdo principal para remover espaço branco */
body {
    margin: 0;
    padding: 0;
}

/* Service Hero sem margin-top para eliminar espaço branco */
.service-hero {
    margin-top: 0;
    padding-top: 80px; /* Apenas o padding necessário para o header fixo */
}

/* Ajuste para outras seções que possam ter margin-top */
main,
.main-content,
section:first-of-type {
    margin-top: 0;
    padding-top: 80px; /* Altura do header fixo */
}

/* Responsividade para mobile - idêntica ao index */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #1a1a2e;
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 1rem 0;
        z-index: 1000;
        overflow-y: auto;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        font-size: 1.1rem;
        color: #ffffff;
    }

    .nav-link:hover {
        color: #0DA7D9;
    }

    .hamburger {
        display: flex;
    }

    /* Ajuste do padding-top para mobile */
    .service-hero,
    main,
    .main-content,
    section:first-of-type {
        padding-top: 70px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }

    .logo {
        width: 120px;
    }

    .service-hero,
    main,
    .main-content,
    section:first-of-type {
        padding-top: 65px;
    }
}

/* Estados de foco para acessibilidade */
.nav-link:focus,
.hamburger:focus {
    outline: 2px solid #0DA7D9;
    outline-offset: 2px;
}

/* Transições suaves para mudanças de estado */
.header.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
}

/* Garantir que não há espaços extras */
* {
    box-sizing: border-box;
}

/* Remove qualquer margin ou padding extra do body e html */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Ajuste específico para páginas de serviço */
.service-hero-background {
    margin-top: 0;
}

/* Remove espaços extras de qualquer container principal */
.container:first-child,
.main-container:first-child {
    margin-top: 0;
    padding-top: 0;
}
