/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { 
  scroll-behavior: smooth; 
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Previne overflow horizontal em todos os elementos */
img {
  max-width: 100%;
  height: auto;
}

/* Garante que todos os elementos respeitem a largura da tela */
.hero, .services, .about, .testimonials, .cta-final, .footer {
  max-width: 100vw;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Fixo */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-img { height: 50px; transition: transform 0.3s ease; }
.logo-img:hover { transform: scale(1.05); }

.nav-menu { display: flex; list-style: none; gap: 2rem; }
.nav-menu a {
  text-decoration: none; color: #333; font-weight: 500; transition: color 0.3s ease; position: relative;
}
.nav-menu a:hover { color: #EA0E0F; }
.nav-menu a::after {
  content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: #EA0E0F; transition: width 0.3s ease;
}
.nav-menu a:hover::after { width: 100%; }

.cta-button {
  background: #EA0E0F; color: #fff; border: none; padding: 12px 24px; border-radius: 25px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(234, 14, 15, 0.3);
}
.cta-button:hover { background: #d00d0e; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(234, 14, 15, 0.4); }

.mobile-menu-toggle { display: none; flex-direction: column; cursor: pointer; }
.mobile-menu-toggle span { width: 25px; height: 3px; background: #333; margin: 3px 0; transition: 0.3s; }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); padding-top: 100px; position: relative; overflow: hidden;
}
.hero-content { flex: 1; padding: 2rem; z-index: 2; }
.hero-title { font-size: 3.5rem; font-weight: 700; color: #000; margin-bottom: 1rem; line-height: 1.2; animation: fadeInUp 1s ease; }
.hero-subtitle { font-size: 1.3rem; color: #666; margin-bottom: 2rem; animation: fadeInUp 1s ease 0.2s both; }
.hero-buttons { display: flex; gap: 1rem; animation: fadeInUp 1s ease 0.4s both; }

.btn-primary {
  background: #EA0E0F; color: #fff; border: none; padding: 15px 30px; border-radius: 30px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(234, 14, 15, 0.3);
}
.btn-primary:hover { background: #d00d0e; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(234, 14, 15, 0.4); }

.btn-secondary {
  background: transparent; color: #EA0E0F; border: 2px solid #EA0E0F; padding: 15px 30px; border-radius: 30px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease;
}
.btn-secondary:hover { background: #EA0E0F; color: #fff; transform: translateY(-3px); }

.hero-image { flex: 1; display: flex; justify-content: center; align-items: center; animation: fadeInRight 1s ease 0.6s both; }
.hero-banner { max-width: 100%; height: auto; border-radius: 20px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease; }
.hero-banner:hover { transform: scale(1.02); }

/* Serviços */
.services { padding: 5rem 0; background: #fff; }
.section-title { text-align: center; font-size: 2.5rem; font-weight: 700; color: #000; margin-bottom: 3rem; position: relative; }
.section-title::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: #EA0E0F; border-radius: 2px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.service-card { background: #fff; padding: 2.5rem 2rem; border-radius: 20px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; border: 1px solid #f0f0f0; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); border-color: #EA0E0F; }
.service-icon { width: 80px; height: 80px; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; }
.service-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.service-card h3 { font-size: 1.5rem; font-weight: 600; color: #000; margin-bottom: 1rem; }
.service-card p { color: #666; line-height: 1.6; }

/* Sobre */
.about { padding: 5rem 0; background: #f8f9fa; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text p { margin-bottom: 1.5rem; color: #555; font-size: 1.1rem; line-height: 1.8; }
.about-image { text-align: center; }
.about-img { max-width: 100%; height: auto; border-radius: 20px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease; }
.about-img:hover { transform: scale(1.05); }

/* Depoimentos */
.testimonials { padding: 5rem 0; background: #fff; }
.testimonials-carousel { position: relative; max-width: 800px; margin: 0 auto; overflow: hidden; }
.testimonial { text-align: center; padding: 2rem; display: none; animation: fadeIn 0.5s ease; }
.testimonial.active { display: block; }
.testimonial p { font-size: 1.2rem; font-style: italic; color: #555; margin-bottom: 2rem; line-height: 1.8; }
.testimonial-author strong { color: #000; font-size: 1.1rem; display: block; margin-bottom: 0.5rem; }
.testimonial-author span { color: #EA0E0F; font-size: 0.9rem; }
.carousel-controls { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; }
.carousel-btn { background: #EA0E0F; color: #fff; border: none; width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; transition: all 0.3s ease; }
.carousel-btn:hover { background: #d00d0e; transform: scale(1.1); }

/* CTA Final */
.cta-final { padding: 5rem 0; background: #EA0E0F; color: #fff; text-align: center; }
.cta-final h2 { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; }
.cta-final p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }
.cta-buttons { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.btn-whatsapp, .btn-phone { display: flex; align-items: center; gap: 0.5rem; background: #fff; color: #EA0E0F; text-decoration: none; padding: 15px 30px; border-radius: 30px; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
.btn-whatsapp:hover, .btn-phone:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); }
.btn-whatsapp img, .btn-phone img { width: 20px; height: 20px; }

/* Rodapé */
.footer { background: #000; color: #fff; padding: 3rem 0 1rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h4 { color: #EA0E0F; margin-bottom: 1rem; font-size: 1.2rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section a { color: #ccc; text-decoration: none; transition: color 0.3s ease; }
.footer-section a:hover { color: #EA0E0F; }
.footer-logo { height: 60px; margin-bottom: 1rem; }
.map-container { border-radius: 10px; overflow: hidden; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid #333; color: #ccc; }
.footer-bottom a { color: #EA0E0F; text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* Animações */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Responsividade */
@media (max-width: 768px) {
  .nav-container { 
    padding: 1rem; 
    flex-wrap: wrap; 
    gap: 1rem;
  }
  .nav-menu { display: none; }
  .mobile-menu-toggle { display: flex; }
  .hero { 
    flex-direction: column; 
    text-align: center; 
    padding: 5rem 1rem 2rem 1rem; 
    min-height: auto;
  }
  .hero-content { 
    padding: 1rem; 
    margin-bottom: 2rem;
  }
  .hero-title { 
    font-size: 2.2rem; 
    line-height: 1.1;
    margin-bottom: 1rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  .hero-buttons { 
    flex-direction: column; 
    align-items: center; 
    gap: 1rem;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  .hero-image {
    width: 100%;
    padding: 0 1rem;
  }
  .hero-banner {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .about-content { 
    grid-template-columns: 1fr; 
    text-align: center; 
    gap: 2rem;
    padding: 0 1rem;
  }
  .cta-buttons { 
    flex-direction: column; 
    align-items: center; 
    gap: 1rem;
  }
  .btn-whatsapp, .btn-phone {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  .cta-final h2 { font-size: 2rem; }
  .cta-final p {
    font-size: 1rem;
    padding: 0 1rem;
  }
  .services-grid { 
    grid-template-columns: 1fr; 
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .service-card {
    margin: 0 auto;
    max-width: 100%;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 0 1rem;
  }
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .nav-container { 
    padding: 0.5rem 1rem; 
    flex-wrap: nowrap;
  }
  .logo-img { 
    height: 40px; 
    max-width: 120px;
  }
  .cta-button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  .hero-title { 
    font-size: 1.8rem; 
    line-height: 1.2;
    padding: 0 0.5rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
  .section-title { 
    font-size: 1.8rem; 
    padding: 0 0.5rem;
  }
  .hero {
    padding: 4.5rem 1rem 2rem 1rem;
  }
  .hero-buttons {
    padding: 0 0.5rem;
  }
  .btn-primary, .btn-secondary {
    font-size: 1rem;
    padding: 12px 20px;
    max-width: 100%;
  }
  .service-card {
    padding: 1.5rem 1rem;
    margin: 0 0.5rem;
  }
  .cta-final h2 {
    font-size: 1.8rem;
    padding: 0 0.5rem;
  }
  .cta-final p {
    font-size: 0.9rem;
    padding: 0 1rem;
  }
  .footer-section {
    padding: 0 0.5rem;
  }
  .footer-bottom {
    padding: 1rem 0.5rem 0;
  }
  .footer-bottom p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}
