/* --- VARIÁVEIS E CONFIGURAÇÕES GERAIS --- */
:root {
    /* Paleta: Vermelho Velocidade, Preto Pneu, Carbono, Branco */
    --primary-red: #e63946;
    /* Vermelho Vibrante */
    --dark-red: #b90e1c;
    /* Vermelho Escuro */
    --black: #111111;
    /* Preto Profundo */
    --carbon: #2b2b2b;
    /* Cinza Carbono */
    --silver: #e0e0e0;
    /* Prata Metálico */
    --white: #ffffff;

    --text-main: #333333;
    --text-light: #f4f4f4;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    --radius: 4px;
    /* Cantos levemente arredondados, estilo industrial */
    --gradient: linear-gradient(135deg, var(--black), var(--carbon));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    text-decoration: none;
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9f9;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
    font-weight: 800;
    font-style: italic;
}

/* --- UTILITÁRIOS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* Títulos de Seção */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--black);
    position: relative;
    display: inline-block;
}

.section-header h2 span {
    color: var(--primary-red);
}

.section-header h2::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: var(--primary-red);
    margin-top: 5px;
    transform: skewX(-20deg);
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 15px auto 0;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-red);
    color: var(--white);
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
    /* Corte diagonal */
}

.btn:hover {
    background: var(--black);
    color: var(--white);
    transform: translateX(5px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
}

/* --- TOP BAR (Info Rápida) --- */
.top-bar {
    background-color: var(--black);
    color: var(--silver);
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--primary-red);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contacts span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-contacts i {
    color: var(--primary-red);
}

/* --- HEADER --- */
header {
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    font-style: italic;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary-red);
    font-size: 2rem;
}

.logo span {
    color: var(--primary-red);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--black);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-red);
    transition: width 0.3s;
    transform: skewX(-20deg);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--black);
}

/* --- HERO SECTION --- */
.hero {
    height: 85vh;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1486262715619-01b8025d925d?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Elemento Decorativo: Faixas */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -100px;
    width: 300px;
    height: 100%;
    background: var(--primary-red);
    transform: skewX(-20deg);
    opacity: 0.8;
    z-index: 1;
    display: none;
    /* Ativar em telas maiores se desejar */
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
    padding: 0 20px;
    animation: slideIn 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero h1 span {
    color: var(--primary-red);
    display: block;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #ddd;
    font-weight: 300;
}

/* --- CATEGORIAS (Grid) --- */
.categories {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.cat-card {
    background: var(--white);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border-bottom: 4px solid var(--primary-red);
    transition: transform 0.3s;
    cursor: pointer;
}

.cat-card:hover {
    transform: translateY(-10px);
    background: var(--carbon);
}

.cat-card:hover h3,
.cat-card:hover p,
.cat-card:hover i {
    color: var(--white);
}

.cat-icon {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 15px;
    transition: color 0.3s;
}

.cat-card h3 {
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 5px;
}

.cat-card p {
    font-size: 0.9rem;
    color: #666;
}

/* --- SOBRE A EMPRESA --- */
.about {
    background: var(--white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 15px 15px 0px var(--primary-red);
    /* Sombra sólida */
    filter: grayscale(100%);
    transition: filter 0.5s;
}

.about-img:hover img {
    filter: grayscale(0%);
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--black);
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.05rem;
}

.since-tag {
    display: inline-block;
    background: var(--black);
    color: var(--white);
    padding: 5px 15px;
    font-weight: 700;
    font-family: 'Exo 2', sans-serif;
    transform: skewX(-10deg);
    margin-bottom: 20px;
}

/* --- DESTAQUES (Peças) --- */
.products {
    background-color: #1a1a1a;
    color: var(--white);
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
}

.products .section-header h2 {
    color: var(--white);
}

.products .section-header p {
    color: #aaa;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--carbon);
    border: 1px solid #333;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    border-color: var(--primary-red);
    transform: scale(1.02);
}

.product-img {
    height: 200px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-red);
    color: var(--white);
    padding: 5px 10px;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 3px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--white);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.product-info p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.price {
    font-size: 1.3rem;
    color: var(--primary-red);
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.btn-card {
    display: block;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    transition: 0.3s;
    cursor: pointer;
}

.btn-card:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

/* --- CONTATO & LOCALIZAÇÃO --- */
.contact {
    background: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    background: var(--black);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: var(--primary-red);
    transform: skewX(-20deg) translateX(50px);
    opacity: 0.3;
}

.info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.info-row i {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-right: 15px;
    margin-top: 5px;
}

.info-row h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--white);
}

.info-row p {
    color: #ccc;
    font-size: 0.95rem;
}

.map-box {
    height: 400px;
    background: #eee;
    border-radius: var(--radius);
    overflow: hidden;
}

.map-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- FOOTER --- */
footer {
    background: #0a0a0a;
    color: #777;
    padding: 60px 0 20px;
    border-top: 5px solid var(--primary-red);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 15px;
    font-style: italic;
}

.footer-logo span {
    color: var(--primary-red);
}

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #777;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
    font-size: 0.85rem;
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 2000;
    transition: transform 0.3s;
    border: 2px solid white;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .top-bar {
        display: none;
    }

    /* Esconder barra de topo no mobile */
}

@media (max-width: 768px) {
    .navbar .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
    }

    .navbar .nav-links.active {
        transform: translateY(0);
    }

    .hamburger {
        display: block;
    }

    .hero {
        padding-top: 50px;
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        padding: 0 10px;
    }
}

/* Animações */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}