/* Custom styles for Garden State Auto Repair */

/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

/* Custom properties */
:root {
    --color-burgundy: #780000;
    --color-burgundy-light: #9B1B35;
    --color-amber: #D4A574;
    --color-amber-light: #E8C49A;
    --color-stone-950: #0C0A09;
    --color-stone-900: #1C1917;
    --color-stone-800: #292524;
    --color-stone-700: #44403C;
    --color-stone-500: #78716C;
    --color-stone-400: #A8A29E;
    --color-stone-300: #D6D3D1;
    --color-stone-200: #E7E5E4;
    --color-stone-100: #F5F5F4;
}

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.font-cormorant {
    font-family: 'Cormorant Garamond', serif;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

/* Animations */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-up {
    animation: fade-up 0.8s ease-out forwards;
}

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

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(12, 10, 9, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 165, 116, 0.1);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

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

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

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

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

/* Selection color */
::selection {
    background: rgba(120, 0, 0, 0.4);
    color: var(--color-stone-100);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image hover effects */
img {
    transition: transform 0.6s ease;
}

/* Service card hover glow */
.group:hover .group-hover\:border-amber-500\/30 {
    border-color: rgba(212, 165, 116, 0.3);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1C1917 inset !important;
    -webkit-text-fill-color: #E7E5E4 !important;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid rgba(212, 165, 116, 0.5);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
