/* Hero da home: composição inspirada em etiquetas de roupa */
.hero-tags {
  --tag-x: 0px;
  --tag-y: 0px;
  position: relative;
  width: min(100%, 650px);
  min-height: 640px;
  margin-inline: auto;
  isolation: isolate;
  overflow: visible;
  transform-style: preserve-3d;
}

.hero-tags::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -150px;
  top: -115px;
  z-index: -4;
  border-radius: 50%;
  background: rgba(221, 178, 178, 0.34);
}

.hero-tag {
  position: absolute;
  box-sizing: border-box;
  filter: drop-shadow(0 28px 34px rgba(65, 50, 50, 0.18));
  transform-origin: 50% 44px;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.hero-tag::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.68;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 31px 31px;
}

.hero-tag--main {
  left: 138px;
  top: 142px;
  z-index: 4;
  width: 222px;
  height: 516px;
  color: var(--paper);
  background: linear-gradient(155deg, #3c3a3a 0%, #252323 100%);
  clip-path: polygon(14% 0, 86% 0, 100% 8%, 100% 92%, 86% 100%, 14% 100%, 0 92%, 0 8%);
  transform: translate3d(calc(var(--tag-x) * 0.54), calc(var(--tag-y) * 0.54), 60px) rotate(9deg);
}

.hero-tag--light {
  left: 326px;
  top: 126px;
  z-index: 3;
  width: 208px;
  height: 510px;
  color: var(--brand);
  background: linear-gradient(160deg, #fffdfb 0%, #f4ece9 100%);
  clip-path: polygon(14% 0, 86% 0, 100% 8%, 100% 92%, 86% 100%, 14% 100%, 0 92%, 0 8%);
  transform: translate3d(calc(var(--tag-x) * 0.34), calc(var(--tag-y) * 0.34), 30px) rotate(0deg);
}

.hero-tag--light::before {
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(167, 43, 24, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 43, 24, 0.08) 1px, transparent 1px);
  background-size: 31px 31px;
}

.hero-tag--red {
  left: 492px;
  top: 142px;
  z-index: 2;
  width: 162px;
  height: 488px;
  color: rgba(241, 231, 231, 0.23);
  background: linear-gradient(155deg, #b52c18 0%, #982514 100%);
  clip-path: polygon(15% 0, 85% 0, 100% 10%, 100% 90%, 85% 100%, 15% 100%, 0 90%, 0 10%);
  transform: translate3d(calc(var(--tag-x) * 0.18), calc(var(--tag-y) * 0.18), 0) rotate(-10deg);
}

.hero-tag__eyelet {
  position: absolute;
  top: 28px;
  left: 50%;
  z-index: 12;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, #191818 0 24%, #777 26% 43%, #333 45% 100%);
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, 0.22),
    0 3px 7px rgba(0, 0, 0, 0.25);
}

.hero-tag__eyelet--red {
  background: radial-gradient(circle at center, #f7efec 0 28%, #b8321f 30% 100%);
}

.hero-tag__brand {
  position: absolute;
  inset: 92px 0 150px;
  display: grid;
  place-items: center;
  color: rgba(253, 253, 253, 0.94);
  font-family: var(--subtitle);
  font-size: clamp(2.45rem, 3.4vw, 3.55rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-tag__services {
  position: absolute;
  left: 50%;
  bottom: 76px;
  width: max-content;
  transform: translateX(-50%);
  color: rgba(241, 231, 231, 0.82);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.hero-tag__accent {
  position: absolute;
  left: 50%;
  bottom: 56px;
  width: 34px;
  height: 2px;
  transform: translateX(-50%);
  background: var(--brand);
}

.hero-tag__light-copy {
  position: absolute;
  left: 58px;
  bottom: 148px;
  width: 102px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  text-transform: uppercase;
}

.hero-tag__light-copy span {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-tag__light-copy i {
  width: 45px;
  height: 1px;
  background: currentColor;
}

.hero-tag__light-copy strong {
  font-family: var(--body);
  font-size: 1.06rem;
  line-height: 1.18;
  text-transform: none;
}

.hero-tag__monogram {
  position: absolute;
  top: 232px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(91, 18, 10, 0.3);
  font-family: var(--title);
  font-size: 5rem;
  line-height: 1;
}

.hero-tags__note {
  position: absolute;
  right: 6px;
  bottom: 20px;
  z-index: 6;
  width: 208px;
  min-height: 106px;
  box-sizing: border-box;
  padding: 24px 20px;
  border: 1px solid rgba(89, 83, 83, 0.12);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  background: rgba(253, 253, 253, 0.95);
  box-shadow: 0 20px 40px rgba(65, 50, 50, 0.13);
  transform: translate3d(calc(var(--tag-x) * 0.72), calc(var(--tag-y) * 0.72), 90px);
  transition: transform 0.2s ease-out;
}

.hero-tags__note::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 30px;
  width: 27px;
  height: 1px;
  background: rgba(167, 43, 24, 0.42);
}

.hero-tags__note span {
  padding-left: 37px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-tags__note strong {
  padding-left: 37px;
  color: var(--brand);
  font-size: 0.98rem;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .hero-tags {
    min-height: 590px;
    transform: scale(0.91);
    transform-origin: center bottom;
  }
}

@media (max-width: 980px) {
  .hero-tags {
    width: min(100%, 650px);
    min-height: 620px;
    transform: none;
  }

  .hero-tag--main {
    left: 86px;
    top: 132px;
    width: 204px;
    height: 482px;
  }

  .hero-tag--light {
    left: 254px;
    top: 118px;
    width: 192px;
    height: 476px;
  }

  .hero-tag--red {
    left: 404px;
    top: 132px;
    width: 150px;
    height: 454px;
  }
}

@media (max-width: 620px) {
  .hero-tags {
    min-height: 430px;
    overflow: hidden;
  }

  .hero-tags::before {
    width: 300px;
    height: 300px;
    right: -120px;
    top: -60px;
  }

  .hero-tag--main {
    left: 8px;
    top: 96px;
    width: 146px;
    height: 318px;
  }

  .hero-tag--light {
    left: 116px;
    top: 84px;
    width: 136px;
    height: 312px;
  }

  .hero-tag--red {
    left: 226px;
    top: 96px;
    width: 102px;
    height: 286px;
  }

  .hero-tag__eyelet {
    top: 19px;
    width: 29px;
    height: 29px;
  }

  .hero-tag__brand {
    inset: 60px 0 92px;
    font-size: 2.05rem;
  }

  .hero-tag__services {
    bottom: 42px;
    font-size: 0.43rem;
  }

  .hero-tag__accent {
    bottom: 30px;
    width: 24px;
  }

  .hero-tag__light-copy {
    left: 34px;
    bottom: 102px;
    width: 70px;
    gap: 9px;
  }

  .hero-tag__light-copy span {
    font-size: 0.42rem;
  }

  .hero-tag__light-copy strong {
    font-size: 0.72rem;
  }

  .hero-tag__monogram {
    top: 146px;
    font-size: 3.25rem;
  }

  .hero-tags__note {
    right: 2px;
    bottom: 4px;
    width: 157px;
    min-height: 78px;
    padding: 17px 13px;
    border-radius: 17px;
  }

  .hero-tags__note::before {
    left: 13px;
    top: 23px;
    width: 18px;
  }

  .hero-tags__note span,
  .hero-tags__note strong {
    padding-left: 24px;
  }

  .hero-tags__note span {
    font-size: 0.46rem;
  }

  .hero-tags__note strong {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-tag,
  .hero-tags__note {
    transition: none !important;
  }
}
