:root {
  --color-main: #cb9b1d;
  --color-main-dark: #a4742c;
  --color-dark: #545454de;
  --color-silver: #737272;
  --color-white: #ffffff;
  --color-black: #000000;

  --font-main: 13px;
  --font-title: 30px;
}
@font-face {
  font-family: Poppins;
  src: url("./EncodeSans-Light.ttf");
}

* {
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 0;
  font-family: Poppins, sans-serif;
  font-size: var(--font-main);
  letter-spacing: 1px;
  z-index: 0;
  text-decoration: none;
  list-style: none;
  font-style: normal;
  outline: 0;
  transition: all 0.5s;
  color: var(--color-black);
  background-color: transparent;
}

::placeholder {
  color: var(--color-silver);
}

body {
  width: 100%;
  height: auto;
  overflow-x: hidden;
}

/*HEADER*/
.container-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40000;
  width: 90%;
  padding: 10px 5%;
  height: auto;
  display: flex;
  flex-direction: column;
}
.container-header header {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10%;
}
header > :last-child {
  font-size: 20px;
  color: var(--color-white);
  display: none;
}
.container-header.ok {
  background-color: var(--color-dark);
}
.container-header.active {
  background-color: var(--color-dark);
}

header .logo {
  width: auto;
  height: 40px;
  object-fit: cover;
  cursor: pointer;
}
header .nav-header {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  align-items: center;

  ul {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    gap: 5%;

    li {
      position: relative;
      display: flex;
      align-items: center;
      height: 40px;
      cursor: pointer;
      a,
      i {
        font-weight: 700;
        color: var(--color-white);
      }

      .drop-nav {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 250px;
        height: auto;
        padding: 0px 0;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: rgb(248, 248, 248);
        box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px,
          rgba(9, 30, 66, 0.13) 0px 0px 1px 1px;

        a {
          padding: 15px 5%;
          width: 90%;
          display: flex;
          color: var(--color-black);
          flex-direction: row;
          align-items: center;
          justify-content: space-between;
          font-size: var(--font-main);
          cursor: pointer;
          border-bottom: solid 1px rgba(9, 30, 66, 0.25);
        }
        a:hover {
          color: var(--color-main);
          i {
            transform: translateX(20%);
            color: var(--color-main);
          }
        }
      }
      .drop-nav::after {
        content: "";
        position: absolute;
        top: -20px;
        right: 33%;
        border-width: 10px;
        border-style: solid;
        border-color: transparent transparent rgb(239, 239, 239) transparent;
        z-index: 41000;
      }
    }

    li:hover i {
      color: var(--color-main);
    }
  }
}

header .nav-header ul > :nth-child(3):hover {
  .drop-nav {
    display: flex;
  }
}

header .buttons-header {
  width: 20%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: end;
  gap: 5%;

  button {
    width: auto;
    padding: 0 10%;
    height: 40px;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5%;
    font-weight: 700;
    cursor: pointer;

    i {
      color: var(--color-white);
    }
  }
  button:hover {
    transform: scale(0.95);
  }
}
header .buttons-header > :first-child {
  background-color: var(--color-main);
}
header .buttons-header > :last-child {
  color: var(--color-main);
  border: solid 1px var(--color-main);
  i {
    color: var(--color-main);
  }
}

/*LOADER*/
.loader {
  position: fixed;
  width: 100%;
  height: 100vh;
  z-index: 45000;
  background-color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader.hidden {
  display: none;
}
.ping {
  --uib-size: 50px;
  --uib-speed: 1s;
  --uib-color: #cb9b1d;
  position: relative;
  height: var(--uib-size);
  width: var(--uib-size);
}

.ping::before,
.ping::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  background-color: var(--uib-color);
  animation: pulse7132 var(--uib-speed) linear infinite;
  transform: scale(0);
  opacity: 0;
}

.ping::after {
  animation-delay: calc(var(--uib-speed) / -2);
}

@keyframes pulse7132 {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.btn-top {
  position: fixed;
  right: 3%;
  bottom: 2%;
  width: 40px;
  height: 40px;
  display: flex;
  transform: translateX(250%);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  background-color: var(--color-main);

  i {
    font-size: 20px;
    color: var(--color-white);
  }
}
.btn-top.ok {
  transform: translateX(0);
}

/*MAIN*/
.container-main {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
}
.container-main .elem {
  width: 90%;
  height: auto;
  padding: 70px 5%;
  display: flex;
}
.mask-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 90%;
  height: 100%;
  padding: 0 5%;
  background-color: #00000088;
}
.container-main .section-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url(/assets/images/bcg-hero.jpg);
}
.section-hero .mask-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  .title {
    font-size: 40px;
    background-color: var(--color-main);
    color: var(--color-white);
    margin-bottom: 1%;
    padding: 0 10px;
    text-align: center;
  }

  p {
    text-align: center;
    font-size: 18px;
    color: var(--color-white);

    strong {
      font-size: 18px;
      text-decoration: underline;
      cursor: pointer;
      color: var(--color-white);
    }
  }
}

