/* --- RESET E VARIÁVEIS --- */
*{box-sizing:border-box;margin:0;padding:0}
:root{
  --red:#d92b20;
  --dark:#111;
  --muted:#666;
  --light-bg: #f5f5f5; /* Tom de fundo suave */
  --accent:#25d366;
  --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-deep: 0 10px 30px rgba(0, 0, 0, 0.15);
  --font-header: 'Poppins', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --header-offset: 140px;
  --container-width: 1100px;
}

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: var(--header-offset); }

body{
  font-family: var(--font-body);
  color:var(--dark);
  background:#fff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

h1,h2,h3,.top-nav a,.btn-primary { font-family: var(--font-header); }

.container{ max-width:var(--container-width); margin:0 auto; padding:24px; }

/* --- HEADER --- */
.site-header{
  position: fixed;
  top:0;
  left:0;
  width:100%;
  background:#fff;
  z-index:1000;
  box-shadow:0 2px 8px rgba(0,0,0,0.1);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width:var(--container-width);
  margin:0 auto;
  padding:12px 24px;
}
.logo{
  max-height:80px;
  width:auto;
  filter: drop-shadow(0 1px 5px rgba(0,0,0,0.08));
  transition:0.4s ease;
  padding:4px;
  background:transparent;
  border-radius:10px;
}
.logo:hover{
  transform: scale(1.03);
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.15));
  opacity:0.95;
}
.top-nav a{
  margin-left:24px;
  text-decoration:none;
  color:#333;
  font-weight:600;
  font-size:18px;
  padding:10px 16px;
  border-radius:6px;
  transition:0.3s;
}
.top-nav a:hover{
  background:var(--red);
  color:#fff;
  transform:translateY(-2px);
  box-shadow: 0 4px 15px rgba(217, 43, 32, 0.4);
}

/* --- HERO (Vermelho mais escuro) --- */
.hero {
  background: radial-gradient(circle at top left, rgba(165, 20, 15, 0.98) 0%, rgba(217, 43, 32, 0.92) 100%), 
              url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="30" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: cover, 50px 50px;
  background-blend-mode: overlay;

  color: #fff;
  padding: 80px 24px;
  margin-top: var(--header-offset);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.hero-inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.hero-title { font-family: var(--font-header); font-size: 44px; margin-bottom: 20px; font-weight: 800; line-height: 1.1; letter-spacing: -1px; text-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.hero-title .highlight { position: relative; display: inline-block; z-index: 1; }
.hero-title .highlight::after { 
  content: ''; 
  position: absolute; 
  left: 0; 
  bottom: 4px; 
  width: 100%; 
  height: 6px; 
  background-color: rgba(255, 255, 255, 0.15); 
  z-index: -1; 
  border-radius: 4px; 
}
.hero-lead { font-size: 1.2em; margin-bottom: 40px; opacity: 0.95; font-weight: 400; max-width: 650px; line-height: 1.6; }

/* Botão Hero */
.btn-hero {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--red);
  padding: 16px 32px; border-radius: 50px; text-decoration: none; font-family: var(--font-header);
  font-weight: 700; font-size: 1.1em; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease; border: 2px solid transparent;
}
.btn-hero:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); 
  background: var(--light-bg);
  color: #b01f15; 
}

/* ----------------------------------- */
/* --- QUEM SOMOS (NOVO DESIGN CLEAN) --- */
/* ----------------------------------- */
.quem-somos{
  padding: 60px 24px;
  background: #fff; /* Fundo branco para mais contraste com a seção anterior */
  text-align:center;
}
.quem-somos-container {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--light-bg); /* Fundo suave para o conteúdo */
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05); /* Sombra mais suave para efeito de flutuação */
  text-align: left;
  position: relative;
  overflow: hidden;
  padding-left: 50px; /* Espaço para a borda lateral */
  border: 1px solid #eee; /* Borda externa bem sutil */
}
/* Efeito de Borda em Degradê (Degradê Vertical Moderno) */
.quem-somos-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 10px;
    background: linear-gradient(to bottom, var(--red) 0%, #b01f15 100%);
    transition: width 0.3s ease;
}
.quem-somos-container:hover::before {
    width: 15px; /* Sutil aumento no hover */
}


.quem-somos-content h2{
  color: var(--red);
  font-size: 30px;
  margin-bottom: 25px;
  font-weight: 700;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
  letter-spacing: 1px;
}
.quem-somos-content h2::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--red); /* Usando vermelho para alto contraste */
    border-radius: 2px;
}

