/* ==========================================================================
   VARIÁVEIS E GERAL (RESET COM SUPORTE A RENDERING DE PERFORMANCE)
   ========================================================================== */
:root {
    --font-title: 'Chakra Petch', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --red-accent: #ff1414;
    --red-hover: #cc0000;
    --bg-light: #eef0f2;
    --bg-dark: #000000;
    --text-dark: #1a1a1a;
    --header-height: 85px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

html, body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    width: 100%;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.btn-red {
    background-color: var(--red-accent);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-red:hover {
    background-color: var(--red-hover);
    transform: scale(1.02);
}

/* ==========================================================================
   ⚠️ TEXTURA DO PORTÃO DE GARAGEM REESTRUTURADA PARA ACELERAÇÃO POR HARDWARE
   ========================================================================== */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    will-change: transform;

    background-color: #151619;
    background-image: 
        linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 35%, transparent 65%, rgba(0,0,0,0.7) 100%),
        radial-gradient(circle, rgba(0, 0, 0, 0.85) 18%, transparent 22%),
        repeating-linear-gradient(
            to bottom,
            #0a0a0c 0px,
            #0f1012 2px,
            rgba(255, 255, 255, 0.05) 3px,
            transparent 4px,
            transparent 32px,
            rgba(0, 0, 0, 0.3) 34px,
            #0a0a0c 36px
        );
    background-size: 100% 100%, 5px 4px, 100% 36px;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.9);
}

.intro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    width: 90%;
    max-width: 700px;
}

.intro-text-wrapper {
    position: relative;
    height: 180px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-word {
    font-family: var(--font-title);
    font-size: 3.8rem;
    font-weight: 700;
    color: #ffffff;
    position: absolute;
    opacity: 0;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-style: italic;
    white-space: nowrap;
    text-shadow: 0 4px 15px rgba(0,0,0,0.85);
}

.intro-word.intro-logo {
    max-height: 150px;
    width: auto;
    object-fit: contain;
    font-style: normal;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.75));
}

.intro-progress-bar {
    width: 0%;
    height: 4px;
    background: var(--red-accent);
    box-shadow: 0 0 15px var(--red-accent), 0 0 5px #ffffff;
    border-radius: 2px;
}

.top-header { transform: translateY(-100%); will-change: transform; }
.hero-text-block { opacity: 0; transform: translateY(30px); will-change: transform, opacity; }
.hero-action-block { opacity: 0; transform: scale(0.9); will-change: transform, opacity; }

/* ==========================================================================
   0. TOP FIXO (HEADER) E MENU SIDEBAR
   ========================================================================== */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(8, 8, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 55px; 
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.04);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.desktop-nav a:not(.btn-header) {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.desktop-nav a:not(.btn-header):hover {
    color: var(--red-accent);
}

.btn-header {
    padding: 8px 22px;
    font-size: 0.85rem;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 290px;
    height: 100vh;
    background-color: #0b0b0d;
    z-index: 1003;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-menu.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-title {
    font-family: var(--font-title);
    color: var(--red-accent);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.close-menu {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
}

.sidebar-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    color: var(--red-accent);
    transform: translateX(5px);
}

.sidebar-cta { margin-top: 25px; }
.btn-sidebar { width: 100%; padding: 14px; font-size: 0.95rem; }

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1002;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.menu-overlay.active { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-dark);
    padding: calc(var(--header-height) + 40px) 0 80px 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10,10,12,0.85) 0%, rgba(10,10,12,0.65) 50%, rgba(10,10,12,0.95) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 55vh;
}

.hero-text-block { max-width: 850px; margin-bottom: 40px; }

