@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

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

/* Header */
.header {
    height: 10vh;
    background: #000000;
    color: white;
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 200px;
}

/* Se quiser remover o sublinhado do link */
.logo a {
    text-decoration: none;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav a:hover {
    color: #FC0501;
}

/* Menu Hamburguer */
.hamburguer {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    background: transparent;
    border: none;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburguer Animation */
.hamburguer.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburguer.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburguer.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Menu Mobile */
@media (max-width: 768px) {
    .hamburguer {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #000000;
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease-in-out;
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        list-style: none;
    }

    .nav ul li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease;
    }

    .nav.active ul li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav.active ul li:nth-child(1) {
        transition-delay: 0.2s;
    }

    .nav.active ul li:nth-child(2) {
        transition-delay: 0.3s;
    }

    .nav.active ul li:nth-child(3) {
        transition-delay: 0.4s;
    }

    .nav.active ul li:nth-child(4) {
        transition-delay: 0.5s;
    }

    .nav a {
        font-size: 1.5rem;
        padding: 15px 30px;
        display: block;
        transition: color 0.3s ease;
        color: white;
        text-decoration: none;
    }

    .nav a:hover {
        color: #FC0501;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
    }

    /* Ajuste do header para mobile */
    .header {
        height: auto;
        min-height: 100px;
        padding: 10px 0;
    }

    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }

    .logo {
        z-index: 1002;
    }

    .logo-img {
        height: 60px;
        width: auto;
        max-width: 200px;
    }

    /* Esconder menu desktop no mobile */
    .nav:not(.active) ul {
        display: none;
    }
}

/* Menu Desktop */
@media (min-width: 769px) {
    .hamburguer {
        display: none !important;
    }
    
    .nav {
        display: block !important;
    }
    
    .nav ul {
        display: flex;
        list-style: none;
        gap: 20px;
    }
    
    .nav a {
        color: white;
        text-decoration: none;
        transition: color 0.3s;
    }
    
    .nav a:hover {
        color: #FC0501;
    }
}

/* Benefícios - Atualizado */
.beneficios {
    height: auto;
    min-height: 90vh;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%), 
                url('https://mlqt0se4pk9p.i.optimole.com/q:85/https://www.autodata.com.br/wordpress/wp-content/uploads//2024/02/Hyundai-inaugura-concessionaria-na-ilha-de-Florianopolis-SC-3-scaled.jpg') center/cover;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
    position: relative;
}

.beneficios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.beneficios-content {
    position: relative;
    z-index: 2;
}

.beneficios-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.beneficios-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.beneficios-lista {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.beneficios-lista h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #fff;
}

.beneficios-lista ul {
    list-style: none;
    text-align: left;
}

.beneficios-lista li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    padding: 8px 0;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #000000;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

/* Responsivo para Benefícios */
@media (max-width: 768px) {
    .beneficios-content h2 {
        font-size: 2rem;
    }
    
    .beneficios-lista {
        padding: 20px;
        margin: 30px 20px;
    }
    
    .beneficios-lista li {
        font-size: 1rem;
    }
    
    .check-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
        margin-right: 12px;
    }
}

@media (max-width: 480px) {
    .beneficios-content h2 {
        font-size: 1.8rem;
    }
    
    .beneficios-content p {
        font-size: 1rem;
    }
    
    .beneficios-lista {
        padding: 15px;
    }
    
    .beneficios-lista h3 {
        font-size: 1.3rem;
    }
    
    .beneficios-lista li {
        font-size: 0.9rem;
    }
}

/* Grid de Carros */
.carros-grid {
    padding: 50px 0;
    background: #f8f9fa;
}

.grid-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #2c3e50;
}

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

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    /*transition: transform 0.3s;*/
}

/*.card:hover {
    transform: translateY(-5px);
}*/

/* Container para imagem do card - CORRIGIDO */
.card-img-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* CORRIGIDO: contain para mostrar imagem completa */
    padding: 10px;
}

