/* Custom styles and overrides */

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

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

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

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

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

/* Service card hover effects */
.service-card {
    opacity: 1;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Subtle line animation on hover */
a {
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* Remove underline from non-link elements */
h1 a::after, h2 a::after, h3 a::after {
    display: none;
}

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

/* Loading animation for images */
img {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobileMenu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobileMenu:not(.hidden) {
    max-height: 300px;
    opacity: 1;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    .service-card .overflow-hidden img,
    a,
    #mobileMenu {
        transition: none;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Print styles */
@media print {
    nav, #contactForm, button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .font-serif {
        font-size: 1.875rem;
    }
    
    .font-serif {
        font-size: 1.875rem;
    }
}
