/* AVR Physiocare - phone sizing fixes (screens 640px and narrower).
   Loaded after the Astro build CSS on every page. Desktop is untouched. */
@media (max-width: 640px) {
  :root {
    /* type scale */
    --text-hero: clamp(1.55rem, 7.1vw, 2rem);
    --text-4xl: clamp(1.6rem, 1.2rem + 2vw, 1.85rem);
    --text-3xl: 1.45rem;
    --text-2xl: 1.25rem;
    --text-xl: 1.125rem;
    --text-lg: 1.0625rem;
    /* vertical rhythm */
    --sp-6: 1.6rem;
    --sp-7: 2.1rem;
    --sp-8: 2.6rem;
    --sp-9: 3.25rem;
    --sp-10: 4rem;
    --nav-clear: 5rem;
  }

  /* Header bar: slimmer pill, smaller logo and menu button */
  .island { padding: .35rem .4rem .35rem .55rem !important; }
  .brand-mark { width: 44px !important; height: 42px !important; border-radius: 11px !important; padding: 2px !important; }
  .brand { gap: .5rem !important; }
  .brand-text strong { font-size: .98rem !important; }
  .brand-text small { font-size: .55rem !important; }
  .menu-btn { width: 38px !important; height: 38px !important; }

  /* Slide-out menu */
  .overlay-brand img { width: 48px !important; height: 46px !important; border-radius: 12px !important; }
  .overlay-nav > a, .overlay-services { font-size: 1.15rem !important; padding: .5rem .2rem !important; }
  .overlay-inner { padding-top: 4.5rem !important; gap: 1.1rem !important; }

  /* Hero trust row: keep avatar faces from being squeezed */
  .hero-avatars { flex-shrink: 0 !important; }

  /* Intro / lead paragraphs under page titles */
  .hero-sub, .a-sub, .s-sub, .c-sub, .p-intro-copy .lead { font-size: 1rem !important; line-height: 1.6 !important; }

  /* Headings */
  h2 { font-size: var(--text-3xl) !important; }
  .s-group-head h2, .c-form h2, .p-related-head h2 { font-size: 1.2rem !important; }
  .feat-body h3, .why-block h3, .book-card h3 { font-size: 1.1rem !important; }
  .s-card h3, .s-card-body h3, .p-expect-card h3, .p-approach h3 { font-size: 1rem !important; }
  .a-members-head { font-size: var(--text-3xl) !important; }
  .a-member-name { font-size: 1rem !important; }
  .a-visit-head { font-size: 1.15rem !important; }

  /* Large accent text */
  .hb-stat strong { font-size: 1.1rem !important; }
  .p-quote p { font-size: 1rem !important; }
  .p-help-n { font-size: 1.1rem !important; }
  .s-ghost, .p-ghost { font-size: 3.25rem !important; }
  .footer-tag { font-size: 1.1rem !important; }
  .footer-watermark { font-size: 7rem !important; }
}
