/* ============================================
   Priority Truck Sales — Custom Styles
   ============================================ */

/* Base Reset & Typography */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background: #0d9488;
    color: #ffffff;
}

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

/* Smooth image rendering */
img {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* ============================================
   Navigation
   ============================================ */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-gradient {
    background: linear-gradient(135deg, #042f2e 0%, #0f766e 30%, #14b8a6 50%, #0d9488 70%, #020617 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================
   Geometric Animations
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}

@keyframes floatCircle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes floatTriangle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.float-slow { animation: float 8s ease-in-out infinite; }
.float-medium { animation: float 6s ease-in-out infinite; }
.float-fast { animation: float 4s ease-in-out infinite; }
.float-circle { animation: floatCircle 7s ease-in-out infinite; }
.float-triangle { animation: floatTriangle 5s ease-in-out infinite; }

/* ============================================
   Pulse Animation for CTA
   ============================================ */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(20, 184, 166, 0); }
}

.pulse-cta { animation: pulse-glow 2s ease-in-out infinite; }

/* ============================================
   Scroll Reveal (Progressive Enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Ensure content is visible without JS */
.no-js .reveal,
.js-enabled .reveal {
    /* JS will add .revealed class */
}

/* ============================================
   Card Hover Effects
   ============================================ */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(4, 47, 46, 0.15);
}

.inventory-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inventory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(4, 47, 46, 0.12);
}

.card-img {
    transition: transform 0.5s ease;
}

.inventory-card:hover .card-img {
    transform: scale(1.05);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu.open {
    max-height: 400px;
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #14b8a6 !important;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

/* ============================================
   Accessibility: Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .pulse-cta {
        animation: none;
    }
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 640px) {
    .hero-gradient {
        min-height: 100vh;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    /* Tablet adjustments if needed */
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .hero-gradient,
    .geo-shape,
    .pulse-cta {
        animation: none !important;
    }
    
    nav,
    footer {
        display: none;
    }
}