.quem-somos-content p{
  color: var(--dark); /* Texto mais escuro para melhor legibilidade */
  font-size: 1.05em;
  line-height: 1.8;
  margin-bottom: 18px;
  text-align: justify;
}

/* ----------------------------------- */
/* --- SERVIÇOS (MANTIDO) --- */
/* ----------------------------------- */
.servicos-section{
  padding: 60px 24px;
  background: #fff;
  text-align:center;
}
.servicos-container{
  max-width: 1100px;
  margin: 0 auto;
}
.servicos-container h2{
  color: var(--dark);
  font-size: 30px;
  margin-bottom: 25px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}
.servicos-container h2::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
}

.lead-servicos{ color:var(--muted); font-size:1.1em; margin-bottom:40px; opacity:.9 }
.servicos-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:25px;
  max-width:100%;
  margin:0 auto;
  justify-content:center;
}
.servico-card{
  background:#fdfdfd;
  padding:25px;
  border-radius:15px;
  text-align:center;
  transition: all .3s ease;
  border:1px solid #eee;
  box-shadow: none;
}

.servico-card:hover{
  transform:translateY(-5px);
  box-shadow: var(--shadow-deep);
  border-color: var(--red);
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    font-size: 32px;
    margin-bottom: 15px;
    box-shadow: 0 6px 15px rgba(217, 43, 32, 0.4);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}
.servico-card:hover .icon-wrapper {
    transform: scale(1.05);
    background: var(--dark);
    box-shadow: 0 6px 20px rgba(17, 17, 17, 0.4);
    border-color: var(--red); 
}

.servico-card h3{ color:var(--dark); font-size:20px; margin-bottom:10px; font-weight:600; }
.servico-card p{ color:var(--muted); line-height:1.6; font-size:.95em; margin-bottom:0; }

/* ----------------------------------- */
/* --- FROTA (NOVO DESIGN 3D TILT) --- */
/* ----------------------------------- */
.frota-section{
  text-align:center;
  padding: 60px 24px;
  background: var(--light-bg);
  margin-bottom:0;
  /* Habilita o contexto 3D para os children */
  perspective: 1000px;
}
.frota-container{
  max-width: 1000px;
  margin: 0 auto;
}
.frota-container h2{ 
    color:var(--dark); 
    font-size:28px; 
    margin-bottom:8px; 
    font-weight:700;
    position: relative;
    padding-bottom: 10px;
}
.frota-container h2::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
}

.muted{ color:var(--muted); margin-bottom:25px; }
.gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:20px;
  padding: 20px 0;
}
.gallery img{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:15px;
  cursor:pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15); /* Sombra inicial mais definida */
  border: 4px solid #fff;
  position: relative;
}
/* EFEITO MODERNO 3D TILT */
.gallery img:hover{
  transform: translateY(-5px) rotateX(2deg) rotateY(-2deg) scale(1.03); /* Leve inclinação 3D e zoom */
  box-shadow: 0 15px 35px rgba(0,0,0,0.3); /* Sombra mais forte para profundidade */
  border-color: var(--red);
  filter: brightness(1.05); /* Levemente mais claro */
}

