/* ==========================================================
   Homepage — اتو دکتر
   ========================================================== */

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(21,20,25,0.45) 0%, rgba(21,20,25,0.55) 45%, rgba(21,20,25,0.88) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem var(--spacing-lg);
}

.hero-content {
    color: var(--text-light);
    display: block;
    padding: 0;
}

.hero-subtitle {
    display: block;
}

.hero-subtitle::before {
    display: none;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.4rem;
}

.hero-tagline::before,
.hero-tagline::after {
    content: '';
    width: 36px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-color);
    opacity: 0.6;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 0.9rem;
    color: var(--text-light);
    font-weight: 900;
}

.hero-content h1 .text-gradient {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 0.7rem;
    color: var(--accent-color);
    font-weight: 800;
}

.hero-desc {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 520px;
    margin: 0 auto 2.4rem;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.05rem 2.1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1.05rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: 0 8px 24px rgba(245,110,15,0.35);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.32), transparent);
    transform: skewX(-20deg);
    animation: shineSweep 3.2s ease-in-out infinite;
}

@keyframes shineSweep {
    0% {
        left: -80%;
    }
    60%,
    100% {
        left: 140%;
    }
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(245,110,15,0.5);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(-5px);
}

.btn-secondary {
    background: rgba(251,251,251,0.1);
    color: var(--text-light);
    border-color: rgba(251,251,251,0.6);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-color);
    border-color: var(--text-light);
    transform: translateY(-3px);
}

.hero-trust {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(251,251,251,0.9);
    font-size: 0.88rem;
}

.hero-trust i {
    color: var(--accent-color);
}

/* ---------- Home section headers ---------- */
.home-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.home-section-header .section-label {
    display: inline-block;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    background: rgba(245,110,15,0.1);
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.home-section-header h2 {
    font-size: 2.4rem;
    color: var(--primary-color);
    font-weight: 800;
    margin: 0;
}

.home-section-header p {
    color: #878787;
    font-size: 1.05rem;
    margin-top: 0.6rem;
}

/* Section background rhythm */
.car-slider-section {
    background: rgba(21,20,25,0.035);
}

.features-section {
    background: rgba(21,20,25,0.035);
}

.car-slider-section .section-header {
    margin-bottom: 3rem;
}

.car-slider-section .section-header h2 {
    font-size: 2.4rem;
}

/* ---------- Categories ---------- */
.home-categories {
    padding: 5.5rem 0;
    background: #FBFBFB;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: #FBFBFB;
    border-radius: 20px;
    padding: 2.2rem 1.8rem;
    border: 1px solid rgba(21,20,25,0.07);
    box-shadow: 0 10px 28px rgba(21,20,25,0.06);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
}

.category-card--orange::before {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
}

.category-card--dark::before {
    background: linear-gradient(90deg, var(--primary-color), #262626);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 44px rgba(21,20,25,0.12);
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.4rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--text-light);
    box-shadow: 0 10px 22px rgba(245,110,15,0.3);
}

.category-card--dark .category-icon {
    background: linear-gradient(135deg, var(--primary-color), #262626);
    box-shadow: 0 10px 22px rgba(21,20,25,0.25);
}

.category-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: #878787;
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.25s ease;
}

.category-card:hover .category-link {
    gap: 0.8rem;
}



.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.stat-item span {
    color: rgba(251,251,251,0.75);
    font-size: 0.95rem;
}

/* ---------- Testimonials ---------- */
.testimonials-section {
    padding: 5.5rem 0;
    background: #FBFBFB;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: #FBFBFB;
    border-radius: 20px;
    padding: 2rem 1.8rem;
    border: 1px solid rgba(21,20,25,0.07);
    box-shadow: 0 10px 28px rgba(21,20,25,0.06);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    right: 1.4rem;
    font-size: 4.5rem;
    line-height: 1;
    color: rgba(245,110,15,0.18);
    font-weight: 900;
}

.testimonial-stars {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.testimonial-card blockquote {
    color: #262626;
    font-size: 0.95rem;
    line-height: 1.9;
    margin: 0 0 1.4rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.testimonial-author .ta-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-author strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.testimonial-author span {
    color: #878787;
    font-size: 0.8rem;
}

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    padding: 3.5rem 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-inner h2 {
    color: var(--text-light);
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.cta-inner p {
    color: rgba(251,251,251,0.9);
    font-size: 1rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.2rem;
    background: var(--text-light);
    color: var(--accent-hover);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(21,20,25,0.25);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(21,20,25,0.35);
}

/* ---------- Latest cars (redesigned) ---------- */
.car-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.car-card {
    flex: 0 0 300px;
    max-width: 300px;
    background: #FBFBFB;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(21,20,25,0.07);
    box-shadow: 0 8px 24px rgba(21,20,25,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(21,20,25,0.13);
}

.car-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.car-image {
    height: 185px;
    overflow: hidden;
    position: relative;
    background: rgba(21,20,25,0.04);
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.car-card:hover .car-image img {
    transform: scale(1.08);
}

.car-badge {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(245,110,15,0.35);
}

.car-content {
    padding: 1.2rem 1.25rem 1.3rem;
}

.car-title {
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.car-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.car-detail {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: #878787;
    background: rgba(21,20,25,0.04);
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.car-detail i {
    color: var(--accent-color);
    width: 14px;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.car-price {
    font-size: 1.15rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.car-price::before {
    content: 'قیمت: ';
    font-size: 0.8rem;
    color: #878787;
    font-weight: 400;
}

.view-details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--text-light);
    text-align: center;
    padding: 0.7rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.car-card:hover .view-details-btn {
    box-shadow: 0 8px 18px rgba(245,110,15,0.3);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 3rem 0 4rem;
        margin-top: 0;
    }

    .car-card {
        flex: 0 0 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-desc {
        font-size: 1.05rem;
    }

    .hero-trust {
        gap: 1rem 1.5rem;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-tagline {
        font-size: 0.82rem;
    }

    .car-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }

    .home-section-header h2 {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-item strong {
        font-size: 2rem;
    }
}
