/* Mobile responsive overrides for v2 profession demo pages */
@media (max-width: 900px) {
  html,
  body.db-page {
    overflow-x: hidden;
  }

  .wrap {
    padding: 0 20px !important;
  }

  /* ---------- NAV ---------- */
  .nav {
    padding: 12px 0;
  }

  .nav-in {
    flex-direction: column;
    align-items: stretch !important;
    height: auto !important;
    gap: 12px;
    padding: 14px 16px !important;
    border-radius: 20px !important;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 10px 14px;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links a:not(.btn):not(.nav-cta):not(.nav-phone) {
    font-size: 13px;
  }

  .nav-links .btn,
  .nav-links .nav-phone,
  .nav-links .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .brand small {
    font-size: 9px;
  }

  /* ---------- HERO ---------- */
  .hero {
    padding: 40px 0 56px !important;
  }

  .hero-grid,
  .why-grid,
  .contact-grid,
  .ba-grid,
  .report,
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 44px) !important;
    line-height: 1.08 !important;
    word-break: break-word;
  }

  .hero .lead {
    font-size: 16px !important;
  }

  .hero-visual {
    display: none !important;
  }

  .hero-cta,
  .hero-badges,
  .hero-feats,
  .hero-checks {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-cta .btn,
  .hero-cta a {
    width: 100%;
    justify-content: center;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0;
  }

  .hero-meta div {
    border: none !important;
    padding: 14px 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  }

  .hero-meta div:last-child {
    border-bottom: none !important;
  }

  .hero-panel,
  .price-panel,
  .dash {
    margin-top: 8px;
  }

  .hp-phone,
  .cta-phone a {
    font-size: 22px !important;
    padding: 16px 20px !important;
    justify-content: center;
  }

  /* ---------- TOP BARS ---------- */
  .ebar,
  .tbar {
    font-size: 12px;
  }

  .ebar-in,
  .tbar-in {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  /* ---------- SECTIONS ---------- */
  section {
    padding: 56px 0 !important;
  }

  h2 {
    font-size: clamp(28px, 7vw, 36px) !important;
    line-height: 1.12 !important;
  }

  .sec-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px;
    margin-bottom: 36px !important;
  }

  .sec-sub {
    font-size: 15px !important;
  }

  /* ---------- GRIDS ---------- */
  .svc-grid,
  .steps-wrap,
  .team-grid,
  .rev-grid,
  .price-grid,
  .steps,
  .results-grid,
  .prin-grid,
  .proc-grid,
  .kpis {
    grid-template-columns: 1fr !important;
  }

  .proc-grid::before {
    display: none;
  }

  .area {
    grid-template-columns: 36px 1fr 36px !important;
    gap: 12px !important;
    padding: 20px 4px !important;
  }

  .area p {
    display: none;
  }

  .area h3 {
    font-size: 18px !important;
  }

  /* ---------- STATS / TRUST ---------- */
  .trust,
  .stats-in,
  .stats-band,
  .trust-in {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 28px 24px !important;
    border-radius: 20px !important;
  }

  .trust-sep {
    display: none;
  }

  .stat b,
  .trust-item b {
    font-size: 32px !important;
  }

  /* ---------- CTA BANDS ---------- */
  .cta-band,
  .quote-band {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 36px 24px !important;
    border-radius: 20px !important;
  }

  .cta-band h2 {
    font-size: clamp(28px, 7vw, 36px) !important;
  }

  .cta-phone,
  .cta-actions {
    width: 100%;
    align-items: stretch !important;
  }

  .cta-actions .btn,
  .cta-actions a {
    width: 100%;
    justify-content: center;
  }

  .quote-band blockquote {
    font-size: 24px !important;
  }

  /* ---------- FORMS ---------- */
  .frow {
    grid-template-columns: 1fr !important;
  }

  .form-card {
    padding: 28px 22px !important;
  }

  .contact h2 {
    font-size: clamp(30px, 7vw, 40px) !important;
  }

  /* ---------- PRICING ---------- */
  .price-card.featured {
    transform: none !important;
  }

  /* ---------- LAWYER SPECIFICS ---------- */
  .frame-quote {
    position: static !important;
    max-width: 100% !important;
    margin-top: 16px;
  }

  .hero-visual.law-visual {
    display: block !important;
  }

  .prin {
    border-right: none !important;
    border-bottom: 1px solid rgba(247, 243, 235, 0.14);
    padding-bottom: 28px !important;
  }

  .prin:last-child {
    border-bottom: none;
  }

  .prin-lead {
    font-size: 22px !important;
    margin-bottom: 36px !important;
  }

  .hero-eyebrow::after {
    display: none;
  }

  /* ---------- ACCOUNTANT DASHBOARD ---------- */
  .bars {
    height: 100px;
  }

  .report {
    gap: 32px !important;
  }

  /* ---------- PLUMBER BEFORE/AFTER ---------- */
  .ba-visual {
    height: 260px;
  }

  /* ---------- FOOTER ---------- */
  .foot,
  .foot-bottom,
  .foot-cols {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  .foot-cols {
    gap: 24px !important;
  }

  /* ---------- REVIEWS ---------- */
  #reviews-grid {
    grid-template-columns: 1fr !important;
  }

  section#reviews {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 30px !important;
  }

  .ebar a {
    word-break: break-all;
  }

  .hp-time b {
    font-size: 40px !important;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .nav-links .btn,
  .nav-links .nav-phone {
    display: inline-flex;
  }
}
