/**
 * Site-wide responsive refinements — mobile & tablet.
 * Loaded after style.css + extra.css; does not change desktop layout.
 */

/* --- Base: prevent horizontal scroll, room for fixed CTAs --- */
@media (max-width: 1023px) {
  body {
    padding-bottom: 120px;
  }
  img {
    height: auto;
  }
}

/* --- Mobile header / navigation --- */
@media (max-width: 1023px) {
  .nav-mbg {
    position: relative;
    z-index: 10040;
    text-align: center;
  }
  .sf-mheader-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px 52px 6px 12px;
    min-height: 58px;
  }
  .sf-mheader-logo {
    flex: 1;
    text-align: center;
  }
  .sf-mheader-logo img {
    max-height: 58px;
    width: auto;
    height: auto;
  }
  .nav-mobilebar {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 4px;
    cursor: pointer;
  }
  .nav-mobilebar img {
    max-height: 42px;
    width: auto;
    height: auto;
  }
  .sf-mheader-phones {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid #f0f0f0;
  }
  .sf-mheader-phone {
    flex: 1 1 50%;
    box-sizing: border-box;
    margin: 8px 0;
    padding: 0 6px;
    font-size: 14px;
  }
  .sf-mheader-phone i {
    color: #f79633;
    margin-right: 4px;
  }
  .phone a {
    word-break: break-word;
    font-size: 13px !important;
    line-height: 1.35;
    display: inline-block;
    padding: 4px 2px;
    margin: 2px 0;
  }
  .sf-mheader-book {
    padding: 4px 16px 14px;
  }
  .sf-mheader-book-btn {
    display: inline-block;
    padding: 12px 32px;
    color: #000 !important;
    font-size: 15px;
    font-family: "Roboto-Medium", Roboto, sans-serif;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    background-color: #fff;
    text-align: center;
    text-transform: uppercase;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    border: 2px solid #f79633;
    min-height: 44px;
    line-height: 1.35;
  }
  .sf-mheader-book-btn:hover,
  .sf-mheader-book-btn:focus {
    color: #000 !important;
    text-decoration: none;
    background-color: #fff8f0;
  }
  .sidenav {
    z-index: 10050;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
  }
  .sidenav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 12px 20px !important;
  }
  .sidenav .closebtn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .sf-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10045;
  }
  body.sf-nav-open {
    overflow: hidden;
  }
  body.sf-nav-open .sf-nav-backdrop {
    display: block;
  }
}

/* --- Footer --- */
@media (max-width: 767px) {
  /* Floating WA + phone buttons are enough on small screens */
  .ft-whatsapp {
    display: none !important;
  }
  .ft-bg {
    padding-bottom: 40px !important;
  }
  .copy-text {
    font-size: 11px !important;
    line-height: 1.5 !important;
    padding: 0 12px 16px !important;
    word-break: break-word;
  }
  #list5 ul li a,
  #list6 ul li a {
    display: block;
    padding: 6px 0;
    min-height: 36px;
    line-height: 1.4;
  }
  .sf-fixed-contact {
    bottom: 16px !important;
    right: 16px !important;
    width: 52px !important;
    height: 52px !important;
    font-size: 24px !important;
  }
  .sf-fixed-contact--phone {
    bottom: 78px !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .ft-whatsapp {
    font-size: 14px !important;
    padding: 8px 12px !important;
  }
  .copy-text {
    font-size: 12px !important;
    padding: 0 16px !important;
  }
}

/* --- Typography & sections --- */
@media (max-width: 767px) {
  h1 {
    font-size: 26px !important;
    line-height: 1.2 !important;
  }
  h2 {
    font-size: 22px !important;
    line-height: 1.25 !important;
  }
  .inner-about h1,
  .inner-about .white {
    padding-top: 60px !important;
    padding-bottom: 20px !important;
  }
  .p-t140 {
    padding-top: 70px !important;
  }
  .mt-80 {
    margin-top: 32px !important;
  }
  .mb-80 {
    margin-bottom: 32px !important;
  }
  .form-box {
    padding: 24px 16px !important;
  }
  .input-foam,
  .inputtext-foam,
  .demoInputBox,
  select.input-foam {
    font-size: 16px !important; /* prevents iOS zoom on focus */
    min-height: 48px;
    height: auto;
  }
  .inputtext-foam {
    min-height: 120px;
    height: auto;
  }
  .btn-moreservices a {
    padding: 14px 24px !important;
    font-size: 14px !important;
    display: inline-block;
    min-height: 44px;
    line-height: 1.3;
  }
  .btn-booking a,
  .btn-contact a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* --- Service / appliance grids --- */
@media (max-width: 767px) {
  .pd-box {
    margin-bottom: 20px;
  }
  .blog-box .overlay {
    padding: 16px 12px !important;
  }
  .blog-box h4 {
    font-size: 15px !important;
  }
}

/* --- Tables (e.g. fixing.php) --- */
@media (max-width: 1023px) {
  .middle table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-div1 {
    margin-bottom: 16px;
  }
}

/* --- Hero slider: FA6 arrow glyphs --- */
@media (max-width: 1023px) {
  .hero-slider .slide-title,
  .hero-slider .slide-text,
  .hero-slider .slide-btns {
    max-width: 92%;
    padding: 0 8px;
  }
}

/* --- Map embed --- */
@media (max-width: 767px) {
  iframe[src*="google.com/maps"] {
    min-height: 280px !important;
    height: 50vh !important;
  }
}

/* --- Rent details sidebar (already in style.css; reinforce) --- */
@media (max-width: 991px) {
  .rent-cat-list {
    scrollbar-width: thin;
  }
}

/* --- Service Areas tags --- */
@media (max-width: 767px) {
  .sf-service-areas-list a {
    font-size: 12px;
    padding: 4px 11px;
  }
}
