/*
  JoCar Automóviles — Homepage Styles
  Hero, Car Grid, Services, CTA Banner
*/

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6) var(--space-4);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050505;
    background-image: url('../assets/car6_g63.webp');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.7) 0%, rgba(10, 10, 12, 0.85) 50%, rgba(10, 10, 12, 1) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.hero-content .badge {
    margin-bottom: var(--space-3);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-3);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-4);
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stock Grid */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}


/* ── Services ── */
/* Services */
.bg-surface {
    background-color: var(--bg-surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
}

.service-card {
    background-color: var(--bg-surface-elevated);
    padding: var(--space-4);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
}

.service-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.1);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.15), rgba(212, 168, 67, 0.05));
    color: var(--accent-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
}

/* CTA Banner */
.cta-banner {
    position: relative;
    background: linear-gradient(135deg, var(--bg-surface-elevated) 0%, #1a1a24 100%);
    border-radius: 20px;
    padding: var(--space-5);
    text-align: center;
    overflow: hidden;
    border: 1px solid rgba(212, 168, 67, 0.15);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(212, 168, 67, 0.08) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}


/* ── Responsive Homepage ── */
@media (max-width: 768px) {
    .hero-logo {
        height: 120px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .car-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        height: 100px;
    }
}
