/* ==========================================================================
   RANA RENT A CAR - CORE & RESPONSIVE STYLESHEET
   Location: DHA Phase 5, Lahore
   Optimized for: All Resolutions (Mobile 320px-480px, Tablet 640px-1024px, Desktop 1280px+)
   ========================================================================== */

:root {
    --primary-navy: #0b1329;
    --primary-dark: #0f172a;
    --primary-slate: #1e293b;
    --accent-amber: #f59e0b;
    --accent-amber-hover: #d97706;
    --accent-emerald: #10b981;
    --accent-emerald-hover: #059669;
    --accent-sky: #0ea5e9;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-light: #e2e8f0;
    --border-dark: #334155;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Resets & Global Anti-Overflow Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Responsive Image and Media Sizing */
img, video, iframe, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Touch targets */
button, a, input, select, textarea {
    touch-action: manipulation;
}

/* Ambient Hero Gradient & Glow */
.hero-gradient {
    background-color: var(--primary-navy);
    background-image: 
        radial-gradient(at 0% 0%, rgba(245, 158, 11, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.12) 0px, transparent 50%),
        linear-gradient(180deg, rgba(11, 19, 41, 0.98) 0%, rgba(15, 23, 42, 1) 100%);
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.hero-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    max-width: 90vw;
    max-height: 90vw;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(0,0,0,0) 70%);
    top: -50px;
    right: -50px;
    pointer-events: none;
    z-index: 1;
}

@media (min-width: 768px) {
    .hero-glow {
        width: 600px;
        height: 600px;
        top: -150px;
        right: -100px;
    }
}

/* Card Hover Micro-Interactions */
.card-hover {
    transition: var(--transition);
}

@media (hover: hover) and (pointer: fine) {
    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.06);
    }
}

/* Custom Scrollbar for horizontal categories */
.custom-scrollbar {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.custom-scrollbar::-webkit-scrollbar {
    height: 5px;
    width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Button & Badge Utility Classes */
.btn-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0f172a;
    font-weight: 800;
    transition: var(--transition);
}
.btn-gold:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.4);
}

.btn-whatsapp {
    background-color: #10b981;
    color: #ffffff;
    font-weight: 800;
    transition: var(--transition);
}
.btn-whatsapp:hover {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.badge-self-drive {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.badge-driver-only {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Floating Animations */
@keyframes floatAnim {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.animate-float {
    animation: floatAnim 4s ease-in-out infinite;
}

/* Pulse Dot */
.pulse-emerald {
    position: relative;
}
.pulse-emerald::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Active Navigation Link */
.nav-link {
    position: relative;
    transition: var(--transition);
}
.nav-link.active {
    color: var(--accent-amber);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: var(--accent-amber);
    border-radius: 2px;
}

/* Calculator Card */
.calc-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.1);
    border: 1px solid var(--border-light);
}

/* Image Aspect Ratio Placeholder & Responsive Presentation */
.car-image-container {
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    overflow: hidden;
    position: relative;
}
.car-image-container img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    transition: transform 0.4s ease;
}
@media (hover: hover) and (pointer: fine) {
    .car-image-container:hover img {
        transform: scale(1.06);
    }
}

/* Safe area for modern phones with notch / gesture bars */
.mobile-bottom-bar {
    padding-bottom: calc(0.625rem + env(safe-area-inset-bottom, 0px));
}

/* Smooth Drawer Transition */
#mobileMenuDrawer {
    transition: max-height 0.3s ease-in-out, opacity 0.25s ease-in-out;
}

/* Print Optimization */
@media print {
    .no-print, header, footer, .mobile-bottom-bar, #mobileMenuDrawer {
        display: none !important;
    }
}
