/* Custom styles for Open Hearts */

/* Ensure smooth scrolling offset for fixed navbar */
html {
    scroll-padding-top: 80px;
}

/* Selection color */
::selection {
    background: #0d9488;
    color: #fff;
}

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

/* Subtle pattern overlay for hero */
.hero-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(13, 148, 136, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(15, 65, 64, 0.04) 0%, transparent 50%);
}

/* Service card icon animation */
.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon {
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

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

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

#mobile-menu.closed {
    max-height: 0;
    opacity: 0;
}

/* Hamburger animation */
#menu-toggle.active #line1 {
    transform: translateY(6px) rotate(45deg);
}
#menu-toggle.active #line2 {
    opacity: 0;
}
#menu-toggle.active #line3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* 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; }
    .cta-pulse { animation: none; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
