/* VARIÁVEIS GLOBAIS (Melhor para manutenção) */
:root {
    --color-primary: #E63946; 
    --color-secondary: #457B9D; 
    --color-background: #bec0ab; 
    --color-text-dark: #1D3557; 
    --font-family: 'Poppins', sans-serif;
    --spacing-sm: 15px;
    --spacing-md: 30px;
}

/* RESET e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--color-background);
    color: var(--color-text-dark);
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

h1, h2 {
    color: var(--color-text-dark);
    font-weight: 700;
}

/* UTILITÁRIOS DE DESTAQUE */
h1 strong, .logo strong {
    color: var(--color-primary);
}

/* BOTÕES MODERNOS */
.btn-primary-lg, .btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border: 2px solid transparent;
}

.btn-primary-lg {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.4);
    width: 100%; 
}
.btn-primary-lg:hover {
    background-color: #CC2936;
    transform: translateY(-2px);
}

.btn-secondary {
    background: none;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}
.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: white;
}

/* HEADER (Mobile-First) */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.6rem;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-dark);
    transition: 0.3s;
}

.main-nav {
    /* Menu lateral deslizando no mobile */
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background-color: #F2F1EE;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 20;
    padding-top: 80px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.main-nav hover{
    color: #CC2936;

}

.main-nav.active {
    transform: translateX(0);
}

.main-nav ul {
    list-style: none;
}

.main-nav a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-text-dark);
    border-bottom: 1px solid #eee;
}

.btn-cta-nav {
    background-color: var(--color-primary);
    color: white !important;
    text-align: center;
    margin: 15px;
    border-radius: 6px;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: #F2F1EE;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.6rem;
    display: flex; /* Para alinhar a imagem e o texto YOU CAR */
    align-items: center; /* Centraliza verticalmente a imagem e o texto */
    gap: 8px; /* Espaçamento entre a imagem e o texto */
}

/* Estilo para a imagem dentro da div.logo */
.logo img {
    height: 35px; /* Altura fixa para a imagem do logo no mobile */
    width: auto; /* Mantém a proporção da imagem */
    /* Se a imagem for um ícone, você pode usar width/height fixos iguais */
    /* width: 35px; */ 
}

.hero-search {
    padding: 60px var(--spacing-md) 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--color-background), #FFFFFF); /* Degradê suave */
}

.hero-search-container {
    display: flex; 
    flex-direction: column; 
    gap: var(--spacing-md); 
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.hero-content {
    margin-bottom: var(--spacing-md); 
    text-align: center; 
}

.hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 10px; /
}
.hero-content h3 { 
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-secondary);
    margin-bottom: 20px;
}
.hero-content p {
    color: #444; 
    margin-bottom: 15px; 
}

.hero-image-wrapper {
    width: 90%; 
    max-width: 400px; 
}
.hero-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.search-widget {
    background-color: white;
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-top: var(--spacing-md); 
}

.search-widget h2 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.input-group {
    margin-bottom: var(--spacing-sm);
    text-align: left;
}
.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
}
.search-widget input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

/* Estilo do Toggle (Moderno) */
.input-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 20px 0;
    font-size: 0.9rem;
}
.input-toggle input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.3);
    accent-color: var(--color-secondary); 
}


/* SEÇÃO FROTA */
.section-frota, .section-diferenciais {
    padding: 60px var(--spacing-md);
    text-align: center;
}
.subtitle {
    margin-bottom: var(--spacing-md);
    color: #666;
}

.carousel {
    display: flex;
    overflow-x: scroll; 
    scroll-snap-type: x mandatory;
    margin-bottom: var(--spacing-md);
    padding-bottom: 20px;
}
.car-card {
    flex: 0 0 75%; 
    scroll-snap-align: start;
    margin-right: var(--spacing-sm);
    background-color: white;
    border-radius: 10px;
    padding: var(--spacing-sm);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: left;
}
.car-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}
.price {
    display: block;
    color: var(--color-primary);
    font-weight: 700;
    margin-top: 5px;
}

