/* =========================================
   THINKCODE MOBILE RESPONSIVE FIX
   Replace assets/css/mobile-fix.css with this file.
========================================= */

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

img,
svg,
video {
  max-width: 100%;
}

body {
  min-height: 100%;
}

body.menu-open {
  width: 100%;
  overscroll-behavior: contain;
}

a,
button {
  touch-action: manipulation;
}

.overflow-y-auto,
.overflow-x-auto,
.canvas-body,
.offcanvas-menu .canvas_center {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.section-hero .hero-image,
.section-page-title {
  background-attachment: scroll !important;
}

.offcanvas-menu {
  height: 100dvh !important;
  max-height: 100dvh !important;
}

.offcanvas-menu .offcanvas-content {
  min-height: 0;
}

.offcanvas-menu .offcanvas-content_wrapin {
  min-height: 0;
}

.offcanvas-menu .canvas_center {
  min-height: 0;
}

@media screen and (max-width: 991px) {
  .tf-header {
    padding-top: 24px !important;
    margin-bottom: -92px !important;
  }

  .tf-header .header-inner {
    margin-inline: 16px !important;
    padding: 8px 8px 8px 20px !important;
  }

  .section-hero .hero-image {
    background-attachment: scroll !important;
  }

  .cursor-trail {
    display: none !important;
  }

  #goTop {
    right: 16px !important;
    bottom: 18px !important;
  }
}

@media screen and (max-width: 767px) {
  html {
    scroll-padding-top: 96px;
  }

  .container,
  .tf-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .section-hero {
    min-height: auto !important;
    padding: 16px 16px 0 !important;
  }

  .section-hero .hero-image {
    inset: 16px 16px 0 16px !important;
    border-radius: 24px !important;
  }

  .section-hero .content-wrap {
    padding: 118px 0 88px !important;
    text-align: center !important;
  }

  .section-hero .content-wrap .sub {
    width: fit-content !important;
    max-width: calc(100vw - 72px) !important;
    padding: 7px 14px !important;
    margin-bottom: 24px !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }

  .section-hero .content-wrap .title {
    margin-bottom: 28px !important;
  }

  .section-hero .heading-title,
  .section-hero .title1,
  .section-hero .title2 span {
    font-size: clamp(38px, 11vw, 44px) !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
  }

  .section-hero .title2 {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    column-gap: 10px !important;
    row-gap: 8px !important;
    margin-top: 14px !important;
  }

  .section-hero .text {
    max-width: 32rem !important;
    margin: 0 auto 0 !important;
    padding: 0 6px !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
  }

  .section-hero .content-wrap .bot-btns,
  .bot-btns {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
    margin-top: 32px !important;
  }

  .bot-btns .tf-btn,
  .bot-btns .tf-btn-2 {
    width: min(100%, 264px) !important;
    justify-content: center !important;
    min-height: 56px !important;
  }

  .section-hero .scroll-more {
    width: min(320px, calc(100vw - 64px)) !important;
    height: 54px !important;
    gap: 12px !important;
    margin-top: 0 !important;
  }

  .heading-section .heading-title,
  .heading-title {
    font-size: clamp(32px, 10vw, 40px) !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
  }

  .section-about-us .heading-section {
    margin-bottom: 24px !important;
  }

  .section-about-us .col-left,
  .section-about-us .review-box,
  .section-about-us .box-quotes,
  .section-about-us .mission-box,
  .process-card {
    border-radius: 24px !important;
  }

  .section-about-us .col-left {
    padding-top: 40px !important;
  }

  .section-about-us .review-box,
  .section-about-us .box-quotes,
  .section-about-us .mission-box,
  .process-card {
    padding: 24px !important;
  }

  .section-about-us .box-quotes {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .section-about-us .box-quotes .image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
  }

  .features-center {
    display: none !important;
  }

  .features-wrap,
  .canvas_foot,
  .canvas_foot .right {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 20px !important;
  }

  .section-testimonials .col-lg-6:last-child {
    display: none !important;
  }
}

@media screen and (max-width: 374px) {
  .tf-header .header-inner {
    margin-inline: 12px !important;
    padding-left: 16px !important;
  }

  .section-hero {
    padding-inline: 10px !important;
  }

  .section-hero .hero-image {
    inset-inline: 10px !important;
  }

  .section-hero .content-wrap .sub {
    max-width: calc(100vw - 48px) !important;
    font-size: 14px !important;
  }

  .section-hero .heading-title,
  .section-hero .title1,
  .section-hero .title2 span {
    font-size: clamp(34px, 10.5vw, 38px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .cursor-trail {
    display: none !important;
  }
}
