/* Custom styles for Maner Garage */

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

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(14, 13, 12, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.navbar-scrolled .nav-logo-text {
    color: #fff !important;
}

.navbar-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Hero animations */
.hero-eyebrow {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-headline {
    animation: fadeInUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.hero-subhead {
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease 0.45s forwards;
    opacity: 0;
}

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

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.mobile-menu-link {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.mobile-menu-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu-link:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu-link:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu-link:nth-child(6) { animation-delay: 0.3s; }

/* Scroll reveal — only for below-the-fold elements */
.reveal {
    /* Default visible state — progressive enhancement */
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card hover effects */
.group:hover .group-hover\:bg-terracotta-500 {
    background-color: #d44a1e;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #b83914;
}

/* Selection color */
::selection {
    background-color: #d44a1e;
    color: #fff;
}

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

/* Map section */
section iframe {
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

section iframe:hover {
    filter: grayscale(0%);
}

/* Mobile menu overlay */
#mobile-menu {
    backdrop-filter: blur(8px);
}
