/* ==========================================================================
   Página de produto
   ========================================================================== */
:root {
  --produto-texto-claro: #f1ece6;
  --produto-cinza: #9a9a9a;
  --produto-linha: rgba(255, 255, 255, 0.12);
  --produto-fundo-destaque: #0e1011;
}

/* ---------- Tipografia ---------- */
.product-label {
  margin-bottom: 22px;
  color: var(--produto-cinza);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
}

.product-title {
  color: var(--produto-texto-claro);
  font-family: var(--font-serif);
  font-size: clamp(38px, 3.13vw, 60px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.product-title--small {
  font-size: clamp(32px, 2.5vw, 48px);
}

.product-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px) auto;
  align-items: end;
  column-gap: clamp(32px, 4.2vw, 80px);
}

.product-section-head--two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 490px);
}

.product-section-head__text {
  padding-bottom: 6px;
  color: var(--produto-cinza);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

/* ==========================================================================
   Topo do produto
   ========================================================================== */
.product-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(640px, 52.9vw, 1016px);
  padding-block: 110px clamp(48px, 4vw, 80px);
  overflow: hidden;
}

.product-hero__img {
  position: absolute;
  top: 0;
  left: 38.55%;
  width: 61.45%;
  height: 100%;
  object-fit: cover;
}

.product-hero__content {
  position: relative;
  z-index: 1;
}

.product-hero__content > * {
  max-width: min(525px, 38.55vw - var(--gutter) - 32px);
}

.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: clamp(20px, 1.9vw, 36px);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-breadcrumb a {
  transition: color var(--transition);
}

.product-breadcrumb a:hover,
.product-breadcrumb a:focus-visible {
  color: var(--color-gold);
}

.product-hero__title {
  font-size: inherit;
  font-weight: inherit;
}

/* Cada parte do h1 anima separada */
.js .reveal-group > .product-hero__title,
.js .reveal-group.is-visible > .product-hero__title {
  opacity: 1;
  animation: none;
}

.js .reveal-group > .product-hero__title > * {
  opacity: 0;
}

.js .reveal-group.is-visible > .product-hero__title > * {
  opacity: 1;
  animation: fade-up 1s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 0.11s);
}

.js .reveal-group.is-visible > .product-hero__title > .product-hero__name {
  animation-delay: calc((var(--i, 0) + 0.5) * 0.11s);
}

/* Rolando para cima */
.js .reveal-group.reveal--from-top.is-visible > .product-hero__title > * {
  animation-name: fade-down;
  animation-delay: calc((var(--n, 1) - 1 - var(--i, 0)) * 0.11s);
}

.js .reveal-group.reveal--from-top.is-visible > .product-hero__title > .product-hero__type {
  animation-delay: calc((var(--n, 1) - 0.5 - var(--i, 0)) * 0.11s);
}

.product-hero__type {
  display: block;
  color: #cfcfcf;
  font-size: clamp(15px, 1.1vw, 21px);
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.product-hero__name {
  display: block;
  margin: 0.3em 0 0.32em;
  color: var(--produto-texto-claro);
  font-family: var(--font-serif);
  font-size: clamp(var(--nome-min, 70px), var(--nome-vw, 7.15vw), var(--nome-max, 137px));
  font-weight: 400;
  line-height: 0.8;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

/* Tamanho pela largura da maior palavra do nome */
.product-hero__name--medio {
  --nome-min: 64px;
  --nome-vw: 6.25vw;
  --nome-max: 120px;
}

.product-hero__name--longo {
  --nome-min: 60px;
  --nome-vw: 5.78vw;
  --nome-max: 111px;
}

.product-hero__name--muito-longo {
  --nome-min: 54px;
  --nome-vw: 4.74vw;
  --nome-max: 91px;
}

.product-hero__name--extra-longo {
  --nome-min: 50px;
  --nome-vw: 4.43vw;
  --nome-max: 85px;
}

.product-hero__name--gigante {
  --nome-min: 42px;
  --nome-vw: 3.8vw;
  --nome-max: 73px;
}

.product-hero__tagline {
  max-width: 11em;
  margin-bottom: 1.1em;
  color: #d3cec8;
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.2vw, 42px);
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.product-hero__text {
  margin-bottom: clamp(36px, 3.3vw, 64px);
  color: #b9b9b9;
  font-size: clamp(16px, 1vw, 19px);
  font-weight: 400;
  line-height: 1.8;
}

/* ==========================================================================
   Uma pedra, inúmeras histórias
   ========================================================================== */
.stone-story {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 29.3vw, 563px);
  padding-block: 48px;
  overflow: hidden;
  color: #2c2c2c;
}

.stone-story__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stone-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.3) 40%, transparent 65%);
  pointer-events: none;
}

