/* ==========================================================================
   CSS SYSTEM - RJ CAR REPARAÇÃO AUTOMOTIVA (PREMIUM DARK MODE)
   ========================================================================== */

/* Importação das Fontes Modernas */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;600;700;800&display=swap');

/* Variáveis do Sistema de Design (Tokens) */
:root {
    /* Cores Principais */
    --bg-primary: #0D0D0D;
    /* Preto Absoluto */
    --bg-secondary: #141414;
    /* Cinza Grafite Escuro */
    --bg-card: #1A1A1A;
    /* Fundo dos Cards */
    --bg-card-hover: #222222;
    /* Hover dos Cards */

    /* Cores de Destaque */
    --accent-red: #E31C25;
    /* Vermelho Vivo Esportivo */
    --accent-red-hover: #FF333D;
    --accent-red-rgb: 227, 28, 37;

    /* Cores de Texto */
    --text-primary: #FFFFFF;
    /* Branco Puro */
    --text-secondary: #A0A0A0;
    /* Cinza Claro */
    --text-muted: #666666;
    /* Cinza Muted */

    /* Detalhes Cromados e Bordas */
    --border-color: #262626;
    /* Borda sutil padrão */
    --border-glow-red: rgba(227, 28, 37, 0.45);
    --border-metallic: linear-gradient(90deg, #555555, #C0C0C0, #555555);

    /* Tipografia */
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* UX & Transições */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    --header-height: 85px;
    --border-radius: 12px;
}

/* Reset Geral */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Barra de Rolagem Customizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #222222;
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* Tipografia Geral */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* Utilitários */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 100px 0;
}

.text-gradient-red {
    background: linear-gradient(135deg, #FFFFFF 50%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.chrome-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15) 50%, transparent);
}

/* ==========================================================================
   HEADER (GLASSMORPHISM NAV)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    height: 70px;
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-svg {
    height: 52px;
    width: auto;
    transition: var(--transition-smooth);
}

.header.scrolled .logo-svg {
    height: 44px;
}

/* Menu de Navegação Desktop */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 0.75rem;
}

.btn-primary {
    background: var(--accent-red);
    color: var(--text-primary);
    border: 1px solid var(--accent-red);
}

.btn-primary:hover {
    background: var(--accent-red-hover);
    border-color: var(--accent-red-hover);
    box-shadow: 0 0 25px rgba(227, 28, 37, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Menu Hambúrguer Mobile */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    background: linear-gradient(to right, rgba(13, 13, 13, 0.95) 40%, rgba(13, 13, 13, 0.4) 70%, rgba(13, 13, 13, 0.95) 100%),
        url('assets/images/hero_bg.png') no-repeat center right / cover;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(transparent, var(--bg-primary));
    pointer-events: none;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(227, 28, 37, 0.1);
    border: 1px solid rgba(227, 28, 37, 0.3);
    color: var(--accent-red);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.badge-premium svg {
    width: 14px;
    height: 14px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.whatsapp-icon-svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ==========================================================================
   SERVIÇOS (GRID CARDS)
   ========================================================================== */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--accent-red);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 800;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: rgba(227, 28, 37, 0.3);
    box-shadow: 0 15px 40px rgba(227, 28, 37, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: rgba(227, 28, 37, 0.08);
    border: 1px solid rgba(227, 28, 37, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.service-icon-box svg {
    width: 28px;
    height: 28px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
    background: var(--accent-red);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(227, 28, 37, 0.4);
    transform: rotate(5deg) scale(1.05);
}

.service-card-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   DIFERENCIAIS
   ========================================================================== */
.differentials {
    background: var(--bg-secondary);
}

.differentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.diff-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

.diff-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

.diff-icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: radial-gradient(circle, rgba(227, 28, 37, 0.15) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    border-radius: 50%;
}

.diff-icon-box svg {
    width: 36px;
    height: 36px;
}

.diff-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.diff-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 320px;
    margin: 0 auto;
}

/* ==========================================================================
   DEPOIMENTOS (TESTIMONIALS)
   ========================================================================== */
.testimonials {
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    position: relative;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--bg-card-hover);
}

.google-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.google-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.google-badge svg {
    width: 16px;
    height: 16px;
}

.stars {
    display: flex;
    gap: 0.25rem;
    color: #F4B400;
    /* Estrela do Google */
}

.stars svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.user-info h4 {
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.verified-badge {
    font-size: 0.75rem;
    color: #4CAF50;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.1rem;
}

.verified-badge svg {
    width: 12px;
    height: 12px;
}

/* ==========================================================================
   CONTATO, LOCALIZAÇÃO & MAPA
   ========================================================================== */
.contact-section {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(227, 28, 37, 0.08);
    border: 1px solid rgba(227, 28, 37, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    white-space: pre-line;
}

.map-container {
    height: 450px;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    /* Filtro Escuro Premium para o Google Maps */
    filter: grayscale(1) invert(0.9) contrast(1.1) brightness(0.95);
    transition: var(--transition-smooth);
}

.map-container:hover {
    filter: grayscale(0.5) invert(0.9) contrast(1.1);
    border-color: rgba(227, 28, 37, 0.3);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   FOOTER (RODAPÉ)
   ========================================================================== */
.footer {
    background: var(--bg-primary);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    height: 48px;
    width: auto;
    align-self: flex-start;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 320px;
}

.footer-links-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--accent-red);
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--accent-red);
    color: var(--text-primary);
    border-color: var(--accent-red);
    transform: scale(1.1);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   BOTÃO FLUTUANTE WHATSAPP
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 0 0px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: var(--transition-smooth);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20BA5A;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 0 0px rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 0 0px rgba(37, 211, 102, 0);
    }
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVIDADE MÓVEL FIRST)
   ========================================================================== */

/* Telas de Médio Porte (Tablets) */
@media screen and (max-width: 992px) {
    :root {
        --header-height: 70px;
    }

    .section-padding {
        padding: 70px 0;
    }

    .hero {
        background: linear-gradient(rgba(13, 13, 13, 0.9), rgba(13, 13, 13, 0.95)),
            url('assets/images/hero_bg.png') no-repeat center center / cover;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-ctas {
        justify-content: center;
    }

    /* Toggle Hambúrguer */
    .mobile-toggle {
        display: flex;
    }

    /* Menu lateral mobile */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition-smooth);
        padding: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Outros grids */
    .differentials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .map-container {
        height: 350px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-logo {
        align-self: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Telas Pequenas (Smartphones) */
@media screen and (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 25px;
        height: 25px;
    }
}