/* Homepage — Rank Ray https://rankray.com */

.h-title {
  font-family: "mon-b", "Montserrat", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: clamp(1.75rem, 3.75vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--jc-color-text);
  margin: 0;
}

@media (min-width: 769px) {
  .h-banner__track {
    height: 100%;
  }
}

.h-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s;
}

.h-banner__slide.is-on {
  opacity: 1;
  z-index: 1;
}

.h-banner__slide img {
  object-position: center top;
}

.h-banner__dots {
  position: absolute;
  left: 50%;
  bottom: 3vw;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  width: 72.9%;
  transform: translateX(-50%);
}

.h-banner__dots button {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: width 0.35s ease, background-color 0.35s ease, border-color 0.35s ease;
}

.h-banner__dots button.is-on {
  width: 50px;
  background: #fff;
  border-color: #fff;
}

.h-devices {
  padding: 4.5rem 0 3rem;
}

.h-devices > .container {
  width: 94%;
  max-width: 1720px;
}

.h-tabs {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.h-tabs__btn {
  flex: 1;
  height: 4.5rem;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  background: #fff;
  color: #1a1a1a;
  font-family: "mon-m", "Montserrat", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: clamp(0.9rem, 1.6vw, 1.75rem);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.h-tabs__btn:hover,
.h-tabs__btn:focus-visible {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.h-tabs__btn.is-on {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #fff;
}

.h-rail {
  display: none;
  position: relative;
  margin-top: 2.5rem;
  padding-left: calc((100% - 1720px) / 2);
  overflow: hidden;
}

.h-rail.is-on {
  display: block;
}

/* Homepage device rails — Swiper (ccell.com parity: 3.7 slides, 38px gap). */
.h-rail--swiper {
  overflow: visible;
}

.h-rail--swiper .h-rail__swiper {
  overflow: hidden;
  width: 100%;
}

.h-rail--swiper .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

.h-rail--swiper .swiper-slide > .jc-product-box--home {
  height: 100%;
}

.h-rail--swiper .h-rail__prev.swiper-button-prev::after,
.h-rail--swiper .h-rail__next.swiper-button-next::after {
  content: none !important;
}

.h-rail--swiper .h-rail__prev.swiper-button-disabled,
.h-rail--swiper .h-rail__next.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.h-rail__scroller {
  display: flex;
  gap: 38px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.h-rail__scroller::-webkit-scrollbar {
  display: none;
}

/* Legacy scroll rails (non-home) */
.h-rail__scroller > .jc-product-box--home {
  flex: 0 0 calc((100% - 2.7 * 38px) / 3.7);
  min-width: 0;
  scroll-snap-align: start;
}

.h-rail__prev,
.h-rail__next {
  position: absolute;
  top: 38%;
  z-index: 5;
  width: var(--jc-rail-nav-size);
  height: var(--jc-rail-nav-size);
  margin: 0;
  background: transparent;
  border: 1px solid var(--jc-rail-nav-border, rgba(130, 136, 145, 0.65));
  box-shadow: none;
}

.h-rail__next {
  right: 5.7vw;
}

.h-rail__prev {
  left: 0.4rem;
}

@media (min-width: 1940px) {
  .h-devices > .container {
    max-width: 100%;
  }
}

@media (max-width: 1580px) {
  .h-devices > .container {
    width: 90%;
  }

  .h-rail {
    padding-left: 5%;
  }

  .h-banner__dots {
    width: 84%;
  }
}

@media (max-width: 992px) {
  .h-rail__scroller {
    gap: 20px;
  }

  .h-rail__scroller > .jc-product-box--home {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media (max-width: 768px) {
  .h-banner,
  .h-banner__track,
  .h-banner__slide {
    overflow: hidden;
    max-width: 100%;
    overscroll-behavior-x: none;
  }

  .h-banner__slide {
    display: block;
    touch-action: pan-y pinch-zoom;
  }

  .h-devices > .container {
    width: 100%;
    padding-inline: 1rem;
  }

  .h-banner__dots,
  .jc-hero-banner .h-banner__dots {
    bottom: 12px;
    width: 90%;
  }

  .h-rail {
    padding: 0;
  }

  .h-rail__scroller {
    gap: 10px;
  }

  .h-rail__scroller > .jc-product-box--home {
    flex-basis: calc((100% - 0.1 * 10px) / 1.1);
  }

  .h-rail__prev,
  .h-rail__next {
    width: var(--jc-rail-nav-size-sm);
    height: var(--jc-rail-nav-size-sm);
  }

  .h-rail__prev::before,
  .h-rail__next::before {
    width: 0.5rem;
    height: 0.5rem;
  }
}

.h-custom,
.h-fill {
  padding: 4.5rem 0;
}

/* Laser engraving — replaces Trusted-by logos */
.h-laser {
  padding: 4.5rem 0;
  background: #f6f6f8;
}

.h-laser__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
  gap: 1.75rem 2.5rem;
  align-items: center;
}

.h-laser__copy p {
  margin: 1rem 0 1.25rem;
  max-width: 36em;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  color: var(--jc-color-text);
}

.h-laser__video {
  display: block;
  width: 100%;
  border-radius: 16px;
  background: #111;
}

@media (max-width: 900px) {
  .h-laser__box {
    grid-template-columns: 1fr;
  }
}

.h-trusted__box {
  margin-top: 2.2rem;
}

.h-trusted__img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
}

/* Quote/inquiry block kept in CSS for other pages if reused; homepage no longer renders it */
.h-quote {
  display: none;
}

.h-custom__intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-top: 0.75rem;
}

.h-custom__kicker {
  margin: 0;
  font-family: "mon-b", "Montserrat", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--jc-color-primary);
}

.h-custom__copy {
  width: min(46%, 45.93%);
  margin: 0;
  font-family: "mon-b", "Montserrat", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: clamp(0.95rem, 1.9vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--jc-color-text);
}

.h-custom__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.h-custom__item img,
.h-fill__img img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}

/* Premium Customization row */
.h-custom__premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin-top: 3.2rem;
}

