/* 
==============================================
   Homepage Specific Styles (Redesign)
==============================================
*/

/* Hero Section: solid color layer + banner images at 35% opacity, rotated every 10s */
.hero-section {
    position: relative;
    padding: 6rem 0;
    text-align: center;
    color: var(--color-white);
    min-height: 380px;
    overflow: hidden;
}

.hero-banner-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-banner-solid {
    position: absolute;
    inset: 0;
    background-color: var(--color-secondary);
}

.hero-banner-slides {
    position: absolute;
    inset: 0;
}

.hero-banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hero-banner-slide.active {
    opacity: 0.35;
}

.hero-content-wrap {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-actions .btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.hero-brand-links {
    font-size: 0.95rem;
    text-align: center;
}

.hero-brand-links a {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero-brand-links a:hover {
    color: #fff;
}

.hero-brand-sep {
    opacity: 0.75;
}

/* Part Finder Section */
.part-finder-section {
    background-color: var(--color-light);
}

.part-finder-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature-card {
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-grid .card-img-top {
    height: 200px;
}

/* Recent inventory: 9 items, smaller cards */
.recent-inventory-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.recent-inventory-grid .card {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.recent-inventory-grid .card-img-top {
    height: 140px;
    object-fit: cover;
}

.recent-inventory-grid .card-body {
    padding: 0.75rem 1rem;
}

.recent-inventory-grid .card-title {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-inventory-grid .card-text {
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.recent-inventory-grid .card-actions .btn,
.recent-inventory-grid .btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

.bg-light {
    background-color: var(--color-light);
}

/* Call to Action Section */
.cta-section {
    background-color: var(--color-primary);
    text-align: center;
    color: var(--color-secondary);
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.cta-section .btn-secondary {
    background-color: var(--color-white);
    border-color: var(--color-white);
}
.cta-section .btn-secondary:hover {
    background-color: var(--color-light);
    border-color: var(--color-light);
}

/* Showroom Section */
.showroom-section {
    background-color: var(--color-light);
    padding: 4rem 0;
}

.showroom-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.showroom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.showroom-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showroom-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.showroom-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.showroom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--color-white);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.showroom-item:hover .showroom-overlay {
    transform: translateY(0);
}

.showroom-overlay h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.showroom-overlay p {
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0.9;
}

/* Responsive: Tablet */
@media (max-width: 992px) {
    .hero-section {
        min-height: 320px;
        padding: 4.5rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-content p {
        font-size: 1.15rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions .btn-lg {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }

    .part-finder-form .form-row {
        grid-template-columns: 1fr 1fr auto;
        gap: 0.75rem;
    }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .hero-section {
        min-height: 280px;
        padding: 3.5rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-actions .btn-lg {
        width: 100%;
        max-width: 280px;
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    .part-finder-form .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .part-finder-form .form-row .btn {
        width: 100%;
    }

    .showroom-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .showroom-image {
        height: 250px;
    }

    .showroom-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    }
}

/* Responsive: Small mobile */
@media (max-width: 480px) {
    .hero-section {
        min-height: 260px;
        padding: 2.5rem 0.75rem;
    }

    .hero-content h1 {
        font-size: 1.6rem;
        line-height: 1.25;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .hero-actions .btn-lg {
        max-width: 100%;
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }

    .features-grid {
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-card h3 {
        font-size: 1.25rem;
    }
}
