/* ============================================================
   mobile.css — Tulip Dental
   <link rel="stylesheet" href="mobile.css"> before </head>
   ============================================================ */

/* ── PREVENT HORIZONTAL SCROLL ── */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
}

/* ══════════════════════════════════════════
   TABLET  ≤ 900px
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .intro, .why, .doctors, .testi, .faq, .cta { padding: 60px 0; }
  .icta { padding: 44px 0; }
  .services { padding: 0 0 60px; }
  .cmp-table { overflow-x: auto; -webkit-overflow-scrolling: touch; display: block; }
  .t-subnav::-webkit-scrollbar { display: none; }
}

/* ══════════════════════════════════════════
   MOBILE  ≤ 640px
══════════════════════════════════════════ */
@media (max-width: 640px) {

  /* Typography */
  h1 { font-size: clamp(26px, 8vw, 36px) !important; }
  h2 { font-size: clamp(22px, 6.5vw, 30px) !important; }
  h3 { font-size: 18px !important; }

  /* Containers */
  .container, .container-sm { padding: 0 18px; }

  /* Page hero */
  .page-hero { padding: 40px 0 32px; }
  .page-hero-desc { font-size: 15px; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  /* Section padding */
  .intro, .why, .doctors, .testi, .faq, .cta { padding: 48px 0; }
  .services { padding: 0 0 48px; }
  .icta { padding: 40px 0; }

  /* Named grids → single column */
  .intro-grid, .why-grid, .cta-grid, .faq-grid,
  .it-grid, .impl-grid, .nat-art-grid, .doc-feat {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .it-body { padding: 28px 18px !important; }
  .doc-feat-body { padding: 28px 18px !important; }
  .doc-feat-img { min-height: 220px !important; }
  .it-img { min-height: 200px !important; }
  .cta-r { padding: 32px 20px !important; }
  .nat-col { padding: 28px 20px !important; }

  /* Services */
  .svc-grid { grid-template-columns: 1fr !important; }
  .svc { border-right: none !important; padding: 24px 18px !important; }

  /* Doc grid */
  .doc-grid { grid-template-columns: 1fr !important; }
  .doc { padding: 32px 18px !important; }

  /* Stat strip */
  .sstrip .container { grid-template-columns: 1fr 1fr !important; }
  .ssi { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.15) !important; padding: 14px !important; }
  .ssi:nth-child(3), .ssi:nth-child(4) { border-bottom: none !important; }
  .ssi-n { font-size: 30px !important; }

  /* Journey timeline */
  .journey-track { flex-direction: column !important; }
  .journey-track::before { display: none !important; }
  .journey-step { flex-direction: row !important; text-align: left !important; gap: 14px !important; padding: 0 0 20px !important; align-items: flex-start !important; }
  .journey-dot { flex-shrink: 0 !important; margin-bottom: 0 !important; width: 44px !important; height: 44px !important; font-size: 16px !important; }
  .journey-step > div { padding-top: 6px !important; }

  /* Correction cards */
  .correction-grid { grid-template-columns: 1fr !important; }
  .correction-card { padding: 20px 16px !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer { padding: 40px 0 0 !important; }

  /* Buttons */
  .btn { padding: 13px 20px !important; font-size: 13px !important; }
  .icta-btns { flex-direction: column !important; align-items: stretch !important; }
  .icta-btns .btn { justify-content: center !important; }
  .cta-btns { flex-direction: column !important; }
  .cta-btns .btn { width: 100% !important; justify-content: center !important; }

  /* FAQ */
  .faq-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .faq-q { font-size: 14px !important; }

  /* Comparison table */
  .cmp-table { display: block !important; overflow-x: auto !important; font-size: 12px !important; }
  .cmp-table th, .cmp-table td { padding: 8px 10px !important; min-width: 100px !important; }
}

/* ══════════════════════════════════════════
   SMALL PHONES  ≤ 420px
══════════════════════════════════════════ */
@media (max-width: 420px) {

  .container, .container-sm { padding: 0 14px; }
  h1 { font-size: 26px !important; }
  h2 { font-size: 22px !important; }
  .page-hero { padding: 32px 0 28px; }
  .hbadge { font-size: 10px !important; padding: 5px 9px !important; }
  .istat { padding: 18px 12px !important; }
  .istat-n { font-size: 32px !important; }
  .t-subnav a { padding: 10px 12px !important; font-size: 10px !important; letter-spacing: 1px !important; }
  .step { gap: 10px !important; padding: 12px 0 !important; }
  .step-n { width: 32px !important; height: 32px !important; font-size: 14px !important; }
  .wa-f { right: 14px !important; bottom: 74px !important; width: 46px !important; height: 46px !important; }

  /* Inline grids without class names */
  [style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: 1fr 1fr !important; }
  [style*="grid-template-columns:repeat(3,1fr);gap:1px"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:auto 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 1fr;gap:64px"],
  [style*="grid-template-columns:1fr 1fr;gap:72px"],
  [style*="grid-template-columns:1fr 1fr;gap:96px"],
  [style*="grid-template-columns:1fr 1.6fr"] { grid-template-columns: 1fr !important; gap: 0 !important; }
}

/* ── LOGO SIZE FIX ── */
@media (max-width: 900px) {
  .nav-logo img { height: 36px !important; width: auto !important; }
  .nav { height: 60px !important; }
  :root { --nav: 60px !important; }
}
@media (max-width: 480px) {
  .nav-logo img { height: 30px !important; }
  .nav { height: 54px !important; }
  :root { --nav: 54px !important; }
}