/* Custom Styles for Premier Auto Body */

:root {
    --charcoal-dark: #1a1a1a;
    --charcoal-medium: #2d2d2d;
    --charcoal-light: #3d3d3d;
    --coral: #C75B39;
    --coral-dark: #a84828;
    --coral-light: #e07a5f;
    --off-white: #f8f7f4;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--charcoal-dark);
    background-color: var(--off-white);
    overflow-x: hidden;
}

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

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

/* Navigation */
#navbar {
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(26, 26, 26, 0.97);
    padding: 0.75rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--coral);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--coral) !important;
}

.nav-text {
    color: var(--white);
}

.nav-text-sub {
    color: var(--coral-light);
}

/* Mobile Menu */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-family: 'Playfair Display', serif;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 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.15s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Menu Button Animations */
.menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* Hero Section */
#hero {
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--off-white), transparent);
    pointer-events: none;
}

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

/* Back to Top */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

#back-to-top:hover {
    transform: translateY(-3px);
}

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

::-webkit-scrollbar-track {
    background: var(--charcoal-dark);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--coral-light);
}

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

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--coral) !important;
    box-shadow: 0 0 0 3px rgba(199, 91, 57, 0.1);
    outline: none !important;
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Tablet */
@media (max-width: 768px) {
    #hero::after {
        height: 100px;
    }
    
    .font-playfair {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
}

/* Small mobile */
@media (max-width: 360px) {
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
