/* ============================================
   Elite Home Services — Custom Styles
   Plum + Amber | Clean Minimalist
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(245, 184, 0, 0.2);
    color: #4c2031;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fafaf5;
}
::-webkit-scrollbar-thumb {
    background: #d9a3b8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a85576;
}

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

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

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

.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

.animate-float-medium {
    animation: float-medium 4.5s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-fast 3.5s ease-in-out infinite;
}

/* --- Scroll reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* --- Navbar transition --- */
.nav-scrolled {
    background-color: rgba(250, 250, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(76, 32, 49, 0.06);
}

.nav-scrolled .font-serif,
.nav-scrolled span {
    color: #4c2031 !important;
}

.nav-scrolled .text-plum-700,
.nav-scrolled a:not(.bg-plum-800) {
    color: #6e2e47 !important;
}

/* --- Service card subtle hover --- */
.service-card {
    will-change: transform;
}

/* --- Testimonial card hover --- */
.testimonial-card {
    will-change: transform;
}

/* --- Mobile menu transitions --- */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* --- Utility --- */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* --- Focus styles for accessibility --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #f5b800;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Print styles --- */
@media print {
    nav, #mobile-menu, .reveal { display: none; }
    body { color: #000; background: #fff; }
    section { page-break-inside: avoid; }
}
