/* ============ Mobile site (site/mobile/) - loaded after style.css ============ */
html, body { overflow-x: hidden; }
body.m-site { font-size: 15px; }

/* ---------- Mobile header ---------- */
.m-header { position: sticky; top: 0; z-index: 200; background: #fff; border-bottom: 1px solid var(--line); }
.m-header-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.m-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.m-brand img { border-radius: 6px; }
.m-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.m-brand-text strong { font-size: 1.02rem; color: var(--blue-dark); }
.m-brand-text small { font-size: .7rem; color: var(--muted); }
.m-call { margin-left: auto; font-size: 1.25rem; padding: 8px 10px; color: var(--blue); text-decoration: none; }
.m-menu-btn { font-size: 1.35rem; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; cursor: pointer; color: var(--blue-dark); }

/* ---------- Mobile nav ---------- */
.m-nav { display: none; border-top: 1px solid var(--line); background: #fff; max-height: 74vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.m-nav.open { display: block; }
.m-nav ul { list-style: none; margin: 0; padding: 0; }
.m-nav > ul > li > a, .m-nav .m-sub-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 16px; font-size: .95rem; font-weight: 600; color: var(--ink);
  background: none; border: 0; border-bottom: 1px solid var(--line); text-decoration: none; text-align: left;
}
.m-caret { color: var(--blue); font-size: .8em; }
.m-sub { display: none; background: #f4f8fc; }
.m-sub.open { display: block; }
.m-sub li a { display: block; padding: 12px 16px 12px 26px; font-size: .9rem; color: var(--blue-dark); text-decoration: none; border-bottom: 1px solid #e5edf6; }
.m-sub-sub { background: #edf4fb; }
.m-sub-sub li a { padding-left: 40px; font-size: .85rem; color: var(--blue); }
.m-nav-cta { background: var(--blue); color: #fff !important; text-align: center; font-weight: 700; }

/* ---------- Sticky bottom contact bar ---------- */
.m-contact-bar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; z-index: 200; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 10px rgba(16,24,32,.08); }
.m-cb-btn { flex: 1; text-align: center; padding: 14px 4px; font-size: .88rem; font-weight: 700; text-decoration: none; }
.m-cb-wa { color: #fff; background: #25d366; }
.m-cb-mail { color: var(--blue-dark); background: #eef4fb; }
.m-cb-call { color: #fff; background: var(--blue); }
.m-site main { padding-bottom: 64px; }

/* ---------- Content overrides ---------- */
.m-site .container { padding-left: 16px; padding-right: 16px; }
.m-site .page-hero { padding: 24px 0 26px; }
.m-site .page-hero h1 { font-size: 1.42rem; line-height: 1.3; }
.m-site .page-hero .lead { font-size: .97rem; }
.m-site .two-col { grid-template-columns: 1fr; gap: 0; }
.m-site .two-col-alt { grid-template-columns: 1fr; gap: 22px; }
.m-site .sidebar { display: none; }
.m-site .product-hero-grid { grid-template-columns: 1fr; gap: 22px; }
.m-site .btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; }
.m-site .btn-block { width: 100%; }
.m-site .product-actions { flex-direction: column; align-items: stretch; }
.m-site .prose { font-size: .95rem; }
.m-site .prose table { font-size: .88rem; }
.m-site .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.m-site .cta-inner { flex-direction: column; align-items: flex-start; padding: 34px 0; gap: 18px; }
.m-site .cta-actions { width: 100%; flex-direction: column; align-items: stretch; }
.m-site .case-meta { grid-template-columns: 1fr 1fr; gap: 10px; }
.m-site .case-metrics { grid-template-columns: 1fr; }
.m-site .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
.m-site .gallery-sub { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.m-site .app-hero-img, .m-site .case-hero-img { max-width: 100%; }
.m-site .footer-grid { grid-template-columns: 1fr; gap: 22px; padding: 34px 0 26px; }
.m-site .footer-bottom-inner { flex-direction: column; gap: 6px; text-align: center; }

/* ---------- Mobile footer ---------- */
.m-footer { background: var(--blue-dark); color: #c7d4e2; padding: 26px 0 84px; }
.m-footer a { color: #c7d4e2; }
.m-footer-brand { color: #fff; font-weight: 800; font-size: 1.05rem; margin: 0 0 10px; }
.m-footer-contact, .m-footer-links { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; font-size: .88rem; }
.m-footer-copy { font-size: .78rem; margin: 0; color: #93a5b8; }
