/* =============================================================================
   SmartHomeSewa — Header v2
   2-layer: slim info-bar (40 px dark) + sticky white navbar (68 px)
   ============================================================================= */

/* ── 0. HARD RESET OLD HEADER REMNANTS ──────────────────────────────────── */
/* Null out every class the old template injected so nothing leaks through */
.wrapper > header,
.header--section,
.header--topbar,
.header--navbar-top,
.header--navbar { display: none !important; }

/* Also null the old sh- classes that were in the previous redesign */
.sh-topbar        { display: none !important; }
.sh-header-strip  { display: none !important; }

/* The new SHS navbar IS the sticky element — remove any extra top offset */
body { padding-top: 0 !important; }
.wrapper { margin-top: 0 !important; padding-top: 0 !important; }

/* ── 1. INFO BAR ─────────────────────────────────────────────────────────── */
.shs-bar {
  display: block;
  background: #0f172a;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin: 0;
  padding: 0;
  overflow: visible; /* allow dropdown to extend below */
  position: relative;
  z-index: 1001;     /* above sticky nav z-1000 */
}
.shs-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: visible; /* allow dropdown to extend below */
}
.shs-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
}
.shs-bar-left a,
.shs-bar-left span {
  color: rgba(255,255,255,.6);
  font-size: 12.5px;
  font-weight: 500;
  font-family: 'Plus Jakarta Sans','Inter',sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: color .15s;
  line-height: 1;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.shs-bar-left a:hover { color: #fff; }
.shs-bar-sep {
  color: rgba(255,255,255,.18) !important;
  font-size: 11px !important;
  pointer-events: none;
  user-select: none;
}

.shs-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.shs-bar-social {
  display: flex;
  align-items: center;
  gap: 6px;
}
.shs-bar-social a {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.55);
  font-size: 11px;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  line-height: 1;
}
.shs-bar-social a:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff;
}
.shs-bar-auth {
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 1px solid rgba(255,255,255,.08);
  padding-left: 16px;
}
.shs-bar-auth a {
  color: rgba(255,255,255,.6);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .15s;
  padding: 0 !important;
  background: none !important;
}
.shs-bar-auth a:hover { color: #fff; }
.shs-bar-auth .login-btn {
  background: rgba(37,99,235,.2) !important;
  border: 1px solid rgba(37,99,235,.45) !important;
  color: #93c5fd !important;
  padding: 4px 12px !important;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  transition: background .15s, color .15s;
}
.shs-bar-auth .login-btn:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
}
.shs-bar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.75);
  font-size: 12.5px;
}
.shs-bar-user .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── 2. MAIN NAVBAR ──────────────────────────────────────────────────────── */
.shs-nav {
  display: block;
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 1000;
  margin: 0;
  padding: 0;
  transition: box-shadow .2s ease, background .2s ease;
}
.shs-nav.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 4px 24px rgba(0,0,0,.06);
  border-bottom-color: transparent;
}
.shs-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 0;
}

/* ── Logo ────────────────────────────────────────────────────────────────── */
.shs-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  margin-right: 32px;
  text-decoration: none !important;
}
.shs-logo img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── Nav links ───────────────────────────────────────────────────────────── */
.shs-links {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  flex: 1;
  height: 68px;
}
.shs-links > li {
  position: relative;
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
}
.shs-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  height: 68px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans','Inter',sans-serif;
  color: #374151;
  text-decoration: none !important;
  white-space: nowrap;
  letter-spacing: -.01em;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
  position: relative;
  background: none !important;
}
.shs-links > li > a:hover,
.shs-links > li.active > a {
  color: #2563eb;
  border-bottom-color: #2563eb;
}
.shs-links > li > a .chevron {
  font-size: 10px;
  opacity: .5;
  margin-top: 1px;
  transition: transform .18s, opacity .18s;
  display: inline-block;
}
.shs-links > li:hover > a .chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* ── Mega / dropdown ─────────────────────────────────────────────────────── */
.shs-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.06);
  padding: 10px;
  min-width: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 100;
}
.shs-links > li:hover .shs-dropdown,
.shs-links > li:focus-within .shs-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.shs-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: 'Plus Jakarta Sans','Inter',sans-serif;
  color: #374151;
  text-decoration: none !important;
  border-radius: 8px;
  transition: background .13s, color .13s;
  background: none !important;
}
.shs-dropdown a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2563eb;
  opacity: .25;
  flex-shrink: 0;
  transition: opacity .13s;
}
.shs-dropdown a:hover {
  background: #eff6ff !important;
  color: #2563eb;
}
.shs-dropdown a:hover::before { opacity: 1; }

