/* Mobile Optimization - RS Web Solutions */

/* Page SEO H1 - replaces inline style="font-size:24px; color:#155aba; margin:20px 0;" */
.page-seo-h1 {
  font-size: 24px;
  color: #155aba;
  margin: 20px 0;
}

@media (max-width: 767px) {
  /* Body background fix */
  body { background-color: #fff !important; }

  /* Typography */
  .commanhead { font-size: 22px; line-height: 28px; }
  .commanhead h1, .commanhead h2, .commanhead h3 { font-size: 22px; }
  .mainhomeheading .maincoreheading { font-size: 22px; line-height: 28px; }
  .subheads .sbuhead { font-size: 22px; }
  .heading-1 h1, .heading-1 .head { font-size: 22px; line-height: 28px; }

  /* Inner banner */
  #newinnerbanner { padding: 20px 15px !important; }
  #newinnerbanner h1 { font-size: 20px !important; line-height: 26px !important; }
  #newinnerbanner img { display: none !important; }

  /* Sections padding */
  #firstwraper { padding: 25px 0; }
  #contensectionnew { padding: 30px 0; }
  #seoprocesssecvtion { padding: 30px 0 100px; }
  #seoprocesssecvtionsd { padding: 30px 0; }
  #searchingineoptmized { padding: 30px 0 15px; }
  #sbs { padding: 30px 0 20px; }

  /* Row fixes - prevent horizontal overflow */
  .row, .row2, .rowaw { margin-left: 0; margin-right: 0; overflow: hidden; }
  [class*="col-"] { padding-left: 10px; padding-right: 10px; width: 100% !important; }

  /* Quick contact form fix */
  #quickcontactinnerpage .quickfroms { padding: 0 !important; }
  #quickcontactinnerpage .quickfroms input[type="submit"] { position: static; width: 100%; margin-top: 10px; }

  /* Feature boxes */
  .fetaquotes2 ul li { float: none !important; width: 100%; display: block; }
  .dmmarketbox { margin: 20px 0 10px; padding: 40px 15px 20px; }

  /* SEO process icons */
  .seoprocesssecvtioniocn ul li .seoproceiocn { width: 150px; height: 150px; padding: 15px; }
  .seoprocesssecvtioniocn ul li .seoproceiocn b { width: 120px; height: 120px; padding: 65px 0 0; }

  /* Get started section */
  #getstratedsection { padding: 25px 15px; }
  #getstratedsection .getinner .gethead { font-size: 18px; }
  #getstratedsection a span { font-size: 14px; }

  /* Fixed bottom buttons - make them look better */
  .fixedbutton { bottom: 0 !important; left: 0; right: 0; width: 100%; display: flex !important; }
  .fixedbutton a { flex: 1; margin: 0 !important; padding: 8px 5px !important; border-bottom: 0 !important; border-top: 3px solid #fbc026; width: auto !important; text-align: center; font-size: 12px; border-radius: 0 !important; }
  .fixedbutton a i { float: none !important; display: inline-block; width: 22px; height: 22px; line-height: 22px; font-size: 13px; }

  /* Blog section */
  #blogdetailspage .bannerdetails { float: none; width: 100%; margin: 0 0 15px; }

  /* Service cards */
  .mns, .mns-3 { padding: 10px 10px 10px 80px; min-height: 70px; border-radius: 40px; }

  /* Categories sidebar */
  .categories { margin-bottom: 20px; }

  /* Image inside getbusiness */
  #getthebussinussection { background-attachment: scroll; padding: 30px 0; }
  .getbussinusservices li { padding: 15px 0 15px 100px; }

  /* Why choose section */
  #whychoosesection { padding: 40px 15px 25px; background-attachment: scroll; }

  /* Testimonials */
  #forthwraper { padding: 30px 0; }

  /* Table responsive */
  .seotableport { overflow-x: auto; }
  .seotableport table { min-width: 400px; }

  /* New left panel form */
  .newlefpanelsection { margin-left: 0; }
  .newlefpanelsection .formmainhead { padding: 70px 20px 15px; }
  .newlefpanelsection .homenewpopinner { padding: 20px; }

  /* Portfolio */
  .portifoliosocial ul li { width: 100%; padding: 0 5px 10px; }

  /* Breadcrumb */
  #breadcrumssection { padding: 6px 10px; font-size: 12px; }

  /* Section headings center on mobile */
  .mainhomeheading { text-align: center; }
  .mainhomeheading .maincoreheading:after { left: 0; right: 0; margin: 0 auto; }

  /* Our services section fix */
  .ourservicessection { margin: 0; }
  .ourservicessection li { padding: 0 10px; margin-bottom: 30px; }

  /* Header inner banner fix */
  #facebookbanersection { height: 200px; }
  #facebookbanersection .facebookbanneroverlay .facebookbanerhead b { font-size: 16px; }

  /* Form width fix */
  .form-search { width: 100%; padding: 8px; }
  .form-control { width: 60%; }
  .form-search .input-group-addon { width: 40%; }

  /* Prevent sections from overflowing horizontally */
  section, .section, #main { overflow-x: hidden; }

  /* Header top bar hide */
  .hdr-topbar { display: none !important; }
}

@media (max-width: 480px) {
  /* Extra small screens */
  body { font-size: 13px; }
  .commanhead { font-size: 20px; line-height: 26px; }
  #newinnerbanner h1 { font-size: 18px !important; }
  .heading-1 h1 { font-size: 20px; }
  .mainhomeheading .maincoreheading { font-size: 20px; }

  /* Fix overflowing content */
  img { max-width: 100%; height: auto; }

  /* Tabs */
  .tabcordion { padding: 15px 0; }

  /* Buttons */
  .agetbutton { font-size: 15px; }
  .agetbutton span { padding: 8px 12px; }

  /* Quote form */
  #quickcontactinnerpage .quickcontactinner { padding: 30px 0 25px; }

  /* Footer (old classes) */
  .sociall { text-align: center; }
  .footercontent { padding: 15px 0; }
}

/* ===== FOOTER MOBILE RESPONSIVE FIXES =====
   Uses #site-footer specificity (1,1,0) to override base .ftr-grid !important (0,1,0) */

@media (max-width: 991px) {
  #site-footer .ftr-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
}

@media (max-width: 767px) {
  #site-footer .ftr-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 15px !important;
  }
  #site-footer .ftr-main {
    padding: 30px 0 20px !important;
  }
  #site-footer .ftr-about {
    text-align: center;
  }
  #site-footer .ftr-social {
    justify-content: center !important;
    gap: 10px !important;
  }
  #site-footer .ftr-heading {
    display: block !important;
    font-size: 15px !important;
    margin-bottom: 12px !important;
  }
  #site-footer .ftr-links li a {
    padding: 5px 0 !important;
    min-height: 40px !important;
  }
  #site-footer .ftr-contact-list li {
    margin-bottom: 12px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  #site-footer .ftr-bottom-inner {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    gap: 8px !important;
  }
  #site-footer .ftr-bottom-links {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
}

@media (max-width: 480px) {
  #site-footer .ftr-grid {
    grid-template-columns: 1fr !important;
    padding: 0 12px !important;
    gap: 16px !important;
  }
  #site-footer .ftr-logo {
    max-width: 130px !important;
  }
  #site-footer .ftr-rating {
    justify-content: center !important;
  }
  #site-footer .ftr-bottom-inner span {
    font-size: 12px !important;
  }
  #site-footer .ftr-bottom-links a {
    font-size: 12px !important;
  }
}
