/* Custom styles for Holistic Haven On Main Street */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Selection color */
::selection {
    background: #99f6e4;
    color: #134e4a;
}

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

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Subtle line animations */
@keyframes lineExpand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 1rem;
        opacity: 1;
    }
}

/* Fade in for below-fold sections (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-section {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
}

/* Service card hover lift */
.group:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Form select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

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

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