/* ============================
   Home Page Only (NyaySar)
   Refined + Clean (No duplicates)
   ============================ */

/* ---------- Hero / Above the fold ---------- */
.ns-fold{
  min-height: calc(100vh - 200px);
  display: grid;
}

.ns-hero{
  display: grid;
  place-items: center;
  padding: 14px var(--ns-pad);
}

.ns-hero--compact .ns-hero__content{
  text-align: center;
  color: #133a73;
  max-width: 980px;
  margin-inline: auto;
}

.ns-hero__line{
  margin: 6px 0;
  font-weight: 800;
  font-size: clamp(22px, 3.6vw, 32px);
  letter-spacing: .2px;
}

/* ===== Services Photo Row ===== */
.ns-svcrow{ margin-top: 14px; }

.ns-svcrow__viewport{
  overflow: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}

.ns-svcrow__track{
  display: flex;
  gap: 14px;
  padding: 8px 2px;
}

.ns-svcrow__track > li{
  list-style: none;
  flex: 0 0 auto;
  scroll-snap-align: center;
}

/* Circular tiles */
.ns-svc{
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(170px, 18vw, 260px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: #f2f6ff;
  border: 1px solid #d6e2ff;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ns-svc:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

.ns-svc img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.ns-svc:hover img{ transform: scale(1.05); }

/* make the 2nd tile pop a bit */
.ns-svcrow__track > li:nth-child(2) .ns-svc img{
  transform: scale(1.10);
}

/* ==========================================
   HOME GRID – STACKED LAYOUT (BROWSE → TOP → CTA)
   ========================================== */

.ns-homegrid .ns-homegrid__cols{
  display: grid;
  gap: 18px;
  align-items: start;

  grid-template-columns: 1fr;
  grid-template-areas:
    "browse"
    "top"
    "cta";

  max-width: 980px;
  margin: 0 auto;
}

/* Assign areas by order (no HTML change needed) */
.ns-homegrid .ns-homegrid__col:nth-child(1){ grid-area: browse; }
.ns-homegrid .ns-homegrid__col:nth-child(2){ grid-area: top; }
.ns-homegrid .ns-homegrid__col:nth-child(3){ grid-area: cta; }

/* Panels */
.ns-panel,
.ns-browse__panel{
  background: #fff;
  border: 1px solid #e8eefc;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(10,25,60,.08);
}

/* Browse Form */
.ns-browse__form{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.ns-browse__form input,
.ns-browse__form select{
  height: 44px;
  padding: 0 12px;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  background: #f9fbff;
}

/* Top Lawyers */
.ns-lawyers{
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.ns-lawyer-card{
  background: #fff;
  border: 1px solid #e8eefc;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

.ns-lawyer-card .ns-btn{ align-self: flex-start; }

.ns-avatar{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e9f0ff;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #234a86;
}

.ns-lawyer-meta h3{
  margin: 0;
  font-size: 16px;
  color: #1f3f78;
}

.ns-lawyer-meta p{
  margin: 2px 0 0;
  font-size: 12px;
  color: #4f6aa5;
}

/* CTA */
.ns-cta{ padding: 0; text-align: left; }

.ns-cta h2{
  margin: 0 0 6px;
  color: #133a73;
}

/* CTA buttons stacked */
.ns-cta__actions{
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.ns-cta__actions .ns-btn{ width: 100%; }

/* Why choose */
.ns-grid-4{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ns-feature{
  background: #fff;
  border: 1px solid #e8eefc;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

/* Stats */
.ns-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ns-stat{
  background: #fff;
  border: 1px solid #e8eefc;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.ns-stat .odometer{
  font-size: 30px;
  font-weight: 900;
  color: #133a73;
}

.ns-stat span{
  display: block;
  margin-top: 6px;
  color: #4f6aa5;
}

/* Testimonials */
.ns-testimonials{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ns-quote{
  background: #fff;
  border: 1px solid #e8eefc;
  border-radius: 14px;
  padding: 16px;
  font-style: italic;
}

.ns-quote span{
  display: block;
  margin-top: 8px;
  color: #4f6aa5;
  font-style: normal;
}

/* Footer safe spacing */
.ns-cta,
.ns-section:last-of-type{
  margin-bottom: calc(var(--ns-footer-safe) + 24px);
}

/* ---------- Mobile Nav (minimal safety) ---------- */
.ns-navtoggle{
  display: none;
  border: 1px solid #d6e2ff;
  background: #fff;
  border-radius: 10px;
  height: 40px;
  width: 44px;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px){
  .ns-browse__form{ grid-template-columns: 1fr 1fr; }
  .ns-lawyers{ grid-template-columns: repeat(2, minmax(200px, 1fr)); }
  .ns-grid-4{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px){
  .ns-navtoggle{ display: inline-grid; place-items: center; }
  #mainNav{ display: none; }
  #mainNav.is-open{ display: block; }
  .main-menu{ display: grid; gap: 10px; padding: 10px 0; }

  .ns-lawyers{ grid-template-columns: 1fr; }
  .ns-testimonials{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .ns-browse__form{ grid-template-columns: 1fr; }
  .ns-stats{ grid-template-columns: 1fr; }
}

