/* Custom styles for J & R Window Screen Repair */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: rgba(255, 107, 74, 0.3);
    color: #fff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #141414;
}
::-webkit-scrollbar-thumb {
    background: #2e2e2e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FF6B4A;
}

/* Scroll reveal base — content always visible by default */
.scroll-reveal {
    /* Default: fully visible, no animation */
}

/* Reveal animation only when JS enables it and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animated {
        animation: fadeSlideUp 0.7s ease forwards;
    }
    .scroll-reveal.animated:nth-child(1) { animation-delay: 0.05s; }
    .scroll-reveal.animated:nth-child(2) { animation-delay: 0.1s; }
    .scroll-reveal.animated:nth-child(3) { animation-delay: 0.15s; }
    .scroll-reveal.animated:nth-child(4) { animation-delay: 0.2s; }
    .scroll-reveal.animated:nth-child(5) { animation-delay: 0.25s; }
    .scroll-reveal.animated:nth-child(6) { animation-delay: 0.3s; }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(13, 13, 13, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
}

/* Gold shimmer accent line */
.gold-line {
    background: linear-gradient(90deg, transparent, #D4A853, transparent);
}

/* Subtle card hover glow */
.card-glow:hover {
    box-shadow: 0 0 40px rgba(255, 107, 74, 0.08);
}

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* Input focus glow */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.1);
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}

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