/* Custom styles for Harbor Health Care */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5f9;
}
::-webkit-scrollbar-thumb {
    background: #d4adca;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #bd85b0;
}

/* Selection color */
::selection {
    background: #e8d0e0;
    color: #3a243e;
}

/* Scroll reveal base - content always visible */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scroll reveal animation - only applies when JS adds the class */
.scroll-reveal.animated {
    opacity: 0;
    transform: translateY(30px);
}

/* Navbar styles */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fbbf24;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* Mobile link */
.mobile-link {
    border-radius: 0.75rem;
}

/* Hero image gradient overlay */
#hero img {
    image-rendering: -webkit-optimize-contrast;
}

/* Testimonial card hover */
#testimonials .group:hover {
    border-color: #e8d0e0;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(163, 99, 150, 0.15);
}

/* Button hover lift effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    .scroll-reveal.animated {
        opacity: 1;
        transform: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

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

/* Back to top button animation */
#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Floating card animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Decorative blob animation */
@keyframes blob {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* Print styles */
@media print {
    nav, #backToTop, #contactForm, #successMsg {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
