:root {
  --black: #000;
  --orange: #fa8917;
  --green: #00ce63;
  --white: #fff;
  --gray: #b8b8b8;
  --container: 1020px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.header {
  height: 119px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.header img {
  width: 95px;
  height: 80px;
  object-fit: contain;
}

.hero {
  height: 530px;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.72),
      rgba(0, 0, 0, 0.4) 42%,
      rgba(0, 0, 0, 0.04) 70%
    ),
    url("../assets/images/hero-guincho.png") center/cover no-repeat;
}

.hero__inner {
  height: 100%;
  display: flex;
  align-items: center;
}

.hero__copy {
  width: 490px;
  margin-top: -6px;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.18;
  margin: 0 0 9px;
  font-weight: 900;
  letter-spacing: -0.7px;
}

.eyebrow {
  font-size: 11px !important;
  letter-spacing: 0.7px;
  margin: 0 !important;
  color: #d6d6d6;
}

.rule {
  display: block;
  width: 380px;
  height: 3px;
  background: var(--orange);
  margin: 15px 0;
}

.hero p {
  font-size: 11px;
  line-height: 1.28;
  color: #e2e2e2;
  margin: 0 0 14px;
}

/* TODOS OS CTAs */

.cta {
    border: 0;
    border-radius: 4px;
    background: var(--green);
    color: #fff;
    font: 800 11px Montserrat, sans-serif;
    padding: 11px 13px;
    cursor: pointer;
    transition: filter .15s;
    text-align: center;
    text-decoration: none;
}

.cta:link,
.cta:visited,
.cta:hover,
.cta:active,
.cta:focus {
  color: #fff;
  text-decoration: none;
}

.cta:hover {
  filter: brightness(1.08);
}

/* CTA DO TOPO PERMANECE À ESQUERDA */

.hero__copy .cta {
  display: inline-block;
  width: auto;
  margin: 0;
  text-decoration: none;
}

.services {
  padding-top: 0;
  margin-top: -42px;
  position: relative;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 200px);
  gap: 57px 47px;
  justify-content: center;
}

.card {
  height: 202px;
  border-radius: 10px;
  background: var(--orange);
  text-align: center;
  padding: 65px 10px 12px;
  position: relative;
}

.icon {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 6px;
  background: #fff;
  color: #000;
  left: 50%;
  top: -24px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
}

.icon svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.card h2 {
  font-size: 16px;
  line-height: 1.12;
  margin: 6px 0 10px;
  font-weight: 900;
}

.card p {
  font-size: 11px;
  line-height: 1.27;
  margin: 0;
}

/* CTA DO MEIO CENTRALIZADO */

.services__cta {
  display: block;
  width: fit-content;
  margin: 34px auto 0;
  text-decoration: none;
}

.services__cta:link,
.services__cta:visited,
.services__cta:hover,
.services__cta:active,
.services__cta:focus {
  text-decoration: none;
}

.why {
  height: 382px;
  margin-top: 70px;
  border-radius: 12px;
  background: #fff;
  color: #000;
  display: flex;
  overflow: hidden;
}

.why__image {
  width: 60%;
  height: 100%;
  overflow: hidden;
}

.why__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.why__copy {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 35px;
}

.why__copy h2 {
  font-size: 31px;
  line-height: 1.15;
  font-weight: 900;
  margin: 0 0 18px;
}

.why ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
}

.why li::before {
  content: "✓";
  color: var(--orange);
  font-size: 17px;
  font-weight: 900;
  margin-right: 4px;
}

.contact {
  text-align: center;
  padding-top: 69px;
}

.contact h2 {
  font-size: 29px;
  font-weight: 900;
  margin: 0 0 24px;
}

.contact > p {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.6px;
}

.contact .rule {
  width: 297px;
  margin: 26px auto 23px;
}

.contact__links {
  display: flex;
  gap: 54px;
  justify-content: center;
  margin-bottom: 28px;
}

.contact__links a {
  color: #999;
  text-decoration: none;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.contact__links svg {
  width: 17px;
  height: 17px;
  fill: var(--orange);
  flex: none;
}

/* CTA INFERIOR */

.contact .cta {
  display: inline-block;
  width: auto;
  margin: 0 auto;
  text-decoration: none;
}

.slogan {
  text-align: center;
  color: var(--orange);
  font-size: 30px;
  font-weight: 900;
  margin: 46px 20px 73px;
}

footer {
  background: var(--orange);
  color: #111;
  height: 50px;
  font-size: 13px;
}

footer .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 3px 12px #0006;
  z-index: 10;
}

.whatsapp:link,
.whatsapp:visited,
.whatsapp:hover,
.whatsapp:active,
.whatsapp:focus {
  color: #fff;
  text-decoration: none;
}

.whatsapp svg {
  width: 30px;
  height: 30px;
  display: block;
}

@media (max-width: 800px) {
  .header {
    height: 96px;
  }

  .hero {
    height: auto;
    min-height: 610px;
    background-position: 62% center;
  }

  .hero__inner {
    align-items: flex-end;
    padding: 65px 0 55px;
  }

  .hero__copy {
    width: 100%;
    padding: 24px;
    background: rgba(0, 0, 0, 0.64);
    border-radius: 10px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .desktop {
    display: none;
  }

  .services {
    margin-top: 55px;
  }

  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 240px));
    gap: 55px 28px;
  }

  .why {
    height: auto;
    flex-direction: column;
  }

  .why__image,
  .why__copy {
    width: 100%;
  }

  .why__image {
    height: auto;
  }

  .why__image img {
    display: block;
    height: auto;
  }

  .why__copy {
    padding: 42px;
  }

  .contact__links {
    flex-direction: column;
    gap: 12px;
  }

  .slogan {
    font-size: 24px;
  }

  footer {
    height: auto;
    padding: 20px 0;
  }

  footer .container {
    gap: 12px;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .hero h1 {
    font-size: 25px;
  }

  .hero__copy {
    padding: 20px;
  }

  .hero .rule {
    width: 100%;
  }

  .services__grid {
    grid-template-columns: 1fr;
    padding: 0 25px;
  }

  .card {
    height: 210px;
  }

  .why__copy h2 {
    font-size: 27px;
  }

  .why__copy {
    padding: 34px 28px;
  }

  .contact {
    padding-top: 55px;
  }

  .contact h2 {
    font-size: 24px;
  }

  .contact .rule {
    width: 70%;
  }

  .slogan {
    font-size: 21px;
    line-height: 1.25;
    margin-bottom: 50px;
  }

  .whatsapp {
    width: 50px;
    height: 50px;
  }
}