/* =========================================================================
   MinibusWebsite — Modern Minimalism theme (Trust & Authority)
   Loaded LAST so it overrides main.css / components.css.
   ========================================================================= */

/* --- Design tokens: navy + deep-blue accent, off-white surface --- */
:root {
    --primary-color:      #0F172A;   /* navy — text, primary CTA */
    --primary-dark:       #020617;   /* near-black */
    --primary-light:      #1E293B;   /* slate-800 */
    --secondary-color:    #0369A1;   /* deep blue — accent/links */
    --secondary-dark:     #075985;
    --accent-color:       #0369A1;
    --success-color:      #059669;
    --warning-color:      #D97706;
    --error-color:        #DC2626;

    --white:    #FFFFFF;
    --gray-50:  #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* Softer, focused shadows */
    --shadow-sm:  0 1px 2px 0 rgba(15,23,42,.04);
    --shadow-md:  0 4px 12px -2px rgba(15,23,42,.06);
    --shadow-lg:  0 12px 32px -8px rgba(15,23,42,.10);
    --shadow-xl:  0 24px 48px -12px rgba(15,23,42,.14);

    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    --ease:       cubic-bezier(.4, 0, .2, 1);
    --dur:        .2s;
}

/* --- Base --- */
html { scroll-behavior: smooth; }
body {
    background: var(--white);
    color: var(--gray-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv11", "ss01";
}

::selection { background: var(--primary-color); color: #fff; }

/* --- Typography scale: tighter tracking on headings, generous body --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    color: var(--gray-900);
    letter-spacing: -0.02em;
    line-height: 1.15;
    font-weight: 700;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem);   letter-spacing: -0.03em; }
h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); }
h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.015em; }
h4 { font-size: 1.125rem; font-weight: 600; }

p  { color: var(--gray-600); line-height: 1.65; }

a  { color: var(--secondary-color); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--primary-color); }

/* --- Container: crisper max-width --- */
.container { max-width: 1200px; padding-inline: 1.5rem; }

/* --- Section headers --- */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 {
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    background: none !important;      /* remove old gradient */
    -webkit-text-fill-color: initial !important;
}
.section-header p {
    color: var(--gray-500);
    font-size: 1.125rem;
    max-width: 640px;
    margin-inline: auto;
}

/* --- Header / Navbar: white, thin border, sticky --- */
.header {
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(150%) blur(12px);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: none;
    position: sticky; top: 0; z-index: 100;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.navbar {
    height: 72px;
    padding-inline: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-900) !important;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    padding: 0; margin: 0;
}
.nav-links a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--dur) var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gray-900); }
.nav-links a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--gray-900);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur) var(--ease);
}
.nav-links a.active:not(.btn)::after,
.nav-links a:hover:not(.btn)::after { transform: scaleX(1); }

/* --- Buttons: sharp, minimal, high-contrast --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1;
    cursor: pointer;
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}
.btn::before { display: none !important; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--gray-900);
    color: #fff !important;
    border-color: var(--gray-900);
    box-shadow: 0 1px 2px 0 rgba(15,23,42,.15);
}
.btn-primary:hover {
    background: var(--primary-light);
    color: #fff !important;
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: #fff;
    color: var(--gray-900) !important;
    border-color: var(--gray-200);
}
.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--gray-900) !important;
}

.btn-outline {
    background: transparent;
    color: var(--gray-900) !important;
    border-color: var(--gray-300);
}
.btn-outline:hover {
    background: var(--gray-900);
    color: #fff !important;
    border-color: var(--gray-900);
}

/* --- Hero: minimal, huge type, restrained overlay --- */
.hero,
.hero-with-image {
    padding: 6rem 0 5rem;
    background-color: var(--gray-50);
}
.hero::before { display: none; }
.hero-with-image {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 620px;
    display: flex;
    align-items: center;
}
.hero-with-image::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.75) 100%);
    z-index: 1;
}
.hero-with-image .container { position: relative; z-index: 2; }
.hero-content { max-width: 780px; text-align: left; }
.hero-with-image .hero-content { color: #fff; text-align: left; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.24);
    color: #fff;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}
.hero:not(.hero-with-image) .hero-badge {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--gray-700);
    backdrop-filter: none;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 700;
    margin-bottom: 1.25rem;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: inherit;
}
.hero-with-image .hero-title { color: #fff; }

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.55;
    color: rgba(255,255,255,.85);
    max-width: 620px;
    margin-bottom: 2.5rem;
    font-weight: 400;
}
.hero:not(.hero-with-image) .hero-subtitle { color: var(--gray-600); }

