/* ============================================================
   CourtReporters.com — Mobile Stylesheet
   All rules are inside @media (max-width: 768px).
   Desktop CSS is untouched.
   ============================================================ */

@media (max-width: 768px) {

  /* ── NAV (homepage, directory, request) ─────────────────── */
  nav {
    padding: 0 16px;
    height: 64px;
  }
  .nav-links {
    display: none;
  }

  /* ── SEARCH BAR (homepage hero + directory header) ───────── */
  .search-bar {
    flex-direction: column;
    border-radius: 10px;
  }
  .search-bar select {
    max-width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
  .search-bar input {
    border-bottom: 1px solid #e5e7eb;
  }
  .search-bar button {
    width: 100%;
    border-radius: 0 0 10px 10px;
    padding: 14px;
  }

  /* ── HOMEPAGE ─────────────────────────────────────────────── */
  .hero {
    padding: 56px 16px 48px;
  }
  .hero h1 {
    font-size: 2rem;
    letter-spacing: -0.5px;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .hero-links {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .stats {
    padding: 20px 16px;
  }
  .stats-inner {
    gap: 16px;
  }
  .stat-item .num {
    font-size: 1.3rem;
  }
  .section {
    padding: 40px 16px;
  }
  .section-header h2 {
    font-size: 1.5rem;
  }
  .pros-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .steps {
    gap: 24px;
  }
  .steps::before {
    display: none;
  }
  /* Homepage request form */
  .req-form-box {
    padding: 20px 16px;
    border-radius: 10px;
  }
  .req-row {
    flex-direction: column;
    gap: 0;
  }
  .cb-grid {
    grid-template-columns: 1fr;
  }
  .join-cta {
    padding: 48px 16px;
  }
  .join-cta h2 {
    font-size: 1.6rem;
  }
  /* Homepage footer */
  footer {
    padding: 32px 16px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* ── DIRECTORY ────────────────────────────────────────────── */
  .search-header {
    padding: 16px;
  }
  .map-section {
    padding: 0 16px 20px;
  }
  #directory-map {
    height: 200px;
  }
  /* Featured provider banner */
  .featured-provider {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .fp-divider,
  .fp-stats {
    display: none;
  }
  .fp-actions {
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: space-between;
  }
  .fp-btn-primary {
    flex: 1;
    text-align: center;
  }
  /* Main layout: stack sidebar below results */
  .layout {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
    margin: 16px auto;
  }
  .sidebar {
    width: 100%;
    order: 2;
  }
  .results {
    order: 1;
  }
  .results-header {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
  }
  /* Pro cards: stack avatar + body + actions vertically */
  .pro-card {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    align-items: stretch;
  }
  .pro-avatar {
    width: 56px;
    height: 56px;
  }
  .pro-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
  }
  .pro-actions .btn,
  .pro-actions a.btn-primary,
  .pro-actions a.btn-outline {
    flex: 1;
    min-width: 120px;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
  }

  /* ── REQUEST FORM ─────────────────────────────────────────── */
  .page-wrap {
    padding: 24px 16px 48px;
  }
  .form-card {
    padding: 20px 16px;
    border-radius: 10px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .trust-bar {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
  }
  .page-header h1 {
    font-size: 1.6rem;
  }
  .page-header .sub {
    font-size: 0.88rem;
  }

  /* ── PROFILE PAGES (complement existing media query) ────── */
  .cr-nav {
    padding: 0 16px;
    height: 60px;
  }
  .hero-inner {
    flex-direction: column;
    gap: 16px;
  }
  .main {
    padding: 20px 16px;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .profile-name {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  .stats-inner {
    justify-content: center;
    flex-wrap: wrap;
  }
  .fp-actions {
    flex-direction: column;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .pro-actions .btn,
  .pro-actions a.btn-primary,
  .pro-actions a.btn-outline {
    min-width: unset;
    width: 100%;
  }
  .schedule-cards {
    justify-content: center;
  }
  .featured-platform {
    flex: 0 1 100%;
    max-width: 100%;
  }
}
