/* ============================================
   Insane Motorsports — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #c8a45a;
    color: #1a2744;
}

/* --- Scroll Reveal --- */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal-hidden.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Navbar --- */
.nav-text {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-text {
    color: #1a2744;
}

.nav-link {
    position: relative;
}

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

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

#navbar.scrolled .nav-link {
    color: #1a2744;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(26, 39, 68, 0.08);
}

#navbar:not(.scrolled) .nav-link {
    color: #1a2744;
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

#menu-icon.active #line1 {
    transform: rotate(45deg);
    position: relative;
    top: 7px;
}

#menu-icon.active #line2 {
    opacity: 0;
}

#menu-icon.active #line3 {
    transform: rotate(-45deg);
    position: relative;
    top: -7px;
    width: 6px;
}

/* --- Hero --- */
#hero {
    position: relative;
}

/* --- Service Cards --- */
.group:hover .group-hover\:text-gold-400 {
    color: #c8a45a;
}

/* --- Buttons --- */
button, a[type="submit"] {
    cursor: pointer;
}

/* --- Form --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #c8a45a !important;
}

input::placeholder,
textarea::placeholder {
    color: #b3c1df;
}

/* --- Subtle hover lift on images --- */
.group img,
section img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Smooth section transitions --- */
section {
    position: relative;
}

/* --- Thin decorative lines --- */
.deco-line {
    position: absolute;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(200, 164, 90, 0.3), transparent);
}

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

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

::-webkit-scrollbar-thumb {
    background: #c8a45a;
    border-radius: 3px;
}

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

/* --- Focus visible for accessibility --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c8a45a;
    outline-offset: 2px;
}

/* --- Mobile menu links --- */
.mobile-link {
    position: relative;
}

/* --- Print styles --- */
@media print {
    nav, #contact-form, .scroll-reveal {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
