/* Shared mobile corrections. Desktop styles and existing fonts are retained. */
@media (max-width: 767px) {
  /* Homepage section headings: same type scale for long and short titles. */
  .css-hero-section .css-hero-heading {
    font-size: clamp(28px, 7.2vw, 34px) !important;
    line-height: 1.2 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow-wrap: break-word;
  }
  .featured-clients-x30-section .featured-clients-x30-title,
  .portfolio-products-showcase-x27-section .portfolio-products-showcase-x27-title,
  .recent-projects-current-section .recent-projects-current-title,
  .ndv-caseflow-title,
  .ndv-whychoose-orbit-title,
  .gr-sec-title h2 {
    font-size: clamp(24px, 6.2vw, 30px) !important;
    line-height: 1.25 !important;
    height: auto !important;
    overflow-wrap: break-word;
  }
  .css-hero-section .css-hero-consultation-title {
    font-size: 25px !important;
    line-height: 1.25 !important;
  }

  /* Portfolio: use the homepage's compact mobile heading scale. */
  body:has(.view-portfolio-image) .page-title .title {
    font-size: clamp(28px, 7.2vw, 34px) !important;
    line-height: 1.2 !important;
    overflow-wrap: break-word;
  }
  body:has(.view-portfolio-image) :is(.sec-title h2, .home-title) {
    font-size: clamp(24px, 6.2vw, 30px) !important;
    line-height: 1.25 !important;
    overflow-wrap: break-word;
  }

  /* About: center just the process heading and subtitle on phones. */
  .features-section .mobile-about-process-title {
    width: 100%;
    text-align: center !important;
  }
  .features-section .mobile-about-process-title .sub-title {
    display: inline-block;
    text-align: center;
  }
  .features-section .mobile-about-process-title h2 {
    font-size: clamp(26px, 6.5vw, 30px) !important;
    line-height: 1.25 !important;
  }

  /* Landing: remove desktop form spacing and use a single column. */
  body:has(#landingpage1) .landing-auto-container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
  }
  body:has(#landingpage1) .landing-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-top: 24px !important;
  }
  body:has(#landingpage1) .landing-row > .testimonial-column {
    display: none; /* This column is empty in the supplied view. */
  }
  #landing-estimate {
    flex: 0 0 100%;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #landing-estimate > .inner-column {
    width: 100%;
    margin: 0 !important;
    padding: 24px 18px !important;
    box-sizing: border-box;
  }
  #landing-estimate .contact-form {
    padding: 0 !important;
    min-width: 0;
  }
  #landing-estimate .landing-campaign-heading {
    font-size: clamp(24px, 6.2vw, 28px) !important;
    line-height: 1.25 !important;
    margin-bottom: 14px !important;
  }
  #landing-estimate .landing-campaign-intro {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
  #landingpage1 > .row { margin-left: 0; margin-right: 0; }
  #landingpage1 > .row > .form-group {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 16px;
  }
  #landingpage1 .form-group label {
    font-size: 15px !important;
    line-height: 1.4 !important;
    margin-bottom: 7px;
  }
  #landingpage1 .form-group > input:not([type="hidden"]),
  #landingpage1 .form-group > select {
    width: 100% !important;
    height: 50px !important;
    padding: 10px 12px !important;
    font-size: 16px !important;
    line-height: normal !important;
    box-sizing: border-box;
  }
  #landingpage1 .css-contact-phone { height: 50px !important; }
  #landingpage1 .css-contact-phone > input {
    flex: 1 1 0;
    width: 0 !important;
    min-width: 0;
    height: 100% !important;
    padding: 0 10px !important;
    font-size: 16px !important;
  }
  #landingpage1 .css-country-toggle { font-size: 15px !important; }
  #landingpage1 .css-country-native:not(.css-country-enhanced) {
    width: 85px !important;
    padding: 0 6px !important;
    height: 100% !important;
    font-size: 15px !important;
  }
  #landingpage1 .css-country-panel {
    width: min(300px, calc(100vw - 70px));
    max-width: calc(100vw - 70px);
    box-sizing: border-box;
  }
  #landingpage1 #landingpageform,
  body:has(#landingpage1) .landing-mobile-estimate {
    font-size: 14px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    padding: 14px 12px !important;
    box-sizing: border-box;
  }
  #landingpage1 #landingpageform { width: 100%; min-height: 50px; }
  #landingpageform .btn-title,
  body:has(#landingpage1) .landing-mobile-estimate .btn-title {
    font-size: inherit !important;
    line-height: inherit !important;
    white-space: normal;
  }
  body:has(#landingpage1) :is(.sec-title h2, .lp-proof-faq h2) {
    font-size: clamp(24px, 6.2vw, 30px) !important;
    line-height: 1.25 !important;
    overflow-wrap: break-word;
  }
  /* Allow the long UI/UX banner to wrap instead of crossing the viewport. */
  body:has(#landingpage1) .about-section-two .content-column .theme-btn {
    display: flex;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    margin: 20px 0 !important;
    padding: 14px 16px !important;
    white-space: normal !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    box-sizing: border-box;
  }
  body:has(#landingpage1) .about-section-two .content-column .theme-btn .btn-title {
    white-space: normal !important;
    overflow-wrap: break-word;
    font-size: inherit !important;
    line-height: inherit !important;
  }
}
/* Homepage: reduce these two headings on mobile only */
@media (max-width: 767px) {
    .technology-partners-title,
    .delivery-process-title {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }
}