:root {
    /* palette rewritten for mostly-white base + teal accent + matte trims */
    --background: #F5F5F5;        /* page background (off-white) */
    --card: #FFFFFF;              /* white cards / sections */
    --text: #111111;              /* primary body text (very dark gray) */
    --muted: #6B7280;             /* secondary / muted text */
    --border: #DDDDDD;            /* borders / dividers */
    --nav-bg: #121212;            /* matte dark nav/footer trim (used for footer) */
    --footer-bg: #181818;
    --primary: #0ea5a4;           /* new cool teal accent */
    --primary-dark: #0b7f7d;    /* darker teal for gradients/hover */
    --button-bg: #111111;         /* main CTA button background (luxury black) */
    --light: #FFFFFF;
    --shadow: 0 6px 18px rgba(17,17,17,0.06);
    --shadow-strong: 0 12px 40px rgba(17,17,17,0.08);
    --transition: all 0.22s ease;
    --border-radius: 8px;
    --hero-height: 520px;         /* default hero min-height (home) */
	--hero-height-about: 760px;   /* longer hero for about page */
	--section-padding: 2.5rem;    /* default section vertical padding */
	--section-padding-lg: 4rem;   /* larger sections */
    --danger: #dc2626;            /* danger color (red) */
    --warning: #d97706;           /* warning color (orange) */
    --success: #16a34a;           /* success color (green) */
	--dark: #0b1220;            /* dark surface for modals/panels */
	--darker: #061124;         /* deeper surface accent */
	--on-dark: rgba(255,255,255,0.96); /* text color on dark surfaces */
	--form-bg: #f3f4f6;        /* slightly muted form background (less bright than pure white) */
	--form-border: #e6e9ee;
	--modal-surface: rgb(0, 0, 0);  /* primary modal background */
	--muted-on-dark: rgba(255,255,255,0.78);
}

/* Dark Mode Variables */
body.dark-mode {
    --background: #0f172a;
    --card: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: #334155;
    --nav-bg: #020617;
    --footer-bg: #020617;
    --shadow: 0 6px 18px rgba(0,0,0,0.3);
    --shadow-strong: 0 12px 40px rgba(0,0,0,0.5);
    --form-bg: #1e293b;
    --form-border: #334155;
    --modal-surface: #0f172a;
    --light: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Body + base */
body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* Header: white bar with subtle dark underline */
header {
    background-color: var(--card);
    box-shadow: none;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Logo and nav links: dark text on white header */
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-NP,
.logo-autos {
    /* ensure logo gradients use dark tones that work on white */
    background: linear-gradient(180deg, #111111 0%, #dbd3d3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.9rem;
    font-weight: 700;
}

.logo i {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}


.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.6rem 1rem 1rem; /* extra bottom padding for stripe */
    border-radius: var(--border-radius);
    position: relative; /* needed for the underline pseudo-element */
    padding-left: 0.8rem; /* small spacing to accomodate left indicator */
}

.nav-links a::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    transform-origin: center;
    width: 4px;
    height: 14px;
    border-radius: 3px;
    background: var(--primary);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    opacity: 1;
    transform: translateY(-50%) scaleY(1);
}

.nav-links a:hover,
.nav-links a.active {
    background-color: transparent; /* remove boxed highlight */
    color: var(--primary);
}


/* Consolidated Hero (centered text + button) */
.hero {
    min-height: 100vh;
    height: auto;
    width: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.5)),url('peugot\ crop.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* center horizontally */
    padding: 0 1.25rem;
    text-align: center; /* center text inside */
    box-sizing: border-box;
}

/* overlay + centered content */
.hero-overlay {
    position: absolute;
    inset: 0;
}
.hero-content {
    position: relative;
    color: #fff;
    z-index: 2;
    text-align: center; /* restored center alignment */
    max-width: 1100px;
    padding: 1.5rem; /* keep content breathing on smaller screens */
}

/* restore hero typography and button spacing */
.hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
    line-height: 1.05;
}
.hero-content p {
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    margin-bottom: 1rem;
    opacity: 0.95;
}

