/* Morris Memorial Nursing Home — Custom Styles */

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f2140;
}
::-webkit-scrollbar-thumb {
    background: #b8860b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a843;
}

/* Selection Color */
::selection {
    background: #b8860b;
    color: #0a1628;
}

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

/* Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Navbar Transition States */
.navbar-scrolled {
    background: rgba(15, 33, 64, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

.navbar-transparent {
    background: transparent !important;
}

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

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

/* Gold Button Shimmer */
button.bg-gold-500,
a.bg-gold-500 {
    position: relative;
    overflow: hidden;
}

button.bg-gold-500::after,
a.bg-gold-500::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transition: left 0.5s ease;
}

button.bg-gold-500:hover::after,
a.bg-gold-500:hover::after {
    left: 100%;
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px #b8860b;
}

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

/* Service Card Hover */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Print Styles */
@media print {
    nav, #contactForm, button {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
