/* Custom styles for Tauben Floors */

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Scroll reveal base — content always visible by default */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply animation when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
}

/* Navbar styles */
.nav-logo-text {
    color: #2C3E47;
}

.nav-link {
    position: relative;
}

/* Scroll-triggered navbar */
.navbar-scrolled {
    background: rgba(253, 248, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(54, 69, 79, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #2C3E47;
}

/* Scroll indicator animation */
@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.animate-scroll-down {
    animation: scrollDown 1.5s ease-in-out infinite;
}

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

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

/* Custom selection color */
::selection {
    background: #F4726B;
    color: white;
}

/* Subtle hover lift for cards */
.group:hover {
    transform: translateY(-2px);
}

/* Image lazy load fade */
img[loading="lazy"] {
    transition: opacity 0.4s ease;
}

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

/* Print styles */
@media print {
    nav, #contactForm, #successMsg, .animate-scroll-down {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
