/* ==========================================================================
   Variáveis Globais e Reset
   ========================================================================== */
:root {
    --color-primary: #0056b3;
    --color-secondary: #004494;
    --color-accent: #25D366; /* Verde WhatsApp */
    --color-dark: #333333;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-text-body: #555555;
    --color-border: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-text-body);
    background-color: var(--color-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Tipografia e Botões
   ========================================================================== */
h1, h2, h3, h4 {
    color: var(--color-dark);
    line-height: 1.2;
}

.btn-primary, .btn-secondary, .btn-outline, .btn-whatsapp {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--color-secondary);
}

.btn-secondary {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

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

.btn-whatsapp {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-whatsapp:hover {
    background-color: #20bd5a;
}

/* ==========================================================================
   Cabeçalho (Header)
   ========================================================================== */
.site-header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--color-dark);
}

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

/* ==========================================================================
   Carrossel Principal (Hero Section)
   ========================================================================== */
.hero-slider {
    width: 100%;
    height: 450px;
    background-color: var(--color-dark);
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.slide-caption {
    position: absolute;
    text-align: center;
    color: var(--color-white);
    z-index: 10;
    max-width: 600px;
    padding: 20px;
}

.slide-caption h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.slide-caption p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* ==========================================================================
   Sessões Gerais
   ========================================================================== */
section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* ==========================================================================
   Grid de Produtos (Seminovos)
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 2;
}

.product-badge.highlight {
    background-color: #ffc107;
    color: var(--color-dark);
}

.product-image {
    height: 250px;
    background-color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-height: 100%;
    object-fit: contain;
}

.product-content {
    padding: 20px;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 0.9rem;
    margin-bottom: 15px;
    height: 45px;
    overflow: hidden;
}

.product-price {
    margin-bottom: 20px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: 10px;
}

.current-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--color-primary);
}

.product-card .btn-primary {
    width: 100%;
}

.view-all-action {
    text-align: center;
}

/* ==========================================================================
   Grid de Serviços (Assistência)
   ========================================================================== */
.services-section {
    background-color: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    background-color: var(--color-white);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.service-title {
    margin-bottom: 15px;
}

.service-desc {
    margin-bottom: 25px;
}

/* ==========================================================================
   Diferenciais (Features)
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
}

.feature-item {
    padding: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

/* ==========================================================================
   Rodapé (Footer)
   ========================================================================== */
.site-footer {
    background-color: var(--color-dark);
    color: #cccccc;
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Torna a logo branca se for preta */
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-bottom {
    background-color: #1a1a1a;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsividade (Media Queries)
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-slider {
        height: 350px;
    }

    .slide-caption h2 {
        font-size: 1.8rem;
    }
}