/* ===================================================
   V-Square Responsive CSS
   Polished Mobile Experience Version
   Breakpoints: Desktop, Tablet (768-991), Mobile (< 767)
   =================================================== */

/* ── Medium Layout: 992px – 1200px ── */
@media only screen and (min-width: 992px) and (max-width: 1200px) {
  .single-slide-item h2 {
    font-size: 42px;
  }
}

/* ── Tablet Layout: 768px – 991px ── */
@media only screen and (min-width: 768px) and (max-width: 991px) {

  .header-top-area,
  .header-top-area .text-right,
  .logo,
  .mainmenu ul,
  .single-slide-item {
    text-align: center;
  }

  .mainmenu-area .col-md-2 {
    width: 100%;
    margin-bottom: 20px;
  }

  .mainmenu-area .col-md-10 {
    width: 100%;
  }

  .mainmenu ul#navigation {
    display: block !important;
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .mainmenu ul#navigation li {
    display: inline-block !important;
    float: none !important;
  }

  .mainmenu ul#navigation li a {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }

  .single-slide-item h2 {
    font-size: 36px !important;
  }

  /* Stacking */
  .col-md-4,
  .col-sm-4 {
    width: 50%;
    float: left;
    margin-bottom: 30px;
  }

  .footer-wid {
    padding-top: 30px;
  }
}

/* ── Mobile Layout: ≤ 767px ── */
@media only screen and (max-width: 767px) {
  body {
    overflow-x: hidden;
    font-size: 14.28px;
    line-height: 1.6;
  }

  /* ── Header & Navigation ── */
  .header-top-area {
    display: none;
  }

  .mainmenu {
    display: none;
  }

  .logo {
    text-align: center;
    padding: 15px 0;
  }

  .logo img {
    max-height: 50px;
    width: auto;
  }

  /* Refined SlickNav */
  .responsive-menu-wrap {
    display: block;
    background: #fff;
    margin-top: 0;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
  }

  .slicknav_menu {
    background: transparent !important;
    padding: 5px 0 !important;
  }

  .slicknav_btn {
    background-color: #4f7fff !important;
    margin: 5px auto !important;
    float: none !important;
    display: inline-block !important;
  }

  .slicknav_nav {
    background: #222 !important;
    text-align: left;
    width: 100%;
    border-radius: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .slicknav_nav a {
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #333;
  }

  .slicknav_nav a:hover {
    background: #4f7fff !important;
    color: #fff !important;
  }

  /* ── Hero Slider ── */
  .homepage-slides-wrapper {
    margin-bottom: 30px;
  }

  .single-slide-item {
    height: 400px;
    text-align: center;
  }

  .single-slide-item h2 {
    font-size: 26px !important;
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
  }

  .single-slide-item p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
    padding: 0 10px;
  }

  .hero-content-wrap {
    padding: 25px 20px !important;
    border-radius: 15px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    /* Darker for better contrast */
    backdrop-filter: blur(5px);
  }

  .slide-btn {
    margin: 10px 5px !important;
    display: inline-block !important;
    font-size: 12px !important;
    padding: 8px 15px !important;
    width: auto !important;
    min-width: 140px !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    float: none !important;
  }

  /* ── Layout & Spacing ── */
  .factorian-content-block {
    padding: 25px 0;
  }

  /* Full-width stacking with better spacing */
  .col-md-4,
  .col-sm-4,
  .col-md-3,
  .col-md-5,
  .col-md-6,
  .col-md-12,
  .col-md-offset-1,
  .col-md-offset-2 {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .text-right {
    text-align: center !important;
  }

  .factorian-breadcroumb .text-right {
    text-align: center !important;
    margin-top: 5px;
  }

  /* Product & Service Cards */
  .single-boxed-item {
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  }

  .boxed-preview,
  .service-item-bg {
    height: 200px;
  }

  /* ── CTA Area ── */
  .factorian-cta-area {
    text-align: center;
    padding: 40px 20px;
  }

  .factorian-cta-area h2 {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .cta-btn {
    margin: 10px auto !important;
    display: block !important;
    width: 100%;
    max-width: 280px;
    padding: 12px 20px;
  }

  /* ── Images & Media ── */
  img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
  }

  iframe {
    width: 100% !important;
    height: 250px !important;
    border-radius: 10px;
  }

  /* ── Contact Form Refinements ── */
  .mobile-quote-header {
    background: #1a1a2e !important;
    padding: 20px !important;
    border-radius: 12px 12px 0 0 !important;
    margin-bottom: 0 !important;
  }

  .mobile-quote-header h4,
  .mobile-quote-header p {
    color: #fff !important;
    text-align: left !important;
    margin-left: 0 !important;
  }

  .get-quote-form {
    padding: 25px 20px !important;
    background: #fff !important;
    border: 1px solid #eee !important;
    border-top: none !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 12px 12px !important;
  }

  .get-quote-form input,
  .get-quote-form textarea {
    width: 100% !important;
    margin-bottom: 15px !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
    /* Prevents auto-zoom on iOS */
    border: 1px solid #ddd !important;
  }

  .get-quote-form input[type="submit"] {
    margin-top: 10px;
    padding: 15px !important;
    font-size: 15px;
    background: #4f7fff;
  }

  /* ── Footer ── */
  .footer-top-area {
    padding-top: 40px;
    padding-bottom: 20px;
  }

  .footer-wid {
    margin-bottom: 40px;
    text-align: center;
  }

  .footer-wid-title {
    margin-bottom: 20px !important;
  }

  .footer-wid-title::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .footer-wid ul {
    padding: 0;
    list-style: none;
  }

  .footer-logo {
    margin-bottom: 15px;
  }

  .footer-copyright-area {
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
  }
}

/* ── Wide Mobile View ── */
@media only screen and (min-width: 480px) and (max-width: 767px) {
  .col-sm-4 {
    width: 100%;
  }

  .single-slide-item h2 {
    font-size: 30px !important;
  }
}