/* Catalog listings — Rank Ray https://rankray.com */

.c-listing {
  background: #fff;
}

.c-hero-stack {
  position: relative;
}

.c-hero-panel[hidden] {
  display: none !important;
}

.c-hero--text {
  background: #1a1a1a;
}

.c-hero__txt h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 3.75vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  color: #fff;
  text-shadow: var(--jc-hero-shadow-title);
}

.c-hero__txt p {
  margin: 0;
  max-width: 45%;
  font-size: clamp(0.9rem, 0.94vw, 1.125rem);
  line-height: 2;
  color: #fff;
  text-shadow: var(--jc-hero-shadow-body);
}

.c-hero .h-banner__dots {
  z-index: 4;
}

.c-tabs-rail {
  position: relative;
  border-bottom: 1px solid #ddd;
}

.c-tabs-rail__fade {
  display: none;
}

.c-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 2.4rem;
  height: 80px;
  font-size: 1.05rem;
}

.c-tabs a {
  position: relative;
  flex-shrink: 0;
  height: 100%;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}

.c-tabs a.is-on {
  color: var(--jc-color-primary);
}

.c-tabs a.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--jc-color-primary);
}

.c-listing .container {
  width: 72.9%;
  max-width: none;
}

.c-list {
  padding: 4.5rem 0 2rem;
}

.c-catalog-panel[hidden] {
  display: none !important;
}

.c-list--panels {
  padding-top: 0;
}

.c-list--panels .c-catalog-panel.is-on {
  padding: 4.5rem 0 2rem;
}

.c-group {
  padding: 0 0 2.5rem;
  scroll-margin-top: calc(var(--jc-header-h, 100px) + 1rem);
}

.c-group__head {
  text-align: center;
  margin: 0 auto 2.2rem;
  max-width: 48rem;
}

.c-group__head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.1vw, 3.75rem);
  font-weight: 600;
  color: var(--jc-color-text);
}

.c-group__head i {
  display: block;
  width: 50px;
  height: 3px;
  margin: 0.7rem auto 0.9rem;
  background: var(--jc-color-cyan);
}

.c-group__head p {
  margin: 0;
  color: var(--jc-color-text);
  line-height: 1.5;
}

.c-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.c-faq {
  padding: 1rem 0 5rem;
}

.c-spotlight {
  margin: 0.2rem 0 2.5rem;
}

.c-spotlight__box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.c-spotlight__wide,
.c-spotlight__half {
  overflow: hidden;
  display: block;
}

.c-spotlight__wide {
  height: clamp(10rem, 28vw, 28rem);
}

.c-spotlight__pair {
  display: flex;
  justify-content: space-between;
  gap: 0.2rem;
}

.c-spotlight__half {
  flex: 1 1 0;
  height: clamp(10rem, 28vw, 28rem);
}

.c-spotlight__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.c-faq h2 {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: clamp(1.6rem, 2.5vw, 3rem);
  color: var(--jc-color-text);
}

.c-faq__item {
  border-bottom: 1px solid #ddd;
}

.c-faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 2rem 1.35rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  position: relative;
}

.c-faq__item summary::-webkit-details-marker {
  display: none;
}

.c-faq__item summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: translateY(-70%) rotate(45deg);
}

.c-faq__item[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.c-faq__item p {
  margin: 0;
  padding: 0.2rem 10% 1.6rem 0;
  color: var(--jc-color-text);
  line-height: 1.9;
}

@media (max-width: 1580px) {
  .c-listing .container {
    width: 84%;
  }
}

@media (max-width: 1100px) {
  .c-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .c-listing .container {
    width: 100%;
    padding-inline: 1rem;
  }

  .c-hero__txt p {
    display: none;
  }

  .c-hero__txt h1 {
    font-size: 1.75rem;
  }

  .c-tabs-rail__fade {
    display: block;
    pointer-events: none;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: 2.75rem;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 78%);
    opacity: 1;
    transition: opacity 0.16s ease;
  }

  .c-tabs-rail.is-overflow-end .c-tabs-rail__fade {
    opacity: 0;
  }

  .c-tabs-rail.is-overflow-start::before {
    content: "";
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 1.75rem;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), #fff 78%);
  }

  .c-tabs {
    justify-content: flex-start;
    gap: 1.25rem;
    height: 56px;
    font-size: 0.85rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 1rem;
    scrollbar-width: none;
    padding: 0 1rem;
  }

  .c-tabs a {
    scroll-snap-align: start;
  }

  .c-tabs::-webkit-scrollbar {
    display: none;
  }

  .c-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .c-spotlight__wide,
  .c-spotlight__half {
    height: 8.75rem;
  }

  .c-spotlight {
    margin-bottom: 2.5rem;
  }
}