/* ensure hero buttons are centered and visually consistent */
.hero .btn {
    display: inline-flex;
    margin-top: 0.75rem;
    padding: 0.7rem 1.25rem;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Prefer a visible accent for hero CTA (override global btn-primary if needed) */
.hero .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--light);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 30px rgba(14,165,164,0.12);
}


.page-header-index {
    text-align: center;
}

.page-header-index h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--background);
}

.page-header-index p {
    font-size: 1.2rem;
    color: var(--background);
}



/* Page Header */
.page-header {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    padding: var(--section-padding-lg) 0; /* standardized */
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--secondary);
}

/* Section Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;

}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary-dark);
    align-items: center;
 
}

/* Button Styles */
.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--button-bg);
    color: var(--light);
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: var(--light);
    color: var(--button-bg);
    border-color: var(--border);
}

.btn-secondary {
    background-color: #FFFFFF;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--button-bg);
    color: var(--light);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    flex: 1;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.btn-block {
    width: 100%;
}

/* Search and Filter Section */
.search-section {
    background-color: transparent;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.search-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    background-color: var(--card);
    color: var(--text);
    font-size: 1rem;
}

.search-box i {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
}

.filter-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--light);
    border: none;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 8px 20px rgba(14,165,164,0.12);
    transition: var(--transition);
}
.filter-btn i { font-size: 0.95rem; }
.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(14,165,164,0.14);
}

/* Filters panel: improved contrast and spacing */
.filters {
    display: none;
    background-color: var(--card);
    padding: 1rem;
    border-radius: calc(var(--border-radius) + 2px);
    margin-top: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    border: 1px solid rgba(17,17,17,0.04);
    box-shadow: 0 10px 30px rgba(2,6,23,0.04);
}

.filters.active {
    display: grid;
}

.filter-group label {
    padding: 0.6rem;
    border-radius: 8px;
}

/* Fix for filter options visibility */
.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    background-color: var(--card);
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.results-count {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* Cars Grid */
.cars-section {
    padding: 2rem 0;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* List View Layout */
.cars-grid.list-view {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

.cars-grid.list-view .car-card {
    flex-direction: row;
    height: 240px;
}

.cars-grid.list-view .car-card-header {
    width: 40%;
    height: 100%;
}

.cars-grid.list-view .car-info {
    width: 60%;
    justify-content: center;
    padding: 1.5rem 2rem;
}

@media (max-width: 768px) {
    .cars-grid.list-view .car-card {
        flex-direction: column;
        height: auto;
    }
    
    .cars-grid.list-view .car-card-header {
        width: 100%;
        height: 220px;
    }
    
    .cars-grid.list-view .car-info {
        width: 100%;
        padding: 1.5rem;
    }
}

.car-card {
    background-color: var(--card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.car-card-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.car-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-card:hover .car-image {
    transform: scale(1.05);
}

.car-stats-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.stat-item {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item i {
    font-size: 0.75rem;
}

.car-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    color: var(--text);
}

.car-make-model {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    color: var(--primary-dark); /* teal accent for title */
}

.car-year {
    color: var(--secondary);
    font-weight: 500;
}

.car-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0;
}

.car-specs {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--primary); /* teal for spec text */
    font-size: 0.95rem;
}

.car-specs span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
}

.car-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    background-color: var(--gray);
    padding: 0.3rem;
    border-radius: var(--border-radius);
    background: var(--primary-dark);
}

.view-toggle button {
    background: none;
    border: none;
    color: var(--light);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.view-toggle button.active {
    background-color: var(--primary);
}

/* Featured Cars */
.featured-cars {
    padding: 4rem 0;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--darker);
    border-radius: var(--border-radius);
    transition: var(--transition);
    color: var(--primary);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--secondary);
    line-height: 1.6;
}

/* Stats Section */
.stats {
    padding: 1.5rem 0;
    background: linear-gradient(rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1485291571150-772bcfc10da5?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    background: rgba(14, 165, 164, 0.1);
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 500;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1;
    display: block;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* About Page Styles */
.about-content {
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-text h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--secondary);
    line-height: 1.8;
}

.features-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--gray);
}

.feature-item i {
    color: var(--primary-dark);
    font-size: 1.2rem;
}

