* {
  box-sizing: border-box;
}

:root {
  scroll-behavior: smooth;
  /* --colorA:#9357fd;
  --colorV:#3cc102; */
  --color1: #85baa1;
  --color2: #0a210f;
  --color3: #9d75cb;
  --shadow:0px 0px 30px #0000003d;
}

@font-face {
  font-family: "Sen";
  src: url("./assets/fonts/Sen/Sen-VariableFont_wght.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Urbanist";
  src: url("./assets/fonts/Urbanist/Urbanist-VariableFont_wght.ttf")
    format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "Sen";
  margin: 0;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: #fffcf7;
  position: relative;
}

.center-items {
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-self {
  position: relative;
  left: 50%;
  transform: translatex(-50%);
}

.text-center {
  text-align: center;
}

.uppercase {
  text-transform: uppercase;
}

.pointer {
  cursor: pointer;
}

.section-divider {
  margin-top: 100px;
  margin-bottom: 100px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 10px 0 10px;
  background-color: white;
  box-shadow: var(--shadow);

  & ul {
    list-style: none;
    display: flex;
    column-gap: 20px;

    & li {
      cursor: pointer;
      & a:visited {
        color: initial;
      }
      & a {
        text-decoration: none;
      }
      &:hover {
        text-decoration: underline;
      }
    }
  }
}

#logo {
  height: 80%;
}

#version {
  color:white;
  position: absolute;
  bottom: 2px;
  right: 5px;
  font-size: 12px;
}

.header-button-group {
  display: flex;
}

.header-button-group button {
  border: none;
  padding: 10px;
  color: white;
  width: 100px;
  cursor: pointer;
}

.header-button-group button:first-child {
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  background-color: var(--color2);
}

.header-button-group button:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 7px;
  border-top-right-radius: 7px;

  background-color: var(--color3);
}

#slogan-container {
  & h1 {
    color: #2b2b39;
    text-align: center;
    margin-bottom: 10px;
  }
  & h3 {
    color: #5f5f75;
    text-align: center;
    margin-top: 5px;
  }
}

#main-image-container {
  position: relative;

  & > img:first-child {
    width: 100%;
  }

  & > img:not(:first-child) {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    height: 69%;
  }

  & > div {
    position: relative;
    z-index: 1;
    width: 90vw;
    max-width: 680px;
    left: 50%;
    transform: translateX(-50%);
    top: -100px;
    padding: 40px;
    border-radius: 10px;
    background-color: white;
    box-shadow: var(--shadow);

    & > div:not(:last-child) {
      width: 100%;
      height: 4px;
      margin-top: 20px;
      border-radius: 5px;
      background-color: var(--color3);
    }
    & h2 {
      margin: 0;
      text-align: center;
    }
    & h2 span:first-child {
      color: green;
      text-decoration: underline;
    }
    & h2 span:last-child {
      color: purple;
      text-decoration: underline;
    }
  }
}

#main-image-container_buttons {
  display: flex;
  justify-content: center;
  column-gap: 30px;

  & button {
    font-weight: 500;
    font-size: 17px;
    background-color: rgb(221, 221, 220);
    margin-top: 20px;
    border: none;
    outline: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    color: #7f1eef;
    width: 200px;
    white-space: wrap;
  }
}

.section-title-container {
  /* margin-bottom: 150px;
  margin-top: 150px; */
  display: flex;
  align-items: center;
  flex-direction: column;
  row-gap: 10px;

  & h2 {
    font-size: 32px;
    margin: 0;
  }
  & h5 {
    font-size: 18px;
    color: #5f5f75;
    margin: 0;
    max-width: 600px;
    text-align: center;
  }
}

#section-1 {
  margin-top: 100px;
  display: flex;
  height: 300px;
  overflow: hidden;
  max-width: 900px;
  min-width: 840px;
  align-items: start;
  transform: translateX(-50%);
  left: 50%;
  position: relative;
}

#section-1 > div:first-child {
  max-height: 100%;
  overflow-y: auto;
}

