/* Restivo Diamonds homepage art direction.
   Loaded only on the front page to keep institutional and commerce templates lean. */

.page-editorial--front {
  --rd-home-edge: clamp(28px, 3vw, 48px);
  --rd-home-edge-mobile: 15px;
  --rd-home-heading-size: 2.16rem;
  --rd-home-heading-line: 1.08;
  --rd-home-copy-size: 1.08rem;
  --rd-home-copy-line: 1.36;
  --rd-home-link-size: 0.74rem;
  --rd-home-section-title-size: 2.32rem;
  --rd-home-section-copy-size: 1rem;
  --rd-home-copy-width: 39rem;
  --rd-home-motion: cubic-bezier(0.19, 1, 0.22, 1);
  max-width: 100vw;
  overflow-x: clip;
}

body:has(.page-editorial--front) {
  overflow-x: hidden;
}

body.home,
body.page-id-298 {
  overflow-x: hidden;
}

.page-editorial--front .slider,
.page-editorial--front .slider__track {
  min-width: 0;
  max-width: 100%;
}

.page-editorial--front .slider__track {
  width: 100%;
  contain: layout paint;
  overscroll-behavior-inline: contain;
}

.page-editorial--front .rd-editorial-swiper__track {
  contain: layout paint;
  overscroll-behavior-inline: contain;
}

.page-editorial--front .rd-home-hero {
  min-height: clamp(690px, calc(100svh - var(--header-total, 78px)), 910px);
  align-items: end;
}

.page-editorial--front .rd-home-hero::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.16) 64%, rgba(0, 0, 0, 0.68) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 38%);
}

.page-editorial--front .rd-home-hero__picture img {
  object-position: center center;
}

.page-editorial--front .rd-home-hero__content {
  width: min(calc(100% - (var(--rd-home-edge) * 2)), var(--rd-home-copy-width));
  max-width: var(--rd-home-copy-width);
  margin-right: auto;
  margin-left: var(--rd-home-edge);
  padding: 0 0 clamp(46px, 5.2vh, 62px);
}

.page-editorial--front .rd-home-hero .eyebrow:empty {
  display: none;
}

.page-editorial--front .rd-home-hero .eyebrow {
  max-width: 34rem;
  margin: 0 0 0.84rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.page-editorial--front .rd-home-hero h1 {
  max-width: 18ch;
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: var(--rd-home-heading-size);
  font-weight: 300;
  letter-spacing: 0;
  line-height: var(--rd-home-heading-line);
  text-transform: none;
}

.page-editorial--front .rd-home-hero p:not(.eyebrow) {
  max-width: 38rem;
  margin: 0.96rem 0 0;
  color: #ffffff;
  font-size: var(--rd-home-copy-size);
  font-weight: 300;
  letter-spacing: 0;
  line-height: var(--rd-home-copy-line);
}

.page-editorial--front .rd-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.08rem 1.65rem;
  margin-top: 1.48rem;
}

.page-editorial--front .rd-home-link {
  color: #000000;
  font-size: var(--rd-home-link-size);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  text-underline-offset: 0.38rem;
}

.page-editorial--front .rd-home-link--light {
  color: #ffffff;
}

.page-editorial--front .rd-home-link::after {
  bottom: -0.38rem;
  transform-origin: left center;
  transition: transform 560ms var(--rd-home-motion), opacity 280ms ease;
}

.page-editorial--front .rd-home-link:is(:hover, :focus-visible)::after {
  transform: scaleX(0.52);
}

.page-editorial--front .rd-home-product-spotlight {
  margin-top: 0;
  grid-template-columns: minmax(360px, 29vw) minmax(330px, 25vw) minmax(0, 46vw);
}

.page-editorial--front .rd-home-hero + .rd-home-product-spotlight {
  margin-top: 0;
}

.page-editorial--front .rd-home-product-spotlight__copy {
  padding-inline: clamp(2.1rem, 3.4vw, 4rem);
}

