/* ============================================================
   NVS Solutions — Responsive Layer
   Breakpoints: 1080 (laptop) · 900 (tablet) · 720 (small tablet) · 560 (mobile)
   ============================================================ */

/* ---------- Laptop ---------- */
@media (max-width: 1080px) {
  .services__grid,
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .process__timeline { grid-template-columns: repeat(3, 1fr); gap: 2rem 1rem; }
  .process__timeline::before { display: none; }
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__contact { grid-column: 1 / -1; }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  /* Mobile nav */
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto;
    width: min(84vw, 340px);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0.4rem;
    padding: calc(var(--nav-h) + 1.2rem) 1.5rem 2rem;
    background: rgba(248,250,252,0.96);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    box-shadow: -20px 0 60px rgba(15,23,42,0.16);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
  }
  .nav__links.is-open { transform: translateX(0); }
  /* Off-canvas panel is light → force dark links regardless of scroll state */
  .nav__link { padding: 0.9rem 1rem; font-size: 1.05rem; border-radius: 12px; color: var(--slate-700); }
  .nav__link::after { display: none; }
  .nav__link.is-active, .nav__link:hover { background: rgba(37,99,235,0.08); color: var(--blue); }
  .nav__cta { margin-left: 0; margin-top: 0.6rem; }
  .nav__cta .btn { width: 100%; }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 850;
    background: rgba(15,23,42,0.4);
    opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }

  /* Hero */
  .hero__inner { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 2.5rem; }
  .hero__content, .hero__visual { min-width: 0; max-width: 100%; }
  .hero__badge { margin-inline: auto; max-width: 100%; }
  .hero__lede { margin-inline: auto; max-width: 34rem; }
  .hero__actions { justify-content: center; }
  .hero__trust { justify-content: center; }
  .hero__visual { max-width: 440px; margin-inline: auto; width: 100%; }
  .hero__scroll { display: none; }

  /* About */
  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__visual { max-width: 420px; margin-inline: auto; width: 100%; }

  /* Contact & FAQ */
  .contact__grid { grid-template-columns: 1fr; }
  .faq__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Small tablet ---------- */
@media (max-width: 720px) {
  .services__grid,
  .why__grid { grid-template-columns: 1fr; }
  .process__timeline { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand-col { grid-column: 1 / -1; }
  .footer__contact { grid-column: 1 / -1; }
}

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero__title { font-size: clamp(2.1rem, 9vw, 3rem); }
  .hero__actions .btn { flex: 1 1 auto; }
  .stats__grid { grid-template-columns: 1fr; }
  .process__timeline { grid-template-columns: 1fr; gap: 1.5rem; }
  .about__points { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .about__stat { left: 50%; transform: translateX(-50%); bottom: -22px; }
  .hero-float { right: 50%; transform: translateX(50%); }
  .brand__text { font-size: 1.15rem; }
  .to-top { right: 1rem; bottom: 1rem; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .to-top, .preloader, .scroll-progress, .cursor-glow, .hero__bg { display: none !important; }
  body { color: #000; background: #fff; }
}