/* ── Right: phone + CTA + hamburger ─────────────────────────────────────── */
.shs-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.shs-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans','Inter',sans-serif;
  color: #1f2937;
  text-decoration: none !important;
  white-space: nowrap;
  border-radius: 10px;
  transition: background .15s;
  background: none !important;
}
.shs-phone:hover { background: #f3f4f6 !important; color: #2563eb; }
.shs-phone-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 13px;
  flex-shrink: 0;
}
.shs-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2563eb;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans','Inter',sans-serif;
  padding: 9px 20px;
  border-radius: 8px;
  text-decoration: none !important;
  white-space: nowrap;
  letter-spacing: .005em;
  border: none !important;
  box-shadow: 0 1px 3px rgba(37,99,235,.25), 0 4px 12px rgba(37,99,235,.2);
  transition: background .18s, box-shadow .18s, transform .15s;
  line-height: 1.4;
}
.shs-cta:hover {
  background: #1d4ed8 !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(37,99,235,.35), 0 8px 20px rgba(37,99,235,.25);
  transform: translateY(-1px);
}
.shs-cta:active { transform: translateY(0); }

/* ── Hamburger ───────────────────────────────────────────────────────────── */
.shs-hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  transition: border-color .18s;
  flex-shrink: 0;
}
.shs-hamburger:hover { border-color: #2563eb; }
.shs-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #374151;
  border-radius: 2px;
  transition: all .2s;
  pointer-events: none;
}
.shs-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.shs-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.shs-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── 3. MOBILE DRAWER ────────────────────────────────────────────────────── */
.shs-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}
.shs-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.45);
  opacity: 0;
  transition: opacity .22s;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.shs-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 90vw);
  background: #ffffff;
  transform: translateX(100%);
  transition: transform .26s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 40px rgba(0,0,0,.12);
}
.shs-drawer.open { pointer-events: auto; }
.shs-drawer.open .shs-drawer-overlay { opacity: 1; }
.shs-drawer.open .shs-drawer-panel   { transform: translateX(0); }

.shs-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #f1f3f5;
  background: #fafafa;
}
.shs-drawer-head img {
  height: 38px;
  width: auto;
  display: block;
}
.shs-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: #6b7280;
  transition: all .15s;
  flex-shrink: 0;
}
.shs-drawer-close:hover { border-color: #ef4444; color: #ef4444; background: #fff5f5; }

.shs-drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.shs-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans','Inter',sans-serif;
  color: #1f2937;
  text-decoration: none !important;
  border-bottom: 1px solid #f9fafb;
  transition: background .13s, color .13s;
  cursor: pointer;
}
.shs-drawer-link:hover,
.shs-drawer-link.active {
  background: #eff6ff;
  color: #2563eb;
}
.shs-drawer-link .indicator {
  font-size: 11px;
  color: #9ca3af;
  transition: transform .18s;
}
.shs-drawer-sub {
  background: #f9fafb;
  display: none;
  border-bottom: 1px solid #f1f3f5;
}
.shs-drawer-sub.open { display: block; }
.shs-drawer-sub a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 13.5px;
  font-weight: 500;
  color: #374151;
  text-decoration: none !important;
  transition: color .13s, background .13s;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.shs-drawer-sub a:last-child { border-bottom: none; }
.shs-drawer-sub a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2563eb;
  opacity: .3;
  flex-shrink: 0;
}
.shs-drawer-sub a:hover { color: #2563eb; background: #eff6ff; }

.shs-drawer-foot {
  padding: 16px 20px;
  border-top: 1px solid #f1f3f5;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fafafa;
}
.shs-drawer-foot .shs-cta {
  justify-content: center;
  padding: 11px 20px;
  font-size: 14px;
}
.shs-drawer-foot .contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #6b7280;
  padding: 0 4px;
}
.shs-drawer-foot .contact-row a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}
.shs-drawer-foot .login-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  background: #fff;
  transition: border-color .15s, color .15s;
}
.shs-drawer-foot .login-outline:hover { border-color: #2563eb; color: #2563eb; }

/* ── 4. RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .shs-links > li > a { padding: 0 10px; font-size: 13.5px; }
  .shs-logo            { margin-right: 20px; }
}

@media (max-width: 900px) {
  .shs-links  { display: none !important; }
  .shs-phone  { display: none !important; }
  .shs-cta.hide-sm { display: none !important; }
  .shs-hamburger   { display: flex; }
}

@media (max-width: 640px) {
  .shs-bar-left .shs-bar-addr,
  .shs-bar-left .shs-bar-hours,
  .shs-bar-left .shs-bar-sep { display: none; }
  .shs-bar-inner { padding: 0 16px; }
  .shs-nav-inner { padding: 0 16px; }
  .shs-logo img  { height: 40px; }
}

@media (max-width: 400px) {
  .shs-bar { display: none; }
}
