/* Pinecreeck Auto Body Parts Repair — Custom Styles */

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background: #0d9488;
    color: #fff;
}

/* Navbar scroll state */
.navbar {
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Mobile menu transitions */
.mobile-menu {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
    transform: translateX(0);
}

/* Service card hover */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-top-color: #0d9488;
}

/* CTA button animations */
.cta-btn, .cta-btn-outline {
    transition: all 0.3s ease;
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}
.cta-btn-outline:hover {
    transform: translateY(-2px);
}

/* Form input focus */
.form-input:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Image hover zoom */
.about-img-grid img {
    transition: transform 0.4s ease;
}
.about-img-grid img:hover {
    transform: scale(1.02);
}

/* Footer link transition */
.footer a {
    transition: color 0.2s ease;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .navbar, .mobile-menu, .mobile-menu-overlay {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    .hero-split {
        min-height: auto;
    }
}
