/* Custom styles for Gervis Mufflers and Alignment */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #163a2a;
}

/* Selection color */
::selection {
    background: #1B4332;
    color: #faf9f6;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08) !important;
}

.navbar-scrolled .font-serif,
.navbar-scrolled .font-sans {
    color: #1B4332 !important;
}

.navbar-scrolled a:not(.bg-forest-600) {
    color: #1B4332 !important;
}

.navbar-scrolled .bg-forest-600 {
    background: #1B4332 !important;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Button hover animation */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image hover */
img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #1B4332 0%, #2d7a2d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern for sections */
.pattern-grid {
    background-image: radial-gradient(circle, rgba(27, 67, 50, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Card hover shimmer effect */
.group:hover .group-hover\\:bg-forest-600 {
    background-color: #1B4332;
}

/* Ensure all interactive elements have proper cursor */
button, a, input, select, textarea {
    cursor: pointer;
}

input:not([type="submit"]):not([type="reset"]),
select,
textarea {
    cursor: text;
}
