/* Custom styles for Mid Michigan Liquidators */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling is handled in index.html */

/* Typography refinements */
.serif-display {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Editorial decorative elements */
.editorial-line {
    width: 60px;
    height: 2px;
    background: #d45230;
}

/* Hero image treatment */
.hero-image {
    position: relative;
    overflow: hidden;
}

.hero-image img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image:hover img {
    transform: scale(1.03);
}

/* Service cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(60, 15, 10, 0.1);
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Navigation links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: #d45230;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Button styles */
.btn-primary {
    background: #d45230;
    color: #FDF8F0;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #c43f22;
}

.btn-secondary {
    background: transparent;
    color: #d45230;
    border: 2px solid #d45230;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #d45230;
    color: #FDF8F0;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf6ec;
}

::-webkit-scrollbar-thumb {
    background: #d45230;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c43f22;
}

/* Grid pattern background */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(212, 82, 48, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 82, 48, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d45230;
    outline-offset: 2px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .editorial-line {
        width: 40px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        min-height: 50vh;
    }
}

/* Print styles */
@media print {
    .mobile-menu,
    .btn-primary,
    .btn-secondary {
        display: none;
    }
    
    body {
        background: white;
    }
}
