/* =========================================================
   Mobile page fixes — QA items 102–126
   Load after responsive.css
   ========================================================= */

@media (max-width: 768px) {
  /* 102 — Services hub card gaps */
  .build-services-list,
  .expertise-services-list {
    gap: 24px !important;
  }

  .page-services .expertise-section {
    padding-bottom: var(--section-padding-y-mobile) !important;
  }

  /* 103 — Industry experience images */
  .ind-experience__media,
  .industries-art {
    display: block !important;
    min-height: 0;
  }

  .ind-experience__media img,
  .industries-art img,
  .industries-photo {
    display: block !important;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
  }

  .ind-experience__grid {
    gap: 24px;
  }

  /* 104–106 — Mobile app development */
  .page-mobile-app .hero-benefits {
    padding: 32px 0 36px;
  }

  .page-mobile-app .service-details,
  .page-mobile-app .ma-tech-section,
  .page-mobile-app .ma-process-section,
  .page-mobile-app .ma-reasons-section,
  .page-mobile-app .ma-recognition-section,
  .page-mobile-app .ma-faq {
    padding-top: var(--section-padding-y-mobile);
    padding-bottom: var(--section-padding-y-mobile);
  }

  .page-mobile-app .ma-framework-section {
    padding-top: var(--section-padding-y-mobile);
    padding-bottom: var(--section-padding-y-mobile);
  }

  .page-mobile-app .ma-process-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 16px !important;
    margin-bottom: 0;
  }

  .page-mobile-app .ma-deliverables {
    margin-top: 4px;
  }

  .page-mobile-app .section-cta-center {
    margin-top: 28px;
  }

  /* 107–108 — Ecommerce */
  .page-ecommerce {
    --ec-band-pad: 40px;
    --ec-inner-gap: 28px;
    --ec-head-gap: 24px;
  }

  .page-ecommerce .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-ecommerce .ec-band,
  .page-ecommerce .ec-intro-section {
    padding-top: var(--ec-band-pad);
    padding-bottom: var(--ec-band-pad);
  }

  .page-ecommerce .ec-intro-section {
    scroll-margin-top: calc(var(--header-clearance) + 12px);
  }

  .page-ecommerce .client-testi-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    max-width: none;
    margin-left: -4px;
    margin-right: -4px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .page-ecommerce .client-testi-grid > .client-testi-card {
    flex: 0 0 min(88vw, 320px);
    scroll-snap-align: start;
    min-width: min(88vw, 320px);
  }

  .page-ecommerce .ec-band-cta {
    margin-top: 16px;
  }

  /* 110–113 — Web application development */
  .page-web-app .wa-problem-section,
  .page-web-app .wa-timeline-section,
  .page-web-app .wa-case-section,
  .page-web-app .wa-why-section,
  .page-web-app .wa-faq-section {
    padding-top: var(--section-padding-y-mobile);
    padding-bottom: var(--section-padding-y-mobile);
  }

  .page-web-app .section-sub,
  .page-web-app .section-sub.center {
    font-size: 14px;
    line-height: 1.65;
  }

  .page-web-app .wa-metric strong {
    font-size: 20px;
  }

  .page-web-app .wa-metrics-bar {
    gap: 12px;
    margin-top: 24px;
  }

  .page-web-app .wa-metric {
    padding: 14px 10px;
  }

  /* 114–115 — Website development */
  .page-website-development .wd-matters-section,
  .page-website-development .wd-timeline-section,
  .page-website-development .wd-overview-section,
  .page-website-development .wd-portfolio-section,
  .page-website-development .wd-texas-section,
  .page-website-development .wd-faq-section {
    padding-top: var(--section-padding-y-mobile);
    padding-bottom: var(--section-padding-y-mobile);
  }

  .page-website-development .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-website-development .wd-texas-section {
    padding-top: calc(var(--section-padding-y-mobile) + 8px);
  }

  .page-website-development .wd-texas-grid {
    gap: 28px;
  }

  .page-website-development .wd-texas-visual img {
    min-height: 220px;
    object-fit: cover;
  }

  .page-career .portfolio-cta-copy {
    text-align: center;
    align-items: center;
  }

  /* 118 — About hero spacing */
  .about-hero {
    min-height: auto !important;
    padding-bottom: 40px;
  }

  .about-hero .hero-content {
    padding-bottom: 0;
  }

  /* 120 — Client testimonial horizontal scroll + arrows space */
  .page-about .client-testi-grid,
  .client-testimonials .client-testi-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    max-width: none;
    padding-bottom: 8px;
  }

  .page-about .client-testi-grid > .client-testi-card,
  .client-testimonials .client-testi-grid > .client-testi-card {
    flex: 0 0 min(88vw, 340px);
    scroll-snap-align: start;
    min-width: min(88vw, 340px);
  }

  .client-testi-slider-wrap {
    position: relative;
  }

  .client-testi-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
  }

  .client-testi-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  /* 121 — Blog filter tab shadow */
  .blog-filter-btn.active {
    box-shadow: none;
  }

  /* 122 — Blog post responsive */
  .page-blog-post .blog-post-main,
  .page-blog-post .blog-post-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-blog-post .blog-article,
  .page-blog-post .entry-content {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .page-blog-post .blog-article img,
  .page-blog-post .entry-content img,
  .page-blog-post .blog-article iframe,
  .page-blog-post .entry-content iframe,
  .page-blog-post .blog-article table,
  .page-blog-post .entry-content table {
    max-width: 100%;
    height: auto;
  }

  .page-blog-post .blog-article table {
    display: block;
    overflow-x: auto;
  }

  .page-blog-post .blog-post-hero-banner {
    margin: 0 16px 24px;
    border-radius: 16px;
    overflow: hidden;
  }

  .page-blog-post .blog-post-hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 280px;
    object-fit: cover;
  }

  /* 124 — Contact hero */
  .contact-hero {
    min-height: auto !important;
    padding-bottom: 36px !important;
  }

  .contact-hero .hero-bg-infinity ~ .hero-content {
    padding-top: calc(var(--header-clearance) + 12px) !important;
    padding-left: 16px;
    padding-right: 16px;
  }

  .contact-hero .hero-title {
    font-size: var(--hero-title-size-mobile) !important;
    line-height: 1.15;
  }

  /* 126 — Case study walkthrough */
  .page-case-study .cs-walkthrough-section,
  .page-mobile-case-study .cs-walkthrough-section {
    padding-top: var(--section-padding-y-mobile);
    padding-bottom: var(--section-padding-y-mobile);
  }

  .page-case-study .cs-walkthrough-list,
  .page-mobile-case-study .cs-walkthrough-list {
    gap: 36px;
  }

  .page-mobile-case-study .cs-walkthrough-row,
  .page-case-study .cs-walkthrough-row {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .page-mobile-case-study .cs-walkthrough-media img,
  .page-case-study .cs-walkthrough-media img {
    width: 100% !important;
    height: auto !important;
    max-height: min(72vh, 520px);
    object-fit: contain;
    justify-self: center;
  }

  /* FAQ plus icon overlap — all pages */
  .faq-item summary {
    gap: 14px;
    align-items: flex-start;
    text-align: left;
  }

  .faq-item summary .plus {
    margin-left: auto;
    margin-top: 0;
    flex-shrink: 0;
  }
}
