@import "../core/core.css";

/* =========================================================
   HOME
   ========================================================= */

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  grid-template-areas:
    "title art"
    "text  art";
  align-items: center;
  column-gap: clamp(24px, 4vw, 60px);
  padding-top: clamp(24px, 4vw, 60px);
}

.hero__title {
  grid-area: title;
  align-self: end;
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.12;
}

.hero__title .text-gradient {
  font-weight: 700;
}

.hero__text {
  grid-area: text;
  align-self: start;
  margin-top: 34px;
}

.hero__text p {
  font-size: var(--fs-md);
  max-width: 480px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__art {
  grid-area: art;
  position: relative;
  width: 100%;
  max-width: 620px;
  justify-self: end;
}

.hero__art > svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero__art .spin-badge {
  position: absolute;
  left: -2%;
  bottom: 2%;
  --size: clamp(112px, 10vw, 150px);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "art"
      "text";
  }

  .hero__art {
    justify-self: center;
    max-width: 440px;
    margin-top: 26px;
  }

  .hero__text {
    margin-top: 24px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* ===== Logos ===== */
.logos {
  margin-top: clamp(56px, 6vw, 90px);
}

/* ===== CTA "Coisas incríveis" ===== */
.cta-card__art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ===== Projetos em destaque (rolagem horizontal) ===== */
.work {
  position: relative;
  overflow: hidden;
}

.work__pin {
  padding-block: 10px 30px;
}

.work__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(36px, 4vw, 64px);
}

.work__head .section-head {
  margin-bottom: 0;
}

.work__counter {
  font-size: var(--fs-h2);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.work__counter span {
  color: var(--c-muted);
}

.work__track {
  display: flex;
  gap: clamp(20px, 2.5vw, 40px);
  width: max-content;
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
  padding-right: var(--gutter);
}

.work__track .project,
.work__all {
  width: clamp(260px, min(27vw, 44vh), 380px);
}

.work__all {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  padding: 30px;
  text-align: center;
  background: var(--c-accent);
}

.work__all strong {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.2;
}

.work__all .spin-badge {
  --size: 150px;
}

.work__progress {
  height: 2px;
  margin-top: 46px;
  background: var(--c-grey-2);
  border-radius: 2px;
  overflow: hidden;
}

.work__progress span {
  display: block;
  height: 100%;
  background: var(--c-dark);
  transform-origin: left;
  transform: scaleX(0);
}

@media (max-width: 960px) {
  .work__head {
    flex-direction: column;
    align-items: center;
  }

  .work__counter,
  .work__progress {
    display: none;
  }

  .work__track {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 12px;
  }

  .work__track::-webkit-scrollbar {
    display: none;
  }

  .work__track > * {
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  .work__track .project,
  .work__all {
    width: min(78vw, 340px);
  }
}
