/* Harbal – phone-only corrections (2026-12-05).
   Every rule sits inside the phone breakpoint used across the site (760px), so desktop and laptop are unaffected. */
@media (max-width: 760px) {

  /* ---------- Homepage: seven service cards over the owl video ---------- */
  /* the circular icon sits half outside the card; the card must not clip it */
  .owl-scroll a.os-card--service { overflow: visible !important; max-height: none !important; }
  .owl-scroll .os-card--service { padding-top: 24px; }
  .owl-scroll .os-card--service .os-title { line-height: 1.2; }
  .owl-scroll .os-card--service .os-body { margin-bottom: 0; }

  /* ---------- SEO page: SEO / AEO / GEO cards as a compact swipe row ---------- */
  .sp-intro-cards {
    display: flex !important; grid-template-columns: none !important;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    gap: 12px !important; margin: 0 -24px; padding: 6px 24px 16px; scrollbar-width: none;
  }
  .sp-intro-cards::-webkit-scrollbar { display: none; }
  .sp-intro-cards > .sp-card-motion { flex: 0 0 84%; min-width: 0; scroll-snap-align: center; }
  .sp-intro-card { grid-template-columns: 1fr !important; height: 100%; align-content: start; }
  .sp-intro-card .sp-intro-image { width: 100%; aspect-ratio: 16 / 10; height: auto; border-bottom: 1px solid #e3e9f0; }
  .sp-intro-card .sp-intro-image img { width: 100% !important; height: 100% !important; object-fit: contain !important; object-position: 50% 50% !important; background: #fff; }
  .sp-intro-card .sp-intro-copy { width: auto; padding: 14px 16px 16px; }

  /* ---------- SEO page: service screenshots shown complete and readable ---------- */
  .hg-figure { margin-left: -10px; margin-right: -10px; }
  .hg-window { padding: 6px 5px 5px; }
  .hg-screen { aspect-ratio: auto !important; height: auto !important; }
  .hg-screen img { height: auto !important; max-height: none !important; }
  /* enlarged view: show the screenshot at double size and let it pan sideways */
  .hs-lb-body { padding: 8px; -webkit-overflow-scrolling: touch; text-align: left; }
  .hs-lb-body img.hs-lb-img { width: 200% !important; max-width: none !important; height: auto !important; margin: 0 !important; }
  .hs-lb-body::before {
    content: "Drag sideways to see the whole screenshot"; position: sticky; left: 0; display: block;
    width: calc(96vw - 34px); margin-bottom: 6px; font: 600 12px/1.3 'Plus Jakarta Sans', sans-serif; color: #4A6A86; text-align: center;
  }

  /* ---------- About: founder portrait shown with less cropping ---------- */
  .founder-photo-block > img { height: auto !important; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15% !important; }
  .founder-photo-block .about-founder img { aspect-ratio: 1 / 1 !important; height: auto !important; object-fit: cover; }
}

/* ---------- Site-wide readability on phones and tablets (2026-12-05, round 2) ---------- */
/* small print raised to at least 11px wherever it was 8–10px */
@media (max-width: 1024px) {
  .hg-label, .hg-copy .hg-number, .hg-figure figcaption, .hc-showcase .hc-label,
  .pkg-head .pk-badge, .wm-note, .st > span { font-size: 11px !important; }
  .hg-footer p { font-size: 11px !important; line-height: 1.45; }
  .sp-intro-copy h2 small, h2 > small { font-size: 11px !important; }
}

/* ---------- Touch screens: every link and button at least ~40px tall to tap ---------- */
@media (pointer: coarse) {
  footer nav a { min-height: 40px; align-items: center; }
  footer span > a { display: inline-flex !important; align-items: center; min-height: 40px; }
  .pf-sw > button { min-height: 38px; padding-top: 0; padding-bottom: 0; }
  .hg-copy > a { display: inline-flex; align-items: center; min-height: 40px; }
  a.seo-terms-link { display: inline-flex; align-items: center; min-height: 40px; }
  /* carousel dots stay small to look at but get a larger invisible tap area */
  .svc-carousel .sc-dot { position: relative; }
  .svc-carousel .sc-dot::before { content: ""; position: absolute; left: -7px; right: -7px; top: -15px; bottom: -15px; }
}
