* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #2C3E50; /* Atualizado: texto azul escuro */
    background-color: #e0f5ed;
    padding-top: 100px;
    transition: padding-top 0.4s ease;
}

body.nav-hidden {
    padding-top: 70px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.navbar {
    --bg-opacity: 0.6;
    position: relative;
    padding: 0.5rem 5%;
    background: url('../imagens/backgroung_herader.jpg') no-repeat center center;
    transition: transform 0.4s ease, background 0.4s ease;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, var(--bg-opacity));
    z-index: 0;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar.visible {
    transform: translateY(0);
}

.navbar > * {
    position: relative;
    z-index: 1;
}

.logo {
    transform: translateX(-20px);
}

.logo img {
    height: 70px;
    transition: all 0.3s ease;
}

.navbar-brand {
    order: 2;
    margin-left: auto;
}

.nav-item {
    margin: 0 5px;
}

.navbar-nav {
    width: 100%;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
}

.nav-link {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: #2C3E50 !important; /* Atualizado: azul escuro */
    padding: 0.8rem 1rem !important;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link i {
    margin-right: 8px;
    font-size: 1rem;
    color: #2C3E50; /* Atualizado: ícones azuis */
}

.nav-link:hover,
.nav-link.active {
    color: #2C3E60 !important; /* Atualizado: azul mais intenso no hover */
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 3px;
    background-color: #2C3E50; /* Atualizado: azul escuro */
    border-radius: 3px;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    z-index: 1001;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== FOOTER ===== */
footer {
    --footer-bg-opacity: 0.8;
    position: relative;
    background: url('../imagens/backgroung_footer.jpg') no-repeat center center;
    color: #fff;
    padding-top: 2rem;
    margin-top: 2%;
    background-size: cover; 
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(44, 62, 80, var(--footer-bg-opacity));
    z-index: 0;
}

footer > * {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 5% 2rem;
    max-width: 1360px;
    margin: 0 auto;
}

.footer-section h3 {
    font-size: 1.5rem;
    color: #e74c3c; /* Atualizado: azul escuro */
}

.footer-section p, 
.footer-section li {
    margin-bottom: 0.8rem;
    color: #ddd;
}

.footer-section i {
    margin-right: 10px;
    color: #edf1f4; /* Atualizado: azul escuro */
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(45, 62, 80, 0.7);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: #2C3E50; /* Atualizado: azul escuro */
    transform: translateY(-3px);
}

.two-columns {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
}

.two-columns li {
    flex: 0 0 50%;
    box-sizing: border-box;
    padding: 2px 5px;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(45, 62, 80, 0.9);
    color: #aaa;
    font-size: 0.9rem;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        margin-top: 10px;
        border-radius: 5px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .navbar-brand {
        position: static;
        transform: none;
        margin-right: auto;
    }
    
    .navbar-nav {
        padding: 1rem;
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        margin-top: 15px;
    }
    
    .nav-link {
        padding: 0.8rem 0 !important;
        border-bottom: 1px solid #eee;
        justify-content: center;
        color: #2C3E50 !important; /* Atualizado: azul escuro no mobile */
    }
    
    .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    .logo img {
        height: 60px;
    }

    .navbar {
        background: white !important;
    }
    .navbar::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .menu-toggle {
        display: block;
    }

    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list li {
        margin: 1rem 0;
    }
}