/* Custom styles for 2 Brothers Garage LLC */

/* Smooth focus outlines for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ff6b42;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background-color: rgba(255, 107, 66, 0.3);
    color: #f6f6f7;
}

/* Subtle grain texture overlay on body */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 9999;
}

/* Navbar scroll state */
nav.scrolled {
    background-color: rgba(12, 12, 16, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Custom image hover effects */
.rounded-3xl img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.rounded-3xl:hover img {
    transform: scale(1.03);
}

/* Button ripple-like glow on hover */
button:hover,
a:hover {
    transition: all 0.2s ease;
}

/* Card hover shadow enhancement */
.group:hover {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Ensure map iframe is responsive */
iframe {
    border-radius: 0 0 1.5rem 1.5rem;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

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

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    nav,
    #mobile-menu,
    button,
    .reveal {
        display: block !important;
        opacity: 1 !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* Wide screen adjustments */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
