/**
 * Header CSS - Integrated with Component Styles
 * Algometis IT Services
 */

/* CSS Variables - Use variables from main.css instead of redefining */
:root {
    /* Header-specific variables that don't conflict */
    --header-height: 150px;
    --header-transition: 0.3s ease;
    --header-backdrop-blur: 15px;
    
    /* Use these only if main.css is not loaded (fallback) */
    --primary-color: var(--primary-color, #dc2626);
    --primary-color-rgb: var(--primary-color-rgb, 220, 38, 38);
    --text-color: var(--text-color, #1f2937);
    --transition-fast: var(--transition-fast, 0.2s ease);
    --transition-normal: var(--transition-normal, 0.3s ease);
    
    /* Alternative blue color for header if needed */
    --header-blue: #2563eb;
    --header-blue-rgb: 37, 99, 235;
}

/* Additional header styles that complement the inline styles */
.header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-scrolled {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-scrolled .header-top {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
}

.header-scrolled .header-main {
    background: rgba(255, 255, 255, 1);
}

/* Navigation positioning adjustments */
.nav {
    position: relative;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Body scroll lock */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Note: body padding-top is handled in main.css using var(--header-height) */

/* Responsive adjustments using CSS variables */
@media (max-width: 1024px) {
    :root {
        --header-height: 140px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 130px;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 120px;
    }
}
