/* =============================================================================
   SmartHomeSewa — Cinematic Hero Section
   Full-bleed slides · custom controls · service strip · trust bar
   ============================================================================= */

/* ── HERO WRAPPER ───────────────────────────────────────────────────────── */
.shs-hero {
  position: relative;
  width: 100%;
  height: min(92vh, 720px);
  min-height: 520px;
  overflow: hidden;
  background: #0f172a;
  display: flex;
  flex-direction: column;
}

/* ── SLIDES ─────────────────────────────────────────────────────────────── */
.shs-slides {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.shs-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .9s ease;
  will-change: opacity;
}
.shs-slide.active { opacity: 1; z-index: 1; }
.shs-slide.prev   { opacity: 0; z-index: 0; }

/* Ken-Burns zoom on active slide */
@media (prefers-reduced-motion: no-preference) {
  .shs-slide.active {
    animation: shs-kenburns 8s ease-out forwards;
  }
  @keyframes shs-kenburns {
    from { transform: scale(1.06); }
    to   { transform: scale(1.0); }
  }
}

/* Gradient overlay — dramatic left-to-right fade */
.shs-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(10,14,28,.88)   0%,
      rgba(10,14,28,.65)  45%,
      rgba(10,14,28,.25)  70%,
      rgba(10,14,28,.05) 100%
    ),
    linear-gradient(
      to top,
      rgba(10,14,28,.75) 0%,
      transparent 50%
    );
  z-index: 2;
}

/* ── SLIDE CONTENT ──────────────────────────────────────────────────────── */
.shs-slide-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding-bottom: 80px; /* leave room for trust-bar */
}
.shs-slide-content-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Slide eyebrow / tag */
.shs-slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(37,99,235,.22);
  border: 1px solid rgba(37,99,235,.45);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease .1s, transform .55s ease .1s;
}
.shs-slide.active .shs-slide-tag {
  opacity: 1; transform: translateY(0);
}

/* Main headline */
.shs-slide-h1 {
  font-family: 'Plus Jakarta Sans','Inter',sans-serif;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  max-width: 680px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease .22s, transform .6s ease .22s;
}
.shs-slide.active .shs-slide-h1 {
  opacity: 1; transform: translateY(0);
}

/* Sub-text */
.shs-slide-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 0 32px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease .35s, transform .6s ease .35s;
}
.shs-slide.active .shs-slide-sub {
  opacity: 1; transform: translateY(0);
}

/* CTA buttons */
.shs-slide-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease .48s, transform .55s ease .48s;
}
.shs-slide.active .shs-slide-btns {
  opacity: 1; transform: translateY(0);
}
.shs-hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: .01em;
  box-shadow: 0 4px 20px rgba(37,99,235,.45);
  transition: background .18s, transform .15s, box-shadow .18s;
  border: 2px solid #2563eb;
}
.shs-hero-btn-primary:hover {
  background: #1d4ed8;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,99,235,.55);
}
.shs-hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .18s, border-color .18s;
}
.shs-hero-btn-ghost:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.55);
  color: #fff;
}

/* ── SLIDE NAVIGATION (prev/next + numbered indicators) ─────────────────── */
.shs-nav-prev,
.shs-nav-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .18s, border-color .18s, transform .18s;
}
.shs-nav-prev { left: 24px; }
.shs-nav-next { right: 24px; }
.shs-nav-prev:hover,
.shs-nav-next:hover {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-50%) scale(1.08);
}

/* Numbered dot indicators */
.shs-indicators {
  position: absolute;
  bottom: 100px; /* above trust bar */
  right: 32px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shs-dot {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: background .25s, width .25s;
}
.shs-dot.active {
  background: #fff;
  width: 48px;
}

/* Progress bar at top of hero */
.shs-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  width: 0%;
  z-index: 20;
  transition: width linear;
  border-radius: 0 2px 2px 0;
}

/* ── TRUST BAR — floating at bottom of hero ─────────────────────────────── */
.shs-trust-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  background: rgba(10,14,28,.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,.07);
}
.shs-trust-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.shs-trust-items {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}
.shs-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px 0 0;
  border-right: 1px solid rgba(255,255,255,.1);
  margin-right: 28px;
}
.shs-trust-item:last-child {
  border-right: none;
  margin-right: 0;
}
.shs-trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(37,99,235,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #60a5fa;
  flex-shrink: 0;
}
.shs-trust-text .num {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  font-family: 'Plus Jakarta Sans','Inter',sans-serif;
  letter-spacing: -.02em;
}
.shs-trust-text .lbl {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: 2px;
}
.shs-trust-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.shs-star-row {
  display: flex;
  gap: 3px;
}
.shs-star-row i { color: #fbbf24; font-size: 14px; }
.shs-rating-text .score {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  font-family: 'Plus Jakarta Sans','Inter',sans-serif;
}
.shs-rating-text .reviews {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── SERVICE QUICK-ACCESS STRIP ─────────────────────────────────────────── */
.shs-service-strip {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  padding: 0;
  position: relative;
  z-index: 4;
}
.shs-service-strip-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shs-service-strip-inner::-webkit-scrollbar { display: none; }
.shs-service-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans','Inter',sans-serif;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: color .18s, border-color .18s;
  scroll-snap-align: start;
  flex-shrink: 0;
}
.shs-service-pill:hover,
.shs-service-pill.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}
.shs-service-pill-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #2563eb;
  flex-shrink: 0;
  transition: background .18s;
}
.shs-service-pill:hover .shs-service-pill-icon,
.shs-service-pill.active .shs-service-pill-icon {
  background: #2563eb;
  color: #fff;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .shs-hero          { height: min(80vh, 580px); min-height: 460px; }
  .shs-slide-h1      { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .shs-slide-sub     { font-size: .9375rem; }
  .shs-nav-prev      { left: 12px; }
  .shs-nav-next      { right: 12px; }
  .shs-nav-prev, .shs-nav-next { width: 40px; height: 40px; font-size: 14px; }
  .shs-indicators    { right: 16px; bottom: 88px; }
  .shs-trust-item:nth-child(n+3) { display: none; } /* show only 2 on mobile */
  .shs-trust-item    { padding-right: 16px; margin-right: 16px; }
  .shs-trust-inner   { padding: 0 16px; }
  .shs-trust-rating  { display: none; }
  .shs-service-strip-inner { padding: 0 16px; }
}

@media (max-width: 479px) {
  .shs-slide-h1   { font-size: 1.75rem; }
  .shs-slide-btns { flex-direction: column; align-items: flex-start; }
  .shs-hero-btn-primary,
  .shs-hero-btn-ghost { width: 100%; justify-content: center; }
}
