/* Modern Header Styles */

/* Header Container */
.modern-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.modern-header .navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}
img.custom-logo {
    width: 90px;
    height: auto;
    max-width: 70px;
}
/* Scrolled State */
.modern-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.modern-header.scrolled .navbar {
    padding: 10px 0;
}

/* Logo */
.navbar-brand {
    padding: 0;
    margin-right: 30px;
}

.navbar-brand .site-logo {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.modern-header.scrolled .navbar-brand .site-logo {
    height: 40px;
}

/* Navigation Menu */
.navbar-nav {
    gap: 10px;
    margin: 0 auto;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #333 !important;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    padding: 10px 18px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: #e3000e !important;
    background: rgba(227, 0, 14, 0.05);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30px;
    height: 2px;
    background: #e3000e;
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Header Actions */
.header-actions {
    gap: 15px;
}

/* Call Button */
.btn-call {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-call i {
    color: #e3000e;
    font-size: 1.1rem;
}

.btn-call:hover {
    background: rgba(227, 0, 14, 0.05);
    color: #e3000e;
}

/* Order Button */
.btn-order {
    background: linear-gradient(135deg, #e3000e 0%, #c70000 100%);
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(227, 0, 14, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 0, 14, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.mobile-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    padding: 12px;
    background: rgba(227, 0, 14, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
}

.mobile-phone i {
    color: #e3000e;
    font-size: 1.2rem;
}

.mobile-social {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #e3000e;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-social a:hover {
    background: #c70000;
    transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        padding: 80px 0 20px;
        transition: right 0.3s ease;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1000;
        -webkit-overflow-scrolling: touch;
    }
    
    .navbar-collapse.show {
        right: 0;
    }
    
    .navbar-collapse.collapsing {
        right: -100%;
        transition: none;
    }
    
    /* Prevent body scroll when mobile menu is open */
    body.mobile-menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    .navbar-nav {
        flex-direction: column;
        padding: 0 20px;
        gap: 5px;
    }
    
    .nav-link {
        padding: 12px 15px !important;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Mobile Overlay */
    .navbar-collapse::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .navbar-collapse.show::before {
        opacity: 1;
        pointer-events: all;
    }
    
    .navbar-brand .site-logo {
        height: 45px;
    }
}

@media (max-width: 767px) {
    .modern-header .navbar {
        padding: 10px 0;
    }
    
    .navbar-brand .site-logo {
        height: 40px;
    }
    
    .btn-order {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

/* Accessibility */
.mobile-menu-toggle:focus {
    outline: 2px solid #e3000e;
    outline-offset: 2px;
}

/* Animation for menu items */
.navbar-collapse.show .nav-item {
    animation: slideInRight 0.3s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.navbar-collapse.show .nav-item:nth-child(1) { animation-delay: 0.1s; }
.navbar-collapse.show .nav-item:nth-child(2) { animation-delay: 0.15s; }
.navbar-collapse.show .nav-item:nth-child(3) { animation-delay: 0.2s; }
.navbar-collapse.show .nav-item:nth-child(4) { animation-delay: 0.25s; }
.navbar-collapse.show .nav-item:nth-child(5) { animation-delay: 0.3s; }
.navbar-collapse.show .nav-item:nth-child(6) { animation-delay: 0.35s; }
