/* Custom Styles for Vivage Quality Health Partners */

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

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

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

::-webkit-scrollbar-thumb {
    background: #C2785B;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a86347;
}

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

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

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

/* Navbar Transition */
#navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#navbar.scrolled {
    background: rgba(254, 253, 251, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Hero Gradient Overlay */
.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(28, 25, 23, 0.75) 0%,
        rgba(28, 25, 23, 0.65) 50%,
        rgba(28, 25, 23, 0.85) 100%
    );
}

/* Button Hover Effects */
button:hover,
a:hover {
    transform: translateY(-2px);
}

button:active,
a:active {
    transform: translateY(0);
}

/* Input Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(194, 120, 91, 0.2);
}

/* Card Hover Effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Image Hover Zoom */
img {
    transition: transform 0.5s ease;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print Styles */
@media print {
    nav,
    button,
    #back-to-top {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .bg-terracotta-500 {
        background-color: #8c513b;
    }
    
    .text-terracotta-500 {
        color: #8c513b;
    }
}

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

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

/* Fade In Animation for Hero Stats */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stats {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-stats.animate {
    opacity: 1;
}

/* Decorative Elements */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* Testimonial Card Hover */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Service Card Image Overlay */
.service-card-overlay {
    position: relative;
    overflow: hidden;
}

.service-card-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(194, 120, 91, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card-overlay:hover::before {
    opacity: 1;
}