.page-editorial--front .rd-home-product-spotlight__copy h2 {
  max-width: 12.5ch;
}

.page-editorial--front .rd-home-product-spotlight__copy p:not(.eyebrow) {
  max-width: 22.8rem;
}

.page-editorial--front .rd-home-product-spotlight__rail {
  padding-left: clamp(1rem, 1.8vw, 2.4rem);
}

.page-editorial--front .rd-home-product-spotlight__slider .slider__track {
  grid-auto-columns: minmax(460px, 74%);
}

.page-editorial--front .rd-home-slider--collections {
  margin-top: 0 !important;
  padding-top: clamp(62px, 6.4vw, 98px) !important;
  padding-bottom: clamp(58px, 6vw, 92px) !important;
  background: #ffffff;
}

.page-editorial--front .rd-home-slider--collections .section-heading {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 42rem) auto;
  align-items: end;
  gap: clamp(1.2rem, 3vw, 3rem);
  margin-bottom: clamp(22px, 2.8vw, 40px);
  padding-left: var(--rd-home-edge) !important;
  padding-right: var(--rd-home-edge) !important;
}

.page-editorial--front .rd-home-slider--collections .section-heading > div:first-child {
  display: grid;
  justify-items: start;
  gap: 0.78rem;
  text-align: left;
}

.page-editorial--front .rd-home-slider--collections .eyebrow {
  margin: 0;
  color: rgba(0, 0, 0, 0.58);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.25;
  text-transform: uppercase;
}

.page-editorial--front .rd-home-slider--collections .section-heading h2 {
  max-width: 16ch;
  font-size: clamp(2.05rem, 3vw, 3.28rem) !important;
  line-height: 1.05 !important;
}

.page-editorial--front .rd-home-slider--collections .slider-controls {
  align-self: end;
  justify-self: end;
  margin-bottom: 0.16rem;
}

.page-editorial--front .rd-home-slider--collections .slider__track {
  padding-left: var(--rd-home-edge);
  padding-right: var(--rd-home-edge);
  scroll-padding-left: var(--rd-home-edge);
  scroll-padding-right: var(--rd-home-edge);
}

.page-editorial--front .rd-home-slider--collections .media-card__body {
  padding-top: 1.02rem;
}

.page-editorial--front .rd-home-feature-pair__copy h2,
.page-editorial--front .rd-home-product-spotlight__copy h2,
.page-editorial--front .rd-graff-double__intro h2,
.page-editorial--front .rd-graff-double__copy h3,
.page-editorial--front .rd-editorial-swiper__title,
.page-editorial--front .section-block--slider .section-heading h2,
.page-editorial--front .rd-home-links h2,
.page-editorial--front .rd-home-services h2 {
  font-family: var(--font-display) !important;
  font-size: var(--rd-home-section-title-size) !important;
  font-weight: 300 !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
  text-transform: none !important;
}

.page-editorial--front .rd-home-feature-pair__copy p,
.page-editorial--front .rd-home-product-spotlight__copy p:not(.eyebrow),
.page-editorial--front .rd-graff-double__description,
.page-editorial--front .rd-graff-double__copy p,
.page-editorial--front .rd-editorial-swiper__text,
.page-editorial--front .media-card__body p {
  font-size: var(--rd-home-section-copy-size) !important;
  font-weight: 300 !important;
  letter-spacing: 0 !important;
  line-height: 1.58 !important;
}