#architect-img {
  width: 50%;
  height: auto;
}

.section-1_card {
  display: flex;
  justify-content: center;
  column-gap: 30px;
  margin-top: 20px;
  --icon-width: 70px;
}

.section-1_card > div:last-child {
  width: calc(100% - var(--icon-width) - 30px);
  & h3 {
    font-weight: 700;
    margin: 0;
  }

  & h5 {
    color: #5f5f75;
    margin: 0;
  }
}

.section-1_card > div:first-child {
  background-color: var(--color1);
  border-radius: 40px;
  width: var(--icon-width);
  height: var(--icon-width);
  display: flex;
  align-items: center;
  justify-content: center;

  & img {
    height: 30px;
  }
}

#section-2 {
  display: flex;
  column-gap: 15px;
  row-gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 950px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* ajuste da imagem defeituosa do segundo card */
#section-2 > div:nth-child(2) > div:first-child img {
  width: 164%;
  margin-top: -64px;
}

/* ajuste da imagem defeituosa do último card */
#section-2 > div:last-child > div:first-child img {
  width: 105%;
}

.card {
  transition: .3s;
}

#section-2 .card {
  overflow: hidden;
  position: relative;
  width: 300px;
  height: 450px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;

  & > div:first-child {
    max-height: 220px;
    overflow: hidden;

    & img {
      width: 100%;
    }
  }

  & > div:nth-child(2) {
    margin-top: 10px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-left: 10px;

    & h6 {
      color: #5f5f75;
      font-weight: 400;
      margin: 0;
      margin-left: 10px;
      font-size: 15px;
    }
  }

  & > div:nth-child(3) {
    max-height: 190px;
    overflow-y: auto;
    padding-left: 15px;

    & h5 {
      margin: 0;
      font-size: 19px;
    }

    & p {
      color: #5f5f75;
      margin-top: 5px;
      font-size: 16px;
    }
  }

  & > div:last-child {
    width: 40%;
    height: 3px;
    bottom: 0;
    background-color: var(--color3);
    position: absolute;
    transition-property: width;
    transition-duration: .2s;
  }
}

#section-3 {
  --section-3-width: 1000px;
  margin-top: 150px;
  max-width: var(--section-3-width);
  height: 500px;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;

  & > div {
    height: 100%;
    width: calc(var(--section-3-width) / 2);

    & .section-3_content {
      max-width: 70%;

      & > div:first-child {
        width: 70px;
        height: 70px;
        background-color: white;
        border-radius: 40px;

        & img {
          height: 40px;
        }
      }

      & p {
        font-size: 15px;
      }
    }
  }

  & > div:first-child {
    background-color: var(--color3);
    color: white;
  }

  & > div:last-child {
    background-color: #f5efe0;
    color: var(--color3);

    & .section-3_content > div:first-child {
      background-color: var(--color3);
    }
  }
}

.see-services-btn {
  column-gap: 10px;
  background-color: white;
  color: var(--color3);
  padding: 10px 20px 10px 20px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  height: 40px;
}

#section-3 > div:last-child .see-services-btn {
  background-color: var(--color3);
  color: white;
}

#asvv-confidence {
  text-align: center;
}

.brand-text {
  background: linear-gradient(90deg, var(--color3) 0%, var(--color2) 89%);
  background-clip: text;
  color: transparent;
}

#section-4 {
  gap: 20px;
  flex-wrap: wrap;
}

#section-4 .card {
  background-color: #f5efe0;
  width: 280px;
  height: 340px;
  padding: 40px 20px;
  border-radius: 20px;

  & div:first-child {
    background-color: white;
    width: 70px;
    height: 70px;
    border-radius: 40px;
    position: relative;

    & img {
      height: 50%;
    }
  }

  & h2 {
    margin-top: 40px;
  }

  & p {
    margin-top: 20px;
  }
}

#section-4_img1 {
  margin-left: 4px;
}

#section-4_img2 {
  height: 80% !important;
  position: relative;
  top: -8px;
  left: -5px;
}

