:root {
    --amre-red: #9B1C1C;
    --amre-dark: #1a1a1a;
    --amre-gray-bg: #f5f5f5;
    --amre-gray-text: #666666;
    --amre-border: #e0e0e0;
}

body {
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-industrial {
    font-family: 'Roboto', sans-serif;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeIn 0.2s ease-out forwards;
}

/* Header Components */
.top-bar {
    background-color: var(--amre-gray-bg);
    border-bottom: 1px solid var(--amre-border);
    font-size: 11px;
    height: 32px;
}

.main-header {
    background-color: #fff;
    height: 80px;
}

.red-nav-bar {
    background-color: var(--amre-red);
    height: 48px;
}

.service-bar {
    background-color: var(--amre-gray-bg);
    border-bottom: 1px solid var(--amre-border);
    font-size: 11px;
    height: 45px;
}

/* Mega Menu Styles */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f8fafc;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 1000px; /* Specific width like in image */
    background-color: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 1000;
    border: 1px solid #e2e8f0;
}

/* Ensure mega menu stays within viewport */
.red-nav-bar ul li:first-child .mega-menu {
    left: 0;
}

.red-nav-bar ul li:nth-child(2) .mega-menu {
    left: -100px;
}

/* Mobile App-like Experience */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #fff;
    border-top: 1px solid var(--amre-border);
    display: none; /* Desktop hidden */
    z-index: 2000;
}

.side-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background-color: #fff;
    z-index: 3000;
    transition: left 0.3s cubic-bezier(0, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.drawer-open .side-drawer {
    left: 0;
}

.drawer-open .drawer-overlay {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 767px) {
    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    
    .top-bar, .service-bar, .main-header .flex-grow {
        display: none !important; /* Hide non-essentials on mobile */
    }

    .main-header {
        height: 60px;
    }

    .red-nav-bar {
        display: none !important; /* Move to side drawer on mobile */
    }

    /* Mobile Search Toggle Header */
    .mobile-header-actions {
        display: flex;
        gap: 1rem;
    }
}

#search-suggestions::-webkit-scrollbar {
    width: 6px;
}

#search-suggestions {
    position: absolute;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 5000;
    max-height: 400px;
    overflow-y: auto;
}

#search-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#search-suggestions::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

#search-suggestions::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Utility: Hide Scrollbar but keep functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Industrial Typography & Effects */
.tracking-tight-extreme {
    letter-spacing: -0.05em;
}

.text-shadow-hard {
    text-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

.bg-texture-industrial {
    background-image: radial-gradient(circle, #e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
}

input:focus {
    box-shadow: none !important;
}
