/* ========== IMPORTAÇÃO DAS FONTES ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700;800&display=swap');

/* ========== VARIÁVEIS ATUALIZADAS ========== */
:root {
    /* Novo amarelo mais vivo e vibrante */
    --color-primary: #FFCC00; 
    --color-primary-hover: #E6B800;
    
    --color-black: #0D0D0D;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #FFFFFF;
    --color-border: #EAEAEA;
    
    /* Novas Fontes */
    --font-title: 'Poppins', sans-serif;
    --font-main: 'Inter', sans-serif;
    
    --transition-smooth: 0.3s ease;
}

/* ========== HEADER BASE ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    transition: all var(--transition-smooth);
    border-bottom: 1px solid transparent;
    font-family: var(--font-main); /* Aplica Inter como base do header */
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.header__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 88px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========== LOGO TIPOGRÁFICA (POPPINS) ========== */
.header__brand {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-title); /* Aplica Poppins na logo */
}

.brand-g7 {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.brand-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-black);
    letter-spacing: -0.5px;
}

/* ========== NAVEGAÇÃO DESKTOP (INTER) ========== */
.header__nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Efeito de Hover Animado nos Links */
.header__link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-light);
    position: relative;
    padding: 4px 0;
    transition: color var(--transition-smooth);
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.header__link:hover {
    color: var(--color-black);
}

.header__link:hover::after {
    width: 100%;
}

/* ========== BOTÕES CTA (INTER) ========== */
.header__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary); 
    color: var(--color-black);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 26px;
    border-radius: 8px;
    transition: all var(--transition-smooth);
    letter-spacing: 0.2px;
    border: none;
    cursor: pointer;
}

.header__cta:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 204, 0, 0.3);
}

.header__cta--mobile {
    display: none;
}

/* ========== MENU TOGGLE (HAMBURGER) ========== */
.header__menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 1001;
    background: transparent;
    border: none;
    cursor: pointer;
}

.header__menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-black);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}
/* ========== RESPONSIVO (MOBILE) ========== */
@media (max-width: 900px) {
    .header__container {
        height: 76px;
        padding: 0 24px;
        position: relative;
        z-index: 1002; /* Garante que a logo e o X fiquem sempre acima do menu branco */
    }

    /* Esconde o texto "ELETRÔNICA" no celular, deixa só o "G7" */
    .brand-text {
        display: none;
    }
    
    .brand-g7 {
        font-size: 32px;
    }

    .header__cta--desktop {
        display: none;
    }

    .header__menu-toggle {
        display: flex;
    }

    /* Animação do Hamburger para "X" */
    .header__menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: rotate(45deg);
    }
    
    .header__menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
        transform: translateX(10px);
    }
    
    .header__menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: rotate(-45deg);
    }

    /* Menu Mobile Full-screen Minimalista */
    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* Ocupa a tela inteira */
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Centraliza os links no meio da tela */
        padding: 24px;
        gap: 32px; /* Espaçamento grande e limpo entre os links */
        
        /* Removemos bordas e sombras do estilo antigo */
        border-radius: 0;
        box-shadow: none;
        border: none;
        
        /* Estado inicial escondido com animação suave de entrada */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001; /* Fica logo abaixo da barra do topo (logo e X) */
    }

    .header__nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Links com visual limpo, grandes e modernos (estilo as referências) */
    .header__link {
        font-family: var(--font-title);
        font-size: 26px; /* Fonte bem maior */
        font-weight: 700;
        color: var(--color-black);
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .header__link::after {
        display: none;
    }

    /* CTA no mobile: fica embaixo dos links */
    .header__cta--mobile {
        display: flex;
        width: 100%;
        max-width: 320px;
        margin-top: 40px;
        padding: 18px 24px;
        font-size: 16px;
        justify-content: center;
    }
}