/* Custom styles for Mertens Quarry */

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

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

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

::-webkit-scrollbar-thumb {
    background: #12243d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0a1628;
}

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

/* Animation for mobile menu */
@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

.mobile-menu.active {
    animation: slideIn 0.3s ease forwards;
}

.mobile-menu:not(.active) {
    animation: slideOut 0.3s ease forwards;
}

/* Service card hover effect */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: #c9952e;
    box-shadow: 0 20px 40px rgba(10, 22, 40, 0.1);
}

/* Navigation link underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c9952e;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

/* Form input focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #c9952e;
    box-shadow: 0 0 0 3px rgba(201, 149, 46, 0.1);
}

/* Button hover effects */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* Image hover zoom effect */
img {
    transition: transform 0.3s ease;
}

/* Responsive typography */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
}

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

/* Print styles */
@media print {
    nav,
    .mobile-menu,
    button,
    form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-navy-900,
    .bg-gray-900 {
        background: #fff !important;
        color: #000 !important;
    }
}
