:root {
    /* --- PALETA DE CORES: DS AUTOS (PRETO, PRATA, BRANCO) --- */
    --primary-color: #0d0d0d;
    /* Preto Profundo (Backgrounds principais) */
    --primary-dark: #000000;
    /* Preto Absoluto (Hover/Footer) */

    --secondary-color: #C0C0C0;
    /* Prata/Metálico (Detalhes e Ícones) */
    --secondary-hover: #e0e0e0;
    /* Prata Claro */

    --accent-color: #b91c1c;
    /* Vermelho (Apenas para detalhes sutis/botões de alerta se necessário, mantendo identidade) */

    --text-dark: #1a1a1a;
    /* Texto escuro para fundos brancos */
    --text-light: #ffffff;
    /* Texto claro para fundos escuros */
    --text-gray: #555555;
    /* Texto de apoio */

    --background-light: #f4f4f4;
    /* Cinza bem claro para o corpo do site (legibilidade) */
    --background-white: #ffffff;

    --font-family: "Montserrat", sans-serif;
    --header-height: 80px;

    /* --- FORMAS --- */
    --radius-card: 6px;
    /* Bordas mais retas passam mais seriedade */
    --radius-btn: 4px;
    /* Retangular */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    font-family: var(--font-family);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--background-light);
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

/* =========================================
   HEADER & NAVEGAÇÃO
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    height: var(--header-height);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    z-index: 1000;
    background-color: var(--background-white);
    /* Fundo Preto */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border-bottom: 2px solid var(--secondary-color);
    /* Linha Prata */
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo {
    transform: scale(1.05);
}

header nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
    animation: slideInFromFarRight 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

nav a:not(.whatsapp-link):hover {
    color: var(--secondary-color);
}

nav a:not(.whatsapp-link)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 2px;
    width: 0;
    background-color: var(--secondary-color);
    /* Underline Prata */
    transition: width 0.3s ease;
}

nav a:not(.whatsapp-link):hover::after {
    width: 100%;
}

/* BOTÃO WHATSAPP NO HEADER */
.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark) !important;
    background-color: #25D366;
    /* Verde WhatsApp Original */
    padding: 10px 22px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.whatsapp-link i {
    font-size: 1.3rem;
}