#section-5 {
  margin-top: 100px;
  min-height: 180px;
  background-color: var(--color3);
  flex-wrap: wrap;
  color: white;
  column-gap: 10px;

  & > div {
    width: 310px;
    height: 180px;
    padding-top: 38px;
  }

  & h2 {
    font-size: 60px;
    text-align: center;
    margin: 0;
  }

  & h6 {
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    text-align: center;
  }
}

#section-6 {
  margin-top: 150px;
  background-color: #f5efe0;
  max-width: 1000px;
  height: 300px;
  padding: 40px;
  position: relative;

  & h2 {
    color: #2b2b39;
    font-size: 30px;
    font-weight: 700;
  }

  & h6 {
    color: #5f5f75;
    font-size: 20px;
    width: 250px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  & button {
    color: white;
    background-color: var(--color3);
    padding: 10px 20px 10px 20px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    height: 40px;
  }

  & img {
    height: 110%;
    position: absolute;
    top: -26px;
    right: -15px;
    z-index: -1;
  }
}

footer {
  font-family: "Urbanist";
  background-color: #22130c;
  color: white;
  column-gap: 30px;
  min-height: 300px;
  flex-wrap: wrap;

  & > div {
    width: 500px;
    min-width: 500px;
    margin-top: 40px;
  }

  & a:visited {
    color: initial;
  }

  & > div:first-child > * {
    margin-bottom: 40px;
  }

  & p:last-child {
    font-weight: 100;
    margin-top: 58px;
  }

  & > div:last-child {
    position: relative;
    height: 252px;

    & > div:first-child a {
      position: relative;
      text-decoration: none;
      color: white;
      margin-left: 10px;
      top: 20px;

      &:visited {
        color: white;
      }
    }

    & > div:last-child {
      display: flex;
      justify-content: space-between;
      width: 130px;
      height: 30px;
      position: relative;
      overflow: hidden;
      left: 100%;
      bottom: -100%;
      transform: translate(-104%, -190%);

      & img {
        height: 30px;
      }

      & #whatsapp_icon {
        height: 40px;
      }
    }
  }
}

#section-7 {
  display: flex;
  justify-content: center;
  max-width: 1000px;
  margin-bottom: 100px;

  & > div {
    width: 50%;
  }

  & > div:first-child {
    color: #5f5f75;

    & h2 {
      color: #2b2b39;
    }
  }

  /* estilos da segunda div */
  & > div:last-child {
    display: flex;
    justify-content: end;
    column-gap: 20px;
  }

  & > div:last-child > div:last-child {
    margin-top: 100px;
  }

  & > div:last-child > div > div {
    margin-top: 15px;
    width: 200px;
    overflow: hidden;
    border-radius: 0px;
  }

  & > div:last-child > div > div:not(:has(img[src*="section-7_1.png"])) {
    border-radius: 10px;
  }

  & img {
    width: 100%;
  }

  /* estilos específicos de cada imagem da primeira coluna */
  & > div:last-child > div:first-child > div:first-child {
    height: 260px;

    & img {
      width: 214%;
      transform: translateY(-6%);
    }
  }
  & > div:last-child > div:first-child > div:nth-child(3) {
    height: 260px;

    & img {
      width: 217%;
      transform: translateX(-26%);
    }
  }
  & > div:last-child > div:first-child > div:last-child {
    height: 149px;
  }

  /* estilos específicos de cada imagem da segunda coluna */
  & > div:last-child > div:last-child > div:first-child {
    height: 172px;

    & img {
      width: 118%;
      transform: translateX(-8%);
    }
  }
  & > div:last-child > div:last-child > div:nth-child(3) {
    height: 198px;
  }
  & > div:last-child > div:last-child > div:last-child {
    height: 237px;

    & img {
      width: 180%;
      transform: translateX(-21%);
    }
  }
}

