html {
  scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
}

html, body {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* ---Header--- */

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  color: white;
  
  img {
    filter: brightness(0) invert(1);
  }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 20px;
}

.logo {
  display: flex;
  align-items: center;
  
  img {
    height: 30px;
    margin-right: 10px;
  }
}

.navbar {
  display: flex;
}

.navbar a {
  font-size: 17px;
  margin-left: 25px;
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.navbar a:hover {
  color: #689f38;
}

.menu-btn {
  display: none;
  background-color: transparent;
  color: white;
  border: none;
  padding: 10px 10px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.close-btn {
  display: none;
}

/* ---Banner--- */

.banner {
  background-image: 
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.8),
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0.2),
      rgba(0, 0, 0, 0)
    ), 
    url("assets/banner.jpg");
  height: 525px;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px; 
  color: white;
  text-align: center;

  h1 {
    font-size: 65px;
    margin: 0;
    transition: all 0.3s ease;
  }

  h4 {
    transition: all 0.3s ease;
  }

}

/* ---Secções--- */

section {
  padding: 60px;
}

.section-light {
  background-color: #ffffff;
}

.section-dark {
  background-color: #f5f5f5;
}

.section-title-center {
  text-align: center;
  margin-bottom: 50px;
  font-size: 40px;
  color: #689f38;
  transition: all 0.3s ease;
}

.section-title {
  margin-bottom: 30px;
  font-size: 40px;
  color: #689f38;
  transition: all 0.3s ease;
}

.section-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

/* ---Imagens--- */

.section-image-about img {
  width: 100%;
  min-width: 450px;
  max-width: 475px;
  height: auto;

  border-radius: 13px;
  display: block;
  transition: all 0.3s ease;
}

.device-container {
  position: relative;
  max-width: 800px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.device-circle {
  position: absolute;
  width: 475px;
  height: 475px;
  background-color: #689f38b7;
  border-radius: 50%;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;

  /* z-index: 0; */
}

.device-img-web {
  position: relative;
  transition: all 0.3s ease;
  /* z-index: 1; */
  width: 100%;
  min-width: 500px;
  max-width: 500px;
  height: auto;
}

.device-img-mobile {
  position: relative;
  transition: all 0.3s ease;
  /* z-index: 1; */
  width: 100%;
  min-width: 500px;
  max-width: 500px;
  height: auto;
}

/* ---Texto--- */

.section-text {
  max-width: 600px;
  font-size: 18px;
  line-height: 1.6;
  color: rgb(87, 87, 87);
  margin-right: 20px;
  margin-left: 20px;
}

.section-intro {
  margin-bottom: 20px;
  color: rgb(87, 87, 87);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: #292929;
  font-size: 18px;
  line-height: 1.6;
}

.feature-list li {
  background: rgba(104, 159, 56, 0.05);
  padding: 8px 12px;
  border-radius: 8px;
}

.feature-icon {
  color: #689f38;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-green {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 25px;
  background-color: #689f38;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
}

.btn-green:hover {
  background-color: #ffc260;
}

/* ---Contactos--- */

.contact-list {
  max-width: 900px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid #689f38;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  font-size: 28px;
  width: 40px;

}

.contact-text h3 {
  margin: 0;
  font-size: 18px;
  color: #4b4b4b;
}

.contact-text p {
  margin: 5px 0 0 0;
  color: #555;
}

/* ---Footer--- */

footer {
  background: white;
  color: #555;
  padding: 20px 40px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 15px;
  max-width: 800px;
}

.footer-logos img {
  height: 30px;
  object-fit: contain;
}

.footer-text {
  margin-top: 10px;
}

/* ---Ajustes de tamanho--- */

@media (max-width: 850px) {

  .menu-btn {
    display: flex;
    z-index: 1001;
  }

  .navbar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #689f38;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    transition: left 0.35s ease;
    z-index: 1000;
    backdrop-filter: blur(8px);
  }

  .navbar.active {
    left: 0;
  }

  .navbar a {
    width: 80%;
    padding: 25px 0;
    text-align: center;
    font-size: 22px;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    margin: 0;
  }

  .navbar a:hover {
    color: #2e4718;
  }

  .navbar a:last-child {
    border-bottom: none;
  }

  .close-btn {
    display: flex;
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }

  .close-btn svg {
    width: 32px;
    height: 32px;
  }

}

@media (max-width: 1300px) {

  .device-container {
    max-width: 650px;
  }

  .section-content {
    gap: 60px;
  }

  .device-img-web {
    min-width: 400px;
  }

  .device-img-mobile {
    min-width: 400px;
  }

  .device-circle {
    width: 400px;
    height: 400px;
  }
}

@media (max-width: 1050px) {
  .section-image-about img {
      min-width: 400px;
    }

    .device-container {
      max-width: 500px;
    }
}

@media (max-width: 950px) {
  section {
    padding: 30px 20px 60px 20px;
  }

  .section-content {
    flex-direction: column;
    gap: 40px;
  }

  .section-title {
    font-size: 30px;
  }

  .section-title-center {
    font-size: 30px;
  }

  .section-image-about img {
    min-width: 200px;
    max-width: 525px;
  }

  #web .section-content {
    flex-direction: column-reverse;
  }

  .device-img-web {
    max-width: 475px;
  }

  .device-img-mobile {
    max-width: 400px;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-end;
  }

  .footer-text {
    align-self: flex-start;
  }

  .footer-logos {
    justify-content: flex-end;
  }
}

@media (max-width: 800px) {
  .banner-content {
    h1 {
      font-size: 40px;
    }

    h4 {
      font-size: 13px;
    }
  }

  .device-img-web {
    min-width: 350px;
    max-width: 350px;
  }

  .device-img-mobile {
    min-width: 350px;
    max-width: 350px;
  }

  .device-circle {
    width: 325px;
    height: 325px;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-text {
    margin-top: 15px;
  }
}

@media (max-width: 600px) {
  .device-img-web {
    min-width: 275px;
    max-width: 300px;
  }

  .device-img-mobile {
    min-width: 275px;
    max-width: 300px;
  }

  .device-circle {
    width: 275px;
    height: 275px;
  }
}