.container-main .section-info {
  flex-direction: row;
  align-items: center;
  margin-bottom: 0;
  height: auto;

  .context {
    width: 70%;
    height: auto;
    display: flex;
    flex-direction: column;

    h1 {
      font-size: 30px;
      padding: 0 0 10px 0;
    }
    .context-dev {
      padding: 10px;
      display: flex;
      flex-direction: column;

      p {
        padding: 10px 0;
        font-size: 15px;
      }
    }
  }

  .img-info {
    width: 30%;
    height: auto;
    transform: translateX(40%);

    img {
      width: auto;
      height: 500px;
    }
  }
}

.container-main .section-about.elem {
  height: 50vh;
  background-color: rgb(248, 248, 248);
  gap: 5%;
  padding: 100px 5%;
}
.container-main .section-about.grid-e {
  display: grid;
  height: auto;
  grid-template-columns: repeat(2, 1fr);
  gap: 5%;
  align-items: center;
  justify-content: center;
  place-items: center;
  margin-bottom: 5%;

  .card-grid {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;

    h1 {
      font-size: 20px;
    }
    p {
      font-size: 15px;
      padding: 10px 0;

      .list-card {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;

        li {
          padding: 10px 0;
        }
      }
    }
  }
}

.section-about .img-about {
  width: 50%;
  height: 100%;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.section-about .context-about {
  width: 50%;
  height: auto;
  display: flex;
  flex-direction: column;

  h1 {
    font-size: var(--font-title);
    color: var(--color-main);
  }

  p {
    padding: 10px 0;
    font-size: 15px;
  }
}

.container-main .section-service {
  flex-direction: column;
  h1 {
    font-size: 30px;
    padding: 0 0 50px 0;
  }
  .context.grid-s {
    width: 100%;
    display: grid;
    height: auto;
    grid-template-columns: repeat(2, 1fr);
    gap: 2%;
    align-items: center;
    justify-content: center;
    place-items: center;

    .card-service {
      padding: 15px 5%;
      width: 90%;
      height: auto;
      display: flex;
      flex-direction: column;
      margin-bottom: 4%;
      box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px,
        rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;

      .icon {
        width: 60px;
        height: 60px;
        overflow: hidden;

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }

      h1 {
        font-size: 20px;
        padding: 10px 0;
      }

      p {
        padding: 10px 0;
      }

      button {
        width: 100%;
        height: 40px;
        background-color: var(--color-main);
        color: var(--color-white);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5%;
        cursor: pointer;

        i {
          color: var(--color-white);
        }
      }
      button:hover {
        background-color: transparent;
        border: solid 1px var(--color-main);
        color: var(--color-main);

        i {
          transform: translateY(-5%);
          color: var(--color-main);
        }
      }
    }
  }
}

.faq-section.elem {
  padding: 100px 5%;
}

.faq-section h2 {
  color: #222;
  margin-bottom: 20px;
  font-size: 30px;
}

.faq {
  background-color: #fff;
  margin-bottom: 15px;
  box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px,
    rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  padding: 20px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  color: var(--color-main);
  background: rgb(248, 248, 248);
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 24px;
  transition: transform 0.3s ease;
}

.faq.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: #fff;
  padding: 0 20px;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq.open .faq-answer {
  max-height: 500px;
  padding: 20px;
}

.testimonial-section.elem {
  background-color: rgb(239, 239, 239);
  color: var(--color-white);
  padding: 60px 5%;
  overflow: hidden;
  text-align: center;
  flex-direction: column;
}

.testimonial-section h2 {
  font-size: 30px;
  margin-bottom: 40px;
  color: var(--color-main);
}

.testimonial-wrapper {
  overflow: hidden;
  position: relative;
}

.testimonial-track {
  display: flex;
  width: max-content;
  animation: scrollX 60s linear infinite;
}

.testimonial-card {
  flex: 0 0 auto;
  min-width: 300px;
  max-width: 300px;
  margin: 0 10px;
  border-radius: 10px;
  padding: 40px 20px;
  font-size: 15px;
  color: var(--color-black);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

@keyframes scrollX {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/*FOOTER*/
.site-footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 50px 20px 20px;
  font-size: var(--font-main);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
}

.footer-column {
  flex: 1 1 250px;
  min-width: 250px;
}

.footer-column h4 {
  color: var(--color-main);
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-column p,
.footer-column a {
  color: var(--color-white);
  line-height: 1.6;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--color-main);
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;

  a {
    color: var(--color-white);
  }
}

.footer-bottom {
  border-top: 1px solid var(--color-silver);
  text-align: center;
  padding-top: 15px;
  margin-top: 30px;
  font-size: 12px;
  color: var(--color-silver);
}

/*LOGIN*/
.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-card {
  background-color: var(--color-white);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
}
.login-card > :first-child {
  display: flex;
  margin-right: auto;
  font-size: 20px;
  color: var(--color-main);
  cursor: pointer;

  i {
    font-size: 20px;
    color: var(--color-main);
    cursor: pointer;
  }
}

.login-card h2 {
  text-align: center;
  font-size: 25px;
  margin-bottom: 30px;
  color: var(--color-main);
}

.input-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--color-dark);
}

