/* ========================================
   Chimney Sweep — Custom Styles
   Classic & Elegant · Plum + Amber
   ======================================== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5f7;
}
::-webkit-scrollbar-thumb {
    background: #af5661;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #963f4a;
}

/* Selection color */
::selection {
    background: #fbbf24;
    color: #301317;
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 245, 247, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(48, 19, 23, 0.08);
}

#navbar.scrolled .font-serif {
    color: #301317 !important;
}

#navbar.scrolled .text-plum-700 {
    color: #682d34 !important;
}

#navbar.scrolled .text-plum-600 {
    color: #af5661 !important;
}

#navbar.scrolled .menu-line {
    background-color: #301317;
}

/* ========================================
   Mobile Menu
   ======================================== */
#mobileMenu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ========================================
   Service Cards
   ======================================== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to top, rgba(251, 191, 36, 0.03), transparent);
    transition: height 0.5s ease;
}

.service-card:hover::after {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ========================================
   Floating Stat Cards (Hero)
   ======================================== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Apply floating to cards with staggered delays */
.absolute.top-0.right-0 {
    animation: float 4s ease-in-out infinite;
}

.absolute.top-40.left-0 {
    animation: float 4s ease-in-out infinite 1s;
}

.absolute.bottom-0.right-8 {
    animation: float 4s ease-in-out infinite 2s;
}

/* ========================================
   Process Steps
   ======================================== */
.text-center.group:hover .relative.w-20 {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* ========================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal[data-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; }
}

/* Fallback: ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
}
