/* Custom styles for Higgs Automotive */

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

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Staggered animation delays */
.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.3s; }

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

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

#navbar.scrolled .nav-link {
    color: #334e68;
}

#navbar.scrolled .nav-link:hover {
    color: #d4a84b;
}

/* Hero gradient overlay fix */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 42, 67, 0.88) 0%, rgba(16, 42, 67, 0.6) 50%, rgba(16, 42, 67, 0.3) 100%);
    z-index: 1;
}

#hero > .absolute {
    z-index: 2;
}

#hero > .relative {
    z-index: 3;
}

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

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

/* Mobile menu links */
.mobile-menu-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(30, 58, 95, 0.06);
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

/* Service card hover lift */
.group:hover .w-14 {
    transform: scale(1.05);
}

/* Button press effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

button:active, a:active {
    transform: scale(0.97);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9fb3c8;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 75, 0.25);
    color: #1e3a5f;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #d4a84b;
    outline-offset: 2px;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #faf8f5 inset !important;
    -webkit-text-fill-color: #334e68 !important;
}

/* Subtle pattern for cream sections */
.bg-cream {
    background-image: radial-gradient(circle at 1px 1px, rgba(30, 58, 95, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Gold section pattern */
.bg-gradient-to-r.from-gold-500.to-gold-400::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
    background-size: 20px 20px;
}

/* Nav logo text default */
.nav-logo-text {
    color: #1e3a5f;
}
