:root {
  --y: #f6b900;
  --black: #0d0d0e;
  --paper: #f5f4ef;
  --gray: #777
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
  color: var(--black)
}

a {
  text-decoration: none;
  color: inherit
}

.wrap {
  width: min(1200px, calc(100% - 44px));
  margin: auto
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #0d0d0ef2;
  color: #fff;
  border-bottom: 1px solid #333
}

.nav .wrap {
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.logo {
  font-size: 20px;
  font-weight: 900
}

.logo i {
  font-style: normal;
  color: var(--y)
}

nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 13px
}

.btn {
  background: var(--y);
  padding: 14px 21px;
  font-weight: 900;
  display: inline-block;
  color: #111
}

.hero {
  background: var(--black);
  color: #fff;
  min-height: 670px;
  display: grid;
  align-items: center;
  overflow: hidden
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px
}

.hero {
  background-image: url('../assets/header.jpg');
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: auto;

  @media(max-width: 2000px) {
    background-size: cover;
    background-position: bottom, -400px;
  }

  @media(max-width: 760px) {
    background-image: none;
  }

}

.hero-grid {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, .3);


  &:before {
    content: 'a';
    position: absolute;
    height: 180%;
    width: 100%;
    background-color: var(--black);
    background: linear-gradient(90deg, var(--black) 80%, transparent 100%);
    z-index: -1;
    left: -500px;

    @media(max-width: 850px) {
      height: 300%;
      left: -100px;
      bottom: -300px;
    }
  }
}

.tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--y);
  font-weight: 900
}

.hero h1 {
  font-size: clamp(55px, 7vw, 94px);
  line-height: .88;
  letter-spacing: -.065em;
  margin: 20px 0
}

.hero h1 em {
  font-style: normal;
  color: var(--y)
}

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: #bbb;
  max-width: 620px
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 28px
}

.outline {
  border: 1px solid #555;
  color: #fff;
  padding: 14px 21px;
  font-weight: 800
}

.cube {
  height: 440px;
  position: relative
}

.face {
  position: absolute;
  padding: 30px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em
}

.f1 {
  background: #242424;
  color: #fff;
  width: 280px;
  height: 260px;
  left: 70px;
  top: 35px;
  clip-path: polygon(0 18%, 100% 0, 100% 82%, 0 100%)
}

.f2 {
  background: #e8e6df;
  color: #111;
  width: 250px;
  height: 300px;
  right: 15px;
  top: 15px;
  clip-path: polygon(0 0, 100% 16%, 100% 100%, 0 82%)
}

.f3 {
  background: var(--y);
  width: 130px;
  height: 170px;
  left: 240px;
  bottom: 30px;
  display: flex;
  align-items: flex-end
}

.f4 {
  background: #171717;
  color: #fff;
  width: 230px;
  height: 150px;
  right: 40px;
  bottom: 0
}

.section {
  padding: 100px 0
}

.section.white {
  background: #fff
}

.head {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 80px
}

.head h2,
.big {
  font-size: clamp(42px, 5vw, 68px);
  line-height: .94;
  letter-spacing: -.055em;
  margin: 12px 0 25px
}

.copy {
  line-height: 1.7;
  color: #666;
  max-width: 720px
}

.statement {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px
}

.mountain {
  height: 330px;
  background: linear-gradient(145deg, transparent 45%, #161616 46% 65%, transparent 66%), linear-gradient(35deg, transparent 40%, #444 41% 63%, transparent 64%);
  position: relative
}

.mountain:before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--y);
  right: 18%;
  top: 5%
}

.areas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
  margin-top: 55px
}

.area {
  padding: 32px;
  min-height: 260px;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  transition: .25s
}

.area:hover {
  background: var(--y)
}

.area b {
  font-size: 13px
}

.area h3 {
  font-size: 22px;
  margin-top: 55px
}

.area p {
  font-size: 14px;
  line-height: 1.6;
  color: #666
}

