/* ========================================
   SITE OFICINA AUTO PERFORMANCE
   Design Moderno e Elegante
   
   PALETA DE CORES:
   Preto: #000, #1a1a1a
   Vermelho: #dc143c
   Vermelho Escuro: #b01030
   Cinza: #f5f5f5, #e0e0e0, #666
   Branco: #fff
   ======================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ======================================== */
/* HEADER FIXO MODERNO */
/* ======================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  color: #fff;
  padding: 20px 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  z-index: 1000;
  transition: padding 0.3s, box-shadow 0.3s;
}

header.scrolled {
  padding: 15px 50px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  transition: transform 0.3s;
  color: inherit;
}

.logo:hover {
  transform: scale(1.05);
  text-decoration: none;
}

.logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(220, 20, 60, 0.5));
}

.logo h1 {
  font-size: 1.5em;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #dc143c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

/* Botão Menu Hamburger (oculto no desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Navegação Moderna */
nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  padding: 8px 16px;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #dc143c, #b01030);
  border-radius: 3px;
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: #dc143c;
  background: rgba(220, 20, 60, 0.15);
  transform: translateY(-2px);
}

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

nav ul li a.active {
  color: #dc143c;
  background: rgba(220, 20, 60, 0.2);
}

nav ul li a.active::after {
  width: 80%;
}

/* ======================================== */
/* HERO SECTION - DESIGN IMPACTANTE */
/* ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px 20px 100px;
  background: 
    linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(220,20,60,0.6) 100%),
    url('../imagens/oficina.jpg') center/cover no-repeat fixed;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(220,20,60,0.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}

.hero h2 {
  font-size: 4em;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  letter-spacing: -1px;
  line-height: 1.2;
}

.hero h2 span {
  color: #dc143c;
  text-shadow: 0 0 30px rgba(220,20,60,0.8);
}

.hero p {
  font-size: 1.4em;
  margin-bottom: 40px;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.btn {
  display: inline-block;
  padding: 18px 45px;
  background: linear-gradient(135deg, #dc143c 0%, #b01030 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(220,20,60,0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(220,20,60,0.6);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid #fff;
  border-radius: 25px;
  position: relative;
}

.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #dc143c;
  border-radius: 50%;
  animation: scrollDot 2s infinite;
}

/* ======================================== */
/* SEÇÃO SOBRE - DESIGN ELEGANTE */
/* ======================================== */
.sobre {
  padding: 100px 50px;
  background: linear-gradient(180deg, #f5f5f5 0%, #fff 100%);
  position: relative;
}

.sobre::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(220,20,60,0.05) 100%);
  pointer-events: none;
}

.sobre-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.sobre-content h2 {
  font-size: 3em;
  font-weight: 900;
  color: #000;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.sobre-content h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, #dc143c 0%, transparent 100%);
}

.sobre-content p {
  font-size: 1.1em;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.8;
}

.sobre-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(220,20,60,0.2);
}

.stat-number {
  font-size: 2.5em;
  font-weight: 900;
  color: #dc143c;
  display: block;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.9em;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ======================================== */
/* SEÇÃO SERVIÇOS - CARDS MODERNOS */
/* ======================================== */
.servicos {
  padding: 100px 50px;
  background: #1a1a1a;
  color: #fff;
  position: relative;
}

.servicos-header {
  text-align: center;
  margin-bottom: 70px;
}

.servicos-header h2 {
  font-size: 3em;
  font-weight: 900;
  color: #fff;
  margin-bottom: 15px;
}

.servicos-header p {
  font-size: 1.2em;
  color: #999;
}

.servicos-lista {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.servico-item {
  background: linear-gradient(135deg, #222 0%, #2a2a2a 100%);
  padding: 40px 30px;
  border-radius: 20px;
  border: 1px solid rgba(220,20,60,0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.servico-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #dc143c 0%, #b01030 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s;
}

.servico-item:hover::before {
  transform: scaleX(1);
}

.servico-item:hover {
  transform: translateY(-15px);
  border-color: #dc143c;
  box-shadow: 0 20px 50px rgba(220,20,60,0.3);
}

.servico-icon {
  font-size: 3.5em;
  margin-bottom: 20px;
  display: block;
  filter: grayscale(1);
  transition: filter 0.3s;
}

.servico-item:hover .servico-icon {
  filter: grayscale(0);
}

.servico-item h3 {
  font-size: 1.5em;
  color: #fff;
  margin-bottom: 15px;
  font-weight: 700;
}

.servico-item p {
  color: #bbb;
  line-height: 1.8;
  font-size: 1em;
}

/* ======================================== */
/* SEÇÃO CONTATO - DESIGN MODERNO */
/* ======================================== */
.contato {
  padding: 100px 50px;
  background: 
    linear-gradient(135deg, rgba(220,20,60,0.95) 0%, rgba(0,0,0,0.95) 100%),
    url('../imagens/oficina.jpg') center/cover fixed;
  color: #fff;
}

.contato-container {
  max-width: 800px;
  margin: 0 auto;
}

.contato h2 {
  font-size: 3em;
  font-weight: 900;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.contato-intro {
  text-align: center;
  font-size: 1.2em;
  margin-bottom: 50px;
  opacity: 0.95;
}

#formContato {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 50px;
  border-radius: 25px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 15px 50px rgba(0,0,0,0.4);
}

.form-group {
  margin-bottom: 25px;
}

#formContato input,
#formContato textarea {
  width: 100%;
  padding: 18px 25px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 15px;
  color: #fff;
  font-size: 1em;
  font-family: inherit;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}

#formContato input::placeholder,
#formContato textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

#formContato input:focus,
#formContato textarea:focus {
  outline: none;
  background: rgba(255,255,255,0.2);
  border-color: #fff;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

#formContato textarea {
  min-height: 150px;
  resize: vertical;
}

#formContato button {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  color: #dc143c;
  border: none;
  border-radius: 15px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#formContato button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

/* ======================================== */
/* FOOTER MODERNO */
/* ======================================== */
footer {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  color: #fff;
  padding: 40px 50px;
  text-align: center;
  border-top: 3px solid #dc143c;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #dc143c 50%, transparent 100%);
}

footer p {
  margin: 0;
  font-size: 1em;
  opacity: 0.8;
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes scrollDot {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

/* ======================================== */
/* RESPONSIVIDADE MOBILE */
/* ======================================== */
@media (max-width: 1024px) {
  .sobre-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sobre-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }

  .header-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .logo h1 {
    font-size: 1.2em;
  }

  /* Mostrar botão hamburger no mobile */
  .menu-toggle {
    display: flex;
  }

  /* Overlay escuro quando menu aberto */
  nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: -1;
  }

  nav.active::before {
    opacity: 1;
    visibility: visible;
  }

  /* Menu mobile - oculto por padrão */
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    padding: 80px 30px 30px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    z-index: 999;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  nav ul li a {
    display: block;
    width: 100%;
    font-size: 1.1em;
    padding: 18px 20px;
    border-radius: 0;
    text-align: left;
  }

  nav ul li a.active {
    background: rgba(220, 20, 60, 0.2);
  }

  .hero {
    padding: 120px 20px 80px;
  }

  .hero h2 {
    font-size: 2.5em;
  }

  .hero p {
    font-size: 1.1em;
  }

  .sobre,
  .servicos,
  .contato {
    padding: 60px 20px;
  }

  .sobre-content h2,
  .servicos-header h2,
  .contato h2 {
    font-size: 2em;
  }

  .sobre-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .servicos-lista {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  #formContato {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 2em;
  }

  .btn {
    padding: 15px 35px;
    font-size: 1em;
  }
}
