/**
 * Home Page Styles
 * 
 * @package Marshall_Motors
 */

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 48px;
    width: 100%;
}

.hero-title {
    font-size: clamp(40px, 6vw, 60px);
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 40px 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.hero-blurb {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    line-height: 1.7;
    margin: 0 0 36px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 16px 40px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    letter-spacing: 1.5px;
}

.hero-btn-primary {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.hero-btn-primary:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.hero-btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-btn-secondary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.hero-btn svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   How It Works Strip
   ======================================== */
.how-it-works-strip {
    background-color: var(--color-secondary);
    padding: 64px 0;
}

.hiw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0;
}

.hiw-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 0 32px;
}

.hiw-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.9;
}

.hiw-text h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    margin: 0 0 6px;
    letter-spacing: 0;
}

.hiw-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.5;
}

.hiw-divider {
    width: 1px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hiw-container {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 32px;
    }

    .hiw-divider {
        width: 60px;
        height: 1px;
        margin: 20px 0;
    }

    .hiw-item {
        padding: 0;
    }
}

/* ========================================
   Featured Section
   ======================================== */
.featured-section {
    padding: 100px 0;
    background-color: #fafbfc;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 19px;
    color: var(--color-secondary);
    margin: 0;
    opacity: 0.85;
    font-weight: 400;
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    background-color: var(--color-secondary);
    padding: 72px 0;
    color: var(--color-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.stat-item {
    text-align: center;
    padding: 20px 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 52px;
    font-weight: 700;
    color: var(--color-accent);
    margin: 0 0 10px 0;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 12px;
    color: var(--color-white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 500;
    opacity: 0.7;
}

/* ========================================
   Reviews Section
   ======================================== */
.reviews-section {
    padding: 80px 0;
    background-color: #f0f1f3;
}

.reviews-header {
    text-align: center;
    margin-bottom: 48px;
}

.reviews-source {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    margin-top: 10px;
    transition: color 0.15s ease;
}

.reviews-source:hover {
    color: #1877f2;
}

.reviews-source svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Slider */
.reviews-slider-wrap {
    position: relative;
}

.reviews-slider {
    overflow: hidden;
}

.reviews-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.4s ease;
}

.review-card {
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    margin-right: 20px;
}

.review-text {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    font-style: italic;
    flex: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.review-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

.review-badge {
    font-size: 12px;
    color: #1877f2;
    margin-top: 2px;
}

/* Controls */
.reviews-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.reviews-prev,
.reviews-next {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.reviews-prev:hover,
.reviews-next:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
}

.reviews-prev svg,
.reviews-next svg {
    width: 16px;
    height: 16px;
}

.reviews-dots {
    display: flex;
    gap: 8px;
}

.reviews-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s ease;
    border: none;
    padding: 0;
}

.reviews-dot.active {
    background: var(--color-secondary);
}


/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background-color: var(--color-accent);
    padding: 80px 48px;
    text-align: center;
}

.cta-content {
    max-width: 760px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.cta-text {
    font-size: 17px;
    color: var(--color-white);
    margin: 0 0 36px 0;
    opacity: 0.85;
    line-height: 1.6;
}

.cta-button {
    background-color: var(--color-white);
    color: var(--color-accent);
    padding: 16px 40px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    display: inline-block;
    transition: all 0.2s ease;
    letter-spacing: 1.5px;
}

.cta-button:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .cta-title {
        font-size: 32px;
    }
}
