/* Custom styles for Samples Auto Sales */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #1b3a6e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c8a24e;
}

/* Selection color */
::selection {
    background: rgba(200, 162, 78, 0.3);
    color: #fff;
}

/* Hero animations - only below the fold or using JS progressive enhancement */
#hero-eyebrow,
#hero-headline,
#hero-sub,
#hero-cta,
#scroll-indicator {
    opacity: 1;
    transform: none;
}

/* Scroll reveal for below-fold sections */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is visible even without JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold gradient accent */
.gold-gradient {
    background: linear-gradient(135deg, #c8a24e 0%, #d4b366 50%, #e0c47e 100%);
}

/* Card hover lift */
.reveal.group:hover {
    transform: translateY(-4px);
}

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

/* Mobile menu animation */
#mobile-menu.opening .mobile-link {
    animation: slideIn 0.3s ease forwards;
}

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

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

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

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

/* Responsive typography adjustments */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, #form-success, button {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
    .bg-navy-900, .bg-navy-800 {
        background: white !important;
    }
    .text-white, .text-white\/70, .text-white\/50, .text-white\/60 {
        color: #1a1a1a !important;
    }
    .text-gold-400, .text-gold-500 {
        color: #8a6d1b !important;
    }
}
