/* ===========================
   NAVIGATION
   =========================== */

/* Prevent scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Home Navigation - transparent initially */
.home-nav {
    background: transparent;
    box-shadow: none;
}

.home-nav.scrolled {
    background: rgba(10, 22, 40, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Blog Navigation */
.main-nav-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to right, rgba(1, 7, 37, 0.9), rgba(0, 32, 101, 0.9));
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.main-nav-header.scrolled {
    background: linear-gradient(to right, rgba(1, 7, 37, 0.9), rgba(0, 32, 101, 1));
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    height: 60px;
    transition: transform 0.3s ease;
    z-index: 1001;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00a86b;
    transition: width 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #00a86b;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

/* Demo Button */
.btn-demo {
    background: linear-gradient(135deg, #00a86b 0%, #008c59 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 168, 107, 0.2);
}

.btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 107, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.read-more {
    color: #00a86b;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #008c59;
    transform: translateX(5px);
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    color: #1a2740;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #00a86b;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.category-list a:hover {
    color: #00a86b;
    padding-left: 5px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00a86b;
}

@media (max-width: 900px) {
    /* Ajuste da logo mobile */
    .nav-logo {
        height: 50px;
    }

    /* Ocultar menu desktop */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    /* Menu mobile ativo */
    .nav-menu.active {
        display: flex;
        transform: translateX(0);
    }

    /* Links mobile */
    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        align-items: center;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        width: 100%;
    }

    .nav-links li a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Botão demo mobile */
    .btn-demo {
        width: 100%;
        max-width: 300px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* Mostrar toggle mobile */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hero mobile */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        height: 45px;
    }

    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .main-nav-header {
        height: 70px;
    }
}

/* Home Page Hero Section Adjustment */
body:has(.home-nav) .grid-stacking {
    margin-top: 0;
}

body:has(.home-nav) .hero-section {
    position: relative;
    z-index: 0;
}
