:root {
    --dashboard-primary: #0f172a;    
    --dashboard-secondary: #1e293b;  
    --primary-pastel: #eff6ff;       
    --secondary-pastel: #dbeafe;     
    --tertiary-pastel: #bfdbfe;     
    --primary-blue: #3b82f6;        
    --secondary-blue: #1d4ed8;      
    --accent-blue: #60a5fa;          
    --text-dark: #0f172a;            
    --text-medium: #475569;          
    --text-light: #64748b;           
    --border-light: #e2e8f0;        
    --border-blue: rgba(59, 130, 246, 0.2);
    --shadow-light: rgba(15, 23, 42, 0.05);
    --shadow-blue: rgba(59, 130, 246, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
   
    min-height: 100vh;
    width: 100%;
    color: var(--text-dark);
}

html {
    scroll-behavior: auto;
}



/* HERO SECTION */
.hero {
    background-image: url('../images/fundo-kogistica.jpeg');
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 100vh;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding-top: 100px; /* espaço por causa da navbar */
    position: relative;
}

/* Overlay opcional (melhora contraste do texto) */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4); /* escurece imagem */
    z-index: 0;
}

/* Conteúdo */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 0;
    gap: 500px;
    z-index: 999;
    background: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Sólida ao sair da hero */
.navbar.scrolled {
    backdrop-filter: blur(10px);
    background: rgba(239, 246, 255, 0.97);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 10px var(--shadow-light);
}

/* Transparente só na hero */
.navbar:not(.scrolled) .nav-links-container {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.navbar:not(.scrolled) .nav-links-container a {
    color: rgba(255, 255, 255, 0.9);
}

.navbar:not(.scrolled) .nav-links-container a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Logo — remove o absolute no geral */
.logo {
    
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--dashboard-primary);
    font-weight: 700;
}

.logo img {
    height: 95px; /* estava 220px — era isso que causava o caos */
    width: auto;
    display: block;
}



.nav-links-container {
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid var(--border-light);
    border-radius: 50px;
    padding: 5px 10px;
    box-shadow: 0 4px 12px var(--shadow-light);
    backdrop-filter: blur(5px);
}

.nav-links-container a {
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 18px;
    margin: 0 5px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 30px;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease-in-out;
}

.nav-links-container a:not(.active-link):hover {
    color: var(--primary-blue);
    background-color: rgba(59, 130, 246, 0.08);
}

.active-link {
    color: var(--text-light);
    background-color: rgba(59, 130, 246, 0.08);
    transition: all 0.3s ease-in-out;
}










.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    
}

@media (max-width: 1024px) {
    html {
        scroll-padding-top: 80px !important;
    }

 #sobre, #servicos, #bunkering {
        scroll-margin-top: 80px;
    }

    .navbar {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 0;
        height: 70px;
        overflow: hidden;
        transition: height 0.3s ease;
        
    }

    .navbar-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 70px;
        padding: 0 20px;
        backdrop-filter: blur(10px);
        background: rgba(239, 246, 255, 0.95);
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 2px 10px var(--shadow-light);
    }

    .logo {

        margin-right:15px;
        position: static;
        transform: none;
    }

    .logo img {
        height: 60px;
    }

    .menu-toggle {
        color: var(--dashboard-primary);
        display: block !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        margin-left: auto !important;
    }

    .nav-links-container {
        display: none !important;
    }

    .navbar.expanded {
        height: 70px;
        min-height: 70px;
        background: white;
        box-shadow: none;
        overflow: visible;
    }

    .navbar.expanded .nav-links-container {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        padding: 0 20px 20px;
        margin: 0;
        gap: 0;
        border: none;
        border-radius: 0;
        z-index: 998;
        animation: menuSlideDown 0.50s ease forwards;
    }

    .navbar.expanded .nav-links-container a {
        width: 100%;
        text-align: left;
        padding: 15px 0;
        margin: 0;
        border-radius: 0;
        font-size: 0.95rem;
        background: transparent;
        color: var(--text-medium);
        border-bottom: 1px solid var(--border-light);
        text-decoration: none;
    }

    .navbar.expanded .nav-links-container a:last-child {
        border-bottom: none;
    }

    .navbar.expanded .nav-links-container a:hover {
        color: var(--primary-blue);
        background-color: rgba(59, 130, 246, 0.05);
    }

    .navbar.expanded .nav-links-container .active-link {
        color: white !important;
        background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
        border-radius: 8px;
        padding: 15px;
        border: none;
        margin: 5px 0;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    }
}

@media (max-width: 1200px) {
    html {
        scroll-padding-top: 0; /* Remove para desktop */
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        font-size: 1.1rem;
        max-width: 600px;
        line-height: 1.6;
    }
}


@media (max-width: 992px) {
    .hero-content {
        text-align: center;
        padding: 60px 20px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    .hero-content p {
        font-size: 1rem;
        max-width: 90%;
        margin: 0 auto 30px;
    }
    .circular-glow {
        width: 280px;
        height: 140px;
        margin: 0 auto;
    }
}


@media (max-width: 768px) {
    
    .hero-content {
        padding: 50px 15px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 0.95rem;
        max-width: 95%;
        line-height: 1.5;
    }
    .circular-glow {
        width: 240px;
        height: 120px;
    }
    .cta-group {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .primary-cta, .secondary-cta {
        width: 100%;
        max-width: 300px;
    }
}


@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.9rem;
        margin-bottom: 15px;
    }
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    .circular-glow {
        width: 200px;
        height: 100px;
    }
}


@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }
    .hero-content p {
        font-size: 0.85rem;
    }
}
