/* Loncin Homepage — Premium layout */
.home-page {
    background: #f4f6f8;
    overflow-x: clip;
}

/* ── Hero ── */
.home-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: #111;
}

.home-hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.home-hero-video-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.75) 100%),
        radial-gradient(ellipse 70% 50% at 80% 20%, rgba(234, 28, 38, 0.15) 0%, transparent 55%);
    z-index: 2;
}

.home-hero-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-content {
    position: relative;
    z-index: 3;
    padding: 48px 0 56px;
}

.home-hero-text {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 36px;
    padding: 0 20px;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    padding: 6px 14px;
    border: 1px solid rgba(234, 28, 38, 0.45);
    border-radius: 999px;
    background: rgba(234, 28, 38, 0.12);
}

.home-hero-badge i {
    color: #ea1c26;
    font-size: 10px;
}

.home-hero-text h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.home-hero-text p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* VIN banner */
.home-vin-banner {
    max-width: 900px;
    margin: 0 auto 32px;
    padding: 0 20px;
}

.home-vin-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 22px 28px;
}

.home-vin-card h3 {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-vin-card h3 i {
    color: #ea1c26;
}

.home-vin-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    margin: 0;
}

.home-vin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ea1c26;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(234, 28, 38, 0.4);
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
}

.home-vin-btn:hover {
    background: #c91820;
    color: #fff;
    transform: translateY(-2px);
}

/* ── Featured slider ── */
.home-slider-wrap {
    margin-top: 40px;
    padding: 24px 0 48px;
    background: linear-gradient(180deg, transparent 0%, #f4f6f8 100%);
    overflow: hidden;
}

.home-product-slider {
    max-width: min(1100px, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1400px) {
    .home-product-slider {
        max-width: min(1320px, 100%);
    }

    .home-hero {
        min-height: 580px;
    }

    .home-hero-text {
        max-width: 820px;
    }
}

@media (min-width: 1700px) {
    .home-product-slider {
        max-width: min(1560px, 100%);
    }
}

@media (min-width: 2100px) {
    .home-product-slider {
        max-width: min(1800px, 100%);
    }
}

.home-product-slider .slick-list {
    overflow: visible;
}

.home-slide-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #eeeeee;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    padding: 32px 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    margin: 0 12px;
    min-height: 320px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.home-slide-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.home-slide-info h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.home-slide-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ea1c26;
    margin-bottom: 12px;
}

.home-slide-info p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 24px;
}

.home-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ea1c26;
    color: #fff;
    padding: 13px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(234, 28, 38, 0.3);
    transition: background 0.2s, transform 0.2s;
}

.home-shop-btn:hover {
    background: #c91820;
    color: #fff;
    transform: translateY(-2px);
}

.home-slide-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    background: linear-gradient(145deg, #f8fafc, #eef2f7);
    border-radius: 14px;
    padding: 20px;
}

.home-slide-image img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.08));
}

/* Slider arrows */
.home-product-slider .slick-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ea1c26 !important;
    border: none;
    z-index: 10;
    transition: transform 0.2s, background 0.2s;
}

.home-product-slider .slick-arrow:hover {
    background: #c91820 !important;
    transform: translateY(-50%) scale(1.05);
}

.home-product-slider .slick-arrow:before {
    font-family: 'FontAwesome';
    font-size: 20px;
    opacity: 1;
    color: #fff !important;
}

.home-product-slider .slick-prev {
    left: -8px;
}

.home-product-slider .slick-next {
    right: -8px;
}

.home-product-slider .slick-prev:before {
    content: '\f104';
}

.home-product-slider .slick-next:before {
    content: '\f105';
}

.home-product-slider .slick-slide {
    opacity: 0.45;
    transform: scale(0.94);
    transition: opacity 0.35s, transform 0.35s;
}

.home-product-slider .slick-current {
    opacity: 1;
    transform: scale(1);
}

/* ── Models section ── */
.home-models-section {
    padding: 64px 0 72px;
    background: #f4f6f8;
}

.home-section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.home-section-head span {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ea1c26;
    margin-bottom: 10px;
}

.home-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
    letter-spacing: -0.03em;
}

.home-section-head p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.home-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

.home-model-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eeeeee;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, border-color 0.3s;
}

.home-model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(234, 28, 38, 0.12);
    border-color: rgba(234, 28, 38, 0.25);
    color: inherit;
}

.home-model-card-image {
    position: relative;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding: 24px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-model-card-image img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    transition: transform 0.35s;
}

.home-model-card:hover .home-model-card-image img {
    transform: scale(1.05);
}

.home-model-card-body {
    padding: 18px 20px 22px;
    border-top: 1px solid #f1f5f9;
}

.home-model-card-body h3 {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin: 0 0 8px;
    line-height: 1.4;
}