.dark {
  background: var(--black);
  color: #fff
}

.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 55px
}

.step {
  padding: 25px;
  border-top: 2px solid #444
}

.step:before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--y);
  margin-top: -43px;
  margin-bottom: 25px;
  border: 7px solid #333
}

.step b {
  color: var(--y)
}

.step p {
  color: #999;
  font-size: 14px;
  line-height: 1.5
}

.band {
  background: var(--y);
  padding: 65px 0
}

.benefits {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 32px;
  align-items: start
}

.benefits h2 {
  font-size: 42px;
  line-height: .95;
  margin: 0
}

.benefit strong {
  display: block;
  margin-bottom: 12px
}

.benefit p {
  font-size: 13px;
  line-height: 1.5
}

.lab {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px
}

.lab .text {
  padding: 90px max(30px, calc((100vw - 1200px)/2));
  padding-right: 70px
}

/* .lab .visual {
  background: var(--black);
  position: relative;
  overflow: hidden
}

.lab .visual:before,
.lab .visual:after {
  content: '';
  position: absolute;
  background: #333;
  transform: rotate(45deg)
}

.lab .visual:before {
  width: 500px;
  height: 160px;
  left: -70px;
  top: 140px
}

.lab .visual:after {
  width: 450px;
  height: 110px;
  right: -60px;
  bottom: 80px;
  background: var(--y)
} */

.lab.white {
  background-color: #fff;
}

.nosso-proposito {
  background-image: url('../assets/nosso-proposito.jpg');
  background-repeat: no-repeat;
  background-position: bottom, center;
  background-size: contain;

  @media(max-width: 2000px) {
    background-size: cover;
    background-position-x: center;
    background-position-y: 50px;
  }

  @media(max-width: 850px) {
    background-position-y: 0px;
    background-position-x: right;
  }
}

.vamos-construir {
  background-image: url('../assets/vamos-construir.jpg');
  background-size: cover;
  position: relative;
  background-repeat: no-repeat;
}

.lab h2 {
  font-size: 58px;
  line-height: .95;
  letter-spacing: -.05em
}

.faq {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 70px
}

.faq-item {
  border-top: 1px solid #ccc
}

.faq-q {
  width: 100%;
  background: none;
  border: 0;
  padding: 21px 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  font-weight: 900;
  cursor: pointer;
  color: var(--black);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  color: #666;
  line-height: 1.6;
  transition: .3s
}

.faq-item.open .faq-a {
  max-height: 170px;
  padding-bottom: 20px
}

.logo.header {
  img {
    height: 44px;
  }
}

.logo.footer {
  img {
    height: 140px;
  }
}

footer {
  background: #0f0f0f;
  color: #aaa;
  padding: 45px 0
}

.foot {
  display: flex;
  justify-content: space-between
}

.yellow {
  color: var(--y)
}

@media(max-width:850px) {

  nav a:not(.btn),
  nav .nav-dropdown {
    display: none
  }

  .hero-grid,
  .head,
  .statement,
  .faq,
  .lab {
    grid-template-columns: 1fr
  }

  .cube {
    height: 380px
  }

  .areas {
    grid-template-columns: 1fr 1fr
  }

  .process {
    grid-template-columns: 1fr 1fr
  }

  .benefits {
    grid-template-columns: 1fr 1fr
  }

  .lab .text {
    padding: 70px 30px
  }

  .lab .visual {
    min-height: 350px
  }
}

@media(max-width:520px) {

  .areas,
  .process,
  .benefits {
    grid-template-columns: 1fr
  }

  .hero h1 {
    font-size: 55px
  }

  .cube {
    transform: scale(.78);
    transform-origin: left top
  }

  .actions {
    flex-direction: column
  }

  .foot {
    flex-direction: column;
    gap: 18px
  }
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 100;
  background: var(--y);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  transition: ease-in-out 100ms;
}

