/* ── HERO ── */

.hero-images {
  position: absolute;
  inset: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(rgba(13, 20, 19, 0.6), rgba(13, 20, 19, 0.6)),
    radial-gradient(circle at center, rgba(29, 219, 181, 0.04), transparent 70%);
}

.hero-slide {
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;

  opacity: 0;

  transition: opacity 3s ease-in-out;

  filter: grayscale(30%) brightness(0.45) contrast(1.15);
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide:nth-child(1) {
  background-image: url("/servicos/assets/image-app.png");
}

.hero-slide:nth-child(2) {
  background-image: url("/servicos/assets/image-code.png");
}

.hero-slide:nth-child(3) {
  background-image: url("/servicos/assets/image-infra.png");
}

.hero-slide:nth-child(4) {
  background-image: url("/servicos/assets/image-hardware.png");
}

/* ── SERVICES ── */
.services {
  background: var(--bg-secondary);
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.2;
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-header .section-desc {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── maintenance ── */
.maintenance {
  background: var(--bg-primary);
  position: relative;
}
.maintenance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.section-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── networks ── */
.networks {
  background: var(--bg-secondary);
  position: relative;
}
.networks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* ── apps ── */
.apps {
  background: var(--bg-primary);
  position: relative;
}
.apps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.services-image {
  width: 75%;
  height: auto;
  display: block;
}

/* ── TESTIMONIALS ── */
.testimonials {
  position: relative;
  background: linear-gradient(
    to bottom,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
}

.testimonials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.2;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-slide {
    background-position: 78% center;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .hero-slide {
    background-position: 85% center;
  }

  .services-image {
    width: 60%;
    height: auto;
    display: block;
  }
  .maintenance-grid,
  .networks-grid,
  .apps-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .section-visual {
    height: 250px;
    order: 1;
  }
  .section-content {
    order: 2;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}