.hero-cta {
    display: flex; flex-wrap: wrap; gap: 0.75rem;
    justify-content: flex-start;
}

/* Hero stats: horizontal rule of numbers */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.15);
    justify-content: flex-start;
    flex-wrap: wrap;
}
.hero:not(.hero-with-image) .hero-stats {
    border-top-color: var(--gray-200);
}
.stat { text-align: left; min-width: auto; }
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: inherit;
    letter-spacing: -0.02em;
    display: block;
    line-height: 1.1;
    margin-bottom: 0.25rem;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}
.hero-with-image .stat-number { color: #fff; }
.stat-label {
    font-size: 0.8125rem;
    color: rgba(255,255,255,.7);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.hero:not(.hero-with-image) .stat-label { color: var(--gray-500); }

/* --- Sections: generous vertical rhythm --- */
.quick-nav,
.categories,
.pros-cons,
.manufacturers,
.latest-articles,
.featured-vehicles,
.cta-section {
    padding: 6rem 0;
}

/* --- Cards: white surface, thin border, subtle lift on hover --- */
.nav-card,
.category-card,
.vehicle-card-enhanced,
.manufacturer-card,
.testimonial {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: none;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
    overflow: hidden;
}
.nav-card:hover,
.category-card:hover,
.vehicle-card-enhanced:hover,
.manufacturer-card:hover,
.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}
.nav-card::before,
.category-card::before,
.nav-card:hover::before { display: none !important; background: none !important; }

/* Nav-card: quick-nav grid of services */
.nav-card {
    padding: 2rem;
    text-align: left;
    color: var(--gray-900);
}
.nav-icon {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
}
.nav-card h3 {
    color: var(--gray-900);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.nav-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}
.nav-arrow {
    color: var(--gray-400);
    font-size: 1.25rem;
    transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
    display: inline-block;
}
.nav-card:hover .nav-arrow {
    color: var(--gray-900);
    transform: translateX(4px);
}

/* --- Vehicle cards --- */
.vehicle-card-enhanced { padding: 0; }
.vehicle-badge {
    position: absolute;
    top: 1rem; left: 1rem;
    background: var(--gray-900);
    color: #fff;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    z-index: 2;
}
.vehicle-image-container {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray-100);
}
.vehicle-image-container img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}
.vehicle-card-enhanced:hover .vehicle-image-container img { transform: scale(1.04); }
.vehicle-card-body { padding: 1.5rem; }
.vehicle-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}
.vehicle-card-subtitle {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}
.vehicle-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 1.25rem;
}
.spec-item {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-700);
}
.spec-icon { font-size: 1rem; }
.vehicle-price {
    display: flex; align-items: baseline; gap: 0.375rem;
    margin-bottom: 1.25rem;
}
.price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}
.price-period {
    font-size: 0.875rem;
    color: var(--gray-500);
}
.vehicle-actions {
    display: flex; gap: 0.5rem;
}
.vehicle-actions .btn { flex: 1; padding: 0.75rem 1rem; font-size: 0.875rem; }

/* --- Manufacturer cards --- */
.manufacturer-card {
    padding: 2rem 1.5rem;
    text-align: center;
}
.manufacturer-logo {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-500);
}

/* --- Pros/Cons --- */
.pros-cons-grid { gap: 3rem; }
.pros-section, .cons-section {
    background: transparent;
    padding: 0;
}
.pros-title, .cons-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900) !important;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}
.pro-item, .con-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border: none;
    background: transparent;
}
.pro-icon, .con-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gray-50) !important;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    color: var(--gray-900);
}
.pro-content h4, .con-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}
.pro-content p, .con-content p {
    font-size: 0.9375rem;
    color: var(--gray-600);
}

/* --- Testimonials --- */
.testimonial {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}
.testimonial-quote {
    font-family: Georgia, serif;
    font-size: 3.5rem;
    line-height: 1;
    color: var(--gray-200);
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.testimonial-text {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    flex: 1;
}
.testimonial-author {
    display: flex; align-items: center; gap: 0.875rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-100);
}
.testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 999px;
}
.testimonial-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}
.testimonial-info p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0.125rem 0 0;
}
.rating { margin-top: 0.25rem; }
.rating-star { color: #F59E0B; font-size: 0.875rem; }

/* --- Gallery --- */
.image-gallery,
.image-gallery-large {
    gap: 1rem;
}
.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: none;
}
.gallery-item img { transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(15,23,42,.85) 100%);
    padding: 1.5rem;
}
.gallery-overlay h3 {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}
.gallery-overlay p {
    color: rgba(255,255,255,.8);
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
}

