/* Custom styles for Guardian Angel Hospice */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1512;
}
::-webkit-scrollbar-thumb {
    background: #b8654a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4896e;
}

/* Selection color */
::selection {
    background: rgba(184, 101, 74, 0.3);
    color: #f5efe6;
}

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                border-color 0.5s ease,
                box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(184, 101, 74, 0.15);
}

/* Care step hover */
.care-step {
    transition: transform 0.4s ease;
}

.care-step:hover {
    transform: translateY(-4px);
}

/* Navbar scroll behavior */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(14, 11, 9, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 168, 130, 0.08);
}

#navbar.scrolled .font-serif,
#navbar.scrolled span {
    color: #f5efe6;
}

/* Mobile menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Mobile link animations */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Menu icon animation */
#menuIcon.open #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#menuIcon.open #bar2 {
    opacity: 0;
}
#menuIcon.open #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* Form focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgba(184, 101, 74, 0.3);
}

/* Image hover zoom */
.relative.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.relative.overflow-hidden:hover img {
    transform: scale(1.03);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card,
    .care-step,
    .relative.overflow-hidden img,
    button,
    a {
        transition: none;
    }
}

/* Subtle pulse for the hero CTA */
@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(184, 101, 74, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(184, 101, 74, 0); }
}

#hero a[href^="tel"]:hover {
    animation: softPulse 2s infinite;
}
