/* ==========================================================================
   CSS Variables & Global Resets
   ========================================================================== */
   :root {
    --primary-color: #E63946; /* The distinct red */
    --whatsapp-green: #25D366;
    --whatsapp-dark: #1da851;
    --dark-bg: #111827; /* Very dark blue/black for footer and CTA */
    --light-bg: #F8FAFC;
    --border-color: #E2E8F0;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;
    
    --font-main: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 50px 0;
}

.highlight-red {
    color: var(--primary-color);
}

.red { color: var(--primary-color); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-whatsapp-outline {
    background: transparent;
    color: var(--whatsapp-green);
    border: 1px solid var(--whatsapp-green);
    border-radius: 20px;
    padding: 8px 16px;
}

.btn-whatsapp-outline:hover {
    background: var(--whatsapp-green);
    color: var(--white);
}

.btn-whatsapp-solid {
    background: var(--whatsapp-green);
    color: var(--white);
    border-radius: var(--radius-sm);
}

.btn-whatsapp-solid:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-white {
    background: var(--white);
    color: var(--text-main);
}

.btn-white:hover {
    background: #f1f1f1;
}

.icon-tiny { width: 14px; height: 14px; }
.icon-small { width: 18px; height: 18px; }

/* ==========================================================================
   Header
   ========================================================================== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    padding-bottom: 15px;
    background: var(--white);
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-main);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-main);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 40px 0 60px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-bg) 0%, #E2E8F0 100%);
}

.hero-content.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
    color: #111;
}

.hero-text p {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
}

.hero-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.badge i {
    color: var(--text-main);
    width: 20px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-photo {
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    object-fit: cover;
}

/* ==========================================================================
   Popular Cars
   ========================================================================== */
.popular-cars {
    background: var(--white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.section-header h2 {
    font-size: 20px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.view-all {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.car-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.car-img-wrapper {
    height: 160px;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

.car-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.car-content {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.car-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 700;
}

.car-specs {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.car-specs span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
    margin-top: auto;
}

.price {
    font-size: 13px;
    color: var(--text-muted);
}

.price strong {
    font-size: 18px;
    color: var(--text-main);
}

.status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
}

.status.available {
    background: #ecfdf5;
    color: #10b981;
}

/* ==========================================================================
   Features
   ========================================================================== */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: -30px; /* pull up slightly */
    padding-bottom: 80px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2; /* light red bg */
    flex-shrink: 0;
}

.icon-wrapper.red {
    color: var(--primary-color);
}

.feature-text h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   How It Works
   ========================================================================== */
.how-it-works {
    background: var(--white);
}

.how-it-works h2 {
    font-size: 24px;
    margin-bottom: 50px;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
}

.step-icon i {
    width: 30px;
    height: 30px;
    color: var(--text-main);
}

.step-icon.whatsapp-bg {
    background: var(--whatsapp-green);
    border-color: var(--whatsapp-green);
}
.step-icon.whatsapp-bg i {
    color: var(--white);
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.step h4 {
    font-size: 15px;
    margin-bottom: 8px;
}

.step p {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 180px;
}

.step-connector {
    flex: 1;
    height: 2px;
    border-top: 2px dashed #CBD5E1;
    margin-top: 35px; /* half of icon height */
    z-index: 1;
}

/* ==========================================================================
   Testimonials & CTA
   ========================================================================== */
.testimonials-cta {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    background: var(--white);
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 20px;
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.test-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.stars {
    color: #FBBF24; /* Yellow/Gold */
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.test-card p {
    font-size: 13px;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 20px;
    flex-grow: 1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info span {
    font-size: 12px;
    font-weight: 600;
}

/* CTA Box */
.cta-box {
    background: var(--dark-bg);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    color: var(--white);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cta-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.cta-box p {
    font-size: 14px;
    color: #9CA3AF;
    margin-bottom: 25px;
}

.cta-box .btn {
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Background car silhouette for CTA */
.cta-box::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 80px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2"/><circle cx="7" cy="17" r="2"/><path d="M9 17h6"/><circle cx="17" cy="17" r="2"/></svg>') no-repeat center/contain;
    z-index: 1;
}

/* ==========================================================================
   Info Bar
   ========================================================================== */
.info-bar {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item i {
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.info-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

.info-item p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--dark-bg);
    color: var(--white);
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: 13px;
    color: #9CA3AF;
    margin-top: 20px;
    line-height: 1.6;
}

.logo-white-filter {
    filter: brightness(0) invert(1);
    height: 40px;
}

.footer-links h4, .footer-contact h4, .footer-social h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: #9CA3AF;
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #9CA3AF;
    margin-bottom: 15px;
}

.footer-contact i {
    margin-top: 2px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.social-icon.fb:hover { background: #1877F2; }
.social-icon.ig:hover { background: #E4405F; }
.social-icon.yt:hover { background: #FF0000; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: #9CA3AF;
}

.back-to-top {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--dark-bg);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ==========================================================================
   Responsive (Basic)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        margin-bottom: 40px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-image-wrapper {
        transform: scale(1) translateX(0);
    }
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-cta {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-contact {
        display: none; /* Add hamburger menu in real app */
    }
    .hero-text h1 {
        font-size: 40px;
    }
    .hero-badges {
        grid-template-columns: 1fr;
    }
    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .step-connector {
        display: none;
    }
    .testimonial-cards {
        grid-template-columns: 1fr;
    }
    .info-bar {
        flex-direction: column;
        gap: 20px;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CRO Features Additions
   ========================================================================== */

/* Controls (Filters & Currency) */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.currency-toggle select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 14px;
    cursor: pointer;
}

/* Car Card Updates */
.car-includes {
    text-align: left;
    margin: 10px 0 15px;
    font-size: 12px;
}

.include-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    color: var(--text-main);
}

.include-item.exclude {
    color: var(--text-muted);
}

.green-text { color: #10b981; }
.red-text { color: var(--primary-color); }

.status.urgency {
    background: #fee2e2;
    color: var(--primary-color);
}

.btn-full {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
}

/* FAQ Section */
.faq-section {
    background: var(--white);
}

.faq-section h2 {
    margin-bottom: 30px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    padding: 15px 20px;
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Hide default arrow in some browsers */
    display: flex;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Floating WhatsApp Button */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--whatsapp-green);
    color: var(--white);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-wa:hover {
    transform: scale(1.05);
    color: var(--white);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .floating-wa {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
    }
}
