/* Custom Styles for McKenzie Mercantile */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A1A1A;
}
::-webkit-scrollbar-thumb {
    background: #E07A5F;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E8956F;
}

/* Hero Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-headline {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-description {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-cta {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

/* Navbar Scroll Effect */
.nav-scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-scrolled .nav-logo-text {
    color: #FAF8F5 !important;
}

.nav-scrolled .nav-link {
    color: rgba(250, 248, 245, 0.9) !important;
}

/* Menu Tabs */
.menu-tab {
    background: transparent;
    border: none;
    color: #4A4A4A;
    cursor: pointer;
    position: relative;
}

.menu-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #E07A5F;
    transition: width 0.3s ease;
}

.menu-tab.active {
    color: #E07A5F;
}

.menu-tab.active::after {
    width: 100%;
}

.menu-tab:hover::after {
    width: 100%;
}

/* Menu Item Hover */
.menu-item {
    padding: 1rem 0;
    border-bottom: 1px solid #EDE5D8;
    transition: padding-left 0.3s ease;
}

.menu-item:hover {
    padding-left: 0.5rem;
}

.menu-item:last-child {
    border-bottom: none;
}

/* Experience Card Hover */
.experience-card {
    transform: translateY(0);
}

.experience-card:hover {
    transform: translateY(-4px);
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.3s ease;
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* Intersection Observer Animations */
.animate-on-scroll {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Button Focus States */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #E07A5F;
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background: #E07A5F;
    color: white;
}

/* Image Loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Print Styles */
@media print {
    nav, #contact, .menu-tabs, .menu-content {
        display: none;
    }
    
    body {
        color: #000;
        background: white;
    }
    
    .bg-charcoal-900, .bg-charcoal-800 {
        background: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
