/* ==========================================================================
   SEARCH PRESTIGE – RESPONSIVE
   Bootstrap 5.3 breakpoints: xl 1200, lg 992, md 768, sm 576
   ========================================================================== */

/* ---------- Laptop (≤1199px) ---------- */
@media (max-width: 1199.98px) {
  .sp-quiz-card{padding:26px 22px 24px}
  .sp-quiz-question{font-size:22px}
  .sp-case{flex-basis:320px}
  .sp-hero-stat dd{font-size:11px;letter-spacing:.06em}
  .sp-stat{padding:26px 22px}
  .sp-stat-num{font-size:42px}
}

/* ---------- Tablet (≤991px) ---------- */
@media (max-width: 991.98px) {
  :root{--sp-header-h:60px}

  /* Header: collapsed menu */
  .sp-header .navbar-collapse{margin-top:10px;padding:8px 0 14px;border-top:1px solid var(--sp-border)}
  .sp-nav{gap:0}
  .sp-nav .nav-link{padding:12px 0 !important;font-size:15px}
  .sp-nav .sp-btn{width:100%;min-height:48px;margin:10px 0 0}

  .sp-section{padding:72px 0}
  .sp-hero{padding:48px 0 72px}
  .sp-head{margin-bottom:40px}

  .sp-hero-pricing,.sp-hero-text,.sp-chips{max-width:640px}
  .sp-hero-stats{margin-top:44px;gap:22px 40px}
  .sp-badges{margin-top:44px}
  .sp-quiz-card,.sp-call-card{max-width:640px;margin-left:0}

  .sp-lead,.sp-lead--narrow,.sp-lead--wide{max-width:640px}
  .sp-cta-band{padding:40px 0}
  .sp-cta-strip--spaced{margin-top:88px}
  .sp-section--cta-first > .container > .sp-cta-strip{margin-bottom:96px}
  .sp-final{padding:80px 0 88px}
}

/* ---------- Mobile landscape / large phones (≤767px) ---------- */
@media (max-width: 767.98px) {
  body{font-size:14.5px}
  .sp-section{padding:56px 0}
  .sp-hero{padding:36px 0 56px}
  .sp-section--flush-top{padding-top:40px}
  .sp-section--cta-first{padding-top:40px}
  .sp-head{margin-bottom:32px}

  .sp-eyebrow{font-size:11px;letter-spacing:.14em}
  .sp-title br,.sp-hero-pricing br{display:none}

  .sp-hero-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 20px}
  .sp-hero-stat dt{font-size:32px}
  .sp-badges{gap:18px}
  .sp-badges img{height:38px}

  .sp-quiz-question,.sp-modal-title{font-size:20px}
  .sp-quiz-question br,.sp-modal-title br{display:none}
  .sp-option{min-height:50px;padding:10px 14px;font-size:15px}


  /* CTA strips stack */
  .sp-cta-band{padding:32px 0}
  .sp-cta-strip{flex-direction:column;align-items:stretch;gap:18px;padding:22px 18px;text-align:center}
  .sp-cta-strip-text{font-size:16px}
  .sp-cta-strip .sp-btn{width:100%}
  .sp-cta-strip--spaced{margin-top:64px}
  .sp-section--cta-first > .container > .sp-cta-strip{margin-bottom:64px}

  .sp-info-card,.sp-plan,.sp-stat,.sp-quote{padding:24px 20px}
  .sp-case{flex-basis:84%;padding:24px 20px}
  .sp-case-metric{font-size:40px}
  .sp-call-card{padding:24px 20px}
  .sp-plan-price{font-size:46px}

  .sp-final{padding:64px 0 72px}
  .sp-final .sp-btn{width:100%;max-width:340px}

  .sp-footer{padding:44px 0 40px}

  /* Popup */
  .sp-modal{align-items:flex-end;padding:12px}
  .sp-modal-dialog{max-height:calc(100dvh - 24px);border-radius:14px}
  .sp-progress{margin:12px 20px 0}
  .sp-modal-close{top:14px;right:12px}
  .sp-modal-body{padding:24px 20px}
  .sp-back{margin-top:22px}
  .sp-modal-footer{padding:12px 20px}
  .sp-modal-footer .sp-btn{min-height:50px;padding:10px 18px;font-size:15px}

  .sp-toast{right:12px;bottom:12px;left:12px;max-width:none}
}

/* ---------- Small phones (≤575px) ---------- */
@media (max-width: 575.98px) {
  .sp-logo img{width:120px}
  .sp-hero-title{font-size:clamp(2.6rem,12.5vw,3.25rem)}
  .sp-title{font-size:clamp(2rem,9.6vw,2.5rem)}
  .sp-chip{font-size:12px}
  .sp-hero-stat dt{font-size:28px}
  .sp-hero-stat dd{font-size:10.5px;letter-spacing:.05em}
  .sp-quiz-card{padding:22px 16px 20px}
  .sp-quiz-top{flex-wrap:wrap;gap:6px}
  .sp-plan-price span{display:block;margin-top:6px}
  .sp-modal-footer{flex-wrap:wrap}
  .sp-modal-footer .sp-btn{flex:1 1 auto}
}

/* ---------- Very small phones (≤379px) ---------- */
@media (max-width: 379.98px) {
  .sp-hero-stats{gap:16px 12px}
  .sp-hero-stat dt{font-size:26px}
  .sp-hero-stat dd{font-size:10px;letter-spacing:.03em}
  .sp-modal-footer .sp-back{order:2;width:100%;justify-content:center}
}
