/* ============================================================
   DATA DOCTOR HUB — PHASE 3 MOBILE CONTENT SIMPLIFICATION
   Six service pages | Mobile and tablet only (<= 1024px)
   Load AFTER mobile-service-creative.css
   Desktop styles remain 100% untouched.
   ============================================================ */

/* ------------------------------------------------
   STRICT DESKTOP ISOLATION
   Desktop (>= 768px) hides mobile-service-experience completely.
   ------------------------------------------------ */
@media (min-width: 768px) {
  .mobile-service-experience {
    display: none !important;
  }
}

@media (max-width: 767px) {

  /* 1. HERO: reorder into the reference's simple app-like composition */
  .mobile-service-experience .m-hero-section > .m-shell {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
    gap: 0;
  }

  .mobile-service-experience .m-hero-section .m-hud-badge {
    order: 1;
    align-self: flex-start;
    margin-bottom: 15px;
  }

  .mobile-service-experience .m-hero-section .m-hero-media-wrap {
    order: 2;
    margin: 0 0 21px;
  }

  .mobile-service-experience .m-hero-section .m-hero-title {
    order: 3;
    margin: 0 0 9px;
    font-size: clamp(30px, 8vw, 39px);
    line-height: 1.06;
    letter-spacing: -.05em;
  }

  .mobile-service-experience .m-hero-section .m-hero-desc {
    order: 4;
    margin: 0 0 16px;
    max-width: 500px;
    font-size: 14px;
    line-height: 1.55;
    /* Short, readable description */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }

  .mobile-service-experience .m-hero-section .m-highlights-grid {
    order: 5;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 8px;
    margin: 0 0 17px;
  }

  .mobile-service-experience .m-hero-section .m-highlight-item {
    min-width: 0;
    min-height: 78px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 7px;
    padding: 10px;
    border-radius: 15px;
    background: rgba(255,255,255,.76);
  }

  /* Show only three short highlights in the hero */
  .mobile-service-experience .m-hero-section .m-highlight-item:nth-child(n+4) {
    display: none !important;
  }

  .mobile-service-experience .m-hero-section .m-hl-icon {
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
  }

  .mobile-service-experience .m-hero-section .m-hl-text strong {
    font-size: 10px;
    line-height: 1.25;
  }

  .mobile-service-experience .m-hero-section .m-hl-text span {
    display: none;
  }

  .mobile-service-experience .m-hero-section .m-hero-actions {
    order: 6;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 0;
  }

  .mobile-service-experience .m-hero-section .m-btn-primary {
    min-height: 53px;
    border-radius: 17px;
    font-size: 14px;
  }

  .mobile-service-experience .m-hero-section .m-btn-wa {
    min-height: 46px;
    border-radius: 15px;
  }

  .mobile-service-experience .m-hero-media-card {
    border-radius: 23px;
    box-shadow: 0 13px 28px rgba(25,52,61,.10);
  }

  .mobile-service-experience .m-hero-img {
    aspect-ratio: 1.35 / 1;
    object-fit: cover;
  }

  .mobile-service-experience .m-media-tag {
    font-size: 9px;
    padding: 8px 10px;
  }

  /* 2. COMMON ISSUES: concise two-column layout */
  .mobile-service-experience #m-problems {
    padding-top: 34px;
    padding-bottom: 35px;
  }

  .mobile-service-experience #m-problems .m-section-desc {
    display: none;
  }

  .mobile-service-experience #m-problems .m-section-title {
    margin-bottom: 17px;
    font-size: 27px;
  }

  .mobile-service-experience #m-problems .m-problems-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px;
    border: 0;
    margin-top: 0;
  }

  .mobile-service-experience #m-problems .m-problem-card {
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(25,52,61,.07);
    border-radius: 16px;
    background: rgba(255,255,255,.75);
  }

  .mobile-service-experience #m-problems .m-problem-head {
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 8px;
  }

  .mobile-service-experience #m-problems .m-problem-badge {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    border-radius: 8px;
    font-size: 9px;
  }

  .mobile-service-experience #m-problems .m-problem-title {
    font-size: 11px;
    line-height: 1.35;
  }

  .mobile-service-experience #m-problems .m-problem-text {
    margin: 0;
    font-size: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  /* 3. REMOVE REPETITIVE TECHNICAL SECTIONS ON MOBILE */
  /* The mobile hero and common issues already explain the service.
     Keep long technical explanations and specs for desktop. */
  .mobile-service-experience .m-section:has(.m-tech-card),
  .mobile-service-experience .m-section:has(.m-specs-grid),
  .mobile-service-experience .m-section-tech,
  .mobile-service-experience .m-section-specs {
    display: none !important;
  }

  /* 4. KEEP ONE SHORT PROCESS SECTION */
  .mobile-service-experience .m-section:has(.m-process-timeline) {
    padding-top: 32px;
    padding-bottom: 34px;
  }

  .mobile-service-experience .m-section:has(.m-process-timeline) .m-section-desc {
    display: none;
  }

  .mobile-service-experience .m-process-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 15px;
  }

  .mobile-service-experience .m-process-timeline::before {
    display: none;
  }

  .mobile-service-experience .m-process-stage {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr);
    gap: 10px;
    padding: 11px;
    border-radius: 14px;
  }

  .mobile-service-experience .m-stage-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 10px;
  }

  .mobile-service-experience .m-stage-content strong {
    font-size: 12px;
  }

  .mobile-service-experience .m-stage-content p {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  /* 5. FAQ: short and tidy (maximum 3 questions shown on mobile) */
  .mobile-service-experience .m-section:has(.m-faq-list) {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .mobile-service-experience .m-section:has(.m-faq-list) .m-section-desc {
    display: none;
  }

  .mobile-service-experience .m-faq-list {
    gap: 7px;
    margin-top: 14px;
  }

  .mobile-service-experience .m-faq-item {
    border-radius: 13px;
  }

  .mobile-service-experience .m-faq-item:nth-child(n+4) {
    display: none !important;
  }

  .mobile-service-experience .m-faq-trigger {
    min-height: 50px;
    padding: 12px;
    font-size: 12px;
  }

  .mobile-service-experience .m-faq-answer {
    font-size: 11px;
    line-height: 1.55;
  }

  /* 6. LOCATION DETAILS: keep out of the main mobile flow.
     Intake/contact details remain available through header/footer/booking. */
  .mobile-service-experience .m-section:has(.m-lab-cards),
  .mobile-service-experience .m-section-labs {
    display: none !important;
  }

  /* 7. BOOKING: clear final action */
  .story-book {
    padding: 30px 0 38px !important;
  }

  .story-book-inner {
    padding: 19px !important;
    border-radius: 21px !important;
  }

  .story-book .story-title {
    font-size: 26px !important;
    line-height: 1.12 !important;
  }

  .story-book .story-desc {
    font-size: 12px !important;
    line-height: 1.55 !important;
  }

  /* 8. SMALL PHONE TUNING */
  @media (max-width: 380px) {
    .mobile-service-experience .m-hero-section .m-hero-title {
      font-size: 29px;
    }

    .mobile-service-experience #m-problems .m-problem-card {
      padding: 10px;
    }

    .mobile-service-experience #m-problems .m-problem-title {
      font-size: 10px;
    }

    .mobile-service-experience .m-hero-section .m-highlight-item {
      padding: 8px;
    }
  }

  /* 9. TABLET: keep the richer tablet layout */
  @media (min-width: 700px) and (max-width: 767px) {
    .mobile-service-experience .m-hero-section > .m-shell {
      display: grid !important;
      grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
      grid-template-areas:
        "badge media"
        "title media"
        "desc media"
        "highlights media"
        "actions media";
      align-items: center;
      gap: 10px 24px;
    }

    .mobile-service-experience .m-hero-section .m-hud-badge {
      grid-area: badge;
    }

    .mobile-service-experience .m-hero-section .m-hero-media-wrap {
      grid-area: media;
      margin: 0;
    }

    .mobile-service-experience .m-hero-section .m-hero-title {
      grid-area: title;
    }

    .mobile-service-experience .m-hero-section .m-hero-desc {
      grid-area: desc;
    }

    .mobile-service-experience .m-hero-section .m-highlights-grid {
      grid-area: highlights;
    }

    .mobile-service-experience .m-hero-section .m-hero-actions {
      grid-area: actions;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-service-experience *,
    .mobile-service-experience *::before,
    .mobile-service-experience *::after {
      animation: none !important;
      transition: none !important;
    }
  }
}
