/* Custom styles for Open Hearts Home Care */

:root {
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Navbar scroll state */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(16, 42, 67, 0.1) !important;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Service card hover effect */
.service-card {
    will-change: transform;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #627d98;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

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

/* Subtle pattern for section backgrounds */
.bg-pattern-dots {
    background-image: radial-gradient(circle, rgba(34, 197, 94, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}
