/* =====================================================================
   Makhija & Company — mobile-only fixes (max-width: 767px)
   Desktop is untouched: every rule below sits inside a mobile media query
   except the two hint helpers, which are hidden/shown per breakpoint.
   ===================================================================== */

/* Hint text swap (desktop copy vs mobile copy) */
.mc-mob { display: none; }

@media (max-width: 767px) {
  .mc-desk { display: none; }
  .mc-mob { display: inline; }

  /* --- 1. Top bar removed on mobile --- */
  .topbar { display: none !important; }
  .mobile-nav { padding-top: calc(var(--nav-h) + 20px) !important; }

  /* --- 2. Services / related "fan" deck -> 2-col grid --- */
  .fan-layout { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; height: auto !important; max-width: 100%; padding: 8px 16px 0; align-items: stretch; }
  .fan-card { position: relative !important; left: auto !important; top: auto !important; transform: none !important; opacity: 1 !important; width: 100% !important; aspect-ratio: auto !important; z-index: auto !important; transition: none !important; border-radius: 16px; box-shadow: 0 8px 22px rgba(0, 37, 44, .16); }
  .fan-face { justify-content: flex-start; gap: 14px; padding: 16px 14px 18px; min-height: 100%; }
  .fan-face h3 { font-size: 1rem; line-height: 1.25; margin-bottom: 6px; }
  .fan-face p { font-size: .8rem; line-height: 1.45; }
  .fan-face > div { display: flex; flex-direction: column; flex: 1; }
  .fan-face > div .fan-more { margin-top: auto; padding-top: 12px; }
  .fan-more { display: inline-flex !important; align-items: center; gap: 4px; margin-top: 10px; font-size: .8rem; }
  .fan-ic { width: 38px; height: 38px; }
  .fan-nav { display: none !important; }

  /* --- 3. FAQ marquee -> swipeable row (no auto-scroll, no duplicates) --- */
  .faq-row { overflow-x: auto !important; overflow-y: hidden; mask-image: none !important; -webkit-mask-image: none !important; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-inline: 16px; scroll-padding-inline: 16px; }
  .faq-row::-webkit-scrollbar { display: none; }
  .faq-track { animation: none !important; transform: none !important; gap: 12px; }
  .faq-track > ul { gap: 12px; }
  .faq-track > [aria-hidden="true"] { display: none !important; }
  .faq-card { width: 84vw; max-width: 320px; padding: 18px; scroll-snap-align: start; }
  .faq-card:hover { transform: none; }

  /* --- 4. Stat rings -> compact 2x2 grid --- */
  .ring-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
  .ring-card { padding: 18px 10px 16px; }
  .ring-ic { margin-bottom: 12px; }
  .ring-dial { width: 100px; height: 100px; }
  .ring-val b { font-size: 1.35rem; }
  .ring-val .status { font-size: .5rem; letter-spacing: .04em; }
  .ring-card .ring-label { font-size: .9rem; margin: 12px 0 4px; }
  .ring-card p { font-size: .75rem; line-height: 1.4; }

  /* --- 5. Loan "deck": list and stack showed the same 5 items twice --- */
  .stack-stage { display: none !important; }

  /* --- 6. Forms: 16px inputs stop iOS auto-zoom; less nested padding --- */
  input, select, textarea { font-size: 16px !important; }
  .contact-shell { padding: 18px !important; }
  .form--glass { padding: 18px !important; }

  /* --- 7. Contact cards: long email no longer cut off --- */
  .reach a > div { min-width: 0; }
  .reach a b, .reach a strong { overflow-wrap: anywhere; word-break: break-word; font-size: .9rem; }

  /* --- 8. Spacing fixes on service pages --- */
  .svc-copy h2 { margin-bottom: 14px; }
  .docs-count { margin-top: 14px; }

  /* --- 9. Footer link columns side by side --- */
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 32px 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }

  /* --- 10. Floating buttons: slightly smaller so they cover less text --- */
  .fab { gap: 10px; right: 14px; }
  .fab > * { width: 46px !important; height: 46px !important; }
}

@media (max-width: 359px) {
  .fan-layout { grid-template-columns: 1fr; }
  .ring-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
}