.whatsapp-link:hover {
    background-color: #1ebc57;
    transform: translateY(-2px);
    color: white !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.menu-toggle span {
    height: 3px;
    width: 28px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: 0.4s;
}

section[id] {
    scroll-margin-top: var(--header-height);
}

/* =========================================
   HERO SECTION (TOPO)
   ========================================= */
.hero-section {
    min-height: 90vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 5%;
    color: var(--text-light);
    position: relative;
    background-color: var(--primary-dark);
    margin-top: var(--header-height);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Gradiente Preto para Transparente sobre imagem de carro */
    background-image: linear-gradient(to right,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.7) 50%,
            rgba(0, 0, 0, 0.4) 100%),
        url('background-hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
    margin-top: -50px;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 2.5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
}

.hero-content p {
    font-size: clamp(1rem, 1vw, 1.1rem);
    margin-bottom: 35px;
    opacity: 0.95;
    font-weight: 400;
    max-width: 600px;
    color: #e0e0e0;
}

/* --- BOTÕES PADRÃO --- */
.btn {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 14px 35px;
    border-radius: var(--radius-btn);
    border: none;
    color: var(--primary-color);
    /* Texto Preto */
    background-color: var(--secondary-color);
    /* Fundo Prata */
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    background-color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Animações Hero */
.hero-content>* {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content h1 {
    animation-delay: 0.2s;
}

.hero-content p {
    animation-delay: 0.4s;
}

.hero-content .btn {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   ESTILOS GERAIS DE SEÇÃO
   ========================================= */
.services-section,
.about-us-section,
.contact-section,
.purpose-section {
    padding: 80px 5%;
    margin-bottom: 0;
    text-align: center;
}

.purpose-section p {
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

.address-section {
    padding: 80px 5%;
    margin-bottom: 0;
    text-align: center;
    background-color: var(--background-white);
}

h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    color: var(--text-gray);
    margin-bottom: 60px;
    font-size: 1.1rem;
    font-weight: 400;
}

/* =========================================
   CARDS DE SERVIÇOS
   ========================================= */
.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.service-card {
    background: white;
    border-radius: var(--radius-card);
    width: 100%;
    max-width: 340px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.service-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(20%);
    /* Estilo mais sóbrio */
}

.service-card:hover .service-card-img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.card-header-color {
    height: 4px;
    background-color: var(--primary-color);
    width: 100%;
}

.service-card-content {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

.service-description {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    flex: 1;
    line-height: 1.6;
}

.btn-card {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: var(--radius-btn);
    transition: 0.3s;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: inline-block;
}

.btn-card:hover {
    background-color: var(--primary-color);
    color: white;
}

/* =========================================
   SOBRE NÓS
   ========================================= */
.about-us-section {
    background-color: black;
    /* Fundo Preto para contraste */
    color: white;
    display: flex;
    gap: 60px;
    align-items: center;
    text-align: left;
}

.about-us-section h2 {
    color: white;
}

.about-us-section p {
    color: #cccccc;
}

.about-us-content {
    flex: 1;
}

.subtitle-about {
    color: var(--secondary-color) !important;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: block;
    text-transform: uppercase;
}

.about-us-image-container {
    flex: 1;
    position: relative;
}

.about-us-image {
    width: 90%;
    height: auto;
    border-radius: var(--radius-card);
}

/* =========================================
   PROPÓSITO (Missão/Visão/Valores)
   ========================================= */
.purpose-section {
    background-color: var(--background-white);
}

.purpose-cards-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.purpose-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: #f9f9f9;
    padding: 40px 30px;
    border-radius: var(--radius-card);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.purpose-card:hover {
    transform: translateY(-5px);
    background: white;
}

.purpose-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.purpose-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: var(--primary-color);
}

/* =========================================
   ENDEREÇO E MAPA
   ========================================= */
.address-unit a {
    font-size: 1.1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin: 20px 0;
    transition: color 0.3s;
}

.address-unit a:hover {
    color: var(--accent-color);
}

.map-container {
    max-width: 900px;
    height: 400px;
    margin: 0 auto;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 5px solid white;
}

.map-container iframe {
    width: 100%;
    display: block;
}

.hours-container {
    background-color: var(--primary-color);
    color: white;
    padding: 25px;
    border-radius: var(--radius-card);
    margin: 30px auto 10px auto;
    max-width: 500px;
    border-bottom: 4px solid var(--secondary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.hours-container h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #444;
    font-size: 1rem;
    color: #eee;
}

/* =========================================
   CONTATO
   ========================================= */
.contact-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-card);
    width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-card .btn {
    width: 100%;
    padding: 12px 0;
    background-color: var(--primary-color);
    /* Botão preto */
    color: white;
}

.contact-card .btn:hover {
    background-color: #333;
}

/* =========================================
   SOCIAL FLUTUANTE & FOOTER
   ========================================= */
.social-bar {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.social-bar a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    color: white;
    font-size: 35px;
    text-decoration: none !important;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    background-color: #25D366;
    animation: pulse 2s infinite;
}

.social-bar a:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    animation-play-state: paused;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    100% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
}

footer {
    background-color: var(--primary-color);
    color: #999;
    padding: 60px 20px 100px 20px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 300;
    border-top: 4px solid var(--secondary-color);
}

.footer-links {
    margin-bottom: 25px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* =========================================
   ELEMENTOS DE INTERFACE
   ========================================= */
#consent-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background-color: white;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-card);
    padding: 15px 30px;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-left: 5px solid var(--primary-color);
}

#consent-banner.hidden {
    display: none;
}

.consent-text a {
    color: var(--primary-color);
    font-weight: 700;
}

#accept-consent-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
}

#back-to-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 45px;
    height: 45px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Páginas Jurídicas */
.legal-content {
    max-width: 900px;
    margin: 160px auto 100px auto;
    padding: 0 5%;
}

.legal-content h1 {
    font-size: 2rem;
    color: var(--primary-color);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.legal-content p,
.legal-content li {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.alert-box {
    background-color: #fff3cd;
    color: #856404;
    padding: 20px;
    border-left: 5px solid #ffeeba;
    margin: 30px 0;
    border-radius: 5px;
}

.legal-box {
    background-color: #e2e3e5;
    padding: 20px;
    border-left: 5px solid #6c757d;
    margin: 30px 0;
    border-radius: 5px;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideInFromFarRight {
    from {
        opacity: 0;
        transform: translateX(100vw);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================================
   RESPONSIVIDADE
   ========================================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    header nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
        border-top: 1px solid #333;
    }

    header nav a {
        color: var(--text-light);
        font-size: 1rem;
    }

    header.open nav {
        right: 0;
    }

    header nav ul {
        margin-top: 50px;
        flex-direction: column;
        gap: 35px;
    }

    header.open .menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    header.open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    header.open .menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section {
        justify-content: center;
        text-align: center;
    }
    
    .hero-section::before {
        background-image: linear-gradient(to bottom,
                rgba(0, 0, 0, 0.9) 0%,
                rgba(0, 0, 0, 0.7) 50%,
                rgba(0, 0, 0, 0.4) 100%),
            url('background-hero.png');
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }

    .hero-content {
        margin-top: -150px;
        text-align: left;
    }

    .hero-content h1 {
        font-size: 1.2rem;
        border-left: none;
        padding-left: 0;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .about-us-section {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about-us-image {
        width: 100%;
    }

    #consent-banner {
        flex-direction: column;
        text-align: center;
    }
}