/* Team Section */
.team-section {
    padding: var(--section-padding);
    background-color: transparent;
     /* remove undefined dark vars and keep page background */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
}

.team-member {
    text-align: left;
    background-color: var(--card); /* white card */
    padding: 1.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-direction: column;
}

.team-member:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

/* Portrait image becomes card-style avatar */
.member-image {
    width: 100%;
    max-width: 140px;
    height: 140px;
    border-radius: 10px; /* slightly rounded instead of circle for card aesthetic */
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text colors on card */
.team-member h3 {
    margin-bottom: 0.25rem;
    font-size: 1.15rem;
    color: var(--text);
}
.member-role {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.team-member p {
    color: var(--muted);
    line-height: 1.6;
    margin-top: 0.25rem;
}

/* Contact Page Styles */
.contact-content {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.contact-info > p {
    margin-bottom: 2rem;
    color: var(--secondary);
    line-height: 1.8;
}

.contact-methods {
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-details p {
    color: var(--primary);
    line-height: 1.6;
}

.business-hours {
    background-color: var();
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.business-hours h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.business-hours ul {
    list-style: none;
    color: var(--primary-dark);
}

.business-hours li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray);
}

.business-hours li:last-child {
    border-bottom: none;
}

/* Contact Form */
.contact-form-container {
    background-color: gray;
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-form-container h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--light);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-light);
    background-color: var(--muted);
    color: var(--light);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--muted);
}

/* Enhanced Form Inputs with Icons */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    z-index: 1;
}

.input-with-icon .form-control {
    padding-left: 2.8rem;
}

/* Price Input Wrapper */
.price-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.price-currency {
    position: absolute;
    left: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    pointer-events: none;
}

.price-input {
    padding-left: 35px !important;
}

/* Map Section */
.map-section {
    padding: 4rem 0;
    background-color: var();
}

.map-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary-dark);
}

.map-placeholder {
    height: 400px;
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2069&q=80');
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.map-content i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.map-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.map-content p {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
}

 */
.faq-section h2{
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary-dark);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--card);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--background);
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
}

.faq-question i {
    transition: var(--transition);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Modal Styles */
.modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow-y: auto;
    padding: 1rem;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex !important;
    opacity: 1;
}

