/* Custom styles for Tender Hands Home Healthcare */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f5;
}
::-webkit-scrollbar-thumb {
    background: #bfb9ae;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9e9789;
}

/* Selection color */
::selection {
    background: #eb8d6e;
    color: #ffffff;
}

/* Hero animations */
.hero-content {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-image {
    opacity: 1;
    transform: translateX(0);
    animation: slideInRight 0.8s ease-out forwards;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(224, 108, 67, 0.15);
}

/* Scroll reveal base state (visible by default for progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll reveal for enhanced browsers */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(250, 248, 245, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}
#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

/* Testimonial card glass effect */
.bg-white\/10 {
    background: rgba(255, 255, 255, 0.1);
}
.bg-white\/15 {
    background: rgba(255, 255, 255, 0.15);
}
.bg-white\/20 {
    background: rgba(255, 255, 255, 0.2);
}

/* Print styles */
@media print {
    nav, #contact, footer, .service-card {
        break-inside: avoid;
    }
}