#section-8 {
  display: flex;
  justify-content: center;
  max-width: 1000px;
  margin-bottom: 100px;

  & > div {
    width: 50%;
  }

  & > div:last-child {
    color: #5f5f75;

    & h2 {
      color: #2b2b39;
    }
  }

  /* estilos da primeira div */
  & > div:first-child {
    display: flex;
    justify-content: start;
    column-gap: 20px;
  }

  & > div:first-child > div:last-child {
    margin-top: 100px;
  }

  & > div:first-child > div > div {
    margin-top: 15px;
    width: 200px;
    overflow: hidden;
    border-radius: 0px;
  }

  & > div:first-child > div > div {
    border-radius: 10px;
  }

  & img {
    width: 100%;
  }

  /* estilos específicos de cada imagem da primeira coluna */
  & > div:first-child > div:first-child > div:first-child {
    height: 260px;

    & img {
      width: 214%;
      transform: translateX(-23%);
    }
  }
  & > div:first-child > div:first-child > div:nth-child(2) {
    height: 173px;
  }
  & > div:first-child > div:first-child > div:nth-child(3) {
    height: 245px;

    & img {
      width: 196%;
      transform: translateX(-35%);
    }
  }
  & > div:first-child > div:first-child > div:last-child {
    height: 145px;
  }

  /* estilos específicos de cada imagem da segunda coluna */
  & > div:first-child > div:last-child > div:first-child {
    height: 188px;

    & img {
      width: 138%;
      transform: translateX(-17%);
    }
  }
  & > div:first-child > div:last-child > div:nth-child(2) {
    height: 238px;

    & img {
      width: 161%;
      transform: translateX(-12%);
    }
  }
  & > div:first-child > div:last-child > div:nth-child(3) {
    height: 198px;

    & img {
      width: 142%;
      transform: translateX(-14%);
    }
  }
  & > div:first-child > div:last-child > div:last-child {
    height: 237px;

    & img {
      width: 139%;
      transform: translateX(-21%);
    }
  }
}

#scroll-top {
  position: fixed;
  bottom: -80px;
  right: 15px;
  width: 60px;
  height: 60px;
  border-radius: 30px;
  background-color: var(--color2);
  transition-property: bottom;
  transition-duration: 0.1s;
  transition-timing-function: ease-out;

  & img {
    transform: rotate(-90deg);
  }
}

#scroll-top.visible {
  bottom: 15px;
}

#backdrop{
  position:fixed;
  top:0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #00000073;
  z-index: -10;
  opacity: 0;
  transition-property: opacity;
  transition-duration: .3s;
  transition-timing-function: ease-out;
}

#backdrop.visible {
  z-index:10;
  opacity: 1;
}

.modal {
  position:fixed;
  top:-100%;
  left: 50%;
  padding:20px;
  transform: translatex(-50%) scale(.7);
  background-color: white;
  box-shadow: var(--shadow);
  max-width: 600px;
  width: 90vw;
  z-index: 10;
  border-radius: 15px;
  transition-delay: 0s, .25s;
  transition-duration: .3s, .3s;
  transition-property: top, transform;
  transition-timing-function: ease-out;
}

.modal.open {
  top:30px;
  transform: translatex(-50%) scale(1);
}

.modal-buttons{
  display: flex;
  row-gap: 10px;
  flex-direction: column;
  margin-top: 50px;
}

.modal-buttons button {
  border-radius: 30px;
  border: none;
  height: 50px;
  background-color: var(--color1);
  color:white;
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 7px;
  font-size: 15px;
  cursor: pointer;
  transition-duration: .20s, .10s;
  transition-property: box-shadow, transform;

  & img {
    height: 50%;
  }
  #instagram_icon_modal {
    height: 90%;
    margin-right: -10px;
  }

  &:active {
    transform: translateY(3px) !important;
    box-shadow: none !important;
  }
}


