/* === Custom Styles for Reflections Window and Gutter Cleaning === */

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(99, 38, 61, 0.08);
}

.navbar-scrolled .font-display,
.navbar-scrolled span {
    color: #63263d !important;
}

/* Hero parallax-like feel */
#hero {
    min-height: 100vh;
}

/* Service card hover lift */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(99, 38, 61, 0.2);
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

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

/* Gallery hover overlay */
.rounded-2xl.overflow-hidden {
    position: relative;
}

.rounded-2xl.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(99, 38, 61, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 1rem;
    pointer-events: none;
}

.rounded-2xl.overflow-hidden:hover::after {
    opacity: 1;
}

/* Back to top button */
#backToTop.visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .rounded-2xl.overflow-hidden img,
    .rounded-2xl.overflow-hidden::after {
        transition: none;
    }
    
    .service-card {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
}

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

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

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

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

/* Selection color */
::selection {
    background: #ffd64a;
    color: #370f1e;
}

/* Form input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
}

/* Print styles */
@media print {
    nav, #backToTop, #contactForm, #successMessage {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-plum-950, .bg-plum-50 {
        background: #fff !important;
        color: #000 !important;
    }
}
