/* 
 * DirectCar Home UX Styles 
 * Mobile First / Pixel Perfect
 */

:root {
    --dc-color-brand: #0A58CA;
    --dc-color-brand-hover: #084298;
    --dc-color-dark: #000000;
    --dc-color-gray-bg: #F8F9FA;
    --dc-color-gray-border: #E9ECEF;
    --dc-color-text: #212529;
    --dc-color-text-light: #6C757D;
    --dc-color-success: #198754;
    --dc-border-radius: 12px;
    --dc-border-radius-lg: 20px;
    --dc-shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --dc-shadow-md: 0 8px 20px rgba(0,0,0,0.08);
}

.dc-home-wrapper * {
    box-sizing: border-box;
}

.dc-home-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--dc-color-text);
    line-height: 1.5;
}

/* 1. Hero Section */
.dc-home-hero-wrapper {
    position: relative;
    margin-bottom: 120px; /* space for overlapping card */
}

.dc-home-hero {
    background: linear-gradient(90deg, #000000 0%, #1a1a1a 100%);
    color: #fff;
    padding: 40px 20px 140px 20px;
    text-align: center;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.dc-home-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dc-hero-badge {
    background: rgba(10, 88, 202, 0.2);
    color: #4A90E2;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: inline-block;
}

.dc-hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    color: #fff;
}

.dc-hero-subtitle {
    font-size: 16px;
    color: #ced4da;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Vehicle Floating Card */
.dc-hero-vehicle-card-wrapper {
    position: absolute;
    bottom: -80px;
    left: 20px;
    right: 20px;
    z-index: 10;
}

.dc-hero-vehicle-card {
    background: #ffffff;
    border-radius: var(--dc-border-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--dc-shadow-md);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--dc-color-gray-border);
    gap: 20px;
}

.dc-vehicle-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.dc-vehicle-icon-wrap {
    background: #F0F4F8;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dc-color-brand);
}

.dc-vehicle-icon-wrap svg {
    width: 28px;
    height: 28px;
}

.dc-vehicle-details h4 {
    font-size: 11px;
    color: var(--dc-color-text-light);
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dc-vehicle-details h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dc-color-text);
    margin: 0 0 4px 0;
}

.dc-vehicle-details p {
    font-size: 13px;
    color: var(--dc-color-text-light);
    margin: 0 0 8px 0;
}

