/* ============================================
   D&L Equipment Service — Custom Styles
   ============================================ */

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

/* Selection color */
::selection {
    background: #52a88e;
    color: #0d1b24;
}

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

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

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

/* Navbar scroll state */
.nav-scrolled {
    box-shadow: 0 1px 20px rgba(13, 27, 36, 0.08);
}

/* Fade-in animations (below the fold only, progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .fade-up {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    .fade-up-delay-1 { transition-delay: 0.1s; }
    .fade-up-delay-2 { transition-delay: 0.2s; }
    .fade-up-delay-3 { transition-delay: 0.3s; }
}

/* Mobile menu transition */
#mobileMenu {
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover link underline animation */
.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #52a88e;
    transition: width 0.3s ease;
}

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

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

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

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

::-webkit-scrollbar-thumb {
    background: #bcccdc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9fb3cc;
}

/* Form styles */
input, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #1a2f3a;
    background: #f4f7fb;
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
}

input:focus, textarea:focus {
    border-color: #52a88e;
    background: #fff;
}

input::placeholder, textarea::placeholder {
    color: #9fb3cc;
}

/* Success message */
.form-success {
    display: none;
    padding: 16px 20px;
    background: #e8f5ec;
    border: 1px solid #d0eade;
    border-radius: 8px;
    color: #2d6d5c;
    font-size: 14px;
    margin-top: 16px;
}

.form-success.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
