@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #0f1115;
  --bg-secondary: #181b21;
  --bg-card: #1f232b;
  --primary-color: #facc15;
  --primary-hover: #eab308;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --transition: 0.3s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--text-main);
}

.text-primary {
  color: var(--primary-color);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  position: relative;
  display: block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  background-color: rgba(15, 17, 21, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

header.scrolled {
  padding: 5px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  position: relative;
}

@media (min-width: 769px) {
  nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .mobile-whatsapp {
    display: none;
  }
}

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

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links li a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
  position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary-color);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #000;
  box-shadow: 0 4px 15px rgba(250, 204, 21, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #000;
}

/* Mobile Menu */
.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 1.5rem;
}

/* Generic Section Padding */
.section-padding {
  padding: 6rem 0;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%), url('../images/hero-oficina.jpg') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Cards (Services & Batteries) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background-color: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-img-wrapper {
  overflow: hidden;
  width: 100%;
  height: 192px;
  border-bottom: 1px solid var(--border-color);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  background-color: var(--bg-secondary);
}

.card:hover .card-img {
  transform: scale(1.08);
}

.card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  background-color: rgba(250, 204, 21, 0.1);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Features/Diferenciais */
.features {
  background-color: var(--bg-secondary);
}

/* Footer */
footer {
  background-color: #08090a;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.footer-col p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Specific Pages Modifiers */
.page-header {
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

/* Fallback & Custom Backgrounds */
.page-header-baterias {
  background: linear-gradient(rgba(15, 17, 21, 0.8), rgba(15, 17, 21, 0.95)), url('../images/hero-oficina.jpg') center/cover;
}
.page-header-servicos {
  background: linear-gradient(rgba(15, 17, 21, 0.8), rgba(15, 17, 21, 0.95)), url('../images/servico-revisao.jpg') center/cover;
}
.page-header-localizacao {
  background: linear-gradient(rgba(15, 17, 21, 0.8), rgba(15, 17, 21, 0.95)), url('../images/hero-oficina.jpg') center/cover;
}
.page-header-contato {
  background: linear-gradient(rgba(15, 17, 21, 0.8), rgba(15, 17, 21, 0.95)), url('../images/hero-oficina.jpg') center/cover;
}

.page-header h1 {
  font-size: 3rem;
  color: var(--primary-color);
}

/* Location Page Details */
.location-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.location-info .info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.info-item h4 {
  margin-bottom: 5px;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

/* Contact Page Details */
.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 1.2rem;
  border-radius: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  transition: var(--transition);
}

.contact-btn:hover {
  background-color: var(--primary-color);
  color: #000;
  transform: translateY(-5px);
}

.contact-btn i {
  font-size: 1.8rem;
}

/* Utils */
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.text-center { text-align: center; }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 1001;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    transition: 0.4s ease-in-out;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    z-index: 1000;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 1.5rem 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .location-wrapper {
    grid-template-columns: 1fr;
  }
}
