/* Custom styles for Rocky Point Urgent Care */

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

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Hero geometric shapes animation */
.geometric-teal-1 {
    background: #0d9488;
}

.geometric-teal-2 {
    background: #14b8a6;
}

.geometric-slate {
    background: #1e293b;
}

.geometric-accent {
    background: #2dd4bf;
}

/* Subtle floating animation for hero shapes */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-20px) rotate(12deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-15px) rotate(45deg); }
}

@keyframes float-circle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.geometric-teal-1 {
    animation: float-slow 8s ease-in-out infinite;
}

.geometric-teal-2 {
    animation: float-slow 6s ease-in-out infinite reverse;
}

.geometric-slate {
    animation: float-slow 10s ease-in-out infinite;
}

.geometric-accent {
    animation: float-medium 7s ease-in-out infinite;
}

.geometric-circle {
    animation: float-circle 5s ease-in-out infinite;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .geometric-teal-1,
    .geometric-teal-2,
    .geometric-slate,
    .geometric-accent,
    .geometric-circle {
        animation: none;
    }
    
    .scroll-reveal {
        transition: none;
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

/* Service card hover effect */
.group:hover .group-hover\:bg-teal-600 {
    background-color: #0d9488;
}

/* Ensure text contrast on all backgrounds */
.bg-slate-900 .font-heading,
.bg-slate-900 .font-body {
    color: #f8fafc;
}

/* Form input focus ring */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Button press effect */
button:active,
a:active {
    transform: scale(0.98);
}