.home-model-card-action {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ea1c26;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Features (original box style) ── */
.home-features {
    padding: 48px 0 72px;
    background: #f4f6f8;
}

.home-features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.home-feature-box {
    background: #fff;
    min-height: 200px;
    text-align: center;
    padding: 36px 20px 28px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

.home-feature-box i {
    display: block;
    font-size: 2rem;
    color: #111;
    margin-bottom: 16px;
}

.home-feature-box h5 {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 0 0 10px;
}

.home-feature-box p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
    padding: 0 8px;
}

/* ── Responsive ── */
@media (min-width: 1700px) {
    .home-features-row {
        max-width: 1400px;
        margin: 0 auto;
    }

    .home-feature-box {
        min-height: clamp(200px, 14vw, 240px);
        padding: clamp(28px, 2vw, 40px) 24px;
    }
}

@media (max-width: 991px) {
    .home-models-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-hero {
        min-height: auto;
    }

    .home-slide-card {
        grid-template-columns: 1fr;
        padding: 24px;
        text-align: center;
    }

    .home-slide-image {
        order: -1;
        min-height: 200px;
    }

    .home-shop-btn {
        margin: 0 auto;
    }

    .home-features-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-product-slider .slick-prev {
        left: 4px;
    }

    .home-product-slider .slick-next {
        right: 4px;
    }
}

@media (max-width: 576px) {
    .home-slider-wrap {
        padding: 18px 0 72px;
        overflow: hidden;
    }

    .home-product-slider {
        width: 100%;
        padding: 0 10px;
    }

    .home-product-slider .slick-list {
        overflow: hidden;
    }

    .home-slide-card {
        margin: 0 4px;
        padding: 18px;
        gap: 18px;
        min-height: 0;
    }

    .home-product-slider .slick-arrow {
        top: auto !important;
        bottom: -50px;
        width: 36px;
        height: 36px;
        transform: none;
    }

    .home-product-slider .slick-arrow:hover {
        transform: scale(1.05);
    }

    .home-product-slider .slick-arrow::before {
        font-size: 16px;
    }

    .home-product-slider .slick-prev {
        left: calc(50% - 42px);
    }

    .home-product-slider .slick-next {
        left: calc(50% + 6px);
        right: auto;
    }

    .home-vin-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .home-vin-card h3 {
        justify-content: center;
    }

    .home-features-row {
        grid-template-columns: 1fr;
    }

    .home-feature-box {
        min-height: auto;
        padding: 28px 20px;
    }

    .home-models-grid {
        grid-template-columns: 1fr;
    }

    .home-product-slider .slick-slide {
        opacity: 1;
        transform: none;
    }
}

/* ── VIN Search Modal ── */
.home-vin-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.home-vin-modal.open {
    opacity: 1;
    visibility: visible;
}

.home-vin-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.home-vin-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    animation: vinModalIn 0.3s ease;
}

@keyframes vinModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.home-vin-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
}

.home-vin-modal-close:hover {
    color: #ea1c26;
}

.home-vin-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.home-vin-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ea1c26, #ff4b55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(234, 28, 38, 0.3);
}

.home-vin-modal-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
}

.home-vin-modal-header p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.home-vin-modal-form label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #334155;
    margin-bottom: 8px;
}

.home-vin-input-row {
    display: flex;
    gap: 10px;
}

.home-vin-modal-form input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    font-size: 15px;
    font-family: monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #f8fafc;
    outline: none;
}

.home-vin-modal-form input:focus {
    border-color: #ea1c26;
    box-shadow: 0 0 0 3px rgba(234, 28, 38, 0.1);
    background: #fff;
}

.home-vin-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ea1c26;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.home-vin-search-btn:hover {
    background: #c91820;
}

.home-vin-search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.home-vin-modal-form small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #94a3b8;
}

.home-vin-error {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fef2f2;
    color: #b91c1c;
    border-radius: 12px;
    border-left: 3px solid #ea1c26;
    font-size: 13px;
}

.home-vin-loading {
    text-align: center;
    padding: 24px;
    color: #64748b;
    font-size: 14px;
}

.home-vin-results {
    margin-top: 20px;
}

.home-vin-results-head {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eeeeee;
}

.home-vin-results-head h3 {
    font-size: 16px;
    color: #111;
    margin: 0 0 4px;
}

.home-vin-results-head p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.home-vin-record {
    background: #f8fafc;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}

.home-vin-record-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.home-vin-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #e0e7ff;
    color: #3730a3;
}

.home-vin-flag {
    font-size: 11px;
    font-weight: 600;
    color: #b91c1c;
    background: #fee2e2;
    padding: 4px 10px;
    border-radius: 999px;
}

.home-vin-record-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.home-vin-record-grid label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 2px;
}

.home-vin-record-grid span {
    font-size: 13px;
    color: #111;
    font-weight: 500;
}

.home-vin-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-approved { background: #dcfce7; color: #166534; }
.status-rejected { background: #fee2e2; color: #b91c1c; }
.status-shipped { background: #dbeafe; color: #1e40af; }

.home-vin-desc label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 4px;
}

.home-vin-desc p {
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    margin: 0 0 10px;
    white-space: pre-wrap;
}

.home-vin-meta {
    font-size: 11px;
    color: #94a3b8;
}

@media (max-width: 576px) {
    .home-vin-modal-dialog {
        padding: 24px 18px;
    }

    .home-vin-input-row {
        flex-direction: column;
    }

    .home-vin-search-btn {
        width: 100%;
        height: 44px;
        justify-content: center;
    }

    .home-vin-record-grid {
        grid-template-columns: 1fr;
    }
}
