/* ==========================================================================
   Homepage Styles — BEM with hp- prefix
   ========================================================================== */

/* ---------- Slider ---------- */
.hp-slider {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  border-radius: 3px;
}

.hp-slider__track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.hp-slider__slide {
  position: relative;
  min-width: 100%;
  box-sizing: border-box;
}

.hp-slider__image {
  width: 100%;
  max-height: 420px;
  display: block;
  object-fit: cover;
  border-radius: 3px;
}

.hp-slider__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  z-index: 1;
}

.hp-slider__content {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 500px;
}

.hp-slider__content h1 {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  line-height: 1.3;
}

.hp-slider__content p {
  color: #fff;
  font-size: 1.1rem;
  margin: 0 0 1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hp-slider__cta {
  display: inline-block;
  background: #ff7d43;
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hp-slider__cta:hover,
.hp-slider__cta:focus {
  background: #e86a30;
  color: #fff;
  transform: scale(1.03);
  text-decoration: none;
}

/* Arrows */
.hp-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background 0.2s ease;
  padding: 0;
  line-height: 1;
}

.hp-slider__arrow:hover {
  background: #fff;
}

.hp-slider__arrow--prev {
  left: 12px;
}

.hp-slider__arrow--next {
  right: 12px;
}

/* Dots */
.hp-slider__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hp-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.hp-slider__dot--active,
.hp-slider__dot:hover {
  background: #fff;
}

/* Single-slide: hide controls */
.hp-slider--single .hp-slider__arrow,
.hp-slider--single .hp-slider__dots {
  display: none;
}


/* ---------- Stats Bar ---------- */
.hp-stats {
  background: #1a1a2e;
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.hp-stat {
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 120px;
}

.hp-stat__icon {
  font-size: 1.6rem;
  color: #ff7d43;
}

.hp-stat__number {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.hp-stat__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}


/* ---------- Features ---------- */
.hp-features {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.hp-feature {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 5px;
  border-left: 4px solid #0066cc;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hp-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.hp-feature__icon {
  font-size: 2rem;
  color: #0066cc;
  margin-bottom: 0.5rem;
}

.hp-feature__title {
  color: #333;
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.hp-feature__text {
  color: #666;
  line-height: 1.5;
  margin: 0;
  font-size: 0.95rem;
}


/* ---------- Industries ---------- */
.hp-industries {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
}

.hp-industries__title {
  color: #333;
  font-size: 1.6rem;
  margin: 0 0 1.25rem;
}

.hp-industries__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.hp-industry {
  background: #f8f9fa;
  padding: 1.25rem 0.75rem;
  border-radius: 5px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.hp-industry:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: inherit;
}

.hp-industry__icon {
  font-size: 2rem;
  color: #0066cc;
}

.hp-industry__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}


/* ---------- CTA Strip ---------- */
.hp-cta-strip {
  background: #0066cc;
  padding: 2rem 1rem;
  margin: 2rem 0;
}

.hp-cta-strip__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.hp-cta-strip__text {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hp-cta-strip__text .material-icons {
  font-size: 1.5rem;
}

.hp-cta-strip__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.hp-cta-strip__btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hp-cta-strip__btn--primary {
  background: #ff7d43;
  color: #fff;
}

.hp-cta-strip__btn--primary:hover,
.hp-cta-strip__btn--primary:focus {
  background: #e86a30;
  color: #fff;
  transform: scale(1.03);
  text-decoration: none;
}

.hp-cta-strip__btn--secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.hp-cta-strip__btn--secondary:hover,
.hp-cta-strip__btn--secondary:focus {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: scale(1.03);
  text-decoration: none;
}


/* ---------- SEO Text ---------- */
.hp-seo-text {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.hp-seo-text__title {
  font-size: 1.1rem;
  color: #555;
  margin: 0 0 0.5rem;
}

.hp-seo-text__body {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.6;
  margin: 0;
}


/* ---------- Responsive: Tablet (991px) ---------- */
@media (max-width: 991px) {
  .hp-slider__content h1 {
    font-size: 1.6rem;
  }

  .hp-slider__content p {
    font-size: 1rem;
  }

  .hp-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .hp-industries__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ---------- Responsive: Mobile (767px) ---------- */
@media (max-width: 767px) {
  .hp-slider__content {
    left: 4%;
    right: 4%;
    max-width: none;
  }

  .hp-slider__content h1 {
    font-size: 1.3rem;
  }

  .hp-slider__content p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .hp-slider__cta {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }

  .hp-slider__arrow {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .hp-stats {
    padding: 1rem 0.5rem;
    gap: 0.75rem;
  }

  .hp-stat {
    min-width: 80px;
  }

  .hp-stat__number {
    font-size: 1.3rem;
  }

  .hp-stat__label {
    font-size: 0.7rem;
  }

  .hp-features {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem auto;
  }

  .hp-industries__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-cta-strip__content {
    flex-direction: column;
    gap: 1rem;
  }

  .hp-cta-strip__text {
    font-size: 1.1rem;
  }

  .hp-cta-strip__actions {
    flex-direction: column;
    width: 100%;
  }

  .hp-cta-strip__btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}


/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hp-slider__track {
    transition: none;
  }

  .hp-feature,
  .hp-industry {
    transition: none;
  }

  .hp-feature:hover,
  .hp-industry:hover {
    transform: none;
  }

  .hp-slider__cta,
  .hp-cta-strip__btn {
    transition: none;
  }
}
