/* Custom styles for D.R. Appliance Service */

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

/* Navigation transitions */
.nav-text {
    color: #0a1628;
}

nav.scrolled .nav-text {
    color: #ffffff;
}

nav.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

nav.scrolled .nav-link:hover {
    color: #d4a853;
}

nav.scrolled .border-current {
    border-color: rgba(255, 255, 255, 0.5);
}

nav.scrolled a[href="tel:7187260203"] {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff !important;
}

nav.scrolled a[href="tel:7187260203"]:hover {
    background-color: #ffffff;
    color: #0a1628 !important;
}

/* Mobile menu */
.mobile-link {
    color: #0a1628;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #c9982e;
}

/* Service card hover effects */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #d4a853;
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

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

/* Form focus styles */
input:focus,
textarea:focus {
    border-color: #d4a853 !important;
}

/* Subtle fade-in for scroll sections (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

/* Ensure all content is visible by default (no JS required) */
.fade-in {
    opacity: 1;
    transform: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* Selection color */
::selection {
    background: #d4a853;
    color: #0a1628;
}
