/* =========================================================
   Horizontal Services Slider — Frontend Styles
   ========================================================= */

:root {
  --hss-orange:      #E84B0F;
  --hss-orange-dark: #C43A08;
  --hss-white:       #ffffff;
  --hss-dark:        #111111;
}

/* ---- Wrapper: height is set by JS ---- */
.hss-wrapper {
  position: relative;
  width: 100%;
  /* height set dynamically by JS */
}

/* ---- Sticky container ---- */
.hss-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* ---- Scrolling track ---- */
.hss-track {
  display: flex;
  align-items: stretch;
  height: 100vh;
  will-change: transform;
}

/* =========================================================
   INTRO CARD
   ========================================================= */
.hss-intro-card {
  flex: 0 0 clamp(340px, 32vw, 500px);
  background: var(--hss-dark);
  display: flex;
  align-items: flex-end;
  padding: 56px 52px;
}

.hss-intro-inner {
  max-width: 340px;
}

.hss-services-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--hss-orange);
  margin-bottom: 8px;
}

.hss-services-title {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--hss-white);
}

.hss-intro-card p {
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.45);
  margin-bottom: 36px;
}

.hss-scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hss-orange);
  font-weight: 700;
}

.hss-scroll-arrow {
  width: 44px;
  height: 2px;
  background: var(--hss-orange);
  position: relative;
  flex-shrink: 0;
}

.hss-scroll-arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3px;
  border-left: 7px solid var(--hss-orange);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* =========================================================
   SEPARATOR
   ========================================================= */
.hss-separator {
  flex: 0 0 1px;
  background: rgba(255,255,255,0.08);
  align-self: stretch;
}

/* =========================================================
   SERVICE CARD
   ========================================================= */
.hss-service-card {
  position: relative;
  flex: 0 0 380px;
  height: 100vh;
  overflow: hidden;
  cursor: pointer;
}

/* Background image */
.hss-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35) saturate(0.6);
  transition: transform 0.65s ease;
}

.hss-card-bg--default {
  background: #222;
}

/* Orange overlay */
.hss-card-overlay {
  position: absolute;
  inset: 0;
  background: var(--hss-orange);
  opacity: 0.82;
  mix-blend-mode: multiply;
}

/* Bottom gradient */
.hss-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%);
}

/* Hover: zoom background */
.hss-service-card:hover .hss-card-bg {
  transform: scale(1.06);
}

/* ---- Card content ---- */
.hss-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 50px 44px;
}

/* Icon */
.hss-card-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

.hss-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hss-card-icon--empty {
  /* placeholder spacing when no icon set */
  opacity: 0;
}

/* Number */
.hss-card-number {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 10px;
  margin-top: auto;
}

/* Title */
.hss-card-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--hss-white);
  margin-bottom: 18px;
}

/* Divider */
.hss-card-divider {
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,0.45);
  margin-bottom: 18px;
  transition: width 0.4s ease, background 0.3s ease;
}

.hss-service-card:hover .hss-card-divider {
  width: 80px;
  background: var(--hss-white);
}

/* Items list */
.hss-card-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hss-card-items li {
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.hss-card-items li::before {
  content: '—';
  color: rgba(255,255,255,0.45);
  flex-shrink: 0;
  margin-top: 1px;
}

/* CTA Button */
.hss-card-cta {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--hss-white);
  font-size: 1.4rem;
  font-weight: 300;
  text-decoration: none;
  line-height: 1;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.35s ease;
}

.hss-service-card:hover .hss-card-cta {
  background: var(--hss-white);
  color: var(--hss-orange);
  border-color: var(--hss-white);
  transform: rotate(45deg);
}

/* ---- End spacer ---- */
.hss-end-spacer {
  flex: 0 0 120px;
  background: var(--hss-orange-dark);
}

/* =========================================================
   RESPONSIVE — Tablet & Mobile
   ========================================================= */

/* ---- Tablet (768px – 1023px): reduce card widths, tighten padding ---- */
@media ( max-width: 1023px ) and ( min-width: 768px ) {
  .hss-intro-card {
    flex: 0 0 clamp(260px, 28vw, 360px);
    padding: 40px 36px;
  }

  .hss-service-card {
    flex: 0 0 300px;
  }

  .hss-card-content {
    padding: 36px 32px;
  }

  .hss-card-title {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
  }
}

/* ---- Mobile (< 768px): full vertical stacking ---- */
@media ( max-width: 767px ) {

  /* Reset wrapper height set by JS */
  .hss-wrapper {
    height: auto !important;
  }

  /* Un-sticky the container */
  .hss-sticky {
    position: relative;
    height: auto;
    overflow: visible;
  }

  /* Stack track vertically; block any JS-injected transform */
  .hss-track {
    flex-direction: column;
    height: auto;
    transform: none !important;
    will-change: auto;
  }

  /* ---- Intro card ---- */
  .hss-intro-card {
    flex: none;
    width: 100%;
    min-height: 56vw;      /* proportional on all phones */
    height: auto;
    padding: 40px 24px 36px;
    align-items: flex-start;
  }

  .hss-intro-inner {
    max-width: 100%;
  }

  .hss-services-label {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    margin-bottom: 6px;
  }

  .hss-services-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hss-intro-card p {
    font-size: 0.875rem;
    margin-top: 12px;
    margin-bottom: 24px;
  }

  /* Hide the "scroll to explore" hint on mobile — it scrolls vertically now */
  .hss-scroll-hint {
    display: none;
  }

  /* ---- Separators become thin horizontal rules ---- */
  .hss-separator {
    flex: none;
    height: 1px;
    width: 100%;
  }

  /* ---- Service cards ---- */
  .hss-service-card {
    flex: none;
    width: 100%;
    height: auto;
    min-height: 420px;
  }

  .hss-card-content {
    padding: 36px 24px 32px;
    height: auto;
    min-height: 420px;
  }

  .hss-card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }

  .hss-card-number {
    font-size: 0.62rem;
    margin-bottom: 8px;
    margin-top: 0;
  }

  .hss-card-title {
    font-size: clamp(1.4rem, 5.5vw, 2rem);
    margin-bottom: 14px;
  }

  .hss-card-divider {
    margin-bottom: 14px;
  }

  .hss-card-items {
    gap: 6px;
  }

  .hss-card-items li {
    font-size: 0.875rem;
  }

  .hss-card-cta {
    margin-top: 24px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  /* ---- End spacer: shrink on mobile ---- */
  .hss-end-spacer {
    flex: none;
    height: 48px;
    width: 100%;
  }
}

/* ---- Small phones (< 400px): extra tightening ---- */
@media ( max-width: 399px ) {
  .hss-intro-card {
    padding: 32px 18px 28px;
  }

  .hss-services-title {
    font-size: clamp(1.75rem, 9vw, 2.2rem);
  }

  .hss-card-content {
    padding: 28px 18px 24px;
  }

  .hss-card-title {
    font-size: clamp(1.25rem, 6vw, 1.6rem);
  }

  .hss-card-items li {
    font-size: 0.825rem;
  }

  .hss-service-card,
  .hss-card-content {
    min-height: 360px;
  }
}
