/* Custom styles for Tulsa Topsoil and Shale */

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

/* Scroll reveal base - visible by default for progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is enabled and reduced motion is off */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FBF0E0;
}
::-webkit-scrollbar-thumb {
    background: #C0523A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A84430;
}

/* Selection color */
::selection {
    background: #C0523A;
    color: white;
}

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

/* Mobile link hover */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* Geometric pattern overlay for hero */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(192, 82, 58, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(200, 148, 74, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

#hero > .relative {
    position: relative;
    z-index: 2;
}

/* Card hover glow */
.group:hover .bg-terracotta-50 {
    background-color: rgb(253 240 236);
}

/* Subtle pattern for earth section */
#about {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.02) 1px, transparent 0);
    background-size: 40px 40px;
}
