/* =========================================================
   TechnoPear - mobile / tablet fixes
   Loaded last on every page. Desktop (above 1000px) is untouched:
   every rule here lives inside a max-width media query.
   ========================================================= */

/* ---------- Tablets & phones (up to 1000px) ---------- */
@media screen and (max-width:1000px){

  /* safety net: media never wider than the screen */
  img, iframe, video{ max-width:100%; }
  html{ overflow-x:clip; }

  /* ----- Home: About block ----- */
  .whatwedo_bg{ height:auto; max-height:none; padding-bottom:50px; background-attachment:scroll; }
  .aboutsww-fixx{ width:auto; padding:70px 20px 0; }
  .boxabout-border{ width:auto; max-width:700px; box-sizing:border-box; }

  /* ----- Home: Mobile Apps block ----- */
  .tec_services, .mobileApps_part{ width:auto; padding:0 20px; box-sizing:border-box; }
  .mobileApps_leftcontent{ width:auto; float:none; }
  .mobileApps_rightimg{ float:none; width:100%; height:300px; background-size:contain; margin-top:20px; }

  /* ----- Home: portfolio thumbnails (5 per row -> 3) ----- */
  .proBox{ width:33.333%; }

  /* ----- Apps page ----- */
  .appCtnts, .appCtnts1{ width:auto; margin-left:20px; margin-right:20px; }
  .appPic, .appTxts{ width:100%; float:none; margin-right:0; }
  .appTxts{ padding-top:20px; }
  .appPic img{ max-width:360px; width:100%; height:auto; }
  .aapimg{ text-align:center; margin-top:20px; }

  /* ----- Contact form ----- */
  .contactc{ padding:0 20px; }
  .cintInout, .cintInoutaa{ width:100%; max-width:100%; box-sizing:border-box; }
  .catvchIpu{ width:100%; max-width:100%; }
  .catchaimgsec{ margin:15px 0; }

  /* ----- Long-text pages ----- */
  .cntsSectionaa{ width:auto; padding:0 20px; box-sizing:border-box; }

  /* ----- Website showcase slider (desig_web_develop) ----- */
  .mySlides{ width:auto !important; max-width:100%; background-size:cover; }
  .siteImg img{ max-width:100%; height:auto; }
  .siteDetail{ width:auto !important; max-width:100%; box-sizing:border-box; }

  /* ----- Flyer / hoarding galleries: swipe sideways inside the gallery,
           instead of the whole page scrolling sideways ----- */
  #content > .container{ overflow-x:auto; -webkit-overflow-scrolling:touch; }

  /* ----- Footer ----- */
  .homeFooter .contHead{ width:auto; max-width:800px; margin-left:20px; margin-right:20px; }
  .homeFooter p{ width:auto; max-width:400px; padding-left:20px; padding-right:20px; }
}

/* ---------- Phones (up to 767px) ---------- */
@media screen and (max-width:767px){

  /* Home: "What We Do" heading has an inline 70px size */
  #about h3.has-line{ font-size:44px !important; padding-top:30px !important; }
  .focus-description h3{ font-size:16px; line-height:1.6; }
  /* service tiles: 4 in a row -> 2 in a row */
  .focus-area{ width:47%; margin:0 1.5% 3%; box-sizing:border-box; }

  /* Home: About */
  .h5about{ font-size:15px; letter-spacing:2px; line-height:1.5; }
  .h4about{ font-size:32px; line-height:1.2; }
  .pabout{ font-size:15px; line-height:25px; }
  .boxabout-border{ padding:20px 15px 15px; }
  .boxabout-border ul li{ font-size:15px; line-height:25px; }

  /* Home: Mobile Apps */
  .tec_services h1{ font-size:48px; padding-top:50px; }
  .mobileApps_leftcontent h6{ font-size:22px; }
  .mobileApps_rightimg{ height:240px; }
  .btnPart{ display:inline-block; margin-right:10px; }

  /* Home: portfolio (3 per row -> 2) */
  .portfolio_head{ height:auto; }
  .portfolio_head h1{ font-size:56px; padding:35px 0; }
  .proBox{ width:50%; }

  /* Apps page */
  .appCtnts1{ margin-top:40px; }
  .appHead{ font-size:24px; line-height:28px; }

  /* "Our Overview" tab: keep clear of the page tabs underneath */
  .appsTabb, .appsTabb1, .appsTabb2{ top:72px; }

  /* Footer */
  .homeFooter .contHead{ font-size:24px; line-height:32px; }
  .homeFooter p{ font-size:16px; line-height:24px; }
  .homeFooter h2{ font-size:24px; }
}
