/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Classes de utilidade para acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header - Cores atualizadas */
header {
    background-color: #000;
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

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

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu ul li {
    margin-left: 25px;
    position: relative;
}

.nav-menu ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FF0000;
    transition: width 0.3s ease;
}

.nav-menu ul li a:hover::after,
.nav-menu ul li a:focus::after {
    width: 100%;
}

.nav-menu ul li a:hover,
.nav-menu ul li a:focus {
    color: #FF0000;
    outline: none;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    transition: color 0.3s ease;
    z-index: 1001;
    width: 30px;
    height: 30px;
    position: relative;
    background: none;
    border: none;
}

.menu-toggle:hover {
    color: #FF0000;
}

.menu-toggle.active .fa-bars::before {
    content: "\f00d"; /* Ícone X */
}

/* Hero Section - Imagem de carro em oficina atualizada */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../fotos/carro-oficina.jpg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 80px;
    position: relative;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background-color: #FF0000;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: fadeIn 1.5s ease;
    border: 2px solid #FF0000;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background-color: #CC0000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Seções comuns */
section {
    padding: 80px 0;
    position: relative;
}

h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: #333;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #FF0000;
}

/* Serviços em Destaque */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.servico-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.servico-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: #FF0000;
    transition: height 0.3s ease;
}

.servico-item:hover::before {
    height: 100%;
}

.servico-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.servico-icon {
    font-size: 40px;
    color: #FF0000;
    margin-bottom: 20px;
}

.servico-item h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Por que nos escolher */
.porque-nos {
    background-color: #f9f9f9;
}

.porque-nos h2 {
    color: black;
}

.vantagens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.vantagem-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.vantagem-item:hover {
    transform: translateY(-5px);
}

.vantagem-item i {
    font-size: 40px;
    color: #FF0000;
    margin-bottom: 20px;
}

.vantagem-item h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* CTA Final */
.cta-final {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../fotos/oficina-cta.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.cta-final h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-final p {
    margin-bottom: 30px;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: #000;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #FF0000;
}

.footer-section p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-section i {
    margin-right: 10px;
    color: #FF0000;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FF0000;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #FF0000;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* Botão flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Página Sobre */
.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.sobre-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.valor-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.valor-item:hover {
    transform: translateY(-5px);
}

.valor-item i {
    font-size: 40px;
    color: #FF0000;
    margin-bottom: 20px;
}

.valor-item h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Página Serviços */
.servicos-detalhados .servico-detalhado {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.servicos-detalhados .servico-detalhado:hover {
    transform: translateY(-5px);
}

.servicos-detalhados .servico-detalhado h3 {
    color: #FF0000;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #000;
        transition: left 0.3s ease;
        padding: 20px;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
    }
    
    .nav-menu ul li {
        margin: 15px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .sobre-content {
        grid-template-columns: 1fr;
    }
    
    .servicos-grid,
    .vantagens-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 10px 20px;
    }
    
    section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

/* Foco visível para acessibilidade */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #FF0000;
    outline-offset: 2px;
}

/* Melhorias de contraste para acessibilidade */
@media (prefers-contrast: high) {
    .hero-content h1,
    .hero-content p,
    .cta-final h2,
    .cta-final p {
        text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
    }
    
    .servico-item,
    .vantagem-item,
    .valor-item {
        border: 2px solid #333;
    }
}

/* Modo escuro para preferência do usuário */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    .servico-item,
    .vantagem-item,
    .valor-item,
    .servicos-detalhados .servico-detalhado {
        background-color: #1e1e1e;
        color: #e0e0e0;
    }
    
    h2 {
        color: #e0e0e0;
    }
}

/* Otimizações de impressão */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    header,
    .whatsapp-float,
    .cta-final,
    .social-icons {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
}