.stone-story__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.stone-story__title {
  margin-bottom: 1.1em;
  color: #262626;
  font-size: clamp(20px, 1.62vw, 31px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.stone-story__text {
  max-width: 560px;
  color: #3d3d3d;
  font-size: clamp(16px, 1.1vw, 21px);
  font-weight: 400;
  line-height: 1.95;
}

.stone-zoom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 26px;
  width: clamp(150px, 12.3vw, 236px);
  aspect-ratio: 1;
  border: 1.5px solid rgba(40, 40, 40, 0.55);
  border-radius: 50%;
  transition: background-color var(--transition), border-color var(--transition);
}

.stone-zoom::before {
  content: "";
  width: clamp(36px, 2.7vw, 52px);
  aspect-ratio: 1;
  background: url("../../assets/icons/icon-expandir.svg") center / contain no-repeat;
  transition: transform var(--transition);
}

.stone-zoom:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(40, 40, 40, 0.8);
}

.stone-zoom:hover::before {
  transform: scale(1.1);
}

.stone-zoom__label {
  color: #444;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Pedras escuras */
.stone-story--escura {
  color: var(--produto-texto-claro);
}

.stone-story--escura::after {
  background: linear-gradient(to right, rgba(10, 12, 13, 0.78), rgba(10, 12, 13, 0.45) 50%, rgba(10, 12, 13, 0.2));
}

.stone-story--escura .stone-story__title {
  color: var(--produto-texto-claro);
}

.stone-story--escura .stone-story__text {
  color: rgba(255, 255, 255, 0.85);
}

.stone-story--escura .stone-zoom {
  border-color: rgba(255, 255, 255, 0.55);
}

.stone-story--escura .stone-zoom:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.9);
}

.stone-story--escura .stone-zoom::before {
  filter: invert(1);
}

.stone-story--escura .stone-zoom__label {
  color: rgba(255, 255, 255, 0.85);
}

/* Visualização ampliada */
.stone-viewer {
  max-width: min(1200px, 92vw);
  max-height: 90vh;
  padding: 0;
  border: 1px solid rgba(188, 157, 107, 0.5);
  background: #000;
}

.stone-viewer::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.stone-viewer__img {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.stone-viewer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6) url("../../assets/icons/icon-fechar.svg") center / 16px no-repeat;
}

/* ==========================================================================
   Aplicações
   ========================================================================== */
.applications {
  padding-top: clamp(56px, 4.2vw, 81px);
}

.slider-nav {
  display: flex;
  gap: 20px;
}

.slider-nav[hidden] {
  display: none;
}

.slider-nav__btn {
  width: clamp(52px, 3.55vw, 68px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: url("../../assets/icons/icon-seta-longa.svg") center / 26px no-repeat;
  transition: border-color var(--transition), opacity var(--transition);
}

.slider-nav__btn--prev {
  transform: scaleX(-1);
}

.slider-nav__btn:hover {
  border-color: var(--color-gold);
}

.slider-nav__btn:disabled {
  cursor: default;
  opacity: 0.3;
}

.applications__track {
  display: flex;
  gap: clamp(20px, 1.9vw, 36px);
  margin-top: clamp(40px, 3.75vw, 72px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.applications__track::-webkit-scrollbar {
  display: none;
}

.applications__item {
  flex-shrink: 0;
  height: clamp(320px, 31.9vw, 612px);
  scroll-snap-align: start;
}

.applications__item img {
  width: auto;
  max-width: none;
  height: 100%;
}

/* ==========================================================================
   Características
   ========================================================================== */
.features {
  padding-block: clamp(64px, 5.4vw, 104px) clamp(56px, 4.7vw, 90px);
}

.features__list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: clamp(32px, 2vw, 40px);
}

.feature-item {
  position: relative;
  padding: 33px 32px 20px;
  border-left: 1px solid var(--produto-linha);
}

.feature-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  width: 50%;
  height: 1px;
  background-color: var(--produto-linha);
}

.feature-item:first-child::before {
  left: 0;
}

.feature-item__icon {
  width: 66px;
  height: 66px;
  margin-bottom: 44px;
}

.feature-item__title {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.feature-item__text {
  color: var(--produto-cinza);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
}

/* ==========================================================================
   Informações técnicas
   ========================================================================== */
.tech {
  padding-block: clamp(32px, 2.4vw, 45px) clamp(48px, 3.4vw, 64px);
  background-color: var(--produto-fundo-destaque);
}

.tech__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 661px);
  align-items: start;
  column-gap: clamp(40px, 6.2vw, 119px);
}

.tech__media {
  margin-left: clamp(-39px, -2vw, 0px);
}

/* Chapa em perspectiva */
.slab {
  padding: 3% 4% 9% 2%;
  perspective: 1600px;
  perspective-origin: 20% 50%;
}

