/* Custom styles and overrides */

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

/* Navigation scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-text {
    color: #1F1F25 !important;
}

.nav-scrolled .nav-link {
    color: #53535E !important;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is visible without JS */
.reveal {
    opacity: 1;
    transform: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: #FF7A6B;
    border-radius: 5px;
}

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

/* Button hover effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #FF7A6B;
    outline-offset: 2px;
}

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

#mobile-menu.open {
    max-height: 500px;
}

/* Hero text shadow for better readability */
#hero h1,
#hero p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.group {
    transition: transform 0.3s ease;
}

/* Process step hover */
.group:hover .bg-coral-500 {
    background: #E84435 !important;
}

/* Form input focus glow */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(255, 122, 107, 0.1);
}

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