/* Custom styles for Roseville Glass Co. Llc */

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

/* Reveal animations - progressive enhancement, content visible by default */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-visible {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* Mobile menu transitions */
#mobileMenuPanel {
    transition: transform 0.3s ease;
}

#mobileMenuOverlay {
    transition: opacity 0.3s ease;
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23627d98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

/* Hero image gradient overlay */
#hero {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 50%, #fefce8 100%);
}

/* Subtle pattern on navy sections */
section.bg-navy-900::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(200, 164, 40, 0.05) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Active nav link */
nav a.active {
    color: #102a43;
    font-weight: 600;
}

/* Selection color */
::selection {
    background: #f2dc8a;
    color: #37240a;
}

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

/* Mobile menu active state */
body.menu-open {
    overflow: hidden;
}

/* Card hover lift effect */
.reveal:hover {
    transform: translateY(-4px);
}

.reveal {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
