/* Custom styles for Ponca Manor Apartments */

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

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

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

::-webkit-scrollbar-thumb {
    background: #b92f4d;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9c2641;
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-link {
    color: #6b1a2d;
}

#navbar.scrolled .nav-link:hover {
    background: #fce7eb;
    color: #9c2641;
}

#navbar.scrolled .font-display {
    color: #6b1a2d;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .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; }
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #b92f4d !important;
    box-shadow: 0 0 0 4px rgba(185, 47, 77, 0.1) !important;
}

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

/* Subtle hover lift for cards */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #fdf2f4 0%, #fce7eb 100%);
}

/* Print styles */
@media print {
    #navbar,
    #back-to-top,
    .reveal {
        display: none !important;
    }
    
    body {
        color: #000 !important;
        background: #fff !important;
    }
}
