/* ===== Custom Styles for BP Automotive ===== */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #022C22;
}

/* Selection color */
::selection {
    background: #065F46;
    color: #FDFCF8;
}

/* ===== Navigation ===== */
#navbar.scrolled {
    box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08);
}

/* ===== Hero ===== */
.hero-section {
    min-height: 100vh;
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #065F46, #022C22);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

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

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #065F46;
    transition: width 0.3s ease;
}

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

/* ===== Scroll to Top ===== */
#scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}

/* ===== Image Hover Effects ===== */
img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Thin decorative lines ===== */
.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 95, 70, 0.2), transparent);
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card::before {
        transition: none;
    }
    
    img {
        transition: none;
    }
    
    #scroll-top {
        transition: none;
    }
}

/* ===== Tablet ===== */
@media (min-width: 768px) and (max-width: 1023px) {
    .font-serif {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }
}

/* ===== Small mobile ===== */
@media (max-width: 639px) {
    .font-serif {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
    
    nav .max-w-7xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* ===== Large screens ===== */
@media (min-width: 1280px) {
    .font-serif {
        font-size: clamp(2.5rem, 4vw, 4rem);
    }
}
