/* =============================================================================
   SmartHomeSewa — Footer v2 (Modern, Premium, Clean)
   Pre-footer CTA · 4-col layout · gradient accent top border
   ============================================================================= */

/* ── RESET OLD FOOTER ────────────────────────────────────────────────────── */
.sh-footer,
.sh-footer-top,
.sh-footer-bottom,
.sh-footer-widget-title,
.sh-footer-links,
.sh-footer-info,
.sh-footer-social,
.sh-footer-about-text,
.sh-footer-news,
.sh-newsletter-form,
.sh-newsletter-desc,
.sh-back-to-top {
  all: unset;
  display: revert;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 1. PRE-FOOTER CTA BAND                                                       */
/* ─────────────────────────────────────────────────────────────────────────── */
.shs-prefooter {
  background: linear-gradient(135deg, #1d3461 0%, #1a2744 50%, #0e1e3a 100%);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.shs-prefooter::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(37,99,235,.25) 0%, transparent 70%);
  pointer-events: none;
}
.shs-prefooter::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(13,148,136,.15) 0%, transparent 70%);
  pointer-events: none;
}
.shs-prefooter-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.shs-prefooter-text h2 {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.025em;
  margin: 0 0 6px;
  line-height: 1.2;
}
.shs-prefooter-text p {
  font-size: .9375rem;
  color: rgba(255,255,255,.6);
  margin: 0;
}
.shs-prefooter-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.shs-prefooter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563eb;
  color: #fff;
  font-size: .9375rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  transition: background .18s, transform .15s;
  font-family: 'Plus Jakarta Sans','Inter',sans-serif;
}
.shs-prefooter-btn:hover {
  background: #1d4ed8;
  color: #fff;
  transform: translateY(-1px);
}
.shs-prefooter-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity .18s;
}
.shs-prefooter-phone:hover { opacity: .85; }
.shs-prefooter-phone-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
}
.shs-prefooter-phone-text .line1 {
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .07em;
  display: block;
}
.shs-prefooter-phone-text .line2 {
  font-size: 1.0625rem;
  font-weight: 800;
  color: #fff;
  display: block;
  letter-spacing: -.01em;
  font-family: 'Plus Jakarta Sans','Inter',sans-serif;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 2. MAIN FOOTER                                                               */
/* ─────────────────────────────────────────────────────────────────────────── */
.shs-footer {
  background: #080e1d;
  position: relative;
}
/* Gradient top accent line */
.shs-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb 0%, #0d9488 50%, #7c3aed 100%);
}

/* ── Footer body ─────────────────────────────────────────────────────────── */
.shs-footer-body {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px;
}

/* ── Col 1: Brand ────────────────────────────────────────────────────────── */
.shs-footer-brand {}
.shs-footer-logo {
  display: block;
  margin-bottom: 20px;
}
.shs-footer-logo img {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(1.05);
}
.shs-footer-tagline {
  font-size: .9375rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin-bottom: 24px;
  font-family: 'Inter',sans-serif;
}
/* Contact items */
.shs-footer-contact {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shs-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.shs-footer-contact li .ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(37,99,235,.15);
  display: flex; align-items: center; justify-content: center;
  color: #60a5fa;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}
.shs-footer-contact li .txt {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
}
.shs-footer-contact li .txt a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .15s;
}
.shs-footer-contact li .txt a:hover { color: #60a5fa; }
/* Socials */
.shs-footer-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.shs-footer-socials a {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: 13px;
  text-decoration: none;
  transition: background .18s, border-color .18s, color .18s;
}
.shs-footer-socials a:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

/* ── Col headings ────────────────────────────────────────────────────────── */
.shs-footer-col-title {
  font-family: 'Plus Jakarta Sans','Inter',sans-serif;
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: block;
}

/* ── Col 2 & 3: Link lists ───────────────────────────────────────────────── */
.shs-footer-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.shs-footer-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .15s, padding-left .15s;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.shs-footer-list li:last-child a { border-bottom: none; }
.shs-footer-list a::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #2563eb;
  opacity: .4;
  flex-shrink: 0;
  transition: opacity .15s;
}
.shs-footer-list a:hover {
  color: rgba(255,255,255,.9);
  padding-left: 4px;
}
.shs-footer-list a:hover::before { opacity: 1; }

/* ── Col 4: Newsletter ───────────────────────────────────────────────────── */
.shs-footer-newsletter {}
.shs-footer-newsletter p {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
  margin-bottom: 16px;
}
.shs-newsletter-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.shs-newsletter-input {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  transition: border-color .18s;
}
.shs-newsletter-input:focus-within {
  border-color: #2563eb;
  background: rgba(255,255,255,.09);
}
.shs-newsletter-input input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 11px 14px;
  font-size: .875rem;
  color: #fff;
  font-family: 'Inter',sans-serif;
}
.shs-newsletter-input input::placeholder { color: rgba(255,255,255,.3); }
.shs-newsletter-input button {
  background: #2563eb;
  border: none;
  padding: 11px 16px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background .18s;
  display: flex; align-items: center;
}
.shs-newsletter-input button:hover { background: #1d4ed8; }
.shs-newsletter-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  text-decoration: none;
  transition: color .15s;
}
.shs-newsletter-privacy:hover { color: rgba(255,255,255,.6); }

/* ── Bottom bar ──────────────────────────────────────────────────────────── */
.shs-footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 20px;
  flex-wrap: wrap;
}
.shs-footer-bottom-copy {
  font-size: .8125rem;
  color: rgba(255,255,255,.3);
  font-family: 'Inter',sans-serif;
}
.shs-footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.shs-footer-bottom-links a {
  font-size: .8125rem;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: color .15s;
}
.shs-footer-bottom-links a:hover { color: #60a5fa; }

/* ── Back to top ─────────────────────────────────────────────────────────── */
.shs-back-top {
  position: fixed;
  bottom: 28px; right: 24px;
  z-index: 900;
  width: 42px; height: 42px;
  background: #2563eb;
  color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .22s, transform .22s, background .18s;
  pointer-events: none;
}
.shs-back-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.shs-back-top:hover {
  background: #1d4ed8;
  color: #fff;
  transform: translateY(-2px);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .shs-footer-body {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .shs-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .shs-footer-body {
    grid-template-columns: 1fr;
    padding: 48px 20px 36px;
    gap: 32px;
  }
  .shs-footer-brand { grid-column: auto; }
  .shs-prefooter-inner { flex-direction: column; align-items: flex-start; }
  .shs-prefooter-actions { width: 100%; }
  .shs-prefooter-btn { flex: 1; justify-content: center; }
  .shs-footer-bottom { flex-direction: column; text-align: center; }
}
