/* ESTILOS GERAIS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

/* HEADER */
.header {
  background: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #eaeaea;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.company-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #05580cff;
  font-family: "Montserrat", sans-serif;
}

/* NAV DESKTOP */
.nav {
  display: flex;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s;
  font-size: 1rem;
}

.nav a:hover {
  color: #1a365d;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #1a365d;
  transition: width 0.3s;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a.active {
  color: #1a365d;
  font-weight: 600;
}

/* HAMBURGER MOBILE */
.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  z-index: 1002;
}

/* SIDEBAR MOBILE */
#sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  height: 100vh;
  width: 280px;
  background: white;
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  z-index: 1001;
  transition: left 0.3s ease;
  overflow-y: auto;
}

#sidebar.active {
  left: 0;
}

#sidebar ul {
  list-style: none;
  margin-top: 3rem;
}

#sidebar li {
  margin-bottom: 1rem;
}

#sidebar a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  transition: all 0.3s;
  position: relative;
}

#sidebar a:hover,
#sidebar a.active {
  color: #1a365d;
}

#sidebar a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: #1a365d;
}

/* OVERLAY */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.sidebar-overlay.active {
  display: block;
}

/* CARROSSEL */
.carousel {
  position: relative;
  margin-top: 80px;
  height: 400px;
  overflow: hidden;
  border-radius: 0 0 10px 10px;
}

.slides {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s;
}

.slide.active {
  opacity: 1;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background-color 0.3s;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 10px;
  border-radius: 0 5px 5px 0;
}

.next {
  right: 10px;
  border-radius: 5px 0 0 5px;
}

.indicators {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: white;
}

/* PRODUTOS WRAPPER */
.products-wrapper {
  display: flex;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1rem;
  gap: 2rem;
}

