/* Custom styles for Retreat At Glade Springs */

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

/* Scroll animation base - visible by default for progressive enhancement */
.scroll-animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hidden state applied via JS for reduced-motion preference */
@media (prefers-reduced-motion: no-preference) {
    .scroll-animate.is-hidden {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Nav link hover underline effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile nav links */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: width 0.2s ease;
}

.mobile-nav-link:hover::before {
    width: 100%;
}

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

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

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

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

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

/* Button press effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image loading placeholder */
img {
    background-color: #f1f5f9;
}

/* Selection color */
::selection {
    background-color: rgba(194, 35, 71, 0.2);
    color: #1e293b;
}

/* Subtle pattern for hero overlay */
.hero-pattern {
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #c22347, #db4366);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover lift */
.group:hover .group-hover\:lift {
    transform: translateY(-4px);
}

/* Pulse animation for status 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;
}

/* Fade in for success message */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#form-success.show {
    animation: fadeInUp 0.4s ease forwards;
}
