/*
##################################################
#   Responsive — ordered like index.html          #
#   Header → Hero → About → Promo → Before/After  #
#   → Contact → Footer                            #
##################################################
*/

/* ==================================================
   Header + Hero
================================================== */
@media (max-width: 992px) {
  .brands-ticker,
  .logos-ticker {
    overflow: hidden;
    padding: 0px 0 !important;
  }

  .header {
    .navbar {
      height: 85px;

      .navbar-right {
        display: none;
      }
    }
  }

  .hero {
    .hero-content {
      left: 6%;
      right: 6%;
      max-width: none;

      h1 {
        font-size: 42px;
      }
    }
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    transition: all 0.3s ease;

    .navbar {
      height: 80px;

      .logo-wrapper .logo-img {
        width: 110px;
      }
    }
  }

  .hero-mobile {
    .hero-slider-mobile {
      height: 60vh;
    }

    .hero-content h1 {
      font-size: 28px !important;
    }
  }

  /* header turns fixed here, so the page hero needs to clear it */
  .hero-pages {
    padding-top: 140px;
  }
}

/* ==================================================
   About
================================================== */
@media (max-width: 991px) {
  .about-intro-section,
  .vision-mission-section {
    padding: 80px 0 70px;

    .about-images {
      min-height: auto;
      padding-bottom: 0;
      max-width: 520px;
      margin: 0 auto;
    }

    .about-img-main {
      height: 360px;
    }

    .about-img-secondary {
      height: 300px;
      margin-top: 50px;
    }

    .about-single-img {
      max-width: 560px;
      margin: 0 auto;

      img {
        height: 360px;
      }
    }

    .about-content {
      padding-left: 0;
      padding-right: 0;
      text-align: center;
      margin-top: 20px;

      .section-label {
        justify-content: center;
      }

      h2,
      p {
        margin-left: auto;
        margin-right: auto;
      }

      h2 {
        font-size: 34px;
      }
    }
  }

  [dir="rtl"] {
    .about-intro-section .about-content,
    .vision-mission-section .about-content {
      padding-right: 0;
    }
  }
}

@media (max-width: 575px) {
  .about-intro-section,
  .vision-mission-section {
    .about-images {
      grid-template-columns: 1fr;
      gap: 16px;
    }

    .about-img-main,
    .about-img-secondary {
      height: 280px;
      margin-top: 0;
    }

    .about-single-img {
      img {
        height: 280px;
      }
    }

    .about-content {
      h2 {
        font-size: 28px;
      }
    }
  }
}

/* ==================================================
   Promo video
================================================== */
@media (max-width: 991px) {
  .promo-video-section {
    min-height: 440px;
    padding: 100px 0;
    background-attachment: scroll;
  }
}

@media (max-width: 575px) {
  .promo-video-section {
    min-height: 380px;

    h2 {
      font-size: 30px;
    }

    .promo-video-button {
      width: 72px;
      height: 72px;
    }
  }
}

/* ==================================================
   Before & After (TwentyTwenty)
================================================== */
@media (max-width: 991px) {
  .before-after-section {
    .header-section {
      h2 {
        font-size: 30px;
        max-width: none;
      }
    }

    .section-desc {
      max-width: none;
    }
  }
}

/* ==================================================
   Contact
================================================== */
@media (max-width: 991px) {
  .contact-details-grid {
    margin-bottom: 60px;
  }

  .contact-map-box {
    margin-top: 15px;
  }
}

@media (max-width: 575px) {
  .contact-detail-card {
    min-height: 210px;
    padding: 30px;
  }

  .contact-form {
    input,
    textarea {
      padding-inline: 16px;
    }
  }
}

/* ==================================================
   Footer
================================================== */
@media (max-width: 991px) {
  footer#footer,
  footer.site-footer {
    background-attachment: scroll;
  }

  .footer-main {
    padding: 54px 0 18px;
  }
}

@media (max-width: 575px) {
  .footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }
}

/* ==================================================
   Inner pages
================================================== */
@media (max-width: 991px) {
  .hero-pages {
    min-height: 46vh;

    h1 {
      font-size: 40px;
    }
  }

  .page-sidebar {
    position: static;
    margin-top: 20px;
  }

  .entry-image {
    img {
      height: 340px;
    }
  }
}

@media (max-width: 575px) {
  .hero-pages {
    min-height: 40vh;

    h1 {
      font-size: 30px;
    }

    .breadcrumb-item,
    .breadcrumb li {
      font-size: 15px !important;
    }
  }

  .entry-image {
    img {
      height: 240px;
    }
  }

  .content-block {
    h3 {
      font-size: 25px;
    }
  }

  .gallery-item {
    height: 240px;
  }

  .gallery-tabs {
    .nav-link {
      padding: 10px 20px;
      font-size: 13px;
    }
  }

  .brand-tile {
    padding: 22px 12px;

    .brand-tile-logo img {
      height: 44px;
    }
  }
}
