/* ===== HOME.CSS - PÁGINA INICIAL ===== */

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a15 100%);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 8s ease;
}

.hero-section:hover .hero-bg-image {
    transform: scale(1.05);
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--branco);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title .highlight {
    color: var(--verde-secundario);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(63, 166, 106, 0.3);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* ===== SEÇÃO CARROS EM DESTAQUE ===== */
.featured-cars {
    padding: 80px 5%;
    background: var(--branco);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-block;
    background: rgba(15, 107, 58, 0.1);
    color: var(--verde-primario);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--preto);
    margin-bottom: 15px;
}

.section-title .highlight {
    color: var(--verde-primario);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--cinza);
    line-height: 1.6;
}

/* Grid de carros */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 40px;
}

/* Botão ver mais */
.ver-mais {
    text-align: center;
    margin-top: 20px;
}

.ver-mais .btn {
    padding: 14px 40px;
    font-size: 1rem;
    text-decoration: none;
}

/* ===== SEÇÃO SOBRE NÓS ===== */
.about-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content {
    animation: fadeInLeft 0.8s ease-out;
}

.section-label {
    display: inline-block;
    background: rgba(15, 107, 58, 0.1);
    color: var(--verde-primario);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--preto);
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-title .highlight {
    color: var(--verde-primario);
}

.about-subtitle {
    font-size: 1rem;
    color: var(--cinza);
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Grid de valores */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.value-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--branco);
    border-radius: var(--borda-raio);
    box-shadow: var(--sombra);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-forte);
}

.value-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--verde-primario), var(--verde-secundario));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--branco);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.value-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--preto);
}

.value-content p {
    font-size: 0.85rem;
    color: var(--cinza);
    line-height: 1.4;
}

/* Botões da secção sobre */
.about-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Lado direito - visual */
.about-visual {
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

.visual-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.company-image-container {
    position: relative;
    border-radius: var(--borda-raio);
    overflow: hidden;
    box-shadow: var(--sombra-forte);
}

.company-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.company-image-container:hover .company-image {
    transform: scale(1.05);
}

.company-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15, 107, 58, 0.9));
    padding: 25px;
    color: var(--branco);
}

.company-overlay h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.company-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Mapa */
.map-container {
    position: relative;
    border-radius: var(--borda-raio);
    overflow: hidden;
    box-shadow: var(--sombra);
}

.map-iframe {
    width: 100%;
    height: 250px;
    border: none;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.map-overlay p {
    color: var(--branco);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-overlay i {
    color: var(--verde-secundario);
}

/* Estatísticas */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    padding: 50px;
    background: linear-gradient(135deg, var(--verde-primario), var(--verde-secundario));
    border-radius: 20px;
    text-align: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--branco);
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}


/* ===== SEÇÃO VEÍCULOS VENDIDOS ===== */
.sold-cars-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Badge especial para vendidos na home - Fundo escuro com texto VERMELHO */
.sold-car-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.85);
    color: #dc3545;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sold-car-badge i {
    color: #dc3545;
    margin-right: 4px;
}

/* Overlay de VENDIDO na imagem - Texto VERMELHO com fundo escuro */
.sold-overlay-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(0, 0, 0, 0.85);
    color: #dc3545;
    font-size: 1.2rem;
    font-weight: 800;
    padding: 6px 20px;
    border-radius: 40px;
    text-transform: uppercase;
    letter-spacing: 3px;
    z-index: 4;
    pointer-events: none;
    white-space: nowrap;
    border: 2px solid #dc3545;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Badge de data de venda */
.sold-date {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #ddd;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 500;
    z-index: 3;
    backdrop-filter: blur(4px);
}

.sold-date i {
    color: #dc3545;
    margin-right: 4px;
}

/* Cor diferente para o badge de condição quando vendido - Texto VERMELHO */
.sold-cars-section .car-tipo-badge {
    background: rgba(0, 0, 0, 0.85) !important;
    color: #dc3545 !important;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.sold-cars-section .car-tipo-badge i {
    color: #dc3545;
    margin-right: 5px;
}

/* Responsivo */
@media (max-width: 768px) {
    .sold-overlay-card {
        font-size: 0.8rem;
        padding: 4px 12px;
        letter-spacing: 2px;
    }
    
    .sold-date {
        font-size: 0.55rem;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .sold-overlay-card {
        font-size: 0.7rem;
        padding: 3px 10px;
        letter-spacing: 1px;
    }
}



/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    .section-title {
        font-size: 2rem;
    }
    .about-title {
        font-size: 2rem;
    }
    .cars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
    .stats-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px;
    }
    .stat-number {
        font-size: 2rem;
    }
    .about-cta {
        flex-direction: column;
    }
    .about-cta .btn {
        width: 100%;
        justify-content: center;
    }
    .map-overlay {
        position: static;
        flex-direction: column;
        background: var(--verde-primario);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
    .hero-badge {
        font-size: 0.7rem;
        padding: 8px 16px;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .company-image {
        height: 200px;
    }
}