.slab__img {
  width: 100%;
  aspect-ratio: 14 / 9;
  object-fit: cover;
  transform: rotateY(28deg);
  transform-origin: left center;
  box-shadow: 30px 40px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.07);
  -webkit-box-reflect: below 3px linear-gradient(transparent 82%, rgba(255, 255, 255, 0.12));
}

.tech__content {
  padding-top: clamp(0px, 1.9vw, 37px);
}

.tech__table {
  margin: clamp(32px, 2.4vw, 46px) 0 0;
}

.tech__row {
  display: grid;
  grid-template-columns: 195px 1fr;
  padding-block: 6px;
  border-bottom: 1px solid var(--produto-linha);
  font-size: clamp(16px, 1.05vw, 20px);
  font-weight: 400;
  line-height: 1.9;
}

.tech__row:last-child {
  border-bottom: 0;
}

.tech__row dt {
  color: var(--produto-cinza);
}

.tech__row dd {
  margin: 0;
  color: #d0d0d0;
}

.tech__download {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: clamp(24px, 2vw, 38px);
  padding-block: clamp(28px, 2.1vw, 40px);
  border-top: 1px solid var(--produto-linha);
  transition: color var(--transition);
}

.tech__download::before {
  content: "";
  width: 36px;
  height: 38px;
  background: url("../../assets/icons/icon-download.svg") center / contain no-repeat;
}

.tech__download-label {
  flex: 1;
  color: #cfcfcf;
  font-size: 17px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.tech__download-type {
  color: #777;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.tech__download:hover .tech__download-label {
  color: var(--color-gold);
}

/* ==========================================================================
   Pedras relacionadas
   ========================================================================== */
.related {
  padding-block: clamp(48px, 3.4vw, 65px) clamp(48px, 3.4vw, 65px);
  background-color: var(--produto-fundo-destaque);
}

.related__inner {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(0, 1140px);
  column-gap: 40px;
  align-items: start;
}

.related__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 23px;
}

.stone-card__link {
  display: block;
}

.stone-card__img {
  width: 100%;
  aspect-ratio: 356 / 238;
  object-fit: cover;
  transition: filter var(--transition), transform 0.8s ease;
}

.stone-card__link:hover .stone-card__img {
  filter: brightness(1.08);
}

.stone-card__name {
  display: block;
  margin-top: 30px;
  font-size: 17px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.stone-card__link:hover .stone-card__name {
  color: var(--color-gold);
}

.stone-card__type {
  display: block;
  margin-top: 6px;
  color: #8a8a8a;
  font-size: 15px;
  font-weight: 400;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1280px) {
  .features__list {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 32px;
  }

  .feature-item:nth-child(4) {
    padding-left: 0;
    border-left: 0;
  }

  .feature-item:nth-child(4)::before {
    left: 0;
  }

  .related__inner {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }
}

@media (max-width: 1024px) {
  /* Topo */
  .product-hero__img {
    left: 0;
    width: 100%;
    filter: brightness(0.35);
  }

  .product-hero__content > * {
    max-width: 560px;
  }

  .product-section-head,
  .product-section-head--two {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .slider-nav {
    order: 3;
  }

  .tech__inner,
  .related__inner {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .tech__media {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  /* Topo */
  .product-hero {
    display: block;
    min-height: 0;
    padding: var(--header-height) 0 56px;
  }

  .product-hero__img {
    position: static;
    width: 100%;
    height: auto;
    margin-bottom: 40px;
    filter: none;
  }

  .stone-story__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .stone-story::after {
    background: rgba(255, 255, 255, 0.3);
  }

  .stone-story--escura::after {
    background: rgba(10, 12, 13, 0.62);
  }

  .features__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-item:nth-child(n) {
    padding-left: 24px;
    border-left: 1px solid var(--produto-linha);
  }

  .feature-item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .feature-item::before {
    left: 24px;
  }

  .feature-item:nth-child(odd)::before {
    left: 0;
  }

  .tech__row {
    grid-template-columns: 130px 1fr;
  }

  .related__list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .product-breadcrumb {
    gap: 4px 8px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .related__list {
    grid-template-columns: 1fr;
  }

  .features__list {
    grid-template-columns: 1fr;
  }

  .feature-item:nth-child(n) {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 20px;
    align-items: start;
    padding: 22px 0;
    border-left: 0;
  }

  .feature-item:nth-child(n)::before {
    left: 0;
    width: 100%;
  }

  .feature-item__icon {
    grid-row: span 2;
    width: 48px;
    height: 48px;
    margin-bottom: 0;
  }

  .feature-item__title {
    margin-bottom: 6px;
  }

  .feature-item__text {
    line-height: 1.6;
  }
}

/* ==========================================================================
   Entrada da página
   ========================================================================== */
.js .product-hero__img {
  animation: fade-in 1.8s ease backwards;
}
