/* Custom styles for 1st Class Auto Repair */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #f7f3f8;
}

::-webkit-scrollbar-thumb {
    background: #cba9d3;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #93519c;
}

/* Selection color */
::selection {
    background: #fbbf24;
    color: #45254b;
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(247, 243, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(69, 37, 75, 0.08);
}

.nav-scrolled .nav-text {
    color: #45254b !important;
}

.nav-scrolled .nav-subtext {
    color: #7e3d86 !important;
}

.nav-scrolled .nav-link {
    color: #7e3d86 !important;
}

/* Service card hover effect */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Mobile menu animation */
.mobile-menu-open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Fade-in animation for sections */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Back to top button */
#back-to-top {
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* Mobile nav links */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

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

/* Hero text animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-content > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content > *:nth-child(2) { animation-delay: 0.4s; }
.hero-content > *:nth-child(3) { animation-delay: 0.6s; }
.hero-content > *:nth-child(4) { animation-delay: 0.8s; }

/* Image hover zoom */
img {
    transition: transform 0.7s ease;
}

/* Decorative divider */
.divider-amber {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, #fbbf24, #d97706);
    border: none;
    border-radius: 2px;
}

/* Form select arrow override */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%237e3d86'/%3E%3C/svg%3E") !important;
}

/* Loading state for button */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