/* --- FOOTER --- */
.site-footer{
  background: linear-gradient(145deg, #111 0%, #222 100%);
  color:#fff;
  padding:40px 0 20px 0;
  border-top: 3px solid var(--red);
  font-size:0.95em;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.footer-content{
  display:grid;
  grid-template-columns:2fr 3fr;
  gap:40px;
  padding-bottom:20px;
  align-items:flex-start;
}
.footer-col{
  padding:0 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.footer-col:hover{
  transform: translateY(-4px);
}
.footer-col h2{
  color:#fff;
  font-size:26px;
  font-weight:700;
  text-align:left;
  margin-bottom:20px !important;
  position: relative;
}
.footer-col h2::after{
  content:"";
  display:block;
  width:40px;
  height:3px;
  background:var(--red);
  border-radius:2px;
  margin-top:6px;
}

/* Contact Cards */
.contact-cards{
  display:flex;
  flex-direction:column;
  gap:20px;
  margin-top:0;
}
.card{
  background:#1a1a1a;
  border-radius:15px;
  padding:20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333;
}
.card:hover{
  transform: translateY(-6px);
  box-shadow:0 8px 25px rgba(217, 43, 32, 0.2);
}
.card h3{ color:#fff; font-weight:600; margin-bottom:10px; }
.contact-cards .atendimento{
  background:none; border:none; padding:0; margin-top:6px; display:flex;
  align-items:center; gap:6px; font-size:13px; color:#aaa;
}
.contact-cards .atendimento::before{ content:"⏰"; display:inline-block; }

/* Location Map */
.location-map{
  text-align:left; background:#1a1a1a; border-radius:15px; padding:20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333;
}
.location-map:hover{ 
  transform: translateY(-4px); 
  box-shadow:0 8px 25px rgba(217, 43, 32, 0.2); 
}
.map-content{ padding:0 0 20px 0; }
.location-map p{ color:#aaa; margin-bottom:0; text-align:left; line-height:1.5; }
.map-iframe{
  width:100%; height:250px; border:0; border-radius:12px; max-width:100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.map-iframe:hover{ transform: scale(1.02); box-shadow:0 6px 18px rgba(0,0,0,0.25); }

/* COPYRIGHT */
.copyright{
  text-align:center; padding:15px 24px; border-top:1px solid #333; background:transparent;
}
.copyright p{ color:#888; margin:0; font-size:.9em; letter-spacing:.3px; }

/* BOTÕES E LINKS FOOTER */
.btn-whatsapp{
  display:inline-block; padding:12px 18px; background:var(--accent); color:#fff;
  border-radius:8px; text-decoration:none; font-weight:600; transition:.3s;
}
.btn-whatsapp:hover{ background:#20b457; }
.mailto{ color:var(--red); font-weight:500; transition:.2s; }
.mailto:hover{ color:#fff; }

/* --- RESPONSIVIDADE E CORREÇÃO DE ALINHAMENTO --- */
@media(max-width:1024px){ 
    .footer-content{ grid-template-columns: 1fr; gap:22px; } 
    .footer-col h2{ text-align:center; margin-bottom:14px; } 
    /* AJUSTE PARA QUEM SOMOS: Remove o padding extra e muda a borda para cima em telas menores */
    .quem-somos-container{ 
        padding-left: 40px; 
        border: 1px solid #ddd;
        border-top: 10px solid var(--red); 
        border-left: none; /* Remove a borda no lado esquerdo */
    }
    .quem-somos-container::before {
        content: none; /* Remove o gradiente da esquerda em telas menores */
    }
}

@media(max-width:950px) {
    /* Remove o alinhamento central para que funcione corretamente em 2 colunas */
    .servicos-grid .servico-card:nth-child(7) {
        grid-column-start: auto; 
        grid-column-end: auto;
    }
}

@media (min-width: 950px) {
    /* Centraliza o último card em layouts de 3 colunas */
    .servicos-grid .servico-card:nth-child(7) {
        grid-column-start: 2;
        grid-column-end: 3;
    }
}

@media(max-width:768px){ 
    .footer-content{ grid-template-columns:1fr; gap:18px; padding:12px; } 
    .footer-col h2{ text-align:center !important; font-size:20px !important; } 
    .card, .location-map{ border-radius:12px; padding:16px; } 

    /* Ajustes Hero Mobile */
    .hero { padding: 60px 20px; min-height: 350px; }
    .hero-title { font-size: 32px; }
    .hero-lead { font-size: 1.1em; }
    .btn-hero { padding: 14px 28px; font-size: 1em; }
    
    /* Ajustes Gerais Mobile */
    .quem-somos-container, .servicos-container, .frota-container{ padding: 25px 15px; }
    .quem-somos-content h2, .servicos-container h2, .frota-container h2 { font-size: 24px; }
}

@media(max-width:480px){ 
    .footer-content{ padding:8px; gap:12px; } 
    .footer-col h2{ font-size:18px !important; } 
    .map-iframe{ height:160px !important; } 
    .copyright p{ font-size:12px !important; } 

    /* Ajustes Hero Mobile - telas pequenas */
    .hero { padding: 50px 15px; min-height: 300px; }
    .hero-title { font-size: 28px; margin-bottom: 15px; }
    .hero-lead { font-size: 1em; margin-bottom: 30px; }
    .btn-hero { padding: 12px 24px; font-size: 0.9em; }
}

@media(max-width:390px){ 
    .footer-content{ padding:6px; gap:10px; } 
    .map-iframe{ height:140px !important; } 
    /* Ajustes Hero Mobile - telas muito pequenas */
    .hero-title { font-size: 24px; }
    .hero-lead { font-size: 0.9em; }
}

@media(max-width:320px){ 
    .footer-content{ padding:4px; gap:8px; } 
    .copyright p{ font-size:11px !important; } 
}