:root {
  --osiva-blue: #538fe3;
  --osiva-blue-dark: #2f6fc2;
  --osiva-blue-light: #85aff0;
  --osiva-bg-light: #eaf2fc;
}

body {
  background: linear-gradient(
    to bottom,
    #ffffff 0px,
    #e2ecf9 30px,
    #c6d9f9 150px,
    #e2ecf9 270px,
    #ffffff 300px
  );
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: var(--osiva-blue-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.missao-visao{
  background-color:#f1f5fb !important;
}

.titulo_body {
  margin-top: 30px;
}

/* Nav */
.navbar {
  background-color: #ffffff !important;
  border-bottom: 2px solid var(--osiva-blue-light);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.navbar a {
  color: var(--osiva-blue-dark) !important;
  font-weight: 600;
  transition: color 0.3s;
}

.navbar a:hover {
  color: var(--osiva-blue);
  text-decoration: underline;
}

/* Hero */
#hero-text {
  display: inline-block;
  transition: transform 0.5s ease, opacity 0.5s ease;
  margin-top: 120px;
}

.hero {
  background: var(--osiva-blue) url('../img/hero-tech.png') center center/cover no-repeat;
  position: relative;
  padding: 10px 0 20px;
  color: #fff;
  overflow: hidden;
  min-height: 550px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 50, 0.5);
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}

.hero h1 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero p.lead {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.hero h1,
.hero p.lead {
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -30px;
}

.tablet-slider {
  position: relative;
  width: 600px;
  min-height: 300px;
  margin: -60px 0 10px;
}

.tablet-slider img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 1s ease;
}

.tablet-slider img.active {
  opacity: 1;
  z-index: 2;
}

.hero-screenshot {
  max-width: 500px;
  height: auto;
  margin-top: 0;
  margin-left: -100px;
  display: block;
  position: relative;
}

.hero .btn {
  background-color: var(--osiva-blue-dark);
  border: none;
  font-weight: 600;
  margin-top: 80px;
}

/* Benefits */
.benefit-box {
  background: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-radius: 8px;
  height: 100%;
}

.benefit-box h4 {
  color: var(--osiva-blue-dark);
  font-weight: 600;
}

.hero-img {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.card-osiva img {
  max-height: none;
  width: 100%;
  height: auto;
  border: 2px solid var(--osiva-blue-light);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card-osiva {
  background: #f1f5fb;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-radius: 8px;
  border: 1px solid #d5e0f4;
}

.card-osiva h4 {
  color: var(--osiva-blue-dark);
  font-weight: 700;
}

.card-osiva p {
  color: #333;
}

.card-osiva:hover {
  transform: translateY(-5px);
}

footer {
  background-color: var(--osiva-blue-dark);
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.cta-final {
  background-color: var(--osiva-blue-dark);
  color: #fff;
  padding: 50px 0;
}

/* Onda */
.wave-separator, .wave-separator2 {
  position: relative;
  width: 100%;
  height: 80px;
  overflow: hidden;
  line-height: 0;
}

.wave-separator svg {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(-1);
}

.wave-separator2 svg {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* Quem Somos */
.titulo-quem-somos {
  color: var(--osiva-blue-dark);
  font-size: 2.4rem;
  font-weight: 700;
  margin-top:15px;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInTop 1s forwards;
}

@keyframes fadeInTop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subtitulo-quem-somos {
  color: var(--osiva-blue);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 30px;
}

.section-divider {
  border: none;
  height: 2px;
  width: 80px;
  background: linear-gradient(
    to right,
    var(--osiva-blue-dark),
    var(--osiva-blue-light)
  );
  margin: 10px auto;
}

.card-qs {
  background: #ffffffcc;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 30px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.solucoes-titulo {
  margin-top: 15px;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Integração sensores */
.integration-image {
  max-width: 85%;
  height: 400px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.integration-image:hover {
  transform: scale(1.02);
}

/* Hero Segurança */
.hero-seguranca {
  background-color: var(--osiva-blue);
  padding: 60px 0;
  color: #fff;
}

.hero-seguranca .hero-image {
  max-width: 200px;
  margin-bottom: 20px;
  margin-top:90px;
}

.hero-seguranca::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 50, 0.5);
  z-index: 0;
}

.hero-seguranca > .container {
  position: relative;
  z-index: 1;
}

.hero-seguranca h1,
.hero-seguranca p.lead {
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-seguranca .hero-image {
  max-width: 200px;
  margin-bottom: 20px;
  border-radius: 12px;
}

.hero-content-api {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.hero-img-api {
  max-width: 250px;
  width: 100%;
  height: auto;
  margin-left: -100px;
}

.img-swagger {
  max-width:700px;
}

/* Top Bar */
.top-bar {
  background-color: #eaf2fc;
  color: #2f6fc2;
  font-size: 0.9rem;
}

.top-bar a {
  color: #2f6fc2;
}

.top-bar a:hover {
  color: #538fe3;
  text-decoration: underline;
}

@media (max-width: 1420px) and (min-width: 769px) {
  .hero-img-api {
    max-width: 200px;
    margin-left: -70px;
  }
  .hero-img {
    max-width: 350px;
  }
   #hero-text {
    font-size: 1.8rem;
  }
   .hero p.lead {
    font-size: 1.5rem;
  }
  .img-swagger {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 20px 0 20px;
    min-height: 500px;
  }
 
  .hero p.lead {
    font-size: 0.9rem;
  }
  .hero-img {
    max-width: 250px;
  }
  .hero-screenshot {
    max-width: 300px;
    margin-left: -30px;
  }
  .tablet-slider {
    width: 450px;
    min-height: 180px;
    margin-top: -40px;
  }
  #hero-text {
    font-size: 1.3rem;
  }
  .hero .btn {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .hero-content-api {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .hero-img-api {
    max-width: 150px;
    margin-left: -40px;
  }
  .img-swagger {
    max-width: 300px;
  }
}
