/* Modern Abba's Autos CSS Framework – dark mode default */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Custom Variables – dark theme, red accents */
:root {
    --primary-color: #dc2626;
    --primary-dark: #b91c1c;
    --secondary-color: #dc2626;
    --accent-color: #dc2626;
    --text-dark: #111827;
    --text-light: #6b7280;
    --bg-dark: #111827;
    --bg-light: #111827;
    --bg-dark-elevated: #1f2937;
    --border-color: rgba(255,255,255,0.1);
    /* Dark mode text */
    --dm-text-primary: #f9fafb;
    --dm-text-secondary: #e5e7eb;
    --dm-text-muted: #d1d5db;
    --dm-text-subtle: #9ca3af;
    /* Smooth animations – GPU-friendly easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;
}
body.bg-gray-900 {
    --primary-color: #dc2626;
    --primary-dark: #b91c1c;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-dark);
}

/* ========== Dark mode – site default: bright text on dark background ========== */
body.bg-gray-900 {
    color: var(--dm-text-secondary);
    background-color: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.bg-gray-900 main {
    background-color: var(--bg-dark);
    color: var(--dm-text-secondary);
}

/* Headings – white and bright */
body.bg-gray-900 h1,
body.bg-gray-900 h2,
body.bg-gray-900 h3,
body.bg-gray-900 h4,
body.bg-gray-900 h5,
body.bg-gray-900 h6 {
    color: var(--dm-text-primary) !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.bg-gray-900 p {
    color: var(--dm-text-muted);
}

/* Tailwind-style text overrides in dark mode */
body.bg-gray-900 .text-gray-100,
body.bg-gray-900 .text-gray-50 { color: var(--dm-text-primary) !important; }
body.bg-gray-900 .text-gray-200 { color: var(--dm-text-secondary) !important; }
body.bg-gray-900 .text-gray-300 { color: var(--dm-text-muted) !important; }
body.bg-gray-900 .text-gray-400 { color: var(--dm-text-subtle) !important; }
body.bg-gray-900 .text-gray-500 { color: var(--dm-text-subtle) !important; }
body.bg-gray-900 .text-gray-600 { color: var(--dm-text-muted) !important; }
body.bg-gray-900 .text-gray-700 { color: var(--dm-text-secondary) !important; }
body.bg-gray-900 .text-gray-800 { color: var(--dm-text-secondary) !important; }
body.bg-gray-900 .text-gray-900 { color: var(--dm-text-primary) !important; }

/* Section titles (e.g. .section-title) – bright white */
body.bg-gray-900 .section-title {
    color: var(--dm-text-primary) !important;
    font-weight: 700;
    letter-spacing: 0.02em;
}

body.bg-gray-900 .section-subtitle {
    color: var(--dm-text-muted) !important;
}

/* Lucide icons – theme alignment (stroke inherits currentColor) */
[data-lucide] {
    display: inline-block;
    vertical-align: middle;
}
svg.lucide {
    stroke: currentColor;
    flex-shrink: 0;
}
/* Red accent for Lucide in dark theme */
.bg-gray-900 .truck-spec [data-lucide] + span,
.bg-gray-900 .truck-spec svg.lucide { color: var(--secondary-color); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}
body:not(.bg-gray-900) a { color: var(--primary-color); }
body:not(.bg-gray-900) a:hover { color: var(--primary-dark); }
body.bg-gray-900 a:not([class*="text-"]) { color: #e5e7eb; }
body.bg-gray-900 a:hover { color: #f87171; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Cards */
.card {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

/* Hero Section (dark theme default) – uses local truck image */
.hero {
    background: url('/static/img/truckbg.jpg') no-repeat center;
    background-size: cover;
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.85) 0%, rgba(26, 26, 26, 0.75) 50%, rgba(15, 15, 15, 0.85) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Dark hero – keep image visible, same overlay for text readability */
.hero-dark {
    color: #fff;
}
.hero-dark::before {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.85) 0%, rgba(26, 26, 26, 0.75) 50%, rgba(15, 15, 15, 0.85) 100%);
}

/* Truck Cards */
.truck-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

/* Dark theme truck cards (home page) */
.bg-gray-900 .truck-card {
    background: #1f2937;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
}
.bg-gray-900 .truck-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.4);
}
.bg-gray-900 .truck-details { background: #1f2937; }
.bg-gray-900 .truck-title { color: #f3f4f6; }
.bg-gray-900 .truck-spec { color: #9ca3af; }
.bg-gray-900 .truck-spec i { color: var(--secondary-color); }
.bg-gray-900 .truck-price { background: var(--secondary-color); }

/* Homepage truck cards (truck-card-light = truck-card) */
.truck-card-light {
    background: #1f2937;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.08);
}
.truck-card-light:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.4);
}
.truck-card-light .card-content {
    padding: 1.25rem 1.5rem;
    background: #1f2937;
}
.truck-card-light .truck-title {
    color: var(--dm-text-primary);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.truck-card-light .text-gray-600,
body.bg-gray-900 .truck-card-light .text-gray-600 {
    color: var(--dm-text-muted) !important;
}
body.bg-gray-900 .truck-card-light .btn-light,
body.bg-gray-900 .truck-card-light .btn-light-red,
body.bg-gray-900 .truck-card-light .btn-light-outline {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    transition: all 0.2s ease;
}
body.bg-gray-900 .truck-card-light .btn-light-red {
    background: #dc2626;
    color: #fff !important;
    border: none;
}
body.bg-gray-900 .truck-card-light .btn-light-red:hover {
    background: #b91c1c;
    color: #fff !important;
}
body.bg-gray-900 .truck-card-light .btn-light-outline {
    background: transparent;
    color: var(--dm-text-secondary) !important;
    border: 2px solid rgba(255,255,255,0.3);
}
body.bg-gray-900 .truck-card-light .btn-light-outline:hover {
    border-color: #dc2626;
    color: #f87171 !important;
}
body.bg-gray-900 .truck-card-light div.bg-gray-200,
body.bg-gray-900 .truck-card-light .truck-card-placeholder {
    background-color: #374151 !important;
}
body.bg-gray-900 .truck-card-light div.bg-gray-200 [data-lucide],
body.bg-gray-900 .truck-card-light div.bg-gray-200 .text-gray-400,
body.bg-gray-900 .truck-card-light .truck-card-placeholder [data-lucide] {
    color: var(--dm-text-subtle) !important;
}

.truck-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.truck-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.truck-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.truck-card:hover .truck-image img {
    transform: scale(1.05);
}

.truck-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.truck-price {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.truck-details {
    padding: 1.5rem;
}

.truck-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.truck-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}

.truck-spec {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

.truck-spec i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Features Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* Dark theme feature cards (home page) */
.feature-card-dark {
    background: #1f2937;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
}
.feature-card-dark:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.4);
}
.feature-icon-red {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
}

/* Why Choose Abbas Autos – match home page reference (lighter grey, subtle texture, white outline icons) */
.why-choose-section {
    position: relative;
    background: #374151;
    overflow: hidden;
}
.why-choose-bg {
    position: absolute;
    inset: 0;
    background: url('/static/img/truckbg.jpg') center / cover no-repeat;
    opacity: 0.08;
    filter: blur(12px);
    pointer-events: none;
}
.why-choose-block {
    padding: 2rem 1rem;
    transition: transform 0.2s ease;
}
.why-choose-block:hover {
    transform: translateY(-2px);
}
.why-choose-icon-wrap {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.why-choose-icon {
    stroke-width: 1.5;
    color: #fff !important;
    stroke: currentColor;
}
.why-choose-section svg.lucide {
    stroke: currentColor;
    fill: none;
}

/* Why Choose Us – grid layout (index-modern: .why-choose-grid, .why-choose-item, .icon) */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem 2rem;
    margin-top: 2rem;
}
.why-choose-item {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
    transition: transform 0.2s ease;
}
.why-choose-item:hover {
    transform: translateY(-2px);
}
.why-choose-item .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 38, 38, 0.15);
    border: 2px solid rgba(220, 38, 38, 0.4);
}
.why-choose-item .why-choose-icon,
.why-choose-item .icon [data-lucide],
.why-choose-item .icon svg {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    color: #f87171 !important;
    stroke: currentColor;
    fill: none;
}

/* Home page filter & buttons (dark theme) */
.btn-home-filter {
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-home-filter:hover,
.btn-home-filter.active {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}
.btn-home-primary {
    background: #dc2626 !important;
    color: #fff !important;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-home-primary:hover {
    background: #b91c1c !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
}
.btn-home-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-home-outline:hover {
    border-color: #dc2626;
    color: #dc2626;
}

/* Home search chips (filter tags below search bar) */
.search-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    background: #374151;
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s ease;
    text-decoration: none;
}
.search-chip:hover {
    background: #4b5563;
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}
.search-chip-active {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}
.search-chip-active:hover {
    background: #b91c1c;
    color: #fff;
}

/* Best Award badge (testimonial section) */
.best-award-badge {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(145deg, #d4af37 0%, #b8860b 40%, #8b6914 100%);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.best-award-inner {
    text-align: center;
    color: #1f2937;
    font-weight: 800;
    line-height: 1.1;
}
.best-award-title {
    display: block;
    font-size: 1.25rem;
    letter-spacing: 0.15em;
}
.best-award-sub {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero {
        padding: 4rem 0;
    }
    
    .truck-specs {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2rem 0;
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    to {
        left: 100%;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========== Dark mode: homepage sections ========== */
body.bg-gray-900 .search-bar-light {
    background-color: #1f2937 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
body.bg-gray-900 .search-bar-light input,
body.bg-gray-900 .search-bar-light select {
    background-color: #111827 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #e5e7eb !important;
}
body.bg-gray-900 .search-bar-light input::placeholder {
    color: #9ca3af;
}
body.bg-gray-900 .section-light,
body.bg-gray-900 .section-light-white,
body.bg-gray-900 .section-light-grey {
    background-color: #111827 !important;
    color: #e5e7eb !important;
}
body.bg-gray-900 .section-light h2,
body.bg-gray-900 .section-light h3,
body.bg-gray-900 .section-light-white h2,
body.bg-gray-900 .section-light-grey h2 {
    color: var(--dm-text-primary) !important;
}
body.bg-gray-900 .section-light p,
body.bg-gray-900 .section-light-white p,
body.bg-gray-900 .section-light-grey p {
    color: var(--dm-text-muted) !important;
}
body.bg-gray-900 .why-choose-item h3 {
    color: var(--dm-text-primary);
}
body.bg-gray-900 .why-choose-item p {
    color: var(--dm-text-muted);
}
body.bg-gray-900 .awards-section p,
body.bg-gray-900 .trusted-banner {
    color: var(--dm-text-secondary) !important;
}
body.bg-gray-900 .warranty-section h2,
body.bg-gray-900 .warranty-section h3 {
    color: var(--dm-text-primary) !important;
}
body.bg-gray-900 .warranty-section p {
    color: var(--dm-text-muted) !important;
}

/* Warranty section – layout and cards (index-modern) */
.warranty-section {
    padding: 3rem 0;
    background-color: var(--bg-dark);
}
.warranty-section h2 {
    margin-bottom: 2rem;
    text-align: center;
}
.warranty-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.warranty-box {
    background: #1f2937;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: box-shadow 0.2s ease;
}
.warranty-box:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.warranty-box h3 {
    color: var(--dm-text-primary);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}
.warranty-box p {
    color: var(--dm-text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}
.warranty-box [data-lucide] {
    color: #dc2626;
    flex-shrink: 0;
}

/* Awards section – logos */
.bank-logo-award,
.award-img {
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.award-img {
    max-height: 120px;
}
body.bg-gray-900 .awards-copy {
    color: var(--dm-text-secondary) !important;
}
body.bg-gray-900 .empty-state h3,
body.bg-gray-900 .empty-state p {
    color: var(--dm-text-muted) !important;
}
body.bg-gray-900 .empty-state .text-gray-400 {
    color: var(--dm-text-subtle) !important;
}
body.bg-gray-900 .section-nav-btn {
    background-color: #374151 !important;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--dm-text-secondary) !important;
}
body.bg-gray-900 .section-nav-btn:hover {
    background-color: #4b5563 !important;
}
body.bg-gray-900 .section-nav-btn [data-lucide],
body.bg-gray-900 .section-nav-btn .text-gray-600 {
    color: var(--dm-text-secondary) !important;
}

body.bg-gray-900 .hero-light .overlay-content,
body.bg-gray-900 .hero-light .overlay-content h2,
body.bg-gray-900 .hero-light .overlay-content p {
    color: #ffffff !important;
}

/* Hero light (homepage) – structure only; overlay stays dark/transparent */
.hero-light {
    position: relative;
    min-height: 500px;
    overflow: hidden;
}
.hero-light .overlay-content {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    z-index: 2;
    max-width: 500px;
    padding: 1.5rem 2rem;
    border-radius: 0.5rem;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(8px);
}
body.bg-gray-900 .hero-light .overlay-content {
    background: rgba(17, 24, 39, 0.85) !important;
}

/* Search bar – base layout (dark overrides in block above) */
.search-bar-light {
    padding: 1.5rem 0;
}
.search-bar-light .relative {
    position: relative;
}
.search-icon-absolute {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--dm-text-subtle);
    pointer-events: none;
}
body.bg-gray-900 .search-bar-light .btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #dc2626;
    color: #fff !important;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}
body.bg-gray-900 .search-bar-light .btn-search:hover {
    background: #b91c1c;
}
.btn-red {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #dc2626;
    color: #fff !important;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}
.btn-red:hover {
    background: #b91c1c;
    color: #fff !important;
}
/* Section nav arrows (Latest Trucks, etc.) – dark style */
body.bg-gray-900 .section-light .bg-gray-200,
body.bg-gray-900 .section-light-white .bg-gray-200 {
    background-color: #374151 !important;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--dm-text-secondary) !important;
}
body.bg-gray-900 .section-light .bg-gray-200:hover,
body.bg-gray-900 .section-light-white .bg-gray-200:hover {
    background-color: #4b5563 !important;
}
body.bg-gray-900 .section-light .bg-gray-200 .text-gray-600,
body.bg-gray-900 .section-light-white .bg-gray-200 .text-gray-600 {
    color: var(--dm-text-secondary) !important;
}

/* Trusted banner – red bar, white text */
.trusted-banner {
    background-color: var(--primary-color);
    padding: 1.75rem 1rem;
    color: #ffffff !important;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.trusted-banner,
.trusted-banner * {
    color: #ffffff !important;
}

/* Awards section – dark background in dark mode */
.awards-section {
    padding: 2.5rem 0;
}
body.bg-gray-900 .awards-section {
    background-color: var(--bg-dark) !important;
}

/* Bottom banner (truck image + logo) */
.bottom-banner {
    position: relative;
    min-height: 380px;
    overflow: hidden;
}
.bottom-banner .banner-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}
.bottom-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
    pointer-events: none;
}
.bottom-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 1.5rem;
}
.bottom-banner-content,
.bottom-banner-content h2,
.bottom-banner-content p {
    color: #ffffff !important;
}

/* ========== Brand carousel (grayscale, auto-scroll) ========== */
.brand-carousel {
    overflow: hidden;
    padding: 40px 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.brand-carousel-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    animation: brand-carousel-scroll 35s linear infinite;
}

.brand-carousel-track:hover {
    animation-play-state: paused;
}

@keyframes brand-carousel-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 20px)); }
}

@media (prefers-reduced-motion: reduce) {
    .brand-carousel {
        mask-image: none;
        -webkit-mask-image: none;
    }
    .brand-carousel-track {
        animation: none;
        width: 50%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }
}

.brand-carousel .brand-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    min-width: 160px;
    min-height: 100px;
    opacity: 0.9;
    filter: grayscale(20%);
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.brand-carousel .brand-logo:hover {
    opacity: 1;
    filter: none;
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.brand-logo-img {
    max-width: 120px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 575px) {
    .brand-carousel { padding: 24px 0; }
    .brand-carousel .brand-logo { min-width: 120px; min-height: 80px; padding: 16px 24px; }
}

/* ========== What Clients Say – testimonial cards carousel ========== */
.testimonials-section {
    background-color: #111827;
    padding: 60px 0;
}

.testimonials-intro {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    color: #9ca3af !important;
}

.testimonials-section .section-title {
    margin-top: 0;
    margin-bottom: 2rem;
    color: #f3f4f6 !important;
}

.testimonials-carousel-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 50px;
}

.testimonials-carousel {
    overflow: hidden;
    position: relative;
}

.testimonials-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.testimonial-card {
    min-width: 100%;
    flex-shrink: 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.testimonial-content {
    background-color: #1f2937;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.testimonial-quote {
    color: #e5e7eb;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    color: #9ca3af;
    font-size: 14px;
    margin-top: 16px;
}

.testimonial-author strong {
    color: #f3f4f6;
    font-weight: 600;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: #1f2937;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #e5e7eb;
}

.testimonial-nav:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav-prev {
    left: 0;
}

.testimonial-nav-next {
    right: 0;
}

.testimonial-nav i,
.testimonial-nav [data-lucide] {
    width: 24px;
    height: 24px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.testimonial-dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.testimonial-dot.active {
    background-color: #dc2626;
    width: 24px;
    border-radius: 5px;
}

@media (max-width: 767px) {
    .testimonials-carousel-wrapper { padding: 0 44px; }
    .testimonial-content { padding: 28px 24px; }
    .testimonial-quote { font-size: 15px; }
}

/* ========================================================================
   SCROLL-REVEAL ANIMATION SYSTEM
   Add [data-reveal] to any element, with optional modifiers:
     data-reveal="fade-up"   (default)
     data-reveal="fade-down"
     data-reveal="slide-left"
     data-reveal="slide-right"
     data-reveal="scale-in"
     data-reveal="blur-in"
   Add [data-reveal-stagger] to a parent to stagger its children.
   ======================================================================== */

/* Base: hidden before reveal – GPU-friendly transitions only */
[data-reveal] {
    opacity: 0;
    transition:
        opacity 0.55s var(--ease-out-expo),
        transform 0.55s var(--ease-out-expo),
        filter 0.55s var(--ease-out-expo);
    will-change: opacity, transform;
}

/* Type-specific starting states */
[data-reveal="fade-up"],
[data-reveal=""] { transform: translateY(40px); }
[data-reveal="fade-down"] { transform: translateY(-40px); }
[data-reveal="slide-left"] { transform: translateX(-60px); }
[data-reveal="slide-right"] { transform: translateX(60px); }
[data-reveal="scale-in"] { transform: scale(0.88); }
[data-reveal="blur-in"] { transform: translateY(20px); filter: blur(8px); }

/* Revealed state – applied by JS */
[data-reveal].revealed {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0);
    will-change: auto;
}

/* Stagger children: each child gets an incremental delay */
[data-reveal-stagger] > [data-reveal]:nth-child(1)  { transition-delay: 0s; }
[data-reveal-stagger] > [data-reveal]:nth-child(2)  { transition-delay: .08s; }
[data-reveal-stagger] > [data-reveal]:nth-child(3)  { transition-delay: .16s; }
[data-reveal-stagger] > [data-reveal]:nth-child(4)  { transition-delay: .24s; }
[data-reveal-stagger] > [data-reveal]:nth-child(5)  { transition-delay: .32s; }
[data-reveal-stagger] > [data-reveal]:nth-child(6)  { transition-delay: .40s; }
[data-reveal-stagger] > [data-reveal]:nth-child(7)  { transition-delay: .48s; }
[data-reveal-stagger] > [data-reveal]:nth-child(8)  { transition-delay: .56s; }
[data-reveal-stagger] > [data-reveal]:nth-child(9)  { transition-delay: .64s; }
[data-reveal-stagger] > [data-reveal]:nth-child(10) { transition-delay: .72s; }

/* ---- Counter animation (for stat numbers) ---- */
@keyframes countPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}
.hero-stat-number.counted {
    animation: countPulse .4s ease;
}

/* ---- Smooth image reveal ---- */
@keyframes imgReveal {
    0%   { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}
.img-reveal {
    clip-path: inset(0 100% 0 0);
}
.img-reveal.revealed {
    animation: imgReveal .8s cubic-bezier(.16,1,.3,1) forwards;
}

/* ---- Parallax-lite for backgrounds (GPU layer, no will-change to avoid layer explosion) ---- */
.parallax-bg {
    transform: translateZ(0);
    transition: none;
}

/* ---- Smooth link/button micro-interactions (site-wide) ---- */
a, button {
    transition: color var(--duration-normal) ease, background-color var(--duration-normal) ease, border-color var(--duration-normal) ease,
                transform var(--duration-normal) var(--ease-out-smooth), box-shadow var(--duration-normal) ease;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
    .img-reveal {
        clip-path: none !important;
        animation: none !important;
    }
    .parallax-bg {
        transition: none !important;
    }
    .smooth-lift:hover {
        transform: none !important;
    }
    .smooth-fade-in {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========== Smooth scroll & performance (front-end) ========== */
html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
body {
    overflow-x: hidden;
    min-width: 0;
}
/* GPU-friendly animated elements – reduce repaints */
[data-reveal],
.img-reveal,
.parallax-bg,
.smooth-lift {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
/* Focus rings – smooth transition so they don't pop */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    transition: outline-offset var(--duration-fast) var(--ease-out-smooth);
}
/* Utility: subtle lift on hover (cards, buttons) */
.smooth-lift {
    transition: transform var(--duration-normal) var(--ease-out-smooth),
                box-shadow var(--duration-normal) var(--ease-out-smooth),
                border-color var(--duration-normal) ease;
}
.smooth-lift:hover {
    transform: translateY(-2px);
}
/* Utility: fade-in for dynamic content */
.smooth-fade-in {
    animation: smoothFadeIn 0.4s var(--ease-out-expo) forwards;
}
@keyframes smoothFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== Mobile & responsive (front-end) ========== */
/* Containers: prevent overflow on small screens */
.container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 640px) {
    .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
/* Touch-friendly tap targets (buttons/links in main content) */
@media (max-width: 768px) {
    body .btn-hero-primary,
    body .btn-hero-secondary,
    body a[class*="btn"]:not(.nav-link) {
        min-height: 44px;
        padding-top: 12px;
        padding-bottom: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
