/* ===== Home Builder – Services Slider ===== */

/* ---- Tokens ---- */
:root{
  --nh-svc-green:     #1E3932;
  --nh-svc-forest:    #14332B;
  --nh-svc-mint:      #2EA26F;
  --nh-svc-white:     #ffffff;
  --nh-svc-radius:    10px;
  --nh-svc-nav-size:  46px;
}

/* ---- Section wrapper ---- */
.nhhb-services{
  position: relative;
  margin: 28px 0;
}

/* ---- Section title ---- */
.nhhb-svc-section-title{
  margin: 0 0 14px;
  font-weight: 800;
  font-size: 22px;
  color: var(--nh-svc-forest, #14332B);
  letter-spacing: -.01em;
}

/* ---- Swiper container ---- */
.nhhb-services .nhhb-services-swiper{
  width: 100%;
  height: clamp(280px, 30vw, 460px);
  border-radius: var(--nh-svc-radius);
  overflow: hidden;
  position: relative;
  background: #0b1410;
  box-shadow:
    0 8px 32px rgba(0,0,0,.14),
    0 2px 8px rgba(0,0,0,.08);
}

/* ---- Slide ---- */
.nhhb-services .swiper-slide{
  position: relative;
  color: var(--nh-svc-white);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* ---- Background image ---- */
.nhhb-svc-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateZ(0);
  transition: transform 6s ease;
}

/* Subtle Ken Burns on active slide */
.swiper-slide-active .nhhb-svc-bg{
  transform: scale(1.06) translateZ(0);
}

/* ---- Overlay: strong left fade + bottom vignette ---- */
.nhhb-services .swiper-slide::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to right,
      rgba(10, 22, 18, 0.88) 0%,
      rgba(10, 22, 18, 0.60) 40%,
      rgba(10, 22, 18, 0.15) 75%,
      rgba(10, 22, 18, 0.00) 100%
    ),
    linear-gradient(
      to top,
      rgba(10, 22, 18, 0.55) 0%,
      rgba(10, 22, 18, 0.00) 45%
    );
  pointer-events: none;
}

/* ---- Inner content ---- */
.nhhb-svc-inner{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  max-width: min(600px, 60%);
  padding: 36px 28px 36px clamp(72px, 8vw, 90px);
  gap: 10px;
}

/* ---- Kicker / label above title ---- */
.nhhb-svc-kicker{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--nh-svc-mint);
  margin-bottom: 2px;
}

.nhhb-svc-kicker::before{
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--nh-svc-mint);
  border-radius: 2px;
}

/* ---- Title ---- */
.nhhb-services .nhhb-svc-title{
  color: #fff !important;
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.10;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
  letter-spacing: -.01em;
}

/* ---- Description ---- */
.nhhb-svc-desc{
  color: rgba(255,255,255,.88);
  font-size: clamp(13.5px, 1.1vw, 15.5px);
  margin: 0;
  max-width: 52ch;
  line-height: 1.55;
}

.nhhb-svc-desc.is-mobile{ display: none; }

/* ---- CTA ---- */
.nhhb-svc-cta{
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}

.nhhb-svc-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
  color: var(--nh-svc-green) !important;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.nhhb-svc-btn::after{
  content: "→";
  font-size: 13px;
  transition: transform .18s ease;
}

.nhhb-svc-btn:hover{
  background: var(--nh-svc-mint);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}

.nhhb-svc-btn:hover::after{
  transform: translateX(3px);
}

.nhhb-svc-btn:active{ transform: translateY(0); }

.nhhb-svc-btn:focus-visible{
  outline: 3px solid rgba(255,255,255,.50);
  outline-offset: 3px;
}

/* ---- Navigation arrows ---- */
.nhhb-svc-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  width: var(--nh-svc-nav-size);
  height: var(--nh-svc-nav-size);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.20);
  transition:
    transform .15s ease,
    background .15s ease,
    box-shadow .15s ease;
}

.nhhb-svc-prev{ left: 16px; }
.nhhb-svc-next{ right: 16px; }

.nhhb-svc-nav svg{
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
}

.nhhb-svc-nav svg path{
  fill: currentColor !important;
  stroke: none !important;
}

