/* Custom styles for Grime 2 Shine Exterior Cleaning */

/* Smooth scroll offset for fixed navigation */
html {
    scroll-padding-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f5;
}
::-webkit-scrollbar-thumb {
    background: #d4cfc8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8b0a5;
}

/* Selection color */
::selection {
    background: rgba(212, 82, 42, 0.2);
    color: #1c1917;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #d4522a;
    outline-offset: 2px;
}

/* Animation for mobile menu toggle */
.hamburger-line {
    transition: all 0.3s ease;
}

#mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
#mobile-toggle.active .hamburger-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

nav.scrolled .nav-link {
    color: #332e29;
}

nav.scrolled .nav-link:hover {
    color: #d4522a;
}

nav.scrolled .font-serif {
    color: #1c1917;
}

nav.scrolled .text-warmgray-500 {
    color: #968d82;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .service-card,
    .card-hover,
    .service-icon,
    .group img {
        transition: none !important;
    }
}

/* Print styles */
@media print {
    nav,
    #back-to-top,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn-primary {
        border: 2px solid ButtonText;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}
