/* Custom Styles for On The Spot Autobody */

/* Color System */
:root {
    --burgundy: #781F37;
    --burgundy-dark: #5C1629;
    --blush: #F4C2C2;
    --blush-dark: #E8A0A0;
    --stone-50: #FAFAFA;
    --stone-100: #F5F5F5;
    --stone-200: #E5E5E5;
    --stone-600: #4A4A4A;
    --stone-800: #2D2D2D;
    --stone-900: #1A1A1A;
}

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&family=Inter:wght@400;500;600;700&display=swap');

/* Base Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-fredoka {
    font-family: 'Fredoka', sans-serif;
}

/* Custom Colors */
.bg-burgundy {
    background-color: var(--burgundy);
}

.bg-burgundy-dark {
    background-color: var(--burgundy-dark);
}

.text-burgundy {
    color: var(--burgundy);
}

.bg-blush {
    background-color: var(--blush);
}

.text-blush {
    color: var(--blush);
}

.text-blush-dark {
    color: var(--blush-dark);
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(120, 31, 55, 0.1);
}

/* Hero Gradient Animation */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

#hero {
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}

/* Service Card Hover */
.group:hover .group-hover\:bg-burgundy {
    background-color: var(--burgundy);
}

/* Smooth Transitions */
* {
    transition-property: background-color, border-color, color, transform, opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--burgundy);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--burgundy-dark);
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--burgundy);
    outline-offset: 2px;
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
    transition: max-height 0.3s ease-in;
}

/* Back to Top Button */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Testimonial Cards */
.bg-white {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Form Styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(120, 31, 55, 0.1);
}

/* Button Hover Effects */
button,
a {
    cursor: pointer;
}

/* Selection Color */
::selection {
    background-color: var(--blush);
    color: var(--burgundy);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 100px;
    }
    
    #hero {
        min-height: 100vh;
        min-height: 100dvh;
    }
}

/* Print Styles */
@media print {
    nav,
    #back-to-top,
    button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