.nhhb-svc-nav:hover{
  transform: translateY(-50%) scale(1.08);
  background: var(--nh-svc-mint);
  border-color: var(--nh-svc-mint);
  box-shadow: 0 8px 24px rgba(46,162,111,.35);
}

.nhhb-svc-nav:active{
  transform: translateY(-50%) scale(0.97);
}

.nhhb-svc-nav:focus-visible{
  outline: 3px solid rgba(255,255,255,.45);
  outline-offset: 3px;
}

/* ---- Pagination dots (thin bars) ---- */
.nhhb-svc-pagination{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.nhhb-svc-pagination .swiper-pagination-bullet{
  width: 16px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,.35);
  transition: all .22s ease;
  pointer-events: auto;
}

.nhhb-svc-pagination .swiper-pagination-bullet-active{
  width: 28px;
  background: var(--nh-svc-mint);
  box-shadow: 0 0 8px rgba(46,162,111,.55);
}

/* ---- Empty state ---- */
.nhhb-services-empty{
  margin: 0;
  padding: 14px;
  border: 1px dashed #dcdcdc;
  border-radius: 8px;
  background: #fbfbfb;
  color: #666;
  text-align: center;
}

/* ---- Icon (if used) ---- */
.nhhb-svc-icon{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  margin-bottom: 4px;
}

.nhhb-svc-icon img{
  max-width: 30px;
  max-height: 30px;
  display: block;
}

/* ---- Dark mode ---- */
body.dark-mode .nhhb-svc-section-title{
  color: var(--nh-svc-mint);
}

body.dark-mode .nhhb-services .nhhb-services-swiper{
  background: #1a1f1c;
  box-shadow: 0 10px 32px rgba(0,0,0,.40);
  border: 1px solid rgba(255,255,255,.06);
}

body.dark-mode .nhhb-services .swiper-slide::before{
  background:
    linear-gradient(
      to right,
      rgba(5, 12, 9, 0.92) 0%,
      rgba(5, 12, 9, 0.65) 40%,
      rgba(5, 12, 9, 0.18) 75%,
      rgba(5, 12, 9, 0.00) 100%
    ),
    linear-gradient(
      to top,
      rgba(5, 12, 9, 0.65) 0%,
      rgba(5, 12, 9, 0.00) 45%
    );
}

body.dark-mode .nhhb-svc-btn{
  background: rgba(255,255,255,.90);
  color: #1E3932 !important;
}

body.dark-mode .nhhb-svc-btn:hover{
  background: var(--nh-svc-mint);
  color: #fff !important;
}

/* ---- Responsive: tablet ---- */
@media (max-width: 980px){
  .nhhb-svc-nav{ display: none; }

  .nhhb-services .nhhb-services-swiper{
    height: clamp(260px, 38vw, 380px);
  }

  .nhhb-svc-inner{
    max-width: 80%;
    padding: 28px 20px;
  }

  .nhhb-svc-desc.is-mobile{ display: block; }
  .nhhb-svc-desc.is-desktop{ display: none; }
}

/* ---- Responsive: mobile ---- */
@media (max-width: 540px) {
  .nhhb-services .nhhb-services-swiper {
    height: 220px;
  }

  .nhhb-svc-inner {
    max-width: 92%;
    padding: 18px 14px;
  }

  .nhhb-services .nhhb-svc-title {
    font-size: 18px;
  }

  .nhhb-svc-desc {
    font-size: 12.5px;
  }
}

/* ---- Smallest phones ---- */
@media (max-width: 380px){
  .nhhb-services .nhhb-services-swiper{
    height: clamp(220px, 56vw, 300px);
  }

  .nhhb-services .nhhb-svc-title{ font-size: 18px; }
  .nhhb-svc-desc{ font-size: 13px; line-height: 1.4; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce){
  .nhhb-svc-bg,
  .swiper-slide-active .nhhb-svc-bg,
  .nhhb-svc-btn,
  .nhhb-svc-nav,
  .nhhb-svc-pagination .swiper-pagination-bullet{
    transition: none !important;
    animation: none !important;
  }
}