.input-group input {
  padding: 15px 12px;
  border: 1px solid var(--color-silver);
  font-size: 14px;
  transition: 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--color-main-dark);
  box-shadow: 0 0 0 2px rgba(203, 155, 29, 0.2);
}

button[type="submit"] {
  width: 100%;
  padding: 14px;
  border: none;
  background-color: var(--color-main);
  color: var(--color-white);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}

button[type="submit"]:hover {
  background-color: var(--color-main-dark);
}

.error-msg {
  color: red;
  font-size: 12px;
  height: 14px;
  margin-top: 4px;
}

.login-card .option {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 30px 0 0 0;
  justify-content: space-between;

  p {
    color: var(--color-main);
    text-decoration: underline;
  }
}

/*CONTACT*/
.contact-section {
  padding: 120px 20px 50px 20px;
  background-color: #f9f9f9;
  font-family: "Segoe UI", sans-serif;
}

.contact-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.contact-info {
  flex: 1 1 400px;
  padding: 30px;
}
.contact-form {
  flex: 1 1 400px;
  background: var(--color-white);
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-info h2,
.contact-form h2 {
  color: var(--color-main);
  margin-bottom: 20px;
  font-size: 25px;
}

.contact-info p {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--color-silver);
}

.contact-info i {
  margin-right: 8px;
  color: var(--color-main-dark);
}

.map-frame {
  margin-top: 20px;
  overflow: hidden;
}

.input-group {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}

.input-group label {
  margin-bottom: 6px;
  color: var(--color-dark);
  font-weight: 600;
}

.input-group input,
.input-group textarea {
  padding: 15px 12px;
  font-size: 14px;
  border: 1px solid var(--color-silver);
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--color-main-dark);
  box-shadow: 0 0 0 2px rgba(203, 155, 29, 0.2);
}

.error-msg {
  font-size: 12px;
  color: red;
  height: 14px;
  margin-top: 4px;
}

button[type="submit"] {
  background-color: var(--color-main);
  border: none;
  padding: 14px;
  color: var(--color-white);
  font-weight: bold;
  font-size: 15px;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: var(--color-main-dark);
}


.menu{
  position: fixed;
  top: 0;
  left: 0;
  width: 70%;
  height: 100vh;
  background-color: var(--color-white);
  z-index: 46000;
  display: flex;
  flex-direction: column;
  padding: 10px 10px;
  transform: translateX(-200%);
  
  .logo{
    width: auto;
    height: 40px;
  }

  nav{
    width: 90%;
    padding: 20px 5%;

    ul{
      width: 100%;
      height: auto;
      display: flex;
      flex-direction: column;

      li{
        padding: 15px 0;
        position: relative;

        a, i{
          font-size: 15px;
          color: var(--color-black);
          font-weight: 700;
          padding: 5px 0;
        }

        .drop-nav{
          height: auto;
          padding: 10px;
          display: none;
          flex-direction: column;

          a{
            padding: 10px 0;
            font-weight: 500;
          }
        }
        .drop-nav.ok{display: flex;}
      }
    }
  }


  .buttons-header{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    button{
      width: 100%;
      height: 40px;
      margin-bottom: 2%;
      background-color: var(--color-main);
      color: var(--color-white);
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5%;

      i{
        color: var(--color-white);
      }
    }
  }
  .buttons-header>:last-child{
    background-color: transparent;
    border: solid 1px var(--color-main);
    color: var(--color-main);
    i{
      color: var(--color-main);
    }
  }
}
.menu.ok{transform: translateX(0%);}

@media (max-width: 900px) {
  .container-header header {
    gap: 5%;
  }
  header .nav-header {
    display: none;
  }
  header .buttons-header {
    width: 100%;
    gap: 2%;

    button {
      max-width: 150px;
      gap: 30%;
    }
  }
  header > :last-child {
    display: flex;
    font-size: 30px;
  }

  .section-hero .mask-container {
    .title {
      text-align: center;
      font-size: 60px;
    }
    p {
      font-size: 22px;
      padding: 20px 0 0 0;
    }
  }
}

@media (max-width: 500px) {
  .container-header.ok{
    background-color: var(--color-white);

    i{
      color: var(--color-black);
    }
  }
  header .buttons-header {
    display: none;
  }
  .section-hero .mask-container {
    .title {
      text-align: center;
      font-size: 30px;
    }
    p {
      font-size: 15px;
      padding: 20px 0 0 0;
    }
  }

  .container-main .section-info {
    flex-direction: column;
    overflow: hidden;

    .context {
      width: 100%;
      position: relative;
    }

    .img-info{
      transform: translateY(-90%);
      position: relative;

      img{
        opacity: .4;
        height: 500px;
        position: absolute;
        top: -500%;
        right: -400%;
      }
    }
  }

  .container-main .section-about.elem{
    flex-direction: column;
    padding: 50px 5%;
  }
  .section-about .img-about{display: none;}
  .section-about .context-about{
    width: 100%;
  }
  .container-main .section-about.grid-e{
    grid-template-columns: repeat(1, 1fr);
  }

  .container-main .section-service{
    .context.grid-s{
      grid-template-columns: repeat(1, 1fr);
    }
  }
}
