/* =============================================================================
   Hotforming — Facility Section
   Figma nodes: 659:4927 (desktop) / 663:6216 (mobile)
   Prefix: hf-facility
   ============================================================================= */

/* ── Section wrapper ──────────────────────────────────────────────────────── */
.hf-facility {
  background: #f0f0e3;
  padding-block: 160px;
  padding-inline: var(--section-pad-desktop, 120px);
}

/* ── Inner container ──────────────────────────────────────────────────────── */
.hf-facility__inner {
  max-width: var(--section-max-width, 1200px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* ── Section header ───────────────────────────────────────────────────────── */
.hf-facility__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.hf-facility__eyebrow {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary, #cd261d);
  margin: 0;
  width: 100%;
}

.hf-facility__title {
  font-size: var(--font-size-h2, 36px);
  font-weight: var(--font-weight-semibold, 600);
  color: var(--color-dark, #252525);
  margin: 0;
  line-height: 1.2;
  width: 100%;
}

.hf-facility__sub {
  font-size: 20px;
  font-weight: 400;
  color: #373737;
  margin: 0;
  line-height: 1.5;
  width: 100%;
}

/* ── Slider block ─────────────────────────────────────────────────────────── */
.hf-facility__slider {
  width: 100%;
  background: var(--color-dark, #252525);
}

/* ── Slides container (image + overlays) ─────────────────────────────────── */
.hf-facility__slides {
  position: relative;
  height: 534px;
  overflow: hidden;
}

/* ── Individual slide ─────────────────────────────────────────────────────── */
.hf-facility__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.hf-facility__slide--active {
  opacity: 1;
  pointer-events: auto;
}

.hf-facility__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ── Caption (overlaid at bottom of each slide) ───────────────────────────── */
.hf-facility__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-dark, #252525);
  padding: 20px 20px 40px;
}

.hf-facility__location {
  font-size: 16px;
  font-weight: 700;
  color: #f0f0e3;
  margin: 0;
  line-height: 1.4;
}

.hf-facility__location-sub {
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  color: #f0f0e3;
  margin: 0;
  line-height: 1.4;
}

/* ── Pagination dots (inside slides, above caption) ──────────────────────── */
.hf-facility__pagination {
  position: absolute;
  /* sits just above caption */
  bottom: calc(40px + 20px + 2lh + 14px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 2;
}

.hf-facility__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.hf-facility__dot--active {
  background: var(--color-primary, #cd261d);
}

/* ── Arrow buttons ────────────────────────────────────────────────────────── */
.hf-facility__arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  /* offset upward by half the caption height so arrows are centred on the image */
  transform: translateY(calc(-50% - 40px));
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.hf-facility__arrow {
  background: rgba(0, 0, 0, 0.42);
  border: none;
  cursor: pointer;
  width: 54px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  flex-shrink: 0;
}

.hf-facility__arrow:hover {
  background: rgba(0, 0, 0, 0.62);
}

.hf-facility__arrow img {
  width: 24px;
  height: 24px;
  display: block;
}

/* Left arrow = flip the right-pointing SVG */
.hf-facility__arrow--prev img {
  transform: scaleX(-1);
}

/* ── Responsive: tablet (≤ 1024px) ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .hf-facility {
    padding-block: 120px;
    padding-inline: 60px;
  }
}

/* ── Responsive: mobile (≤ 768px) ────────────────────────────────────────── */
@media (max-width: 768px) {
  .hf-facility {
    padding-block: 80px;
    padding-inline: var(--section-pad-mobile, 16px);
  }

  .hf-facility__title {
    font-size: 32px;
  }

  .hf-facility__sub {
    font-size: 20px;
    font-weight: 300;
  }

  .hf-facility__caption {
    padding-inline: 12px;
  }

  /* Slightly shorter image on mobile */
  .hf-facility__slides {
    height: 460px;
  }

  /* Pagination recalc for mobile */
  .hf-facility__pagination {
    bottom: calc(40px + 12px + 2lh + 14px);
  }
}