/* ========================================
   AUTOTECH OFICINA - ESTILOS CSS
   Website Single Page para Oficina Automotiva
   Cores principais: Azul (#1e40af) e Vermelho (#dc2626)
   ======================================== */

/* ========================================
   RESET E CONFIGURAÇÕES BÁSICAS
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff; /* Background branco conforme solicitado */
    scroll-behavior: smooth; /* Navegação suave entre seções */
}

/* ========================================
   HEADER FIXO
   ======================================== */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed; /* Header fixo no topo */
    top: 0;
    width: 100%;
    z-index: 1000; /* Garante que fique acima de outros elementos */
    transition: all 0.3s ease;
}

/* Logo/Nome da empresa */
header h1 {
    color: #1e40af; /* Azul principal */
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    padding: 1rem 0;
}

/* Menu de navegação */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0 0 1rem 0;
}

nav ul li {
    margin: 0 2rem;
}

/* Links de navegação */
nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

/* Efeito hover nos links */
nav ul li a:hover {
    color: #dc2626; /* Vermelho em destaque */
}

/* Linha animada sob os links */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #dc2626; /* Vermelho em destaque */
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* ========================================
   CONTEÚDO PRINCIPAL
   ======================================== */
main {
    margin-top: 120px; /* Espaço para o header fixo */
}

.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   SEÇÃO HERO/INÍCIO
   ======================================== */
.hero {
    /* Background com imagem da oficina e overlay azul com transparência */
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(59, 130, 246, 0.9) 100%), 
                url('../img/background_oficina.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 6rem 2rem;
    margin-top: -120px; /* Compensa o margin do main */
    padding-top: 10rem; /* Espaço adicional para o header */
    position: relative;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease; /* Animação de entrada */
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both; /* Animação com delay */
}

/* ========================================
   SEÇÃO SERVIÇOS
   ======================================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Grid responsivo */
    gap: 2rem;
    margin-top: 3rem;
}

/* Cards dos serviços */
.service-item {
    background: #ffffff;
    padding: 2rem;
    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;
    border-top: 4px solid #dc2626; /* Borda vermelha em destaque */
    position: relative;
}

/* Ícones dos serviços */
.service-item .service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: block;
    /* Filtro para deixar os ícones azuis */
    filter: brightness(0) saturate(100%) invert(25%) sepia(93%) saturate(1352%) hue-rotate(214deg) brightness(95%) contrast(101%);
    transition: filter 0.3s ease;
}

/* Efeito hover nos cards */
.service-item:hover {
    transform: translateY(-5px); /* Elevação sutil */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Mudança de cor do ícone no hover */
.service-item:hover .service-icon {
    /* Filtro para deixar os ícones vermelhos no hover */
    filter: brightness(0) saturate(100%) invert(15%) sepia(100%) saturate(4057%) hue-rotate(348deg) brightness(97%) contrast(97%);
}

/* Títulos dos serviços */
.service-item h3 {
    color: #1e40af; /* Azul principal */
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Descrições dos serviços */
.service-item p {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   TÍTULOS DAS SEÇÕES
   ======================================== */
.section h2 {
    text-align: center;
    color: #1e40af; /* Azul principal */
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

/* Linha decorativa sob os títulos */
.section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: #dc2626; /* Vermelho em destaque */
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* ========================================
   SEÇÃO SOBRE
   ======================================== */
#sobre {
    background-color: #f8fafc; /* Background levemente cinza */
}

#sobre p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* ========================================
   SEÇÃO CONTATO
   ======================================== */
#contato {
    text-align: center;
}

#contato p {
    font-size: 1.1rem;
    margin: 1rem 0;
    color: #555;
}

/* ========================================
   RODAPÉ
   ======================================== */
footer {
    background-color: #1f2937; /* Fundo escuro */
    color: white;
    text-align: center;
    padding: 3rem 2rem 2rem;
}

footer p {
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Links das redes sociais */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    background-color: #374151;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Efeito hover nos links sociais */
.social-links a:hover {
    background-color: #dc2626; /* Vermelho em destaque */
    transform: translateY(-2px); /* Elevação sutil */
}

/* ========================================
   ANIMAÇÕES
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVIDADE - MOBILE
   ======================================== */
@media (max-width: 768px) {
    /* Header mobile */
    header h1 {
        font-size: 1.5rem;
    }
    
    /* Navegação mobile */
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    /* Hero mobile */
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Seções mobile */
    .section {
        padding: 3rem 1rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    /* Grid de serviços mobile */
    .service-grid {
        grid-template-columns: 1fr; /* Uma coluna no mobile */
        gap: 1.5rem;
    }
    
    /* Links sociais mobile */
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    /* Ajustes de espaçamento mobile */
    main {
        margin-top: 180px; /* Mais espaço para header mobile */
    }
    
    .hero {
        margin-top: -180px;
        padding-top: 12rem;
    }
}

/* ========================================
   RESPONSIVIDADE - MOBILE PEQUENO
   ======================================== */
@media (max-width: 480px) {
    .hero {
        padding: 8rem 1rem 4rem;
    }
    
    .service-item {
        padding: 1.5rem;
    }
    
    footer {
        padding: 2rem 1rem;
    }
}