/* SIDEBAR FILTRO */
.sidebar {
  flex: 0 0 220px;
  background-color: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar h3 {
  margin-bottom: 1.5rem;
  color: #1a365d;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eaeaea;
  font-size: 1.2rem;
}

.category-list {
  list-style: none;
}

.category-list li {
  margin-bottom: 0.5rem;
}

.category-list button {
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: left;
  background: none;
  border: none;
  border-radius: 5px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: all 0.3s;
}

.category-list button:hover {
  background-color: #f5f5f5;
  color: #1a365d;
}

.category-list button.active {
  background-color: #1a365d;
  color: white;
}

/* FOOTER */
.site-footer {
  background-color: #1a365d;
  color: white;
  padding: 3rem 0 0;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-column h4 {
  margin-bottom: 1.2rem;
  color: #4dabf7;
}

.footer-column p,
.footer-column a {
  color: #dee2e6;
  margin-bottom: 0.8rem;
  display: block;
}

.footer-column a {
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #4dabf7;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color 0.3s;
}

.social-icons a:hover {
  background-color: #4dabf7;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #adb5bd;
  font-size: 0.9rem;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
  .products-wrapper {
    flex-direction: column;
  }

  .sidebar {
    position: sticky;
    width: 100%;
    margin-bottom: 1rem;
    flex: none;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1rem;
  }

  .nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .carousel {
    height: 300px;
    margin-top: 70px;
  }

  .sidebar {
    flex: 0 0 180px;
    padding: 1rem;
  }

  .products-wrapper {
    flex-direction: row;
    gap: 1rem;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .product-card img {
    height: 140px;
  }

  .product-info {
    padding: 1rem;
  }

  .product-info h4 {
    font-size: 1rem;
  }

  .product-info .price {
    font-size: 1.1rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .products-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }

  .sidebar {
    width: 100%;
    flex: none;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .carousel {
    height: 200px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* CONTEÚDO PRINCIPAL - SERVIÇOS LATERAL */
.main-services {
  display: flex;
  gap: 40px;
  padding: 80px 50px 50px 50px; /* considerando header fixo */
}

/* TÍTULO E INFORMAÇÕES */
.services-title {
  flex: 1;
  position: sticky;
  top: 120px;
}
.services-title h2 {
  font-size: 28px;
  font-weight: bold;
  color: #111;
  margin-bottom: 20px;
}
.services-info {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* BLOCOS DE SERVIÇOS */
.services-content {
  flex: 3;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 por linha */
  gap: 30px;
  justify-items: center; /* centraliza horizontalmente */
}
.service-block {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  width: 100%;
}
.service-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
.service-block h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #0a2540;
}
.service-block p {
  font-size: 16px;
  margin-bottom: 8px;
  color: #333;
}

/* BOTÃO CONSULTAR SERVIÇO */
.btn-service {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background: #0a2540;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
}
.btn-service:hover {
  background: #111;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .main-services {
    flex-direction: column;
    padding: 100px 20px 20px 20px;
  }
  .services-title {
    position: relative;
    top: 0;
    margin-bottom: 20px;
    text-align: center;
  }
  .services-info {
    margin-bottom: 30px;
  }
  .services-content {
    grid-template-columns: 1fr; /* 1 por linha no mobile */
  }
  .service-block {
    text-align: center;
  }
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .cta h2 {
    font-size: 24px;
  }
  .cta p {
    font-size: 16px;
  }
  .btn-cta {
    padding: 12px 25px;
    font-size: 16px;
  }
}

/* APRESENTAÇÃO BREVE */
.main-presentation {
  display: flex;
  gap: 40px;
  padding: 80px 50px 50px 50px; /* considera header fixo */
}

.presentation-title {
  flex: 1;
  position: sticky;
  top: 120px;
}
.presentation-title h2 {
  font-size: 28px;
  font-weight: bold;
  color: #111;
  margin-bottom: 20px;
}

.presentation-content {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.presentation-content p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

.btn-presentation {
  display: inline-block;
  padding: 10px 20px;
  background: #0a2540;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
  width: fit-content;
}
.btn-presentation:hover {
  background: #111;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .main-presentation {
    flex-direction: column;
    padding: 100px 20px 20px 20px;
  }
  .presentation-title {
    position: relative;
    top: 0;
    text-align: center;
    margin-bottom: 20px;
  }
  .presentation-content {
    text-align: center;
  }
}
.site-footer {
  background: #0f172a;
  color: #e5e7eb;
  padding: 40px 20px 20px;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.footer-column h4 {
  margin-bottom: 12px;
  color: #ffffff;
}

.footer-column p,
.footer-column a,
.footer-column li {
  font-size: 14px;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column a {
  text-decoration: none;
  color: #e5e7eb;
}

.footer-column a:hover {
  color: #38bdf8;
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  display: inline-block;
  margin-right: 10px;
  font-size: 18px;
  color: #e5e7eb;
}

.social-icons a:hover {
  color: #38bdf8;
}

.footer-bottom {
  text-align: center;
  margin-top: 25px;
  border-top: 1px solid #1f2937;
  padding-top: 12px;
  font-size: 13px;
}

/* 🔹 Responsivo */
@media (max-width: 800px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* Additional Styles for Enhanced Design */

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
  margin-top: 2px;
}

/* Header */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
}

.logo span {
  color: #3498db;
}

.nav-menu ul {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-menu a:hover {
  color: #3498db;
}

.nav-menu a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #3498db;
  left: 0;
  bottom: -5px;
  transition: width 0.3s;
}

.nav-menu a:hover:after {
  width: 100%;
}

/* Main Services Section */
.main-services {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.services-title {
  margin-bottom: 50px;
  text-align: center;
}

.services-title h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 36px;
  color: #2c3e50;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.services-title h2:after {
  content: "";
  position: absolute;
  width: 70px;
  height: 4px;
  background: #3498db;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.services-info {
  background-color: #f0f7ff;
  padding: 25px;
  border-radius: 10px;
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: #2c3e50;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Services Content - New Grid Layout with Images */
.services-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(550px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.service-block {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 280px;
}

.service-block:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.service-image {
  flex: 0 0 45%;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-block:hover .service-image img {
  transform: scale(1.05);
}

.service-info {
  flex: 0 0 55%;
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.service-info h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f7ff;
}

.service-info p {
  margin-bottom: 8px;
  color: #555;
  position: relative;
  padding-left: 15px;
}

.service-info p:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #3498db;
  font-weight: bold;
}

.btn-service {
  display: inline-block;
  margin-top: auto;
  background-color: #3498db;
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid #3498db;
}

.btn-service:hover {
  background-color: transparent;
  color: #3498db;
}

/* Main Presentation Section */
.main-presentation {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
}

.presentation-title {
  flex: 0 0 30%;
  padding-right: 40px;
}

.presentation-title h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 36px;
  color: #2c3e50;
  position: relative;
}

.presentation-title h2:after {
  content: "";
  position: absolute;
  width: 70px;
  height: 4px;
  background: #3498db;
  bottom: -10px;
  left: 0;
}

.presentation-content {
  flex: 0 0 70%;
  background-color: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.presentation-content p {
  font-size: 18px;
  line-height: 1.8;
  color: #2c3e50;
  margin-bottom: 30px;
}

.btn-presentation {
  display: inline-block;
  background-color: #2c3e50;
  color: white;
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #2c3e50;
}

.btn-presentation:hover {
  background-color: transparent;
  color: #2c3e50;
}

/* Footer */
.site-footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding-top: 20px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 40px;
  padding-right: 5px;
}

.footer-column h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  margin-bottom: 25px;
  color: white;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h4:after {
  content: "";
  position: absolute;
  width: 50px;
  height: 2px;
  background: #3498db;
  bottom: 0;
  left: 0;
}

.footer-column p {
  margin-bottom: 15px;
  line-height: 1.7;
  color: #bdc3c7;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #3498db;
}

.social-icons {
  display: flex;
  margin-top: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 12px;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

.social-icons a:hover {
  background-color: #3498db;
  transform: translateY(-3px);
}

.footer-bottom {
  background-color: #1a252f;
  padding: 25px 0;
  text-align: center;
  margin-top: 40px;
}

.footer-bottom p {
  color: #95a5a6;
  font-size: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .services-content {
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  }
}

@media (max-width: 768px) {
  .services-content {
    grid-template-columns: 1fr;
  }

  .service-block {
    flex-direction: column;
    height: auto;
  }

  .service-image {
    flex: 0 0 200px;
  }

  .service-info {
    flex: 1;
  }

  .main-presentation {
    flex-direction: column;
  }

  .presentation-title {
    padding-right: 0;
    margin-bottom: 30px;
  }

  .nav-menu ul {
    display: none;
  }

  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .logo {
    margin-bottom: 15px;
  }

  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 26px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .services-title h2,
  .presentation-title h2 {
    font-size: 28px;
  }

  .services-info,
  .presentation-content {
    padding: 20px;
  }

  .service-info {
    padding: 20px;
  }

  .service-info h3 {
    font-size: 20px;
  }
}

/* ========== SIMPLE LOADING ========== */
.simple-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(128, 128, 128, 0.3); /* Cinza claro transparente */
  display: none; /* Começa escondido */
  justify-content: center;
  align-items: center;
  z-index: 99999; /* Acima de tudo */
}

.simple-loading.active {
  display: flex; /* Mostra quando ativo */
}

.loading-content {
  display: flex;
  gap: 12px;
  padding: 20px;
}

.loading-dot {
  width: 16px;
  height: 16px;
  background-color: #10b981;
  border-radius: 50%;
  animation: loadingAnimation 1.5s infinite ease-in-out;
}

.loading-dot:nth-child(1) {
  animation-delay: 0s;
}
.loading-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.loading-dot:nth-child(3) {
  animation-delay: 0.4s;
}
.loading-dot:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes loadingAnimation {
  0%,
  100% {
    transform: scale(0.8);
    opacity: 0.3;
    background-color: #10b981;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
    background-color: #059669;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  }
}
