/* Custom styles for The Historic Pink House */

:root {
    --plum-700: #9d174d;
    --plum-900: #500724;
    --plum-950: #2d0314;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
}

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

/* Selection color */
::selection {
    background-color: rgba(157, 23, 77, 0.2);
    color: var(--plum-900);
}

/* Floating animation for stat cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 2s;
}

/* Navbar scroll effect */
.nav-scrolled {
    background-color: rgba(255, 248, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(157, 23, 77, 0.08);
}

.nav-scrolled .nav-link {
    color: #4a5568 !important;
}

.nav-scrolled .font-display {
    color: #500724 !important;
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

/* Mobile menu link animation */
.mobile-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.2s ease, color 0.2s ease;
}

.mobile-link:hover {
    padding-left: 8px;
}

/* Scroll-triggered fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.4s; }

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

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

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

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

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #9d174d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image placeholder fallback */
img {
    background: linear-gradient(135deg, #fce7f3 0%, #fff3cd 100%);
}

/* Subtle pattern overlay for sections */
.section-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(157, 23, 77, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
}

/* Button ripple effect */
button, .group:hover .btn-hover {
    position: relative;
    overflow: hidden;
}

/* Print styles */
@media print {
    nav, #contact, footer, .floating-card {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
