/* =====================
   DESIGN TOKENS & CORES
   ===================== */
:root {
  --primary-dark: #1a1a1a;
  --primary-darker: #0d0d0d;
  --bg-light: #f5f5f5;
  --accent-color: #ff8c00;
  --accent-hover: #ff7600;
  --text-light: #e0e0e0;
  --text-muted: #b0b0b0;
  --border-color: #2a2a2a;
}

/* =====================
   GLOBAL STYLES
   ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--primary-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--text-light);
}

p {
  color: var(--text-muted);
}

/* =====================
   NAVBAR
   ===================== */
.navbar-custom {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
  border-bottom: 2px solid var(--accent-color);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--accent-color) !important;
  text-transform: uppercase;
}

.navbar-brand i {
  margin-right: 0.5rem;
  animation: rotate-icon 3s linear infinite;
}

@keyframes rotate-icon {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.nav-link {
  position: relative;
  color: var(--text-light) !important;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* =====================
   HERO SECTION
   ===================== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 140, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 140, 0, 0.05) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-image {
  animation: slideInRight 1s ease-out;
  filter: drop-shadow(0 20px 40px rgba(255, 140, 0, 0.2));
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.badge-accent {
  background-color: var(--accent-color);
  color: var(--primary-dark) !important;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  font-size: 0.75rem;
}

.hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.stats-bar {
  background: linear-gradient(90deg, var(--primary-dark) 0%, rgba(255, 140, 0, 0.1) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 0;
}

.stat-number {
  font-size: 2.5rem;
  color: var(--accent-color);
  font-weight: 800;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =====================
   BUTTONS
   ===================== */
.btn-accent {
  background-color: var(--accent-color);
  color: var(--primary-dark) !important;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--accent-hover);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-accent:hover::before {
  left: 0;
}

.btn-accent:hover {
  color: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
}

.btn-outline-accent {
  color: var(--accent-color) !important;
  border: 2px solid var(--accent-color) !important;
  background-color: transparent;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-outline-accent:hover {
  background-color: var(--accent-color);
  color: var(--primary-dark) !important;
}

/* =====================
   SERVICE CARDS
   ===================== */
.service-card {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.05) 0%, transparent 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(255, 140, 0, 0.1);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background-color: var(--accent-color) !important;
  color: var(--primary-dark) !important;
}

/* =====================
   PEÇAS GALLERY
   ===================== */
.peças-card {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.05) 0%, transparent 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.peças-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.peças-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.peças-card:hover .peças-image img {
  transform: scale(1.1);
}

.peças-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.peças-content h4 {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.peças-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(255, 140, 0, 0.1);
}

/* =====================
   DIFERENCIAIS
   ===================== */
.diferencial-item {
  transition: all 0.3s ease;
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 3px solid var(--accent-color);
}

.diferencial-item:hover {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.05) 0%, transparent 100%);
  padding-left: 2rem;
}

.diferencial-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-dark);
  flex-shrink: 0;
}

/* =====================
   CONTACT CARDS
   ===================== */
.contact-card {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.05) 0%, transparent 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(255, 140, 0, 0.1);
}

.contact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background-color: var(--accent-color) !important;
  color: var(--primary-dark) !important;
}

/* =====================
   FORM
   ===================== */
.form-control-custom {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-light) !important;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-control-custom::placeholder {
  color: var(--text-muted) !important;
}

.form-control-custom:focus {
  background-color: rgba(255, 140, 0, 0.1) !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
  color: var(--text-light) !important;
}

/* =====================
   FOOTER
   ===================== */
.bg-darker {
  background-color: var(--primary-darker);
  border-top: 1px solid var(--border-color);
}

footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-color) !important;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 2rem;
  }

  .hero-section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .stats-bar {
    padding: 2rem 0;
  }

  .stat-number {
    font-size: 2rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .diferencial-item {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section .row {
    flex-direction: column;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .btn-accent,
  .btn-outline-accent {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  .peças-image {
    height: 150px;
  }

  .badge-accent {
    font-size: 0.65rem;
    padding: 0.4rem 0.8rem;
  }
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.animate-on-scroll {
  animation: slideUp 0.6s ease-out forwards;
  animation-fill-mode: both;
}

section {
  animation: fadeIn 0.8s ease-out;
}
