/* ==========================================================================
   BEJEWELLED — front page
   Mobile-first throughout: every rule below is written for a ~375px
   viewport first, then widened with min-width queries. Signature motif:
   the jeweller's loupe (circle + handle), used for hero nav and as the
   "inspect" affordance on the product carousel — a tool from the actual
   trade, not a generic dot or arrow.
   ========================================================================== */

#bej-home { overflow-x: hidden; }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */

.bej-hero {
  position: relative;
  height: 86vh;
  min-height: 460px;
  max-height: 760px;
  overflow: hidden;
  background: var(--ink);
}

.bej-hero__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.bej-hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease;
}

.bej-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.bej-hero__media {
  position: relative;
  flex: 1 1 55%;
  background: linear-gradient(160deg, var(--velvet-mid), var(--velvet));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.bej-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bej-hero__icon {
  width: 40%;
  max-width: 160px;
  color: var(--gold);
  opacity: .55;
}
.bej-hero__icon svg { width: 100%; height: 100%; }

.bej-hero__copy {
  flex: 1 1 45%;
  background: var(--ink);
  color: var(--velvet);
  padding: 1.75rem var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bej-hero__kicker {
  font-family: var(--data);
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-lift);
  margin: 0 0 0.6rem;
}

.bej-hero__title {
  font-family: var(--display);
  font-variation-settings: "SOFT" 70, "WONK" 1;
  font-size: clamp(1.75rem, 7vw, 2.6rem);
  line-height: 1.05;
  text-transform: lowercase;
  margin: 0 0 0.6rem;
  color: var(--velvet);
  max-width: 18ch;
}

.bej-hero__blurb {
  font-size: var(--t-sm);
  color: rgba(244,238,247,.75);
  max-width: 40ch;
  margin: 0 0 1.4rem;
}

.bej-hero__cta { align-self: flex-start; }

.bej-hero__nav {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 3;
}

@media (min-width: 700px) {
  .bej-hero__nav { bottom: auto; top: 1.25rem; right: 1.25rem; left: auto; transform: none; }
}

.bej-hero__dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(244,238,247,.35);
  background: rgba(46,26,51,.4);
  color: rgba(244,238,247,.6);
  display: grid;
  place-items: center;
  padding: 6px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.bej-hero__dot svg { width: 100%; height: 100%; }

.bej-hero__dot.is-active,
.bej-hero__dot:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.08);
}

@media (min-width: 700px) {
  .bej-hero { height: 78vh; }
  .bej-hero__track { display: block; }
  .bej-hero__slide { flex-direction: row; }
  .bej-hero__media, .bej-hero__copy { flex-basis: 50%; }
  .bej-hero__copy { padding: 0 4vw; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .bej-hero__slide { transition: none; }
}

/* --------------------------------------------------------------------------
   CATEGORY STRIP
   -------------------------------------------------------------------------- */

.bej-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--velvet-mid);
  margin: 0;
}

.bej-cats__tile {
  background: var(--paper);
  padding: 1.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  gap: 0.5rem;
  transition: background .2s ease;
}
.bej-cats__tile:hover { background: var(--velvet); }

.bej-cats__icon {
  width: 34px;
  height: 34px;
  color: var(--gold);
}
.bej-cats__icon svg { width: 100%; height: 100%; }

.bej-cats__label {
  font-family: var(--body);
  font-weight: 500;
  font-size: var(--t-sm);
  color: var(--ink);
  text-transform: lowercase;
}

.bej-cats__note {
  font-family: var(--data);
  font-size: 0.68rem;
  color: var(--ink-soft);
  display: none;
}

@media (min-width: 560px) {
  .bej-cats__note { display: block; }
  .bej-cats__tile { padding: 2rem 1rem; }
}

/* --------------------------------------------------------------------------
   POPULAR PRODUCTS CAROUSEL
   -------------------------------------------------------------------------- */

.bej-popular { padding-top: clamp(2rem, 5vw, 3.5rem); }

.bej-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bej-carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0.1rem 1rem;
  margin: 0;
  list-style: none;
  scrollbar-width: thin;
}

.bej-carousel__card {
  flex: 0 0 42vw;
  max-width: 190px;
  scroll-snap-align: start;
}

@media (min-width: 560px)  { .bej-carousel__card { flex-basis: 30vw; max-width: 210px; } }
@media (min-width: 900px)  { .bej-carousel__card { flex-basis: 18vw; max-width: 220px; } }

.bej-carousel__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.bej-carousel__frame {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  background: var(--velvet);
  overflow: hidden;
  margin-bottom: 0.6rem;
  cursor: none; /* replaced by the loupe cursor below on pointer devices */
}

.bej-carousel__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.bej-carousel__frame svg {
  width: 34%;
  color: var(--gold);
  opacity: .5;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

@media (hover: hover) {
  /* The "inspect" affordance: a loupe cursor and a gentle zoom, evoking
     a jeweller actually examining the piece rather than a generic hover. */
  .bej-carousel__frame {
    cursor: zoom-in;
  }
  .bej-carousel__link:hover .bej-carousel__frame img {
    transform: scale(1.06);
  }
}

.bej-carousel__name {
  display: block;
  font-family: var(--body);
  font-size: var(--t-sm);
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.bej-carousel__price {
  display: block;
  font-family: var(--data);
  font-size: var(--t-sm);
  color: var(--ink);
}

.bej-carousel__arrow {
  flex: none;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--velvet-mid);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--t-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, color .2s ease;
}
.bej-carousel__arrow:hover { border-color: var(--gold); color: var(--gold); }

@media (min-width: 700px) {
  .bej-carousel__arrow { display: flex; }
}

/* --------------------------------------------------------------------------
   TESTIMONIALS — continuous auto-pan marquee
   -------------------------------------------------------------------------- */

.bej-testimonials {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: var(--velvet-mid);
  overflow: hidden;
}

.bej-testimonials__title {
  text-align: center;
  font-size: var(--t-lg);
  padding: 0 var(--gutter);
  margin: 0 0 1.75rem;
}

.bej-testimonials__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.bej-testimonials__track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: bej-pan 38s linear infinite;
}

.bej-testimonials__track:hover { animation-play-state: paused; }

@keyframes bej-pan {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.bej-testimonials__card {
  flex: 0 0 auto;
  width: min(78vw, 320px);
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 1.25rem 1.4rem;
  margin: 0;
  box-shadow: var(--shadow-card);
}

.bej-testimonials__card blockquote {
  margin: 0 0 0.85rem;
  font-family: var(--body);
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--ink);
}

.bej-testimonials__card figcaption {
  font-family: var(--data);
  font-size: var(--t-xs);
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .bej-testimonials__track { animation: none; overflow-x: auto; }
}

/* --------------------------------------------------------------------------
   CLOSING CTA
   -------------------------------------------------------------------------- */

.bej-cta {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) var(--gutter);
  max-width: 640px;
  margin: 0 auto;
}

.bej-cta h2 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  margin: 0 0 0.6rem;
}

.bej-cta p {
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}
