/* ===== Variáveis CSS ===== */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #333;
    --hover-color: #45a049;
    --white: #fff;
    --shadow-color: rgba(0, 0, 0, 0.15);
}

/* ===== Estilo Geral do Header ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
    border-radius: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 20px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ===== Logo ===== */
header .logo img {
    height: 50px;
    width: auto;
}

/* ===== Navegação ===== */
nav {
    display: flex;
    align-items: center;
}

.nav-links {
    opacity: 0;
    visibility: hidden;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: var(--secondary-color);
    width: 100%;
    text-align: center;
    padding: 1em 0;
    z-index: 1000;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links li a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5em 1em;
    transition: background-color 0.3s ease;
}

.nav-links li a:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

/* ===== Botão Hamburger ===== */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger div {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animação do Hamburger ao Ativar */
.hamburger.toggle div:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.toggle div:nth-child(2) {
    opacity: 0;
}

.hamburger.toggle div:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== Botão Área do Cliente ===== */
.btn-area-cliente {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5em 1em;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-left: 15px;
    font-weight: bold;
}

.btn-area-cliente:hover {
    background-color: var(--hover-color);
}

/* ===== Responsividade ===== */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        background-color: transparent;
        width: auto;
        text-align: left;
        opacity: 1;
        transform: none;
        visibility: visible;
        padding: 0;
    }

    .nav-links li a {
        color: var(--secondary-color);
        padding: 0.5em 1em;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .hamburger {
        display: none;
    }
}
