/* Custom Styles for Rusty's Lamp Repair */

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

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

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

::-webkit-scrollbar-thumb {
    background: #d4891f;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background-color: #d4891f;
    color: #0f1a2b;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 3px solid #d4891f;
    outline-offset: 2px;
}

/* Fade in animation for scroll reveals */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Stagger children animations */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(15, 26, 43, 0.15);
}

/* Gold gradient text (for decorative use) */
.text-gold-gradient {
    background: linear-gradient(135deg, #d4891f 0%, #efc57a 50%, #b56a12 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image hover zoom */
.img-zoom {
    transition: transform 0.5s ease;
}

.img-zoom:hover {
    transform: scale(1.05);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .fade-in,
    .stagger-children > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .group:hover .group-hover\:scale-110 {
        transform: none;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    #back-to-top,
    #mobile-menu-btn {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-navy-950,
    .bg-navy-900 {
        background: #fff !important;
        color: #000 !important;
    }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .hero-grid {
        gap: 3rem;
    }
}

/* Large screens */
@media (min-width: 1280px) {
    .hero-grid {
        gap: 4rem;
    }
}