.modal-content {
    position: relative;
    background: var(--card);
    color: var(--text);
    max-width: 800px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.small-modal {
    max-width: 450px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-align: center;
}

.close-modal {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-modal:hover {
    background-color: var(--background);
    color: var(--danger);
}

/* Car Details Modal */
.modal-body {
    padding: 1.5rem;
    background-color: var(--card);
    overflow-y: auto;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.modal-loader {
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

.car-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.main-image {
    grid-column: 1 / -1;
    height: 400px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.thumbnail {
    height: 100px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 0.8;
    border-color: var(--primary);
    transform: scale(1.02);
}

.car-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.car-details > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.car-details > div:first-child h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin: 0;
}

.car-specs-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: rgba(37, 99, 235, 0.08);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
    border-top: 1px solid rgba(var(--primary-rgb), 0.2);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.spec-label {
    font-size: 0.85rem;
    color: var(--primary-dark); /* teal */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.spec-value {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary); /* teal */
}

.car-features {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(100, 116, 139, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary);
}

.car-features h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.feature-tag {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.car-description {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--form-bg);
    border-radius: var(--border-radius);
    line-height: 1.8;
    border: 1px solid var(--border);
    color: var(--text);
}

.car-description h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.car-description p {
    margin: 0;
    color: var(--text);
    opacity: 1;
}

.modal-card h3, .modal-card h4 {
    color: var(--primary-dark);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    flex: 1;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    min-width: 200px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    border: none;
    border-radius: var(--border-radius);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #0f6d59);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    color: rgba(255,255,255,0.92); /* base footer text color */
    padding-left: 10px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary); /* accent on hover */
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

/* Social icons: keep visible on dark background */
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.06);
    border-radius: 50%;
    color: var(--light);
    transition: var(--transition);
    position: relative;
    font-size: 1.2rem;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--light);
    transform: translateY(-3px);
}

.social-links .whatsapp:hover {
    background-color: #25D366;
}

.social-links .instagram:hover {
    background: #d6249f;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
}

.social-links .gmail:hover {
    background-color: #EA4335;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--light);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--secondary);
    grid-column: 1 / -1;
}
/* Mobile Bottom Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--card);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.mobile-nav-links {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    height: 60px;
    margin: 0;
    padding: 0;
}

.mobile-nav-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.65rem;
    gap: 0.25rem;
    flex: 1;
    height: 100%;
    transition: var(--transition);
    border-radius: 0;
}

/* icon only: hide labels */
.mobile-nav-links a span {
    display: block;
    font-size: 10px;
    font-weight: 500;
}

.mobile-nav-links a i {
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin-bottom: 2px;
    transition: var(--transition);
    background: transparent;
    color: inherit;
}

/* Circular hover on icon (subtle) */
.mobile-nav-links a:hover i {
    background-color: transparent;
    color: var(--primary);
    transform: scale(1.05);
}

/* Active state slightly darker than hover */
.mobile-nav-links a.active {
    color: var(--primary);
}

.mobile-nav-links a.active i {
    transform: scale(1.1);
    color: var(--primary);
    background-color: transparent;
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
        padding-bottom: 120px; /* room for larger bottom nav */
    }

    header {
        position: static;
    }

    .navbar {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 1rem 0;
        gap: 0.5rem;
        text-align: center;
    }

    .logo {
        font-size: 1.3rem;
        flex-direction: row;
        gap: 8px;
        justify-content: center;
    }

    .logo img {
        width: 80px !important;
        height: auto !important;
        margin-right: 0 !important;
    }

    .logo-text {
        font-size: 2rem;
        letter-spacing: 1px;
        white-space: nowrap;
    }

    /* hide top links and admin button on mobile */
    .nav-links {
        display: none;
    }

    .admin-btn {
        display: none;
    }

    /* show bottom mobile nav */
    .mobile-nav {
        display: block;
    }

    .hero {
        min-height: 80vh;
        padding: 2rem 1rem;
    }

    .hero.hero--about {
        min-height: 520px;
    }


.page-header-index h1 {
    font-size: 1.5rem;
}


    .page-header h1 {
        font-size: 2.5rem;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .car-details {
        grid-template-columns: 1fr;
    }

    .car-gallery {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    /* reduce section padding on small screens */
	.featured-cars,
	.features,
	.stats,
	.about-content,
	.contact-content,
	.cars-section {
		padding-top: 1.75rem;
		padding-bottom: 1.75rem;
	}

    /* Center search and filter on mobile */
    .search-container {
        flex-direction: column;
    }
    .search-box, .filter-btn {
        width: 100%;
        justify-content: center;
    }

    /* Center view toggle and results count */
    .view-toggle {
        width: 24%;
        justify-content: center;
    }
    .results-count {
        width: 100%;
        text-align: center;
    }
}

/* Add to style.css */
.admin-btn {
    transition: all 0.3s ease;
}

/* Smooth show/hide */
.admin-btn[style*="display: none"] {
    opacity: 0;
    transform: scale(0.8);
}

.admin-btn[style*="display: flex"] {
    opacity: 1;
    transform: scale(1);
}

/* Stat bubbles for admin table */
.stat-bubble-daily {
    display: inline-block;
    background: rgba(37, 99, 235, 0.2); /* Primary color tint */
    color: #a5b4fc; /* Lighter blue text */
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-right: 4px;
}

.stat-bubble-lifetime {
    display: inline-block;
    background: rgba(100, 116, 139, 0.2); /* Gray color tint */
    color: var(--secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ============================================ */
/* CUSTOM SCROLLBAR STYLES                      */
/* ============================================ */

/* For Webkit-based browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
    border: 3px solid var(--background);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-dark);
}

/* For Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--background);
}

/* Session Warning Modal */
.session-warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

.session-warning-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.session-warning-icon {
    font-size: 4rem;
    color: #f39c12;
    margin-bottom: 1rem;
}

.session-warning-content h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.session-warning-content p {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.session-timer {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.session-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    width: 100%;
    border-radius: 3px;
    transition: width 1s linear;
}

#extendSessionBtn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Navbar layout: keep logo and nav on same line; nav on right */
.navbar {
    display: flex;
    justify-content: space-between; /* logo left, nav right */
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap; /* prevent nav from wrapping under logo */
    padding: 1rem 0;
}

/* ensure logo image doesn't force wrapping */
.logo img {
    width: 48px; /* replace inline 10% width with fixed small icon */
    height: auto;
    margin-right: 10px;
    display: inline-block;
}

/* remove centering margin so nav stays at the right */
.nav-links {
    order: 2;
    margin: 0; /* remove auto-centering */
    display: flex;
    gap: 1.5rem;
    align-items: center;
    white-space: nowrap; /* keep items on one line */
}

.container{
    color: var(--primary-dark);
    padding-left: 6px; 
    padding-right: 6px; 
}

/* Slight spacing adjustment to keep links from hitting the viewport edge */
.container .navbar { padding-left: 6px; padding-right: 6px; }

/* vertical indicator already added earlier; keep consistent with no-wrap adjustments */
.nav-links a {
    /* ...existing declarations... */
    padding-left: 0.6rem; /* small left padding retained */
}


/* Team cards */
.team-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-top: 1.5rem;
}
.team-card {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(0,0,0,0.08);
	display: flex;
	flex-direction: column;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.team-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.card-image img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}
.card-body {
	padding: 1rem;
    text-align: center;
}
.card-body h3 {
	margin: 0 0 4px;
	font-size: 1.15rem;
}
.member-role {
	color: #777;
	font-size: 0.95rem;
	margin-bottom: 0.6rem;
}

/* Responsive */
@media (max-width: 992px) {
	.team-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.hero-content h1 {
		font-size: 2.25rem;
	}
}
@media (max-width: 600px) {
	.team-grid {
		grid-template-columns: 1fr;
	}
	.hero-content h1 {
		font-size: 1.8rem;
	}
	.hero {
		height: 70vh;
	}
}

/* Skeleton Loading Animation */
.skeleton {
    background: #e1e4e8;
    background: linear-gradient(90deg, #e1e4e8 0%, #f0f2f5 50%, #e1e4e8 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    pointer-events: none;
}

.skeleton-card .car-card-header {
    background: #e1e4e8;
}

.skeleton-title {
    height: 24px;
    width: 70%;
    margin-bottom: 10px;
}

.skeleton-price {
    height: 28px;
    width: 40%;
    margin-bottom: 15px;
}

.skeleton-specs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.skeleton-spec {
    height: 16px;
    flex: 1;
}

.skeleton-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.skeleton-btn {
    height: 36px;
    flex: 1;
}

/* Admin Table Skeleton */
.skeleton-row td {
    padding: 1rem;
}

.skeleton-text {
    height: 20px;
    width: 100%;
    background: #e1e4e8;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
}

body.dark-mode .skeleton-text,
body.dark-mode .skeleton,
body.dark-mode .skeleton-card .car-card-header {
    background: #334155;
    background: linear-gradient(90deg, #334155 0%, #475569 50%, #334155 100%);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--card);
    color: var(--text);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary);
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    font-size: 1.2rem;
}

.toast.success { border-left-color: var(--success); }
.toast.success i { color: var(--success); }

.toast.error { border-left-color: var(--danger); }
.toast.error i { color: var(--danger); }

.toast.info { border-left-color: var(--primary); }
.toast.info i { color: var(--primary); }

/* Error State */
.error-state {
    text-align: center;
    padding: 3rem 1rem;
    grid-column: 1 / -1;
    background: var(--card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.error-state i {
    font-size: 3rem;
    color: var(--danger);
    margin-bottom: 1rem;
}

.error-state h3 {
    margin-bottom: 0.5rem;
}

.error-state p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* Mobile Navigation Fixes - Strictly Enforce Bottom Nav */
@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }
    
    .navbar {
        justify-content: center;
    }
    
    .mobile-nav {
        display: block !important;
    }
}

/* Admin Mobile Sidebar Styles */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--card);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-strong);
    padding: 2rem 1rem;
    overflow-y: auto;
}

.mobile-sidebar.active {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 990; /* Below mobile nav (999) but above content */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 80px; /* Above mobile nav */
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}