/* ===== RESET, VARIÁVEIS E ESTILOS GLOBAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de cores moderna */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    --accent-color: #10b981;
    --accent-dark: #059669;
    
    /* Cores neutras */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Cores específicas dos produtos */
    --eletro-color: #f6c000;
    --eletro-gradient: linear-gradient(135deg, rgb(236, 169, 52) 0%, #f6c000 100%);
    --mec-color: #d62a2a;
    --mec-gradient: linear-gradient(135deg, rgb(223, 51, 51) 0%, #d62a2a 100%);
    --info-color: #2ab7f4;
    --info-gradient: linear-gradient(135deg, #00b3ff 0%, #2ab7f4 100%);
    --cti-color: #6b7280;
    --cti-gradient: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    --combo-color: #173953;
    --combo-gradient: linear-gradient(135deg, #144c77 0%, #173953 100%);
    
    /* Tipografia */
    --font-primary: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    --font-secondary: 'Poppins', 'Inter', sans-serif;
    
    /* Espaçamentos */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Bordas */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transições */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Em assets/css/global.css */

body {
    font-family: var(--font-primary);
    background-image: url("/assets/images/SIm.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex; /* <-- ADICIONAR */
    flex-direction: column; /* <-- ADICIONAR */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Em assets/css/global.css */

.main-content {
    min-height: calc(100vh - 120px);
    padding-top: 200px;
    flex: 1; /* <-- ADICIONAR (ou flex-grow: 1;) */
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===== SCROLLBAR E SELEÇÃO ===== */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: var(--gray-200); /* Usei um cinza claro para o fundo */
}
::-webkit-scrollbar-thumb {
    background: var(--gray-400); /* Cor principal da barra */
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500); /* Cor da barra ao passar o mouse */
}

::selection {
    background: var(--primary-color);
    color: white;
}
::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* ===== ACESSIBILIDADE ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ======================= ESTILOS DOS MODAIS GLOBAIS ======================= */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.8); /* Fundo escuro semi-transparente */
    z-index: 1000;
    display: none; /* Começa escondido */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal.active {
    display: flex; /* Mostra o modal */
}

.modal-content {
    background-color: var(--gray-800);
    color: var(--gray-200);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    width: 90%;
    max-width: 600px;
    position: relative;
    border: 1px solid var(--gray-700);
    animation: fadeIn 0.3s ease-out;
}

.modal-header {
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-700);
    padding-bottom: var(--spacing-md);
}

.modal-header h2 {
    color: white;
    font-family: var(--font-secondary);
}

.modal-body p {
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--gray-400);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.close-button:hover {
    color: white;
    transform: scale(1.1);
}

/* Estilo específico para o email no modal de contato */
.contact-email {
    background-color: var(--gray-900);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    text-align: center;
    margin: var(--spacing-lg) 0;
}

.contact-email a {
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
}

.contact-email a:hover {
    text-decoration: underline;
}