/* Custom styles and overrides */

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

/* Selection color */
::selection {
    background-color: #93b893;
    color: #1a2e1a;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #4d7a4d;
    outline-offset: 2px;
}

/* Body background gradient */
body {
    background: linear-gradient(180deg, #fdfcfa 0%, #f5f0e8 100%);
}

/* Navbar scrolled state */
.nav-scrolled {
    background: rgba(253, 252, 250, 0.95) !important;
    box-shadow: 0 4px 30px rgba(42, 66, 42, 0.08);
}

/* Service card hover lift */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* Gallery hover effect */
.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #93b893;
}

/* Ensure all text is readable */
h1, h2, h3, h4, h5, h6 {
    color: #2a422a;
}

p, span, a, li, label, input, textarea, select, button {
    color: inherit;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .float-1, .float-2, .float-3, .float-4 {
        animation: none;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .card-shadow, .card-shadow-lg {
        box-shadow: 0 0 0 1px currentColor;
    }
}

/* Print styles */
@media print {
    nav, #back-to-top, .float-1, .float-2, .float-3, .float-4 {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .hero-gradient {
        background: #2a422a !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