/* --- Full-width & split images --- */
.full-width-image {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}
.split-image-section {
    gap: 4rem;
    align-items: center;
}
.split-image-section img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* --- CTA section --- */
.cta-section {
    background: var(--gray-900) !important;
    color: #fff;
    text-align: center;
    padding: 5rem 0;
}
.cta-content h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}
.cta-content p {
    color: rgba(255,255,255,.75);
    font-size: 1.125rem;
    max-width: 620px;
    margin: 0 auto 2rem;
}
.cta-buttons {
    display: flex; gap: 0.75rem;
    justify-content: center; flex-wrap: wrap;
    margin-bottom: 2rem;
}
.cta-section .btn-primary {
    background: #fff;
    color: var(--gray-900) !important;
    border-color: #fff;
}
.cta-section .btn-primary:hover {
    background: var(--gray-100);
    border-color: var(--gray-100);
    color: var(--gray-900) !important;
}
.cta-section .btn-secondary {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255,255,255,.3);
}
.cta-section .btn-secondary:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.5);
    color: #fff !important;
}
.cta-stats {
    color: rgba(255,255,255,.65);
    font-size: 0.9375rem;
}

/* --- Footer --- */
.footer {
    background: var(--gray-50);
    color: var(--gray-700);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--gray-200);
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-section h4 {
    color: var(--gray-900);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section li { margin-bottom: 0.625rem; }
.footer-section a {
    color: var(--gray-600);
    font-size: 0.9375rem;
    transition: color var(--dur) var(--ease);
}
.footer-section a:hover { color: var(--gray-900); }
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}
.footer-bottom p { color: var(--gray-500); margin: 0; }

/* --- Breadcrumbs --- */
.breadcrumbs, nav.breadcrumbs {
    padding: 1.5rem 0 0;
    font-size: 0.875rem;
    color: var(--gray-500);
}
.breadcrumbs a { color: var(--gray-600); }
.breadcrumbs a:hover { color: var(--gray-900); }
.breadcrumb-separator { color: var(--gray-300); margin: 0 0.5rem; }

/* --- Forms (inputs on contact / calculator) --- */
.form-input,
.form-select,
.form-textarea {
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--gray-900);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--gray-900);
    box-shadow: 0 0 0 3px rgba(15,23,42,.1);
}
.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    display: block;
    margin-bottom: 0.5rem;
}

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.badge-primary { background: var(--gray-900); color: #fff; }
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-error   { background: #FEE2E2; color: #991B1B; }
.badge-outline { background: transparent; border: 1px solid var(--gray-300); color: var(--gray-700); }

/* --- Section CTA (used at bottom of section) --- */
.section-cta { text-align: center; }

/* --- Focus visibility for keyboard users --- */
:focus-visible {
    outline: 2px solid var(--gray-900);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}
.btn:focus-visible {
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(15,23,42,.15);
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Responsive: mobile-first tweaks --- */
@media (max-width: 768px) {
    .navbar { height: 64px; }
    .nav-links { display: none; }
    .mobile-menu-toggle {
        display: inline-flex !important;
        background: transparent;
        border: 1px solid var(--gray-200);
        color: var(--gray-900);
        width: 40px; height: 40px;
        border-radius: var(--radius-md);
        align-items: center; justify-content: center;
        font-size: 1.25rem;
    }
    .hero, .hero-with-image { padding: 4rem 0 3rem; min-height: 480px; }
    .quick-nav, .categories, .pros-cons, .manufacturers, .latest-articles, .featured-vehicles { padding: 4rem 0; }
    .hero-stats { gap: 1.5rem; margin-top: 2rem; padding-top: 1.5rem; }
    .stat-number { font-size: 1.5rem; }
    .footer-content { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .split-image-section { gap: 2rem; }
    .section-header { margin-bottom: 2.5rem; }
    .hero-cta .btn { flex: 1; }
}

@media (max-width: 480px) {
    .footer-content { grid-template-columns: 1fr; }
    .container { padding-inline: 1rem; }
}