.dc-vehicle-status {
    font-size: 13px;
    font-weight: 600;
    color: var(--dc-color-success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.dc-btn-outline {
    background: transparent;
    border: 1px solid var(--dc-color-gray-border);
    color: var(--dc-color-brand);
    padding: 10px 20px;
    border-radius: var(--dc-border-radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.dc-btn-outline:hover {
    background: var(--dc-color-gray-bg);
    border-color: #d0d5db;
}

/* 2. Search Paths */
.dc-home-search-paths {
    max-width: 1000px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
    text-align: center;
}

.dc-search-paths-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dc-color-text);
}

.dc-search-paths-subtitle {
    font-size: 15px;
    color: var(--dc-color-text-light);
    margin-bottom: 32px;
}

.dc-search-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.dc-search-card {
    background: #fff;
    border: 1px solid var(--dc-color-gray-border);
    border-radius: var(--dc-border-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    box-shadow: var(--dc-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dc-search-card.primary {
    border-color: var(--dc-color-brand);
    border-width: 2px;
}

.dc-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.dc-icon-circle.blue {
    background: var(--dc-color-brand);
    color: #fff;
}

.dc-icon-circle.gray {
    background: var(--dc-color-gray-bg);
    color: var(--dc-color-text);
}

.dc-icon-circle svg { width: 20px; height: 20px; }

.dc-search-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.dc-search-card p {
    font-size: 14px;
    color: var(--dc-color-text-light);
    margin: 0 0 20px 0;
}

.dc-search-input-group {
    display: flex;
    width: 100%;
    border: 1px solid var(--dc-color-gray-border);
    border-radius: var(--dc-border-radius);
    overflow: hidden;
}

.dc-search-input-group input {
    flex-grow: 1;
    border: none;
    padding: 12px;
    font-size: 14px;
    outline: none;
    background: #fff;
    width: 100%;
}

.dc-search-input-group button {
    background: var(--dc-color-brand);
    color: #fff;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-btn-full {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid var(--dc-color-gray-border);
    border-radius: var(--dc-border-radius);
    color: var(--dc-color-text);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

/* 3. Categories */
.dc-home-categories-section {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.dc-section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
}

.dc-section-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.dc-link-view-all {
    color: var(--dc-color-brand);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dc-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.dc-category-card {
    background: #fff;
    border: 1px solid var(--dc-color-gray-border);
    border-radius: var(--dc-border-radius);
    padding: 16px 12px;
    text-align: center;
    text-decoration: none;
    color: var(--dc-color-text);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dc-category-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 12px;
}

.dc-category-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.dc-category-card p {
    font-size: 12px;
    color: var(--dc-color-text-light);
    margin: 0;
}

/* 4. Benefits */
.dc-home-benefits-section {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.dc-benefits-row {
    background: var(--dc-color-gray-bg);
    border-radius: var(--dc-border-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dc-benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dc-benefit-icon {
    color: var(--dc-color-brand);
}

.dc-benefit-icon svg { width: 28px; height: 28px; }

.dc-benefit-text h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.dc-benefit-text p {
    font-size: 13px;
    color: var(--dc-color-text-light);
    margin: 0;
}

/* 5. Brands */
.dc-home-brands-section {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.dc-brands-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.dc-brands-row span {
    font-size: 16px !important;
    white-space: nowrap;
}

/* 6. Banner */
.dc-home-banner-section {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.dc-promo-banner {
    background: var(--dc-color-gray-bg);
    border-radius: var(--dc-border-radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dc-promo-image {
    width: 100%;
    height: 180px;
    background: #e9ecef;
}

.dc-promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dc-promo-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.dc-promo-left {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--dc-color-gray-border);
    margin-bottom: 24px;
}

.dc-promo-left h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 12px 0;
}

.dc-promo-left p {
    font-size: 14px;
    color: var(--dc-color-text-light);
    margin: 0 0 20px 0;
}

.dc-btn-primary {
    background: var(--dc-color-brand);
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--dc-border-radius);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.dc-promo-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dc-promo-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.dc-promo-feature-icon {
    color: var(--dc-color-brand);
}

.dc-promo-feature-icon svg { width: 24px; height: 24px; margin-bottom: 0; }

.dc-promo-feature h4 { margin: 0 0 2px 0; }

/* DESKTOP MEDIA QUERIES (Min-Width 768px & 1024px) */

@media (min-width: 768px) {
    .dc-home-hero {
        padding: 60px 20px 100px 20px;
    }
    .dc-hero-title {
        font-size: 48px;
    }
    .dc-hero-subtitle {
        font-size: 18px;
    }
    .dc-hero-vehicle-card-wrapper {
        bottom: -50px;
    }
    .dc-hero-vehicle-card {
        flex-direction: row;
        justify-content: space-between;
        padding: 24px 32px;
        text-align: left;
    }
    .dc-vehicle-card-left {
        flex-direction: row;
    }
    .dc-btn-outline {
        width: auto;
    }
    .dc-search-cards {
        grid-template-columns: 1fr 1fr;
    }
    .dc-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .dc-section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .dc-section-header h2 {
        font-size: 24px;
    }
    .dc-benefits-row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .dc-promo-banner {
        flex-direction: row;
    }
    .dc-promo-image {
        width: 40%;
        height: auto;
    }
    .dc-promo-content {
        width: 60%;
        padding: 40px;
        flex-direction: row;
    }
    .dc-promo-left {
        flex: 1;
        border-bottom: none;
        border-right: 1px solid var(--dc-color-gray-border);
        padding-bottom: 0;
        margin-bottom: 0;
        padding-right: 40px;
    }
    .dc-btn-primary {
        width: auto;
    }
    .dc-promo-features {
        flex-direction: column;
        padding-left: 40px;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .dc-home-hero {
        text-align: left;
    }
    .dc-home-hero-container {
        align-items: flex-start;
    }
    .dc-categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .dc-category-img {
        width: 100px;
        height: 100px;
    }
    .dc-benefits-row {
        flex-wrap: nowrap;
    }
    .dc-promo-features {
        flex-direction: row;
        align-items: flex-start;
    }
    .dc-promo-feature {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .dc-promo-feature-icon svg { margin-bottom: 12px; }
    .dc-brands-row {
        justify-content: space-between;
        width: 100%;
    }
    .dc-brands-row span {
        font-size: 20px !important;
    }
}