.h-custom__premium-img {
  width: 47.90697674%;
  flex: 0 0 47.90697674%;
  border-radius: 20px;
  overflow: hidden;
}

.h-custom__premium-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 100 / 71.62790698;
}

.h-custom__premium-txt {
  width: 52.09302326%;
  flex: 0 0 52.09302326%;
  padding-left: 2.2rem;
  box-sizing: border-box;
}

.h-custom__premium-txt h3,
.h-custom__premium-txt .h-title,
.h-custom__premium-txt .h-custom__premium-title {
  margin: 0;
  font-family: "mon-b", "Montserrat", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--jc-color-text);
}

.h-custom__premium-txt p {
  margin: 1.25rem 0 0;
  font-family: "mon-r", "Montserrat", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: clamp(1rem, 1.9vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--jc-color-text);
}

@media (max-width: 768px) {
  .h-custom__premium {
    flex-direction: column-reverse;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .h-custom__premium-img,
  .h-custom__premium-txt {
    width: 100%;
    flex-basis: auto;
  }

  .h-custom__premium-txt {
    padding: 0 0 10px;
  }

  .h-custom__premium-txt h3,
  .h-custom__premium-txt .h-title {
    font-size: 20px;
  }

  .h-custom__premium-txt p {
    margin-top: 0;
    font-size: 16px;
  }
}

.h-fill__box {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.h-fill__txt,
.h-fill__img {
  flex: 1;
}

.h-fill__txt p {
  font-size: clamp(1rem, 1.5vw, 1.75rem);
  line-height: 1.25;
}

.h-quote {
  display: none;
}

.h-quote__box {
  position: relative;
  min-height: 36rem;
  display: flex;
  justify-content: flex-end;
  padding: 3rem 4% 3rem 0;
  overflow: hidden;
  border-radius: 20px;
}

.h-quote__bg {
  position: absolute;
  inset: 0;
}

.h-quote__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h-quote__panel {
  position: relative;
  z-index: 1;
  width: min(32rem, 38%);
  color: #111;
}

.h-quote__panel .h-title {
  color: var(--jc-color-text);
}

.h-quote__panel .inquiry-form {
  max-width: none;
}

.h-quote__panel .inquiry-form__row {
  grid-template-columns: 1fr;
}

.h-quote__panel input,
.h-quote__panel textarea {
  border-radius: 16px;
  background: #fff;
}

@media (max-width: 1100px) {
  .h-tabs {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .h-tabs__btn {
    flex: 1 1 calc(50% - 0.6rem);
    height: 2.5rem;
    font-size: 0.9rem;
  }

  .h-custom__intro,
  .h-fill__box {
    flex-direction: column;
  }

  .h-custom__copy,
  .h-quote__panel {
    width: 100%;
  }

  .h-custom__grid {
    grid-template-columns: 1fr 1fr;
  }

  .h-quote__box {
    min-height: 0;
    padding: 1.5rem;
    background: #f0eeed;
  }

  .h-quote__bg {
    display: none;
  }

  .h-rail__prev,
  .h-rail__next {
    width: var(--jc-rail-nav-size-sm);
    height: var(--jc-rail-nav-size-sm);
  }
}
