/* O modal - fica escondido por padrão */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95); /* Fundo do modal agora é branco translúcido */
    justify-content: center;
    align-items: center;
}

/* A imagem dentro do modal */
.modal-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}


/* O botão de fechar (X) */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #141414; /* Cor escura para o botão fechar */
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--accent-color);
}

/* --- VARIÁVEIS E RESET (AGORA EM TEMA CLARO) --- */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--secundary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.section-padding2 {
    padding: 20px 0;
}

/* BOTÕES */
.btn-main {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 30px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    transition: 0.3s;
    display: inline-block;
}

.btn-main:hover {
    background: var(--accent-color);
    color: #FFFFFF; /* Texto do botão fica branco no hover */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* --- HERO COM SLIDESHOW (CORRIGIDO PARA CROSSFADE) --- */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
    overflow: hidden;
    color: #FFFFFF; /* Texto dentro do hero permanece branco para contrastar com as fotos */
}

/* Camadas de imagem configuradas para transição limpa */
#hero::before, 
#hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1.5s ease-in-out;
    z-index: -1;
}

/* Camada da imagem base */
#hero::before {
    background-image: var(--img-fundo-1);
    opacity: 1;
}

/* Camada da nova imagem que entra por cima */
#hero::after {
    background-image: var(--img-fundo-2);
    opacity: 0;
}

/* Classe controlada pelo JavaScript para fazer o crossfade */
#hero.fade-efeito::after {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente sutil escuro para garantir leitura do texto branco sobre qualquer foto */
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 2s ease-in-out;
}

.hero-content h1 {
    font-size: 80px;
    text-transform: uppercase;
    letter-spacing: 10px;
    margin: 10px 0;
    font-weight: 700;
}

.hero-content h2 {
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--accent-color);
    font-size: 18px;
}

.hero-content p {
    margin: 20px 0 40px;
    font-size: 18px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- HEADER / NAVBAR --- */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: 0.4s;
    background: transparent;
    color: #FFFFFF; /* No topo do hero, o menu começa branco */
}

#navbar2 {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 1px solid #E5E5E5;
    transition: 0.4s;
    background: rgba(255, 255, 255, 0.95);
    color: #141414;
}

/* Quando rolar a página, o menu fica branco translúcido com texto escuro */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    color: #141414;
    padding: 10px 0;
    border-bottom: 1px solid #E5E5E5;
}

.nav-container, .nav-container2 {
    display: flex; 
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span { color: var(--accent-color); }

#nav-links {
    display: flex;
    gap: 30px;
}

#nav-links a {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    transition: 0.3s;
}

#nav-links a:hover { color: var(--accent-color); }

/* Botão reserva se adapta ao fundo */
.btn-reserve {
    border: 2px solid currentColor;
    padding: 8px 20px;
    border-radius: 100px;
}

/* CORREÇÃO AQUI: Esconde o botão por padrão no computador */
.menu-toggle { 
    display: none; 
    font-size: 24px; 
    cursor: pointer; 
}

/* --- MODELOS (GRID SE ADAPTA AO BRANCO) --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h3 { color: #888; font-weight: 300; text-transform: uppercase; }
.section-title h2 { font-size: 40px; text-transform: uppercase; margin-top: 10px; color: #141414; }

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cor { color: #D4AF37; }
.cor2 { color: #555555; } 

.car-card {
    background: var(--gray-bg); /* Fundo do card agora é um cinza bem suave */
    transition: 0.4s;
    cursor: pointer;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #EAEAEA;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08); /* Sombra mais leve para fundo claro */
}

.card-image, .card-image2 {
    background-size: cover;
    background-position: center;
    transition: 0.4s;
}
.card-image { height: 250px; }
.card-image2 { height: 270px; }

.car-card:hover .card-image { transform: scale(1.1); }

.card-info { padding: 30px; text-align: center; }
.card-info2 { padding: 10px; text-align: center; }
.card-info h4 { font-size: 24px; letter-spacing: 2px; margin-bottom: 10px; color: #141414; }
.card-info p { color: #666; font-size: 14px; margin-bottom: 20px; }
.card-info a { color: var(--accent-color); font-weight: bold; font-size: 14px; }

/* --- FOOTER (TEMA CLARO ELEGANTE) --- */
footer {
    background-color: #F1F3F5; /* Fundo do rodapé cinza claro */
    padding: 80px 0 20px;
    border-top: 1px solid #E5E5E5;
    color: #333333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 { color: var(--accent-color); margin-bottom: 20px; }
.footer-col p { color: #555; font-size: 14px; }
.social a { margin-left: 15px; font-size: 20px; color: #333; transition: 0.3s; }
.social a:hover { color: var(--accent-color); }

.copyright {
    text-align: center;
    border-top: 1px solid #E5E5E5;
    padding-top: 20px;
    font-size: 12px;
    color: #777;
}

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    /* CORREÇÃO AQUI: Só ativa o botão quando a tela for de celular */
    .menu-toggle { 
        display: block; 
        color: currentColor; 
    }
    
    #nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: #FFFFFF; /* Menu mobile agora é branco */
        color: #141414;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        display: none;
        border-bottom: 1px solid #E5E5E5;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    #nav-links.active { display: flex; }
    .hero-content h1 { font-size: 40px; }
    .footer-content { flex-direction: column; text-align: center; }
}

/* --- LOGO NO HERO --- */
.logo-hero {
    max-width: 400px;
    width: 100%;     
    height: auto; 
    margin: 10px 0; 
}

@font-face {
    font-family: 'Yorkville';
    src: url('Yorkville.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --secundary-color: rgb(225, 225, 225);
    --primary-color: #FFFFFF;
    --accent-color: #D4AF37;
    --text-color: #141414;
    --gray-bg: #F8F9FA;
    --font-main: 'Yorkville', sans-serif;
}