/* ============================================================
   KAYASTHA SHAADI — Responsive Styles
   Breakpoints: 1024px, 768px, 520px
   ============================================================ */

/* ---------- Compact nav (laptop widths, keeps one line) ---------- */
@media (max-width: 1200px) and (min-width: 1025px) {
  .navbar { gap: 0.6rem; }
  .brand-tagline { display: none; }
  .brand-name { font-size: 1.15rem; }
  .brand-mark { width: 40px; height: 40px; font-size: 1.05rem; }
  .nav-links { gap: 0.15rem; }
  .nav-links a { padding: 0.45rem 0.7rem; font-size: 0.85rem; }
  .nav-auth { padding: 0.45rem 1rem !important; font-size: 0.85rem !important; }
  .nav-sep { margin: 0 0.2rem; }
}

/* ---------- Tablet / Small laptop ---------- */
@media (max-width: 1024px) {
  .container { padding: 0 1.1rem; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .search-grid { grid-template-columns: repeat(2, 1fr); }

  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
  .hero-frame { width: min(380px, 90%); }
  .hero-frame img { height: 400px; }
  .hero-badge-float.one { right: 4%; }
  .hero-badge-float.two { left: 2%; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }

  .profiles-layout { grid-template-columns: 240px 1fr; gap: 1.4rem; }

  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }

  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .section { padding: var(--space-lg) 0; }

  .navbar { padding: 0.7rem 1rem; }
  .brand-name { font-size: 1.15rem; }
  .brand-tagline { display: none; }
  .brand-mark { width: 40px; height: 40px; font-size: 1.05rem; }

  .hero { padding: 3rem 0 5.5rem; }
  .hero-title { font-size: clamp(1.9rem, 7vw, 2.5rem); }
  .hero-text { font-size: 1rem; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .hero-trust { gap: 1rem; flex-direction: column; align-items: flex-start; }
  .hero-frame img { height: 340px; }
  .hero-mandala { width: 340px; height: 340px; }
  .hero-stat-chip { right: 4%; bottom: -12px; padding: 0.55rem 1rem; }
  .hero-stat-chip .hsc-number { font-size: 1.3rem; }

  .search-widget { margin-top: -56px; padding: 1.4rem; }
  .search-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .search-actions { flex-direction: column; align-items: stretch; }

  .trust-grid { grid-template-columns: 1fr; gap: 1rem; }
  .profile-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .steps-grid { grid-template-columns: 1fr; gap: 1rem; }
  .story-grid { grid-template-columns: 1fr; gap: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  .section-head { margin-bottom: var(--space-md); }
  .section-title { font-size: 1.7rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { padding: 1.2rem 0; }

  /* Auth & register */
  .auth-card { padding: 2rem 1.4rem; }
  .register-card { padding: 1.6rem 1.2rem 2rem; }

  .wizard-steps { overflow-x: auto; padding-bottom: 0.5rem; }
  .wizard-step { min-width: 74px; }
  .wizard-step .ws-label { font-size: 0.62rem; }
  .wizard-step .ws-dot { width: 40px; height: 40px; font-size: 0.85rem; }

  .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 0.5rem; }

  .wizard-nav { flex-direction: column-reverse; }
  .wizard-nav .btn { width: 100%; }

  /* Profiles */
  .profiles-layout { grid-template-columns: 1fr; }
  .filter-panel { display: none; }
  .mobile-filter-btn { display: inline-flex; }

  .results-head { flex-direction: column; align-items: stretch; }
  .sort-select { justify-content: space-between; }
  .sort-select select { flex: 1; }

  .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-card-photo { height: 190px; }

  /* Profile detail */
  .profile-hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 1.4rem; }
  .profile-hero-photo { width: 150px; height: 150px; }
  .profile-hero-basics { justify-content: center; }
  .profile-hero-actions { justify-content: center; }
  .detail-rows { grid-template-columns: 1fr; }
  .detail-sidebar { grid-template-columns: 1fr; }
  .detail-card { padding: 1.4rem; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; gap: 1.6rem; }

  /* Contact */
  .contact-form-card { padding: 1.4rem; }

  /* CTA */
  .cta-banner { padding: 2.4rem 1.4rem; }

  .back-top { right: 1rem; bottom: 1.4rem; }
}

/* ---------- Small mobile ---------- */
@media (max-width: 520px) {
  .profile-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .profile-card { min-width: 0; }
  .profile-card-photo { height: 130px; }
  .profile-card-photo .avatar-photo::after { inset: 10px; }
  .profile-card-photo .avatar-initials { font-size: 1.55rem; }
  .profile-card-badges { top: 0.45rem; left: 0.45rem; gap: 0.25rem; }
  .profile-card-badges .badge { padding: 0.18rem 0.5rem; font-size: 0.6rem; }
  .profile-card-id { bottom: 0.4rem; right: 0.4rem; font-size: 0.62rem; padding: 0.18rem 0.45rem; }
  .profile-card-body { padding: 0.8rem 0.75rem 0.9rem; gap: 0.15rem; }
  .profile-card-name { font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .profile-card-meta,
  .profile-card-edu { width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.75rem; }
  .profile-card-edu { margin-top: 0.1rem; }
  .profile-card-tags { gap: 0.3rem; margin-top: 0.45rem; flex-wrap: nowrap; overflow: hidden; }
  .profile-card-tags .tag { padding: 0.2rem 0.5rem; font-size: 0.65rem; white-space: nowrap; }
  .profile-card-actions { flex-direction: column; gap: 0.45rem; margin-top: 0.7rem; padding-top: 0.7rem; }
  .profile-card-actions .btn { width: 100%; flex: 1 1 auto; padding: 0.55rem 0.4rem; font-size: 0.78rem; }
  .profile-card-actions .btn svg { width: 14px; height: 14px; }

  .nav-register { padding: 0.55rem 1rem; font-size: 0.88rem; }

  .hero-frame img { height: 300px; }
  .hero-badge-float { font-size: 0.75rem; padding: 0.5rem 0.85rem; }
  .hero-badge-float.one { right: 0; top: 8%; }
  .hero-badge-float.two { left: 0; bottom: 18%; }

  .pricing-card { padding: 2rem 1.4rem; }

  .page-hero h1 { font-size: 1.8rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .stat-number { font-size: 1.8rem; }

  .content-page { padding: var(--space-lg) 1rem; }
  .content-block h2 { font-size: 1.3rem; }
}