.hero-text-block h1 {
    font-family: var(--font-title);
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-text-block h1 strong { font-weight: 700; color: #ffffff; }
.subtitle { font-size: 1.25rem; color: #e0e0e0; font-weight: 400; }
.highlight-red { color: var(--red-accent); font-weight: 700; }

.red-line {
    width: 80px;
    height: 3px;
    background-color: var(--red-accent);
    margin-bottom: 25px;
}

.hero-action-block { align-self: center; text-align: center; margin-top: 20px; }

.btn-pill {
    background: rgba(18, 18, 20, 0.85);
    border: 2px solid var(--red-accent);
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 40px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-pill:hover {
    background: var(--red-accent);
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(255, 20, 20, 0.5);
}

.btn-icon {
    background: #fff;
    color: #000;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 900;
}

.rating-box { margin-top: 15px; }
.stars { color: #fff; font-size: 1.2rem; letter-spacing: 8px; margin-bottom: 5px; }
.rating-box span { font-size: 0.85rem; color: #aaa; }

.hero-diagonal-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 20, 20, 0.15),
        rgba(255, 20, 20, 0.15) 10px,
        transparent 10px,
        transparent 20px
    );
    z-index: 4;
    pointer-events: none;
}

/* ==========================================================================
   2. SOBRE / APRESENTAÇÃO
   ========================================================================== */
.about { padding: 80px 0; background-color: var(--bg-light); }

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about-text p { color: #555; margin-bottom: 30px; font-size: 1.05rem; }

.about-video {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    background-color: #000000;
}

/* ==========================================================================
   3. MARCAS - CARROSSEL INFINITO
   ========================================================================== */
.brands { padding: 60px 0 70px 0; background-color: var(--bg-light); overflow: hidden; width: 100%; }
.brands-carousel {
    width: 100%;
    display: flex;
    position: relative;
    padding: 35px 0;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.brands-track {
    display: flex;
    align-items: center;
    gap: 35px;
    width: max-content;
    animation: scroll-brands 35s linear infinite;
}
.brands-track:hover { animation-play-state: paused; }

@keyframes scroll-brands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.brand-card {
    background: radial-gradient(circle, #ffffff 20%, #dcdfe2 100%);
    width: 280px;  
    height: 280px; 
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border: 1px solid #9aa0a6; 
    padding: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-10px);
    border-color: var(--red-accent);
    box-shadow: 0 18px 40px rgba(255, 20, 20, 0.25);
    background: radial-gradient(circle, #ffffff 40%, #e8ecef 100%);
}

.brand-card img {
    max-height: 180px;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

/* ==========================================================================
   4. SERVIÇOS
   ========================================================================== */
.services { background-color: #08080a; color: #ffffff; padding: 100px 0; }

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    gap: 30px;
}

.title-slanted {
    font-family: var(--font-title);
    font-size: 3rem;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 2px;
}

.services-header p { color: #aaa; max-width: 400px; font-size: 1.05rem; }

.suv-video { width: 100%; max-width: 420px; height: auto; display: block; margin-left: auto; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.service-card {
    border-radius: 4px;
    padding: 30px 25px 115px 25px;
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.service-card:nth-child(odd) { background-color: #0f0f12; color: #ffffff; }
.service-card:nth-child(even) { background-color: #ffffff; color: #1a1a1a; }

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 20, 20, 0.15);
    border-color: var(--red-accent);
}

.service-card h3 {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 10px;
    position: relative;
    z-index: 3;
    letter-spacing: 1px;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background-color: var(--red-accent);
}

.service-card p { font-size: 0.85rem; line-height: 1.5; margin-bottom: 25px; position: relative; z-index: 3; flex-grow: 1; }
.service-card:nth-child(odd) p { color: #cccccc; }
.service-card:nth-child(even) p { color: #555555; }

.btn-card {
    background: var(--red-accent);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 20, 20, 0.3);
    margin-top: auto;
}

.btn-card:hover {
    background: var(--red-hover);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(255, 20, 20, 0.5);
}

.btn-card::before { content: '💬'; font-size: 1rem; }

.oil-splash {
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 140px;
    background: radial-gradient(ellipse at bottom, rgba(30, 30, 35, 0.85) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    animation: pulse-oil 4s infinite alternate ease-in-out;
}

.service-card:nth-child(even) .oil-splash {
    background: radial-gradient(ellipse at bottom, rgba(0, 0, 0, 0.15) 0%, transparent 70%);
}

@keyframes pulse-oil {
    0% { transform: scaleY(0.9) scaleX(0.98); opacity: 0.7; }
    100% { transform: scaleY(1.1) scaleX(1.02); opacity: 1; }
}

.card-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 120px;
    max-height: 100px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.4));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: float-icon 3.5s ease-in-out infinite alternate;
}

.service-card:hover .card-icon {
    transform: scale(1.15) rotate(-3deg) translateY(-5px);
    animation-play-state: paused;
}

@keyframes float-icon {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-8px) rotate(2deg); }
}

/* ==========================================================================
   5. CONTATO E FORMULÁRIO
   ========================================================================== */
.contact-section { background-color: var(--bg-light); padding: 80px 0 40px 0; }

.contact-box {
    background-color: #0d0d0f;
    border-radius: 30px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.contact-image img { width: 100%; max-width: 450px; display: block; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; }

/* 🚀 Estilos do Título de Contato adicionados aqui (Adeus estilo inline!) */
.contact-form-title {
    color: #ffffff;
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-form label { color: #ffffff; font-size: 0.85rem; margin-bottom: 5px; font-weight: 600; }

.contact-form input {
    padding: 14px;
    border-radius: 6px;
    border: none;
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
}

.contact-form input:focus { box-shadow: 0 0 0 2px var(--red-accent); }
.btn-submit { width: 100%; text-align: center; margin-top: 10px; font-size: 1rem; padding: 15px; }

/* ==========================================================================
   🛠️ 6. RODAPÉ REESTRUTURADO (ALINHAMENTO ESQUERDA / DIREITA)
   ========================================================================== */
.footer-gradient {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #7a0000 100%);
    color: #ffffff;
    padding: 50px 0 40px 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
    gap: 30px;
    flex-wrap: wrap;
}

.footer-info {
    text-align: left;
    flex: 1;
    min-width: 280px;
}

.footer-subtext {
    font-size: 0.78rem;
    color: #d1d5db;
    margin-top: 10px;
    line-height: 1.4;
}

.footer-credits {
    text-align: right;
    white-space: nowrap;
}

.footer-credits p {
    font-size: 0.85rem;
    color: #9ca3af;
}

.footer-credits a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 2px;
}

.footer-credits a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--red-accent);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.footer-credits a:hover {
    color: var(--red-accent);
}

.footer-credits a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* ==========================================================================
   🟢 BOTÃO FLUTUANTE DO WHATSAPP (CANTO INFERIOR DIREITO)
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    z-index: 998; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon-svg {
    width: 34px;
    height: 34px;
    fill: #ffffff;
}

/* ==========================================================================
   7. RESPONSIVIDADE TOTAL (MÍDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-box { grid-template-columns: 1fr; text-align: center; }
    .about-video { margin-top: 20px; }
    .hero-text-block h1 { font-size: 2.4rem; }
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .menu-toggle { display: flex; }
    .services-header { flex-direction: column; text-align: center; align-items: center; }
    .services-header .red-line { margin: 0 auto 20px auto; }
    .services-header p { margin: 0 auto 20px auto; max-width: 100%; }
    .suv-video { margin: 0 auto; max-width: 100%; width: 340px; }
    .hero-text-block h1 { font-size: 2.0rem; }
    .title-slanted { font-size: 2.4rem; }
    .contact-box { padding: 35px 25px; }
    
    .intro-text-wrapper { height: 140px; }
    .intro-word { font-size: 2.5rem; }
    .intro-word.intro-logo { max-height: 110px; }

    .footer-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .footer-info, .footer-credits {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    :root { --header-height: 75px; }
    .logo-img { max-height: 45px; }
    .services-grid { grid-template-columns: 1fr; }
    .hero { padding: calc(var(--header-height) + 30px) 0 60px 0; min-height: 85vh; }
    .hero-text-block h1 { font-size: 1.6rem; }
    .subtitle { font-size: 1rem; }
    .btn-pill { width: 100%; justify-content: center; padding: 12px 20px; font-size: 0.9rem; }
    .about { padding: 50px 0; }
    .about-text h2 { font-size: 1.3rem; }
    .brands-carousel { padding: 20px 0; }
    .brand-card { width: 180px; height: 180px; padding: 10px; }
    .brand-card img { max-height: 110px; }
    .service-card { min-height: 360px; padding: 25px 20px 105px 20px; }
    .card-icon { width: 100px; max-height: 80px; right: 10px; bottom: 10px; }
    .contact-box { padding: 25px 15px; border-radius: 20px; }
    .contact-image img { max-width: 280px; }

    .intro-text-wrapper { height: 110px; }
    .intro-word { font-size: 1.8rem; }
    .intro-word.intro-logo { max-height: 85px; }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-icon-svg {
        width: 28px;
        height: 28px;
    }
}