.scroll-progress {
  height: 4px;
  box-shadow: 0 0 16px rgba(246, 185, 0, .55);
}

.menu-mobile-action {
  display: none;
  position: relative;
  width: 20px;

  .menu {
    height: 2px;
    width: 20px;
    background-color: rgba(255, 255, 255, .3);
    position: fixed;
    transition: ease-in-out 200ms;
    z-index: 99;

    &:before {
      content: '';
      height: 2px;
      width: 20px;
      background-color: rgba(255, 255, 255, .3);
      top: 30px;
      position: fixed;
      transition: ease-in-out 200ms;
    }

    &:after {
      content: '';
      height: 2px;
      width: 20px;
      background-color: rgba(255, 255, 255, .3);
      top: 42px;
      position: fixed;
      transition: ease-in-out 200ms;
    }
  }

  &.ativo {
    .menu {
      background-color: transparent;

      &:before {
        background-color: #fff;
        transform: rotate(-38deg);
        top: 37px;
      }

      &:after {
        background-color: #fff;
        transform: rotate(39deg);
        top: 37px;
      }

    }
  }

  @media(max-width: 850px) {
    display: block;
  }
}

.menu-mobile {
  @media(min-width: 851px) {
    display: none;
  }

  position: fixed;
  height: 100%;
  width: 100%;
  left: -100%;
  top: 0;
  background-color: rgba(0, 0, 0, 0.89);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: ease-in-out 200ms;
  backdrop-filter: blur(5px);

  a {
    margin: 10px 0;
  }

  &.ativo {
    left: 0;
  }
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger,
.nav-dropdown-trigger-mobile {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: 8px;
}

.nav-dropdown-trigger span {
  position: absolute;
  color: var(--y);
  font-size: 16px;
  transform: scaleX(1.5);
  margin-left: 57px;
  margin-top: -6px;
  line-height: 0;
}

.nav-dropdown.open .nav-dropdown-trigger span {
  transform: scaleX(1.5) rotateX(180deg);
  margin-top: 12px;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 17px);
  left: 50%;
  width: 285px;
  padding: 9px;
  background: #111;
  border: 1px solid #303030;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -10px) scale(.97);
  transform-origin: top center;
  transition: opacity .24s ease, transform .24s cubic-bezier(.2, .8, .2, 1), visibility .24s;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #111;
  border-left: 1px solid #303030;
  border-top: 1px solid #303030;
  transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.nav-dropdown-menu a {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 13px;
  color: #fff;
  border-bottom: 1px solid #242424;
  transition: background .2s ease, padding-left .2s ease;
}

.nav-dropdown-menu a:last-child {
  border-bottom: 0;
}

.nav-dropdown-menu a:hover {
  background: #1c1c1c;
  padding-left: 18px;
}

.nav-dropdown-menu a span {
  color: var(--y);
  font-size: 10px;
  letter-spacing: .12em;
}

.nav-dropdown-menu a strong {
  font-size: 13px;
}

/* mobile */

.nav-dropdown-mobile {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;

  .nav-dropdown-trigger-mobile span {
    position: absolute;
    color: var(--y);
    font-size: 16px;
    transform: scaleX(1.5);
    margin-left: 70px;
    margin-top: -12px;
    line-height: 0;
  }

  .nav-dropdown-menu-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    background-color: var(--y);
    color: var(--black);
    border-radius: 7px;
    max-height: 0;
    transition: ease-in-out 200ms;
    text-align: center;
    overflow: hidden;

    a:not(:last-child) {
      display: block;
      border-bottom: 1px solid;
      width: 100%;
      padding-bottom: 8px;
      margin-bottom: 0;
    }
  }


  &.ativo {
    .nav-dropdown-trigger-mobile span {
      transform: scaleX(1.5) rotateX(180deg);
      margin-top: 12px;
    }

    .nav-dropdown-menu-mobile {
      max-height: 300px;

      a {
        display: block !important;
      }
    }
  }
}

