/* Custom CSS for Hornes Auto Collision */

:root {
    --color-green-900: #1a4d2e;
    --color-green-800: #2d6a4f;
    --color-green-100: #d8f3dc;
    --color-offwhite: #fafaf8;
    --color-charcoal: #1a1a1a;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-200: #e5e7eb;
    --color-gray-100: #f3f4f6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-offwhite);
    color: var(--color-charcoal);
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

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

::-webkit-scrollbar-track {
    background: var(--color-offwhite);
}

::-webkit-scrollbar-thumb {
    background: var(--color-green-900);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-green-800);
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.4s; }
#mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.5s; }

/* Intersection Observer animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
.fade-in-delay-6 { transition-delay: 0.6s; }

/* Image hover effects */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Button focus styles */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Service card hover effect */
.group:hover {
    transform: translateY(-4px);
}

/* Smooth transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Selection color */
::selection {
    background-color: var(--color-green-900);
    color: white;
}

/* Mobile menu active state */
#mobile-menu.active {
    transform: translateX(0);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-green-900);
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.1);
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .scroll-indicator {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