.card-content {
    padding: 20px;
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.card .motor {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.card .info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.card .preco {
    font-size: 1.5rem;
    font-weight: bold;
    color: #27ae60;
    margin: 15px 0;
}

.btn-ver-mais {
    display: inline-block;
    background: #FC0501;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    width: 100%;
    text-align: center;
}

.btn-ver-mais:hover {
    background: #000000;
}

/* Footer */
.footer {
    background: #000000;
    color: white;
    padding: 40px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    color: #FC0501;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid white;
}

/* Página de Detalhes */
.detalhes-container {
    padding: 50px 0;
}

/* Página de Detalhes - Carrossel Atualizado */
.carrossel {
    width: 100%;
    margin: 0 auto;
    height: 350px;
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    margin-top: 80px;
}

.carrossel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carrossel-item {
    flex: 0 0 33.333%;
    height: 100%;
    padding: 0 5px;
    box-sizing: border-box;
}

.carrossel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* CORRIGIDO: contain para mostrar imagem completa */
    border-radius: 8px;
    display: block;
    background: #f8f9fa;
    padding: 5px;
}

.carrossel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s;
}

.carrossel-btn:hover {
    background: rgba(0,0,0,0.9);
}

.prev { left: 20px; }
.next { right: 20px; }

.carrossel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carrossel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.carrossel-indicator.active {
    background: white;
}

/* Remove scroll horizontal */
body {
    overflow-x: hidden;
}

.detalhes-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.detalhes-header {
    margin-bottom: 30px;
}

.detalhes-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.detalhes-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.info-item {
    text-align: center;
}

.info-item h3 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
}

.detalhes-descricao {
    margin-top: 30px;
}

.detalhes-descricao h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Responsivo para o carrossel */
@media (max-width: 768px) {
    .carrossel-item {
        flex: 0 0 50%;
    }
    
    .carrossel {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .carrossel-item {
        flex: 0 0 100%;
    }
    
    .carrossel {
        height: 250px;
    }
    
    .carrossel-btn {
        padding: 10px 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .footer {
        background: #000000;
        color: white;
        padding: 40px 10px 20px;
    }
}

/* Responsivo geral */
@media (max-width: 768px) {
    .beneficios {
        height: auto;
        padding: 60px 0;
    }
    
    .beneficios-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 320px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Prevenir scroll quando menu está aberto */
body.menu-open {
    overflow: hidden;
}

/* Página de Veículos */
.veiculos-page {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #2c3e50;
}

.veiculos-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar de Filtros */
.filtros-sidebar {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.filtros-sidebar h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #FC0501;
    padding-bottom: 10px;
}

.filtro-group {
    margin-bottom: 20px;
}

.filtro-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.filtro-group select,
.filtro-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-inputs input {
    flex: 1;
}

.range-inputs span {
    color: #666;
    font-size: 12px;
}

.btn-aplicar-filtros {
    width: 100%;
    background: #FC0501;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 10px;
    transition: background 0.3s;
}

.btn-aplicar-filtros:hover {
    background: #000000;
}

.btn-limpar-filtros {
    display: block;
    text-align: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.btn-limpar-filtros:hover {
    color: #333;
}

/* Conteúdo Principal */
.veiculos-content {
    flex: 1;
}

.results-info {
    background: white;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.results-info p {
    margin: 0;
    font-weight: 600;
    color: #2c3e50;
}

/* Grid de Veículos (mantém o mesmo estilo do index) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Paginação */
.paginacao {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagina-btn,
.pagina-atual {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.pagina-btn:hover {
    background: #000000;
    color: white;
    border-color: #000000;
}

.pagina-atual {
    background: #FC0501;
    color: white;
    border-color: #FC0501;
}

/* Sem resultados */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-results p {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
}

/* Responsivo */
@media (max-width: 1024px) {
    .veiculos-layout {
        grid-template-columns: 250px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .veiculos-layout {
        grid-template-columns: 1fr;
    }
    
    .filtros-sidebar {
        position: static;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .paginacao {
        flex-wrap: wrap;
    }
}

/* Botão do WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-link:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-link i {
    font-size: 32px;
    color: white;
}

/* Animação de pulsar */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Responsivo para o botão do WhatsApp */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-link {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-link i {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-link {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-link i {
        font-size: 24px;
    }
}

/* Lightbox Styles - ATUALIZADO */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    position: relative;
}

#lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #bbb;
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 20px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10000;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Indicador de imagem no lightbox */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 10000;
}

/* Responsivo para Lightbox */
@media (max-width: 768px) {
    .lightbox-btn {
        width: 50px;
        height: 50px;
        padding: 15px;
        font-size: 20px;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 25px;
        font-size: 35px;
    }
    
    .lightbox-counter {
        font-size: 16px;
        padding: 6px 12px;
    }
}