/* adição de camada extra de verificação para previnir efeitos de hover quando o dispositivo emula estes efeitos */
@media (hover: hover) and (pointer: fine) {
  #section-2 .card:hover {
    box-shadow: 0px 0px 35px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border-bottom-left-radius: 0;
    transform: translateY(-10px);

    & > div:last-child {
      width: 60%;
    }
  }

  #section-2:has(.card:hover) .card:not(:hover) {
    opacity: .5;
  }

  #section-4 .card:hover {
    box-shadow: 0px 0px 35px rgba(0, 0, 0, 0.3);
    transform: translateY(-10px);
  }

  .btn-hover {
    transition-property: box-shadow, transform;
    transition-duration: .2s;

    &:hover{
      box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.5);
      transform: translateY(-5px);
    }
  }

  .header-button-group button {
    transition-property: width;
    transition-duration: .15s;
    
    &:first-child:hover {
      width: 130px;

      & + button {
        width: 70px;
      }
    }
  }

  .header-button-group:has(button:last-child:hover) {
    & button:first-child {
      width: 70px;
    }

    & button:last-child {
      width: 130px;
    }
  }

  .modal-buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0px 11px 20px #0000005c;
  }
}


@media (min-width: 1500px) {
  #main-image-container > img:not(:first-child) {
    height: 76%;
  }
}

/* <= 1030px */
@media (max-width: 1014px) {
  #section-3 {
    max-width: 100%;
    height: 1000px;

    & > div {
      height: 500px;
    }
  }

  #section-6 img {
    right: 18px;
    opacity: 0.8;
  }

  footer > div:last-child {
    height: 54px;
  }
}

/* telas menores */
@media (max-width: 856px) {
  #slogan-container,
  .section-title-container,
  #section-1,
  #section-7,
  #section-8 {
    padding-left: 20px;
    padding-right: 20px;
  }

  #section-1 {
    min-width: 0;

    & > img {
      display: none;
    }
  }

  #main-image-container {
    top: 64px;

    & > img:not(:first-child) {
      top: -80px;
    }
  }

  #section-6 img {
    opacity: 0.5;
  }

  #section-7 {
    overflow: hidden;
    position: relative;

    & > div {
      width: 100%;
    }

    /* estilos da segunda div */
    & > div:last-child {
      position: absolute;
      justify-content: center;
      z-index: -1;
      opacity: 0.2;
      transform: rotate(-45deg) translatey(-256px);
    }
  }

  #section-8 {
    overflow: hidden;
    position: relative;

    & > div {
      width: 100%;
    }

    /* estilos da primeira div */
    & > div:first-child {
      position: absolute;
      justify-content: center;
      z-index: -1;
      opacity: 0.2;
      transform: rotate(45deg) translatey(-150px);
    }
  }
}

/*  */
@media (max-width: 650px) {
  #section-1 {
    /* min-width: 0; */
    height: auto;

    & > img {
      display: block;
      position: absolute;
      z-index: -1;
      opacity: 0.2;
      width: 100%;
    }
  }

  #main-image-container > img:not(:first-child) {
    height: 56%;
  }

  #section-6 img {
    opacity: 0.2;
  }

  #main-image-container_buttons button {
    width: auto;
    max-width: 200px;
  }

  footer > div:last-child {
    display: block;
    height: 80px;

    & > div:first-child a{
      position: static;
    }

    & > div:last-child {
      position: static;
      transform: none;
      margin-top: 15px;
      margin-left: 5px;
    }
  }
}

/* <= 515px */
@media (max-width: 515px) {
  .section-3_content {
    max-width: 80% !important;
  }

  footer {
    min-height: 300px;

    & > div {
      width: 90%;
      min-width: 0;
    }
  }
}

/* <= 450px */
@media (max-width: 450px) {
  #section-1 {
    /* min-width: 0;
    height: auto; */

    & > img {
      width: 130%;
    }
  }

  #main-image-container {
    top: 40px;
    margin-bottom: 70px;

    & > img:not(:first-child) {
      height: 48%;
      top: -47px;
    }

    & > div {
      top: -20px;
    }
  }
}

/*  */
@media (max-width: 350px) {
  #main-image-container {
    & > div:last-child {
      padding: 20px;
    }
  }
}
