/* ========================================
   DW Pro Finishes - Custom Styles
   ======================================== */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection Color */
::selection {
    background-color: rgba(27, 67, 50, 0.15);
    color: #1B4332;
}

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

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

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

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

/* Custom Focus Styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #1B4332;
    outline-offset: 2px;
}

/* Navbar Transition */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 250, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.1);
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal[data-reveal="delay-1"] {
    transition-delay: 0.1s;
}

.scroll-reveal[data-reveal="delay-2"] {
    transition-delay: 0.2s;
}

.scroll-reveal[data-reveal="delay-3"] {
    transition-delay: 0.3s;
}

.scroll-reveal[data-reveal="delay-4"] {
    transition-delay: 0.4s;
}

.scroll-reveal[data-reveal="delay-5"] {
    transition-delay: 0.5s;
}

.scroll-reveal[data-reveal="delay-6"] {
    transition-delay: 0.6s;
}

/* Mobile Menu */
#mobileMenu {
    transition: transform 0.3s ease;
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(27, 67, 50, 0.1);
}

/* Smooth Image Loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    img {
        transition: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Thin scrollbar for Webkit */
@media (min-width: 768px) {
    ::-webkit-scrollbar {
        width: 6px;
    }
}

/* Print Styles */
@media print {
    #navbar,
    #mobileMenu,
    .scroll-reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
    }
}