@media (min-width: 1600px) {
  .page-editorial--front {
    --rd-home-edge: 46px;
    --rd-home-heading-size: 2.22rem;
    --rd-home-copy-size: 1.09rem;
    --rd-home-section-title-size: 2.4rem;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .page-editorial--front {
    --rd-home-edge: 32px;
    --rd-home-heading-size: 2rem;
    --rd-home-copy-size: 1.02rem;
    --rd-home-section-title-size: 2.08rem;
  }

  .page-editorial--front .rd-home-hero {
    min-height: clamp(650px, calc(100svh - var(--header-total, 78px)), 820px);
  }

  .page-editorial--front .rd-home-hero__content {
    width: min(calc(100% - 64px), 36rem);
    padding-bottom: 48px;
  }

  .page-editorial--front .rd-home-slider--collections .section-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-left: var(--rd-home-edge) !important;
    padding-right: var(--rd-home-edge) !important;
  }

  .page-editorial--front .rd-home-slider--collections .slider__track {
    padding-left: var(--rd-home-edge);
    padding-right: var(--rd-home-edge);
    scroll-padding-left: var(--rd-home-edge);
    scroll-padding-right: var(--rd-home-edge);
  }

  .page-editorial--front .rd-home-product-spotlight {
    grid-template-columns: minmax(300px, 34vw) minmax(270px, 30vw) minmax(0, 36vw);
  }

  .page-editorial--front .rd-home-product-spotlight__copy {
    padding-inline: clamp(1.45rem, 2.5vw, 2.3rem);
  }

  .page-editorial--front .rd-home-product-spotlight__slider .slider__track {
    grid-auto-columns: minmax(360px, 82%);
  }
}

@media (max-width: 760px) {
  .page-editorial--front {
    --rd-home-heading-size: 1.46rem;
    --rd-home-copy-size: 0.96rem;
    --rd-home-copy-line: 1.35;
    --rd-home-link-size: 0.72rem;
    --rd-home-section-title-size: 1.72rem;
    --rd-home-section-copy-size: 0.94rem;
  }

  .page-editorial--front .rd-home-hero {
    min-height: calc(100svh - var(--header-total, 78px));
  }

  .page-editorial--front .rd-home-hero::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 44%, rgba(0, 0, 0, 0.2) 66%, rgba(0, 0, 0, 0.72) 100%);
  }

  .page-editorial--front .rd-home-hero__content {
    width: calc(100% - (var(--rd-home-edge-mobile) * 2));
    max-width: 23.5rem;
    margin-left: var(--rd-home-edge-mobile);
    padding-bottom: max(40px, calc(34px + env(safe-area-inset-bottom)));
  }

  .page-editorial--front .rd-home-hero h1 {
    max-width: 17ch;
  }

  .page-editorial--front .rd-home-hero p:not(.eyebrow) {
    max-width: 22.5rem;
    margin-top: 0.9rem;
  }

  .page-editorial--front .rd-home-hero__actions {
    gap: 1rem 1.35rem;
    margin-top: 1.35rem;
  }

  .page-editorial--front .rd-home-slider--collections {
    padding-top: 54px !important;
    padding-bottom: 58px !important;
  }

  .page-editorial--front .rd-home-slider--collections .section-heading {
    grid-template-columns: 1fr;
    gap: 0.95rem;
    margin-bottom: 20px;
    padding-left: var(--rd-home-edge-mobile) !important;
    padding-right: var(--rd-home-edge-mobile) !important;
  }

  .page-editorial--front .rd-home-slider--collections .section-heading h2 {
    max-width: 13ch;
    font-size: clamp(1.84rem, 8vw, 2.18rem) !important;
  }

  .page-editorial--front .rd-home-slider--collections .slider-controls {
    display: none;
  }

  .page-editorial--front .rd-home-slider--collections .slider__track {
    padding-left: var(--rd-home-edge-mobile);
    padding-right: var(--rd-home-edge-mobile);
    scroll-padding-left: var(--rd-home-edge-mobile);
    scroll-padding-right: var(--rd-home-edge-mobile);
  }

  .page-editorial--front .rd-home-product-spotlight {
    grid-template-columns: 1fr;
  }

  .page-editorial--front .rd-home-product-spotlight__copy {
    padding-inline: 20px;
  }

  .page-editorial--front .rd-home-product-spotlight__copy h2 {
    max-width: 13ch;
  }

  .page-editorial--front .rd-home-product-spotlight__slider .slider__track {
    grid-auto-columns: 84vw;
  }
}
