:root {
    --primary-color: #e31d1a;
    --primary-dark: #c11614;
    --secondary-color: #1a1a1a;
    --text-color: #333333;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --accent-color: #28a745;
    --font-main: 'Outfit', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    overflow-x: hidden;
    background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.car-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    margin-bottom: 30px;
    background: white;
}

/* Header & Navbar */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    padding: 5px 0;
}

.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-link {
    font-weight: 600;
    color: var(--secondary-color) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin: 0 10px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-slider {
    position: relative;
    background-color: #f0f0f0;
}

.hero-item {
    height: 360px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

@media (max-width: 767.98px) {
    .hero-item {
        height: 240px;
    }
}

/* Search Bar */
.search-container {
    padding: 30px 0;
    background: white;
}

.search-wrapper {
    display: flex;
    align-items: stretch;
    max-width: 620px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    overflow: hidden;
    background: white;
    border: 1px solid #eee;
    padding: 5px;
}

.search-input {
    border: none;
    padding: 12px 24px;
    flex-grow: 1;
    min-width: 0;
    font-size: 1rem;
    outline: none !important;
}

.search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 58px;
    min-width: 58px;
    min-height: 48px;
    font-size: 1.05rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.02);
}

.store-home-stock-btn {
    min-height: 60px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .search-container {
        padding: 20px 0;
    }

    .search-wrapper {
        border-radius: 18px;
        padding: 6px;
        gap: 6px;
    }

    .search-input {
        padding: 13px 12px;
        font-size: 0.95rem;
    }

    .store-home-stock-btn {
        min-height: 48px;
        width: 100%;
    }
}

/* Brands Section */
.brand-box {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brand-box:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.brand-box img {
    max-width: 40px;
    margin-bottom: 6px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-box:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-box span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Car Cards */
.car-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    margin-bottom: 30px;
    background: white;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.car-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 4px 15px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(227, 29, 26, 0.3);
}

.car-img-wrapper {
    position: relative;
    padding-top: 66%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
}

.car-card:hover .car-img-wrapper {
    transform: scale(1.05);
}

.car-info {
    padding: 25px;
    position: relative;
    z-index: 1;
    background: white;
}

.car-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.car-title img {
    width: 20px;
    margin-right: 10px;
}

.car-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

.car-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 15px;
}

.car-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.car-price-old {
    font-size: 0.8rem;
    text-decoration: line-through;
    color: #999;
}

.car-price-new {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.btn-ver-mais {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-ver-mais:hover {
    background: var(--primary-color);
    color: white;
}

/* CTA Sections */
.cta-box {
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 30px;
    color: white;
    margin-bottom: 30px;
    background-position: center;
    background-size: cover;
}

.cta-box.venda {
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28)), url('images/venda-seu-carro-aperto-maos.png');
}

.cta-box.financie {
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28)), url('images/financie-seu-sonho-chave.png');
}

.cta-content h3 {
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.btn-cta {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    margin-top: 15px;
}

/* Testimonials */
.testimonials-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    color: white;
}

.testimonial-card {
    background: white;
    color: var(--text-color);
    padding: 30px;
    border-radius: 12px;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-user img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-user span {
    font-weight: 700;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    font-weight: 800;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Footer */
footer {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: #666;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin-left: 15px;
}

.footer-links a:hover {
    color: var(--primary-color);
}
