/* Custom styles for JBC Vacuum Service & Repair */

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

/* Custom selection color */
::selection {
    background-color: rgba(212, 168, 67, 0.3);
    color: #0f1f33;
}

/* Subtle fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-up-delay-1 {
    animation-delay: 0.1s;
}

.fade-in-up-delay-2 {
    animation-delay: 0.2s;
}

.fade-in-up-delay-3 {
    animation-delay: 0.3s;
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 0 rgba(15, 31, 51, 0.06);
}

/* Gold underline animation on headings */
.font-serif .underline-gold {
    position: relative;
}

.font-serif .underline-gold::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4a843, #e6c465);
    transition: width 0.6s ease;
}

.font-serif .underline-gold:hover::after {
    width: 100%;
}

/* Service card hover lift */
.group:hover {
    transform: translateY(-2px);
}

.group {
    transition: transform 0.3s ease;
}

/* Brand card hover */
.group:hover .brand-card {
    transform: scale(1.02);
}

.brand-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Input focus glow */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.06);
}

/* Image hover zoom */
.img-zoom {
    transition: transform 0.6s ease;
}

.img-zoom:hover {
    transform: scale(1.03);
}

/* Thin line accent */
.line-accent {
    position: relative;
}

.line-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, #d4a843, transparent);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
    padding-top: 0;
    padding-bottom: 0;
}

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

/* Print styles */
@media print {
    nav,
    #contact-form,
    .map-container {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
