/* ============================================================
   ROWTORK ENGENHARIA - DESIGN SYSTEM & ESTRUTURA
   ============================================================ */

:root {
    --branco: #FFFFFF;
    --cinza-chumbo: #2F3131;
    /* Texto principal */
    --vermelho-rubro: #9B111E;
    /* Marca e Destaques */
    --cinza-claro: #F9F9F9;
    /* Fundos secundários */
    --transicao: 0.3s ease;
    /* Transição padrão */
    --transicao-premium: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

/* ============================================================
   RESET E CONFIGURAÇÕES GERAIS
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--branco);
    color: var(--cinza-chumbo);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -1px;
}

/* ============================================================
   NAVEGAÇÃO (HEADER)
   ============================================================ */
header {
    background-color: var(--branco);
    padding: 10px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-img {
    height: 45px;
    width: auto;
    animation: fadeIn 2.5s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--cinza-chumbo);
    font-weight: 600;
    transition: var(--transicao);
}

.nav-links a:hover {
    color: var(--vermelho-rubro);
}

/* ============================================================
   BANNER PRINCIPAL & HERO
   ============================================================ */
.banner-principal {
    width: 100%;
    margin-top: 85px;
    display: flex;
    overflow: hidden;
    /* No mobile, forçamos uma altura fixa para preencher a tela */
    height: 350px;
}

.banner-img {
    width: 100%;
    height: 100%;
    display: block;
    /* O 'cover' faz a imagem preencher tudo, cortando as sobras */
    object-fit: cover;
    /* Ajusta o foco para o centro da imagem */
    object-position: center;
}

/* Ajuste para telas maiores (Desktop) */
@media (min-width: 1024px) {
    .banner-principal {
        height: auto;
        /* No PC ela volta ao normal */
    }
}

section {
    padding: 70px 5%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-margin-top: 80px;
}

.banner-principal {
    padding: 0;
    min-height: 0;
}

.hero {
    text-align: center;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('../img/fundo-tecnico.jpg');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 20px;
}

.hero h1 b {
    color: var(--vermelho-rubro);
}

/* ============================================================
   SEÇÃO DE SERVIÇOS & CARDS
   ============================================================ */
#servicos {
    background-color: var(--cinza-claro);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--vermelho-rubro);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 30px;
    max-width: 1200px;
    width: 100%;
}

/* Card de Serviço */
.servico-item {
    background: var(--branco);
    padding-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transicao);
}

.servico-item:hover {
    transform: translateY(-10px);
}

/* Container da Imagem com Zoom */
.servico-img-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    /* Corta o excesso do zoom */
    margin-bottom: 20px;
    background-color: #eee;
}

.servico-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transicao-premium);
}

/* Dispara o Zoom ao passar o mouse no CARD */
.servico-item:hover .servico-thumb {
    transform: scale(1.1);
}

.servico-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding: 0 15px 15px;
    position: relative;
}

.servico-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--vermelho-rubro);
    border-radius: 2px;
}

/* ============================================================
   COMPONENTES & BOTÕES
   ============================================================ */
.btn-principal {
    background-color: var(--vermelho-rubro);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: var(--transicao);
    display: inline-block;
}

.btn-principal:hover {
    background-color: #7a0d17;
    box-shadow: 0 5px 15px rgba(155, 17, 30, 0.3);
}

/* ============================================================
   ANIMAÇÕES & RESPONSIVIDADE
   ============================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .banner-principal {
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    section {
        padding: 45px 5%;
    }

    .section-title {
        margin-bottom: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}
