/* ==========================================================================
   MOBILE / TABLET RESPONSIVE OVERRIDES
   Desktop styles (1366px+) are unchanged. All rules use max-width media queries.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tablet & mobile nav (992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  :root {
    --header-h: 88px;
  }

  .header__inner {
    gap: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header__logo img {
    width: min(200px, 42vw);
    height: auto;
  }

  .header__menu-dropdown-btn img {
    width: 18px;
    height: auto;
  }

  /* Solutions & Industry dropdown — full-width mobile panel */
  .solutions-nav,
  .industries-nav {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: 16px;
    right: 16px;
    width: auto;
    height: auto;
    max-height: calc(100dvh - var(--header-h) - 16px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-padding-bottom: 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    transform: translateX(0) translateY(-8px);
    border-radius: 20px;
    z-index: 120;
  }

  .solutions-nav.is-open,
  .industries-nav.is-open {
    transform: translateX(0) translateY(0);
  }

  .solutions-nav__inner {
    flex-direction: column;
    height: auto;
    min-height: 0;
    padding: 16px 16px max(32px, calc(16px + env(safe-area-inset-bottom, 0px)));
    gap: 20px;
    box-sizing: border-box;
  }

  .solutions-nav__main {
    padding: 0;
  }

  .solutions-nav__heading {
    font-size: clamp(22px, 5vw, 30px);
    line-height: 1.2;
  }

  .solutions-nav__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .solutions-nav__item {
    padding: 12px;
  }

  .solutions-nav__approach {
    flex: none;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 20px 20px 24px;
    border-radius: 16px;
    box-sizing: border-box;
  }

  .solutions-nav__approach-text {
    width: 100%;
    max-width: none;
  }

  .solutions-nav__approach-btn {
    margin-top: 20px;
  }

  .solutions-nav__approach-title {
    font-size: clamp(22px, 5vw, 28px);
  }

  /* Shared hero actions */
  .page-hero__actions,
  .mainhome-hero__actions,
  .about-hero .page-hero__actions {
    flex-wrap: wrap;
    gap: 12px;
  }

  .page-hero__actions .btn,
  .mainhome-hero__actions .btn {
    min-width: 0;
  }

  /* Reports page extra container padding fix */
  body[data-active-nav="reports"] .container {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  /* Grids with fixed min columns */
  .why-matters__grid,
  .what-is__grid,
  .quality-approach__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .industries__grid,
  .reports-industries__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .industries__grid .industry-card,
  .industries__grid .industry-card:nth-child(n+5),
  .reports-industries__grid .reports-industry-card,
  .reports-industries__grid .reports-industry-card:nth-child(n+5) {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Main Home — tablet (992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  body.home {
    overflow-x: clip;
    max-width: 100%;
  }

  body.home main {
    overflow-x: clip;
    max-width: 100%;
  }

  .mainhome-hero {
    overflow: visible;
  }

  .mainhome-hero__bg {
    height: 840px;
    min-height: 0;
    bottom: auto;
    padding-bottom: 0;
  }

  .mainhome-hero__grid {
    padding-top: 32px;
    gap: 32px;
    min-width: 0;
    max-width: 100%;
  }

  .mainhome-hero__title {
    white-space: normal;
    font-size: clamp(28px, 7vw, 40px);
    line-height: 1.15;
    margin-bottom: 10px;
  }

  .mainhome-hero__desc {
    font-size: clamp(17px, 4vw, 20px);
    margin-bottom: 28px;
  }

  .mainhome-hero__actions {
    margin-bottom: 40px;
  }

  .mainhome-hero__visual {
    position: relative;
    width: min(280px, 100%);
    max-width: 100%;
    aspect-ratio: 432 / 484;
    height: auto;
    margin: 0 auto 32px;
    transform: none;
    overflow: visible;
  }

  .mainhome-hero__photo--desktop {
    display: none !important;
  }

  .mainhome-hero__photo--mobile {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 35px;
  }

  .mainhome-hero__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    transform: none;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
  }

  .hero-pill,
  .hero-card,
  .hero-services {
    z-index: 2;
  }

  /* Hero overlays — scaled photo with room for cards inside visual bounds */
  .hero-pill {
    font-size: 7px;
    padding: 3px 6px;
    gap: 3px;
    border-radius: 16px;
  }

  .hero-pill img {
    width: 9px;
    height: 9px;
  }

  .hero-pill--top {
    left: auto;
    right: 0;
    top: 11%;
    width: auto;
    max-width: 42%;
    transform: translateX(38%);
  }

  .hero-pill--mid {
    left: auto;
    right: 0;
    top: 19%;
    width: auto;
    max-width: 44%;
    transform: translateX(38%);
  }

  .hero-card--industries {
    left: 0;
    top: 36%;
    width: 26%;
    height: 21%;
    min-height: 0;
    padding: 3px 6px;
    border-radius: 12px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-card--projects {
    left: auto;
    right: 0;
    bottom: 9%;
    top: auto;
    width: 28%;
    height: 22%;
    min-height: 0;
    padding: 4px 6px;
    border-radius: 12px;
    transform: translateX(50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-card strong {
    font-size: 15px;
    line-height: 1;
  }

  .hero-card--projects strong {
    font-size: 14px;
  }

  .hero-card span {
    font-size: 10px;
    margin-top: 1px;
    line-height: 1.15;
  }

  .hero-card--projects span {
    font-size: 9px;
    width: auto;
    line-height: 1.15;
  }

  .hero-services {
    left: 0;
    right: auto;
    transform: translateX(-32%);
    bottom: 6%;
    width: 62%;
    max-width: none;
    height: auto;
    min-height: 0;
    gap: 4px;
    padding: 5px 6px;
    border-radius: 8px;
  }

  .hero-service__bg {
    width: 20px;
    height: 20px;
  }

  .hero-service__icon {
    top: 5px;
    max-width: 11px;
    max-height: 9px;
  }

  .hero-service span {
    font-size: 9px;
    margin-top: 2px;
    line-height: 1.1;
  }

  .mainhome-solutions__title,
  .mainhome-trust__title,
  .mainhome-insights__title,
  .mainhome-industries__title,
  .mainhome-brands__title {
    font-size: clamp(28px, 6vw, 45px);
    line-height: 1.15;
  }

  .mainhome-solutions__desc,
  .mainhome-trust__desc,
  .mainhome-insights__desc,
  .mainhome-industries__desc {
    font-size: clamp(17px, 4vw, 22px);
  }

  /* Solution cards — text only on mobile, hide chart widgets */
  .mainhome-solutions .container {
    container-type: normal;
    overflow-x: visible;
  }

  .solutions-grid {
    width: 100%;
    max-width: 100%;
    transform: none;
    margin-bottom: 0;
    flex-shrink: 1;
  }

  .solution-card__visual {
    display: none;
  }

  .solution-card {
    min-height: 0 !important;
    height: auto !important;
    width: 100% !important;
    margin-right: 0 !important;
    flex-shrink: 1;
    padding: 28px 24px 24px;
  }

  .solution-card h3 {
    font-size: 18px;
    padding-top: 0;
  }

  .solution-card > p {
    max-width: none !important;
    font-size: 12px;
  }

  .mainhome-industry-card__body h3 {
    font-size: 18px;
  }

  .mainhome-industry-card__body p {
    font-size: 12px;
  }

  .trust-item__text h3 {
    font-size: 18px;
  }

  .trust-item__text p {
    font-size: 12px;
  }

  .insight-card h3 {
    font-size: 18px;
  }

  .insight-card p {
    font-size: 12px;
  }

  .mainhome-insights__grid {
    padding-left: 0;
    gap: 32px;
    max-width: 100%;
  }

  .insights-pagination {
    flex-wrap: nowrap;
    gap: 6px;
    max-width: 100%;
  }

  .insights-pagination__num {
    min-width: 0;
    width: 44px;
    height: 40px;
    padding: 0;
    font-size: 18px;
    flex-shrink: 0;
    border-radius: 12px;
  }

  .insights-pagination__arrow {
    width: 44px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
  }

  .insights-pagination__arrow img {
    width: 20px;
    height: 20px;
  }

  .solutions-grid,
  .mainhome-brands .brands__panel,
  .mainhome-brands .brands__grid {
    max-width: 100%;
  }

  .mainhome-brands .brands__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-card > img {
    width: 100%;
    height: auto;
    aspect-ratio: 534 / 314;
  }

  .insight-link img {
    width: 20px;
    height: 20px;
    max-width: 20px;
    flex-shrink: 0;
  }

  .mainhome-trust__panel {
    padding: 32px 24px 28px;
    border-radius: 24px;
  }

}

/* --------------------------------------------------------------------------
   Shared page heroes — tablet (992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .page-hero,
  .reports-hero.page-hero,
  .blog-hero {
    min-height: 0;
    padding-bottom: 48px;
    overflow: visible;
  }

  .about-hero.page-hero {
    min-height: 0;
    padding-bottom: 48px;
    overflow: hidden;
  }

  .page-hero__bg,
  .reports-hero .page-hero__bg,
  .about-hero .page-hero__bg,
  .blog-hero .page-hero__bg {
    height: auto;
    min-height: calc(100% + 60px);
    padding-bottom: 40px;
  }

  .hero__title,
  .reports-hero__title,
  .about-hero__title,
  .blog-hero__title {
    font-size: clamp(28px, 7vw, 40px);
    line-height: 1.15;
    padding-top: 0;
  }

  .hero__grid {
    padding-top: 0;
  }

  .hero__desc,
  .reports-hero__desc,
  .about-hero__desc,
  .blog-hero__desc {
    font-size: clamp(16px, 4vw, 20px);
  }

  .breadcrumb {
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* --------------------------------------------------------------------------
   About Us — tablet (992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .about-impact__bg,
  .about-values__bg {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    transform: none;
  }

  .about-values__bg {
    top: -20px;
    bottom: 20px;
    height: auto;
  }

  .about-values {
    overflow: hidden;
  }

  .about-values__inner {
    padding-top: 23px;
  }

  .about-impact__decor {
    overflow: hidden;
  }

  .about-values__decor {
    overflow: visible;
  }

  .about-impact__title,
  .about-story__content h2,
  .about-values__title {
    font-size: clamp(28px, 6vw, 40px);
    line-height: 1.15;
  }
}

/* --------------------------------------------------------------------------
   Contact — tablet (992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .contact-info__title {
    font-size: clamp(28px, 7vw, 42px);
    line-height: 1.15;
  }

  .contact-form__row {
    flex-direction: column;
    gap: 24px;
  }

  .contact-form__field,
  .contact-form__field--full {
    width: 100%;
  }

  .contact-form-panel {
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   Reports — tablet (992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .reports-latest__title,
  .reports-industries__title,
  .reports-trending__title {
    font-size: clamp(28px, 6vw, 40px);
    line-height: 1.15;
  }

  .report-featured {
    padding-top: 24px;
    padding-bottom: 24px;
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 100%;
  }

  .report-featured__media {
    margin-left: auto;
    margin-right: auto;
  }

  .report-card {
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   Data Collection — tablet (992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .quality-approach__title,
  .quality-approach__subtitle {
    font-size: clamp(28px, 6vw, 40px);
    line-height: 1.15;
  }

  .quality-approach__bg {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    transform: none;
    top: -20px;
    bottom: 20px;
    height: auto;
  }
}

/* --------------------------------------------------------------------------
   Mobile phones (640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  :root {
    --header-h: 76px;
  }

  .header__logo img {
    width: min(168px, 46vw);
  }

  .header__drawer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header.is-open .header__toggle {
    right: 16px;
  }

  .header__drawer-logo img {
    width: min(168px, 46vw);
  }

  .solutions-nav,
  .industries-nav {
    left: 12px;
    right: 12px;
    top: calc(var(--header-h) + 6px);
    max-height: calc(100dvh - var(--header-h) - 8px - env(safe-area-inset-bottom, 0px));
    padding-bottom: max(32px, env(safe-area-inset-bottom, 16px));
    border-radius: 16px;
  }

  .solutions-nav__inner {
    padding-bottom: max(40px, calc(20px + env(safe-area-inset-bottom, 0px)));
  }

  .solutions-nav__approach-btn {
    margin-bottom: 4px;
  }

  .solutions-nav__desc {
    font-size: 12px;
    line-height: 1.35;
  }

  /* Stack hero CTAs full width */
  .page-hero__actions,
  .mainhome-hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .page-hero__actions .btn,
  .mainhome-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* MainHome stats — single row on mobile */
  .mainhome-hero__stats {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px;
  }

  .mainhome-stat {
    min-width: 0;
    flex: 1 1 0;
    align-items: center;
    text-align: center;
  }

  .mainhome-stat strong {
    font-size: clamp(22px, 6.5vw, 32px);
    margin-bottom: 6px;
  }

  .mainhome-stat span {
    max-width: none;
    font-size: 11px;
    line-height: 1.2;
  }

  /* MainHome hero visual — small phones */
  .mainhome-hero__visual {
    width: min(268px, 100%);
  }

  .mainhome-hero__photo,
  .mainhome-hero__photo--mobile {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 35px;
  }

  .hero-card--projects {
    right: 0;
    bottom: 8%;
    transform: translateX(50%);
  }

  .hero-card--industries {
    left: -12%;
    transform: none;
  }

  .hero-pill--top {
    right: 0;
    top: 13%;
  }

  .hero-pill--mid {
    right: 0;
    top: 18%;
    transform: translateX(40%);
  }

  .hero-services {
    left: -11%;
    bottom: 18%;
    transform: none;
  }

  .hero-pill {
    font-size: 6px;
    padding: 2px 5px;
  }

  .hero-pill img {
    width: 8px;
    height: 8px;
  }

  .hero-card strong {
    font-size: 14px;
  }

  .hero-card--projects strong {
    font-size: 13px;
  }

  .hero-card span {
    font-size: 9px;
  }

  .hero-card--projects span {
    font-size: 8px;
  }

  .hero-services {
    width: 58%;
    gap: 3px;
    padding: 4px 5px;
  }

  .hero-service__bg {
    width: 18px;
    height: 18px;
  }

  .hero-service__icon {
    top: 4px;
    max-width: 10px;
    max-height: 8px;
  }

  .hero-service span {
    font-size: 8px;
  }

  /* Solution pages section titles */
  .why-matters__title,
  .what-is__title,
  .process__title,
  .industries__title,
  .quality-approach__title {
    font-size: 32px;
    line-height: 1.15;
  }

  .why-matters__desc,
  .what-is__desc,
  .process__desc,
  .industries__desc {
    font-size: 17px;
  }

  .why-matters__grid,
  .what-is__grid,
  .quality-approach__grid,
  .industries__grid,
  .reports-industries__grid {
    grid-template-columns: 1fr;
  }

  .why-card,
  .what-card,
  .quality-card {
    width: 100%;
  }

  /* Process steps */
  .process__item {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }

  .process__num {
    font-size: 40px;
  }

  .blog-card__title {
    font-size: clamp(20px, 5vw, 26px);
  }

  /* Footer */
  .footer {
    padding: 48px 0 32px;
  }

  .footer__bg {
    border-radius: 32px 32px 0 0;
  }

  .footer__grid {
    gap: 24px;
    margin-bottom: 0;
  }

  .footer__brand {
    width: 100%;
    max-width: none;
  }

  .footer__brand > a {
    margin-bottom: 16px;
  }

  .footer__brand > a img {
    height: auto;
    max-height: 72px;
  }

  .footer__brand p {
    margin-bottom: 16px;
  }

  .footer__social-wrap {
    gap: 14px;
    margin-left: -7px;
  }

  .footer__social-link,
  .footer__social-icon {
    width: 36px;
    height: 36px;
  }

  .footer__social-link svg,
  .footer__social-link img,
  .footer__social-icon svg {
    width: 22px;
    height: 22px;
  }

  .footer__social-link--facebook img {
    width: 44px;
    height: 44px;
  }

  .footer__aside {
    padding-top: 50px;
    gap: 24px;
    width: 100%;
  }

  .footer__links,
  .footer__contact {
    width: 100%;
  }

  .footer__contact li {
    width: 100%;
  }

  .footer__bottom {
    padding-top: 20px;
    margin-top: 24px;
  }

  .footer__copy {
    font-size: 15px;
  }

  .footer__links h3,
  .footer__contact h3 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .footer__links a,
  .footer__contact li,
  .footer__brand p {
    font-size: 15px;
  }

  .footer__links a {
    line-height: 1.8;
  }

  /* Brands / CTA shared */
  .brands__title,
  .cta__title {
    font-size: clamp(28px, 7vw, 40px);
    line-height: 1.15;
  }

  .brands__desc,
  .cta__desc {
    font-size: 17px;
  }

  .cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Small phones (480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .header__menu a,
  .header__menu-dropdown-btn {
    font-size: 16px;
  }

  .footer__newsletter {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .footer__newsletter input {
    width: 100%;
  }

  .footer__newsletter .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-newsletter__form,
  .blog-newsletter__form {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-newsletter__form input,
  .blog-newsletter__form input,
  .contact-newsletter__form .btn,
  .blog-newsletter__form .btn {
    width: 100%;
  }

  .insight-card h3 {
    font-size: 18px;
  }

  .insight-card p {
    font-size: 12px;
  }

  .report-card__title {
    font-size: clamp(18px, 5vw, 24px);
  }

  .trending-card h3 {
    font-size: clamp(20px, 5.5vw, 28px);
  }

  .mainhome-industries__grid .mainhome-industry-card {
    width: min(320px, 100%);
    height: auto;
    aspect-ratio: 320 / 190;
    min-height: 0;
    max-height: none;
    justify-self: center;
  }

  .insights-pagination {
    gap: 3px;
  }

  .insights-pagination__num {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 8px;
  }

  .insights-pagination__arrow {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .insights-pagination__arrow img {
    width: 14px;
    height: 14px;
  }
}

/* --------------------------------------------------------------------------
   Overflow safety — targeted, not global body hidden
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .mainhome-solutions,
  .mainhome-brands,
  .mainhome-industries,
  .mainhome-insights,
  .mainhome-trust,
  .mainhome-cta,
  .page-hero,
  .healthcare-hero,
  .healthcare-section,
  .about-hero,
  .about-impact,
  .about-story,
  .about-values,
  .quality-approach,
  .reports-latest,
  .reports-industries,
  .blog-listing {
    overflow-x: clip;
    max-width: 100%;
  }

  .solution-card,
  .insight-card,
  .report-card,
  .blog-card,
  .value-card,
  .mainhome-industry-card,
  .contact-form-panel {
    min-width: 0;
  }

  .container {
    min-width: 0;
  }

  .btn,
  .header__menu-dropdown-btn {
    min-height: 44px;
  }

  .what-card,
  .why-card,
  .quality-card {
    overflow: hidden;
  }
}

/* --------------------------------------------------------------------------
   Blog & reports featured blocks — mobile polish
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .blog-featured,
  .blog-featured__image {
    width: 100%;
    max-width: none;
  }

  .blog-featured__image {
    width: 100%;
    margin-left: 0;
  }

  .report-featured__media {
    width: 310px;
    max-width: 100%;
    height: auto;
    padding-bottom: 0;
  }

  .report-featured__media img {
    display: block;
    width: 100%;
    height: auto;
  }

  .trending-media,
  .trending-media--offset {
    height: auto;
    padding-bottom: 0;
  }

  .trending-media img,
  .trending-media--offset img {
    display: block;
    width: 100%;
    height: auto;
    position: static;
    top: auto;
  }
}

/* --------------------------------------------------------------------------
   Site-wide mobile typography — headings 19px, body text 13px
   Loaded last to unify all pages and sections on tablet/mobile.
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  :root {
    --mobile-heading-size: 19px;
    --mobile-body-size: 13px;
  }

  /* Section, hero, and card headings */
  main [class*='__title'],
  .page-hero [class*='__title'],
  .reports-hero [class*='__title'],
  .about-hero [class*='__title'],
  .blog-hero [class*='__title'],
  .mainhome-hero [class*='__title'],
  main [class*='__heading'],
  .cta__text h2,
  .footer__links h3,
  .footer__contact h3,
  .contact-card__title,
  .contact-form-panel__title,
  .why-card__body h3,
  .what-card__body h3,
  .approach-card h3,
  .value-card h3,
  .industry-card__body h3,
  .mainhome-industry-card__body h3,
  .reports-industry-card__body h3,
  .trust-item__text h3,
  .solution-card h3,
  .insight-card h3,
  .report-card__title,
  .report-featured__title,
  .blog-card__title,
  .blog-featured__title,
  .trending-card__title,
  .process__content h3,
  .consulting-process__content h3,
  .why-matters__content h3,
  .about-story__content h2,
  .contact-newsletter__text h2,
  .blog-newsletter__text h2,
  .solutions-nav__title,
  main article h3 {
    font-size: var(--mobile-heading-size) !important;
    line-height: 1.25;
  }

  /* Descriptions and supporting text under headings */
  main [class*='__desc'],
  .solutions-nav__desc,
  .page-hero [class*='__desc'],
  .reports-hero [class*='__desc'],
  .about-hero [class*='__desc'],
  .blog-hero [class*='__desc'],
  .mainhome-hero [class*='__desc'],
  main p[class*='__text'],
  .why-card__body p,
  .what-card__body p,
  .approach-card p,
  .value-card p,
  .industry-card__body p,
  .mainhome-industry-card__body p,
  .reports-industry-card__body p,
  .trust-item__text p,
  .solution-card > p,
  .insight-card p,
  .report-card__text,
  .blog-card__text,
  .blog-featured__text,
  .process__content p,
  .consulting-process__content p,
  .why-matters__content p,
  .about-story__content p,
  .cta__text p,
  .contact-info__desc,
  .contact-card__detail,
  .contact-newsletter__text p,
  .blog-newsletter__text p,
  .brands__desc,
  .cta__desc,
  .footer__brand p,
  .footer__links a,
  .footer__contact li,
  main article p:not(.trending-card__stat) {
    font-size: var(--mobile-body-size) !important;
    line-height: 1.4;
  }

  .reports-trending__grid .trending-card__stat.count-up {
    font-size: 22px !important;
    line-height: normal !important;
  }
}

/* --------------------------------------------------------------------------
   Site-wide mobile section spacing — uniform vertical rhythm (Services standard)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  :root {
    --mobile-section-space: 44px;
    --mobile-section-space-top: 32px;
  }

  main > section {
    padding-top: 0 !important;
    padding-bottom: var(--mobile-section-space) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Content sections — equal gap between every section */
  .why-matters,
  .what-is,
  .quality-approach,
  .process,
  .consulting-process,
  .industries,
  .reports-latest,
  .reports-industries,
  .reports-trending,
  .about-impact,
  .about-story,
  .about-values,
  .blog-listing,
  .blog-featured,
  .contact-main,
  .contact-newsletter,
  .blog-newsletter,
  .mainhome-solutions,
  .mainhome-industries,
  .mainhome-trust,
  .mainhome-insights,
  main.healthcare-page .healthcare-section,
  main .brands,
  .mainhome-brands,
  main .cta,
  .mainhome-cta {
    padding-top: var(--mobile-section-space-top) !important;
    padding-bottom: var(--mobile-section-space) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  body[data-active-nav="about"] main .brands {
    position: relative;
    z-index: 1;
  }

  .reports-latest {
    padding-top: 0 !important;
  }

  /* Trusted Brands feature — all pages, mobile only */
  .brands__feature {
    min-height: 330px;
  }

  .mainhome-hero__bg {
    height: 840px !important;
    min-height: 0 !important;
    bottom: auto !important;
  }

  /* Hero visuals — stop overlapping into the next section */
  .hero__visual img,
  .hero__collage {
    transform: none !important;
    margin-bottom: 0 !important;
  }

  .about-hero__visual {
    margin-top: -8px !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .about-hero__visual img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .blog-hero .breadcrumb {
    margin-bottom: 24px;
  }

  .blog-featured {
    margin-top: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   Reports page — hero bg (loads last to override shared hero rules)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .reports-hero .page-hero__bg {
    min-height: calc(100% + 40px) !important;
    padding-bottom: 20px;
    bottom: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Blog page — hero bg + listing clearance (loads last)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .blog-hero {
    position: relative;
    padding-bottom: 32px !important;
  }

  .blog-hero .page-hero__bg {
    top: 0 !important;
    bottom: 0 !important;
    height: auto !important;
    min-height: 100% !important;
    padding-bottom: 0 !important;
  }

  .blog-listing {
    position: relative;
    z-index: 2;
    padding-top: 44px !important;
  }
}

/* --------------------------------------------------------------------------
   Market Research — stop horizontal scroll on mobile (layout unchanged)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  body.page-template-template-market-research {
    overflow-x: clip;
    max-width: 100%;
  }

  body.page-template-template-market-research main {
    overflow-x: clip;
    max-width: 100%;
  }

  body.page-template-template-market-research .why-matters,
  body.page-template-template-market-research .process,
  body.page-template-template-market-research .industries,
  body.page-template-template-market-research .brands,
  body.page-template-template-market-research .cta {
    overflow-x: clip;
    max-width: 100%;
  }

  body.page-template-template-market-research .page-hero.hero {
    padding-bottom: 53px !important;
  }

  body.page-template-template-market-research .page-hero__wrap {
    padding-top: 18px;
  }

  body.page-template-template-market-research .breadcrumb {
    margin-bottom: 16px;
  }

  body.page-template-template-market-research .hero__grid {
    padding-top: 0 !important;
    gap: 16px;
  }

  body.page-template-template-market-research .hero__title {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  body.page-template-template-market-research .page-hero__bg {
    height: auto !important;
    min-height: calc(100% + 55px);
    padding-bottom: 55px;
  }

  body.page-template-template-market-research .hero__visual {
    padding-top: 0;
    margin-top: 0;
  }

  body.page-template-template-market-research .hero__visual,
  body.page-template-template-market-research .hero__visual img {
    max-width: 100%;
    transform: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

}

/* --------------------------------------------------------------------------
   Data Collection — mobile spacing + horizontal scroll fix
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  body.page-template-template-data-collection {
    overflow-x: clip;
    max-width: 100%;
  }

  body.page-template-template-data-collection main {
    overflow-x: clip;
    max-width: 100%;
  }

  body.page-template-template-data-collection .page-hero,
  body.page-template-template-data-collection .what-is,
  body.page-template-template-data-collection .quality-approach,
  body.page-template-template-data-collection .industries,
  body.page-template-template-data-collection .brands,
  body.page-template-template-data-collection .cta {
    overflow-x: clip;
    max-width: 100%;
  }

  body.page-template-template-data-collection .hero__visual,
  body.page-template-template-data-collection .hero__visual img,
  body.page-template-template-data-collection .hero__collage {
    max-width: 100%;
  }

  body.page-template-template-data-collection .quality-approach__grid {
    row-gap: 6px;
  }

}

/* --------------------------------------------------------------------------
   Social Research — mobile spacing + horizontal scroll fix
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  body.page-template-template-social-research {
    overflow-x: clip;
    max-width: 100%;
  }

  body.page-template-template-social-research main {
    overflow-x: clip;
    max-width: 100%;
  }

  body.page-template-template-social-research .page-hero,
  body.page-template-template-social-research .what-is,
  body.page-template-template-social-research .why-matters,
  body.page-template-template-social-research .industries,
  body.page-template-template-social-research .brands,
  body.page-template-template-social-research .cta {
    overflow-x: clip;
    max-width: 100%;
  }

  body.page-template-template-social-research .hero__visual,
  body.page-template-template-social-research .hero__visual img,
  body.page-template-template-social-research .hero__collage {
    max-width: 100%;
  }

  body.page-template-template-social-research .page-hero__bg {
    min-height: calc(100% + 90px) !important;
    padding-bottom: 90px;
  }

  body.page-template-template-social-research .what-is {
    padding-top: calc(var(--mobile-section-space-top) + 20px) !important;
  }
}

/* --------------------------------------------------------------------------
   Business Consulting — mobile hero bg height
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  body.page-template-template-business-consulting .page-hero__bg {
    min-height: calc(100% + 55px) !important;
    padding-bottom: 55px;
  }
}

/* --------------------------------------------------------------------------
   Reports — horizontal scroll fix (mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  body.page-template-template-reports,
  body[data-active-nav="reports"] {
    overflow-x: clip;
    max-width: 100%;
  }

  body.page-template-template-reports main,
  body[data-active-nav="reports"] main {
    overflow-x: clip;
    max-width: 100%;
  }

  body.page-template-template-reports .reports-hero,
  body.page-template-template-reports .reports-latest,
  body.page-template-template-reports .reports-industries,
  body.page-template-template-reports .reports-trending,
  body.page-template-template-reports .brands,
  body.page-template-template-reports .cta,
  body[data-active-nav="reports"] .reports-hero,
  body[data-active-nav="reports"] .reports-latest,
  body[data-active-nav="reports"] .reports-industries,
  body[data-active-nav="reports"] .reports-trending,
  body[data-active-nav="reports"] .brands,
  body[data-active-nav="reports"] .cta {
    overflow-x: clip;
    max-width: 100%;
  }

  body.page-template-template-reports .reports-hero__visual,
  body.page-template-template-reports .reports-hero__visual img,
  body[data-active-nav="reports"] .reports-hero__visual,
  body[data-active-nav="reports"] .reports-hero__visual img {
    max-width: 100%;
  }

  body.page-template-template-reports .reports-grid .report-card,
  body[data-active-nav="reports"] .reports-grid .report-card {
    min-height: 204px !important;
  }

  body.page-template-template-reports .reports-grid .report-card__media,
  body[data-active-nav="reports"] .reports-grid .report-card__media {
    height: 184px !important;
  }

  body.page-template-template-reports .reports-latest .container,
  body[data-active-nav="reports"] .reports-latest .container {
    padding-left: var(--gutter) !important;
    padding-right: var(--gutter) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.page-template-template-reports .reports-latest .report-featured,
  body[data-active-nav="reports"] .reports-latest .report-featured {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.page-template-template-reports .reports-latest .report-featured__media,
  body[data-active-nav="reports"] .reports-latest .report-featured__media {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.page-template-template-reports .reports-latest .reports-grid,
  body[data-active-nav="reports"] .reports-latest .reports-grid {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 640px) {
  body.page-template-template-reports .reports-grid .report-card,
  body[data-active-nav="reports"] .reports-grid .report-card {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  body.page-template-template-reports .reports-grid .report-card__media,
  body[data-active-nav="reports"] .reports-grid .report-card__media {
    width: 100% !important;
    height: 180px !important;
  }
}

/* --------------------------------------------------------------------------
   About Us — horizontal scroll fix (mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  html:has(body.page-template-template-about-us),
  html:has(body[data-active-nav="about"]) {
    overflow-x: clip;
    max-width: 100%;
  }

  body.page-template-template-about-us,
  body[data-active-nav="about"] {
    overflow-x: clip;
    max-width: 100%;
  }

  body.page-template-template-about-us main,
  body[data-active-nav="about"] main {
    overflow-x: clip;
    max-width: 100%;
  }

  body.page-template-template-about-us .page-hero,
  body.page-template-template-about-us .about-hero,
  body.page-template-template-about-us .about-impact,
  body.page-template-template-about-us .about-impact__decor,
  body.page-template-template-about-us .about-story,
  body.page-template-template-about-us .about-values,
  body.page-template-template-about-us .brands,
  body.page-template-template-about-us .brands__panel,
  body.page-template-template-about-us .brands__grid,
  body.page-template-template-about-us .cta,
  body[data-active-nav="about"] .page-hero,
  body[data-active-nav="about"] .about-hero,
  body[data-active-nav="about"] .about-impact,
  body[data-active-nav="about"] .about-impact__decor,
  body[data-active-nav="about"] .about-story,
  body[data-active-nav="about"] .about-values,
  body[data-active-nav="about"] .brands,
  body[data-active-nav="about"] .brands__panel,
  body[data-active-nav="about"] .brands__grid,
  body[data-active-nav="about"] .cta {
    overflow-x: clip;
    max-width: 100%;
  }

  body.page-template-template-about-us .about-hero__visual,
  body.page-template-template-about-us .about-hero__visual img,
  body[data-active-nav="about"] .about-hero__visual,
  body[data-active-nav="about"] .about-hero__visual img {
    max-width: 100%;
  }

  body.page-template-template-about-us .about-hero .breadcrumb,
  body[data-active-nav="about"] .about-hero .breadcrumb {
    margin-bottom: 0 !important;
  }

  body.page-template-template-about-us .about-values__grid,
  body[data-active-nav="about"] .about-values__grid {
    row-gap: 6px;
  }
}

/* --------------------------------------------------------------------------
   Industries section — mobile card sizing (all pages)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .industries__grid,
  .reports-industries__grid,
  .mainhome-industries__grid {
    justify-items: center;
  }

  .industry-card,
  .industry-card--row2,
  .industries__grid .industry-card:nth-child(n+5),
  .reports-industry-card,
  .reports-industry-card--row2,
  .reports-industries__grid .reports-industry-card,
  .reports-industries__grid .reports-industry-card:nth-child(n+5),
  .mainhome-industries__grid .mainhome-industry-card {
    width: min(320px, 100%);
    height: auto;
    aspect-ratio: 320 / 190;
    min-height: 0;
    max-height: none;
    justify-self: center;
  }

  .industry-card > img,
  .reports-industry-card > img,
  .mainhome-industry-card > img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    left: 0 !important;
    top: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  /* Per-industry focal points — minimize edge cropping on landscape cards */
  .industries__grid .industry-card:nth-child(1) > img,
  .reports-industry-card--ecommerce > img,
  .mainhome-industries__grid .mainhome-industry-card:nth-child(1) > img {
    object-position: 55% 35% !important;
  }

  .industry-card--bfsi > img,
  .reports-industry-card--bfsi > img,
  .mainhome-industries__grid .mainhome-industry-card:nth-child(2) > img {
    object-position: center 38% !important;
  }

  .industry-card--row2:not(.industry-card--healthcare):not(.industry-card--media):not(.industry-card--fmcg) > img,
  .reports-industry-card--real-estate > img,
  .mainhome-industries__grid .mainhome-industry-card:nth-child(5) > img {
    object-position: center 20% !important;
  }

  .industry-card--healthcare > img,
  .reports-industry-card--healthcare > img,
  .mainhome-industries__grid .mainhome-industry-card:nth-child(6) > img {
    object-position: center 32% !important;
  }

  .industry-card--fmcg > img,
  .reports-industry-card--fmcg > img,
  .mainhome-industries__grid .mainhome-industry-card:nth-child(8) > img {
    object-position: center 20% !important;
  }

  /* Why / What card grids — always show text on mobile (no tap reveal) */
  .why-card,
  .what-card {
    cursor: default;
  }

  .why-card__overlay,
  .what-card__overlay {
    opacity: 1;
    transition: none;
  }

  .why-card__body,
  .what-card__body {
    transform: translateY(0);
    opacity: 1;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Site-wide desktop section spacing — Services pages standard
   -------------------------------------------------------------------------- */
@media (min-width: 993px) {
  .what-is,
  .why-matters,
  .process,
  .consulting-process,
  .quality-approach,
  .industries,
  .about-story,
  .about-values,
  .reports-latest,
  .reports-industries,
  .reports-trending,
  .blog-listing,
  .blog-featured,
  .contact-main,
  .mainhome-solutions,
  .mainhome-industries,
  .mainhome-trust,
  .mainhome-insights {
    padding-bottom: var(--section-space) !important;
    margin-bottom: 0 !important;
  }

  .about-impact {
    padding-bottom: var(--section-space) !important;
    margin-bottom: 0 !important;
  }

  .quality-approach {
    padding-top: 0 !important;
    padding-bottom: var(--section-space) !important;
    margin-bottom: 0 !important;
  }

  main .brands {
    padding-bottom: var(--section-space-brands) !important;
    margin-bottom: 0 !important;
  }

  main .brands.mainhome-brands {
    padding-top: 30px !important;
    padding-bottom: calc(var(--section-space-brands) + 30px) !important;
    margin-bottom: 0 !important;
  }

  main .cta,
  .mainhome-cta,
  .contact-newsletter,
  .blog-newsletter {
    padding-bottom: var(--section-space-cta) !important;
    margin-bottom: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   Reports — report-card body spacing (mobile, loads last)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  body.page-template-template-reports .reports-grid .report-card__body,
  body[data-active-nav="reports"] .reports-grid .report-card__body {
    gap: 20px !important;
  }

  body.page-template-template-reports .reports-grid .report-card__body .report-badge--sm,
  body.page-template-template-reports .reports-grid .report-card__body .report-card__title,
  body.page-template-template-reports .reports-grid .report-card__body .report-card__text,
  body.page-template-template-reports .reports-grid .report-card__body .report-meta,
  body.page-template-template-reports .reports-grid .report-card__body .btn--download-sm,
  body[data-active-nav="reports"] .reports-grid .report-card__body .report-badge--sm,
  body[data-active-nav="reports"] .reports-grid .report-card__body .report-card__title,
  body[data-active-nav="reports"] .reports-grid .report-card__body .report-card__text,
  body[data-active-nav="reports"] .reports-grid .report-card__body .report-meta,
  body[data-active-nav="reports"] .reports-grid .report-card__body .btn--download-sm {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  body.page-template-template-reports .reports-industries,
  body[data-active-nav="reports"] .reports-industries {
    padding-top: calc(var(--mobile-section-space-top) - 10px) !important;
  }
}

/* --------------------------------------------------------------------------
   Reports page — desktop section spacing tweaks
   -------------------------------------------------------------------------- */
@media (min-width: 993px) {
  body.page-template-template-reports .reports-latest,
  body[data-active-nav="reports"] .reports-latest {
    padding-bottom: calc(var(--section-space) - 20px) !important;
  }

  body.page-template-template-reports .reports-industries,
  body[data-active-nav="reports"] .reports-industries {
    padding-bottom: calc(var(--section-space) - 20px) !important;
  }

  body.page-template-template-reports .reports-trending,
  body[data-active-nav="reports"] .reports-trending {
    padding-bottom: calc(var(--section-space) - 10px) !important;
  }

  body.page-template-template-reports .reports-hero .breadcrumb,
  body[data-active-nav="reports"] .reports-hero .breadcrumb {
    margin-bottom: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   Industry pages — mobile (all templates use main.healthcare-page)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  body:has(main.healthcare-page) {
    overflow-x: clip;
    max-width: 100%;
  }

  main.healthcare-page {
    overflow-x: clip;
    max-width: 100%;
  }

  main.healthcare-page .healthcare-section,
  main.healthcare-page .brands,
  main.healthcare-page .cta {
    overflow-x: clip;
    max-width: 100%;
  }

  main.healthcare-page .healthcare-hero.page-hero {
    min-height: 0;
    padding-bottom: 53px !important;
    overflow: visible;
  }

  main.healthcare-page .healthcare-hero__wrap {
    padding-top: 18px;
  }

  main.healthcare-page .healthcare-hero .breadcrumb {
    margin-bottom: 16px;
  }

  main.healthcare-page .healthcare-hero__grid {
    padding-top: 0 !important;
    gap: 16px;
  }

  main.healthcare-page .healthcare-hero__title {
    padding-top: 0 !important;
    margin-top: 40px !important;
    font-size: clamp(28px, 7vw, 40px);
    line-height: 1.15;
  }

  main.healthcare-page .healthcare-hero__desc {
    font-size: clamp(16px, 4vw, 20px);
    max-width: none;
    margin-bottom: 28px;
  }

  main.healthcare-page .healthcare-hero .page-hero__bg {
    height: auto !important;
    min-height: calc(100% + 55px);
    padding-bottom: 55px;
  }

  main.healthcare-page .healthcare-hero__visual {
    padding-top: 0;
    margin-top: 0;
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }

  main.healthcare-page .healthcare-hero__visual img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    transform: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    max-height: none;
    object-fit: contain;
  }

  main.healthcare-page .healthcare-hero__actions {
    width: 100%;
  }

  main.healthcare-page .healthcare-section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }

  main.healthcare-page .healthcare-section__title {
    font-size: 32px;
    line-height: 1.15;
  }

  main.healthcare-page .healthcare-section__desc {
    font-size: 17px;
    max-width: 100%;
  }

  main.healthcare-page .healthcare-solution-card {
    min-width: 0;
  }

  main.healthcare-page .healthcare-usecase-card {
    min-height: 280px;
    min-width: 0;
  }

  main.healthcare-page .healthcare-why__grid {
    gap: 24px;
  }

  main.healthcare-page .healthcare-why__visual {
    max-width: 100%;
  }

  main.healthcare-page .healthcare-why__visual img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 640px) {
  main.healthcare-page .healthcare-usecase-card {
    min-height: 260px;
  }
}

/* --------------------------------------------------------------------------
   Main Home — mobile hero photo (loads last; preserve image border-radius)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  body.home .mainhome-hero__visual {
    overflow: visible !important;
  }

  body.home .mainhome-hero__photo.mainhome-hero__photo--mobile {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 35px !important;
  }
}

@media (max-width: 640px) {
  body.home .mainhome-hero__photo.mainhome-hero__photo--mobile {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
}
