/* Custom styles for Elderly Matters In-Home Care */

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

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

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

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

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

/* Selection color */
::selection {
    background: #fce7eb;
    color: #6f132b;
}

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

/* Navbar scroll effect handled in JS */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(130, 18, 49, 0.08);
}

/* Hero image hover */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Card hover lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(130, 18, 49, 0.12);
}

/* Pulse animation for the dot */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

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

/* Subtle pattern overlay for sections */
.section-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(130, 18, 49, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Print styles */
@media print {
    nav, #contact-form, button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