/* DIFERENCIAIS GRID */
.diferencial-grid {
    display: grid;
    gap: var(--spacing-sm);
    grid-template-columns: 1fr; 
    text-align: center;
}
.diferencial-grid .item {
    background-color: white;
    padding: var(--spacing-md);
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

/* DIFERENCIAIS GRID - ajuste de ícones */
.diferencial-grid .item img {
    width: 60px; /* Tamanho dos ícones */
    height: 60px;
    margin-bottom: 15px;
}

.diferencial-grid h3 {
    margin: 10px 0 5px;
}


/* FOOTER */
.main-footer {
    background-color: var(--color-text-dark);
    color: var(--color-background);
    padding: 40px var(--spacing-md) 10px;
}
.footer-grid {
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: 1fr; /* Coluna única no mobile */
}
.footer-grid h3 {
    color: var(--color-secondary);
    margin-bottom: 15px;
}
.footer-grid ul {
    list-style: none;
}
.footer-grid li a {
    color: var(--color-background);
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* ESTILOS PARA OS ÍCONES SOCIAIS */
.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--color-background); /* Ícones brancos/claros no fundo escuro */
    font-size: 1.8rem;
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    color: var(--color-primary); /* Vermelho YouCar no hover */
    transform: scale(1.1);
}

/* Estilo específico para o WhatsApp, se quiser destacar */
.social-icons .fa-whatsapp {
    /* Opcional: manter o verde padrão do WhatsApp, ou usar a cor da marca */
    /* color: #25D366; */ 
}

.copyright-bar {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    margin-top: 30px;
    font-size: 0.8rem;
}
.copyright-bar a {
    color: var(--color-primary);
}


/* MEDIA QUERY (Desktop - Acima de 768px) */
@media (min-width: 768px) {
    .main-header {
        padding: 20px 50px;
    }
    .menu-toggle {
        display: none; /* Esconde o hambúrguer no desktop */
    }
    .main-nav {
        position: static;
        width: auto;
        height: auto;
        transform: translateX(0);
        box-shadow: none;
        padding-top: 0;
    }
    .main-nav ul {
        display: flex;
        gap: 25px;
    }
    .main-nav a {
        padding: 0;
        border-bottom: none;
    }
    .btn-cta-nav {
        margin: 0;
    }

    .logo {
        font-size: 2rem; /* Aumenta um pouco o tamanho do texto no desktop */
        gap: 10px;
    }
    .logo img {
        height: 45px; /* Aumenta a altura da imagem para desktop */
        /* width: 45px; */
    }
    
    .hero-search {
        padding: 80px 50px;
        display: block;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .hero-search-container {
        flex-direction: row; /* Lado a lado no desktop */
        text-align: left; /* Alinha o texto à esquerda */
        max-width: 1200px; /* Largura máxima para o conteúdo */
        margin: 0 auto var(--spacing-md) auto; /* Centraliza e adiciona margem inferior */
    }

    .hero-content {
        flex: 1;
        margin-right: 50px;
        text-align: left;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-image-wrapper {
        flex: 1; /* A imagem também ocupa espaço */
        max-width: 50%; /* Limita a largura da imagem */
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .search-widget {
        flex: 0 0 400px; /* Largura fixa para o widget no desktop */
    }

    .hero-search {
        display: flex;
        flex-direction: column; /* Coloca o container e o widget em colunas */
        align-items: center; /* Centraliza os itens */
    }
    .search-widget {
        max-width: 500px; /* Limita a largura do widget de busca */
        width: 100%; /* Garante que ele seja responsivo dentro do max-width */
        margin-top: 50px; /* Espaçamento maior entre o hero e o widget de busca */
    }

    .btn-primary-lg {
        width: auto;
        padding: 15px 40px;
        display: block;
    }

    .carousel {
        overflow-x: hidden; /* Não precisa de scroll horizontal */
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    .car-card {
        flex: auto;
        scroll-snap-align: none;
        margin-right: 0;
    }

    .diferencial-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1.5fr;
        max-width: 1100px;
        margin: 0 auto 30px;
    }
}