/* RAJKOT TAXI SK — CLEAN PRODUCTION CSS & SUBTLE ANIMATION SYSTEM */

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', 'Noto Sans Gujarati', sans-serif;
}

body {
    font-family: 'Plus Jakarta Sans', 'Noto Sans Gujarati', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Gujarati-safe typography helper classes to avoid glyph/matra clipping */
.guj-heading {
    font-family: 'Manrope', 'Noto Sans Gujarati', sans-serif;
    line-height: 1.28;
    padding-top: 0.05em;
}

.guj-text {
    font-family: 'Plus Jakarta Sans', 'Noto Sans Gujarati', sans-serif;
    line-height: 1.65;
}

select.appearance-none {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;
}

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

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

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

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

/* Mobile drawer transitions */
#mobile-menu-drawer {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu-drawer.open {
    transform: translateX(0);
}

#mobile-menu-backdrop {
    transition: opacity 0.3s ease;
}

#mobile-menu-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* Form Input Focus States */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(253, 204, 20, 0.35);
}

/* Hero Entrances (Lightweight CSS Keyframes) */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroBgDrift {
    0% {
        transform: scale(1) translate3d(0, 0, 0);
    }
    50% {
        transform: scale(1.035) translate3d(-0.6%, -0.4%, 0);
    }
    100% {
        transform: scale(1) translate3d(0, 0, 0);
    }
}

.hero-bg-motion {
    animation: heroBgDrift 26s ease-in-out infinite;
    will-change: transform;
}

.hero-fade-1 { animation: heroFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both; }
.hero-fade-2 { animation: heroFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both; }
.hero-fade-3 { animation: heroFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.20s both; }
.hero-fade-4 { animation: heroFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both; }
.hero-fade-form { animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both; }

/* Scroll Reveal System (Run Once via IntersectionObserver) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Subtle Vehicle Card Lift & Interactive States */
.vehicle-card {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.vehicle-card:hover {
    transform: translateY(-4px);
}

.vehicle-img-wrap img {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.vehicle-card:hover .vehicle-img-wrap img {
    transform: scale(1.035);
}

/* Subtle CTA Press Feedback */
.btn-press {
    transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-press:active {
    transform: scale(0.98);
}

/* Respect Accessibility Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .hero-bg-motion,
    .hero-fade-1,
    .hero-fade-2,
    .hero-fade-3,
    .hero-fade-4,
    .hero-fade-form {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .vehicle-card,
    .vehicle-card:hover,
    .vehicle-img-wrap img,
    .vehicle-card:hover .vehicle-img-wrap img,
    .btn-press:active {
        transform: none !important;
        transition: none !important;
    }
}
