/* ==========================================================================
   SHARVESH PACKERS AND MOVERS - RESPONSIVE STYLESHEET
   Mobile-First & Fluid Responsive Design
   Tested: 320px, 360px (Galaxy A55/S20), 375px (iPhone SE), 390px (iPhone 14), 
           412px (Pixel), 768px (iPad), 992px, 1200px+
   ========================================================================== */

/* 1. GLOBAL MOBILE SAFETY & ZERO HORIZONTAL OVERFLOW */
html, body {
  overflow-x: hidden !important;
  max-width: 100%;
  width: 100%;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

section {
  overflow-x: clip;
  max-width: 100%;
}

/* 2. LARGE DESKTOPS (>= 1200px) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 86vh;
  }
}

/* 3. DESKTOPS & SMALL LAPTOPS (<= 1199.98px) */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .section-title {
    font-size: 2.1rem;
  }
  
  .about-main-img {
    height: 400px;
  }
}

/* 4. TABLETS & SMALL DESKTOPS (<= 991.98px) */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 60px 0 50px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-quote-card {
    margin-top: 35px;
    box-shadow: var(--shadow-lg);
  }
  
  .trust-strip {
    margin-top: 20px;
  }
  
  .trust-box-wrapper {
    padding: 20px 16px;
  }
  
  .about-image-wrapper {
    margin-bottom: 35px;
    padding: 0;
  }
  
  .about-main-img {
    height: 360px;
  }
  
  .about-exp-badge {
    bottom: 15px;
    padding: 14px 18px;
  }
  
  .about-exp-badge .number {
    font-size: 2.1rem;
  }
  
  .checklist-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .top-contact-bar .top-timing,
  .top-contact-bar .top-email {
    display: none;
  }
  
  /* Offcanvas Menu (Right to Left Slide) */
  .site-navbar .offcanvas {
    max-width: min(310px, 84vw);
    background: var(--white);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
    border-left: 1px solid var(--light-border);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .site-navbar .offcanvas-header {
    padding: 16px 20px;
    background: #FAFBFD;
  }

  .site-navbar .offcanvas-header .btn-close {
    font-size: 0.9rem;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
  }

  .site-navbar .offcanvas-header .btn-close:hover {
    background-color: rgba(230, 57, 70, 0.1);
  }

  .site-navbar .offcanvas-body {
    padding: 22px 20px;
  }
  
  .site-navbar .nav-link {
    padding: 12px 14px !important;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .site-navbar .nav-link:hover,
  .site-navbar .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-light);
    padding-left: 18px !important;
  }

  .site-navbar .nav-link.active::after {
    display: none;
  }

  .site-navbar .btn-primary-custom,
  .site-navbar .btn-secondary-custom {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.92rem;
  }
  
  .page-header-banner {
    padding: 50px 0 45px;
  }
  
  .page-header-banner h1 {
    font-size: 2.1rem;
  }
}

/* 5. MOBILE & SMALL TABLETS (<= 767.98px) */
@media (max-width: 767.98px) {
  /* Prevent row margin blowout on mobile */
  .row {
    --bs-gutter-x: 1rem;
  }

  .container, .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .floating-mobile-bar {
    display: none !important;
  }

  /* Hero Section */
  .hero-section {
    padding: 45px 0 40px;
  }

  .hero-section::before {
    width: 260px;
    height: 260px;
    right: -30px;
    top: -20px;
  }

  .hero-badge {
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    gap: 6px;
    max-width: 100%;
    white-space: normal;
    display: inline-flex;
    line-height: 1.35;
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: 1.95rem;
    line-height: 1.22;
    margin-bottom: 1rem;
    word-break: break-word;
  }

  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .hero-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .hero-action-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.92rem;
  }

  .hero-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }

  .hero-highlight-item {
    font-size: 0.86rem;
    gap: 8px;
  }

  .hero-quote-card {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  .hero-quote-card h3 {
    font-size: 1.3rem;
  }

  /* Typography */
  .section-title {
    font-size: 1.75rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
  }
  
  .section-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.8rem;
  }

  .section-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding: 5px 12px;
  }

  /* Trust Strip */
  .trust-strip {
    margin-top: -15px;
  }

  .trust-box-wrapper {
    padding: 16px 12px;
  }

  .trust-item {
    flex-direction: column;
    text-align: center;
    padding: 10px 4px;
    gap: 8px;
  }

  .trust-icon-box {
    margin: 0 auto;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .trust-item h4 {
    font-size: 0.88rem;
    margin-bottom: 2px;
  }

  .trust-item p {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  /* About Section */
  .about-image-wrapper {
    padding: 0;
    margin-bottom: 25px;
  }

  .about-main-img {
    height: 270px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
  }

  .about-exp-badge {
    position: static;
    margin-top: 14px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 18px;
    border-radius: var(--radius-md);
  }

  .about-exp-badge .number {
    font-size: 1.9rem;
  }

  .about-exp-badge .text {
    font-size: 0.82rem;
  }

  .about-value-card {
    padding: 24px 20px;
  }

  .about-value-icon {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }

  /* Service Section - Mobile Touch Swipe Carousel */
  .services-slider-mobile {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-padding: 0 16px;
    gap: 16px;
    padding: 10px 16px 22px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    scrollbar-width: none; /* Firefox */
  }

  .services-slider-mobile::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
  }

  .services-slider-mobile .service-slider-col {
    flex: 0 0 82% !important;
    max-width: 310px !important;
    min-width: 260px !important;
    scroll-snap-align: center;
    scroll-snap-stop: normal;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .services-slider-mobile .service-card {
    height: 100%;
    margin-bottom: 0;
    box-shadow: 0 8px 22px -4px rgba(17, 24, 39, 0.1);
    border: 1px solid var(--light-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .services-slider-mobile .service-img-wrap {
    height: 180px;
  }

  .services-slider-mobile .service-card-body {
    padding: 24px 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* Mobile Swipe Controls */
  .services-mobile-controls {
    display: flex !important;
  }

  .services-dots-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .services-dot {
    width: 7px;
    height: 7px;
    border-radius: 9999px;
    background: #CBD5E1;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .services-dot.active {
    width: 20px;
    background: var(--primary);
    border-radius: 9999px;
  }

  .featured-img-frame img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
  }

  .feature-pill-list li {
    padding: 12px;
    gap: 12px;
  }

  /* Process Section - Mobile Touch Swipe Carousel */
  .process-slider-mobile {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-padding: 0 16px;
    gap: 16px;
    padding: 10px 16px 20px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    scrollbar-width: none;
  }

  .process-slider-mobile::-webkit-scrollbar {
    display: none;
  }

  .process-slider-mobile .process-slider-col {
    flex: 0 0 82% !important;
    max-width: 310px !important;
    min-width: 260px !important;
    scroll-snap-align: center;
    scroll-snap-stop: normal;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .process-slider-mobile .process-card {
    height: 100%;
    margin-bottom: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  /* Process Mobile Swipe Controls */
  .process-mobile-controls {
    display: flex !important;
  }

  .process-dots-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .process-dot {
    width: 7px;
    height: 7px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .process-dot.active {
    width: 20px;
    background: var(--primary);
    border-radius: 9999px;
  }

  /* Process Cards */
  .process-card {
    padding: 24px 18px;
  }

  .process-step-num {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }

  /* Why Choose Us */
  .why-box {
    padding: 22px 18px;
  }

  /* Statistics */
  .stat-item {
    padding: 14px 8px;
  }

  .stat-counter {
    font-size: 2.1rem;
  }

  .stat-title {
    font-size: 0.9rem;
  }

  /* Testimonials Section - Mobile Touch Swipe Carousel */
  .testimonials-slider-mobile {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-padding: 0 16px;
    gap: 16px;
    padding: 10px 16px 22px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    scrollbar-width: none;
  }

  .testimonials-slider-mobile::-webkit-scrollbar {
    display: none;
  }

  .testimonials-slider-mobile .testimonial-slider-col {
    flex: 0 0 85% !important;
    max-width: 320px !important;
    min-width: 260px !important;
    scroll-snap-align: center;
    scroll-snap-stop: normal;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .testimonials-slider-mobile .testimonial-card {
    height: 100%;
    margin-bottom: 0;
    box-shadow: 0 8px 24px -4px rgba(17, 24, 39, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* Testimonials Mobile Swipe Controls */
  .testimonials-mobile-controls {
    display: flex !important;
  }

  .testimonials-dots-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .testimonial-dot {
    width: 7px;
    height: 7px;
    border-radius: 9999px;
    background: #CBD5E1;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .testimonial-dot.active {
    width: 20px;
    background: var(--primary);
    border-radius: 9999px;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 22px 18px;
  }

  /* Gallery Section - Mobile Touch Swipe Carousel */
  .gallery-slider-mobile {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-padding: 0 16px;
    gap: 16px;
    padding: 10px 16px 22px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    scrollbar-width: none;
  }

  .gallery-slider-mobile::-webkit-scrollbar {
    display: none;
  }

  .gallery-slider-mobile .gallery-item-col {
    flex: 0 0 85% !important;
    max-width: 320px !important;
    min-width: 260px !important;
    scroll-snap-align: center;
    scroll-snap-stop: normal;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .gallery-slider-mobile .gallery-item {
    height: 250px;
    box-shadow: 0 8px 24px -4px rgba(17, 24, 39, 0.15);
  }

  /* Gallery Mobile Swipe Controls */
  .gallery-mobile-controls {
    display: flex !important;
  }

  .gallery-dots-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 9999px;
    background: #CBD5E1;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .gallery-dot.active {
    width: 20px;
    background: var(--primary);
    border-radius: 9999px;
  }

  /* Gallery Filter Buttons */
  .gallery-filter-btn {
    font-size: 0.8rem;
    padding: 6px 14px;
    margin: 3px 2px;
  }

  /* Quote Form */
  .quote-form-card {
    padding: 22px 16px;
    border-radius: var(--radius-md);
  }

  /* Prevent Safari input zoom by ensuring 16px font-size */
  .form-control-custom,
  .form-select-custom,
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="date"],
  select {
    font-size: 16px !important;
  }

  /* Map Container */
  .map-container {
    height: 260px;
    border-radius: var(--radius-md);
  }

  .contact-info-card {
    padding: 18px 16px;
    border-radius: var(--radius-md);
  }

  /* Footer */
  .site-footer {
    padding: 50px 0 20px;
    text-align: left;
  }

  .site-footer h4 {
    font-size: 1.05rem;
    margin-bottom: 16px;
  }

  .footer-links a {
    font-size: 0.86rem;
    word-break: break-word;
  }

  .footer-contact-item {
    font-size: 0.86rem;
  }

  .footer-bottom {
    margin-top: 35px;
    padding-top: 20px;
  }

  /* Scroll To Top */
  .scroll-to-top {
    bottom: 20px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  /* Modals */
  .modal-dialog {
    margin: 12px;
  }
}

/* 6. EXTRA SMALL PHONES (<= 425px - Galaxy A55, iPhones, etc.) */
@media (max-width: 425px) {
  .hero-title {
    font-size: 1.72rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 5px 10px;
  }

  .navbar-brand-img {
    height: 38px;
  }

  .btn-primary-custom,
  .btn-secondary-custom,
  .btn-dark-custom {
    padding: 11px 16px;
    font-size: 0.88rem;
  }

  .stat-counter {
    font-size: 1.85rem;
  }

  .stat-title {
    font-size: 0.82rem;
  }

  .stat-desc {
    font-size: 0.72rem;
  }

  .gallery-item {
    height: 200px;
  }

  .trust-box-wrapper {
    padding: 14px 8px;
  }

  .trust-item {
    padding: 8px 2px;
  }

  .trust-icon-box {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .trust-item h4 {
    font-size: 0.82rem;
  }

  .trust-item p {
    font-size: 0.68rem;
  }

  .contact-btn-group {
    gap: 8px;
  }

  .contact-btn-group .btn {
    padding: 8px 6px !important;
    font-size: 0.78rem !important;
    gap: 4px;
  }
}

/* 7. MINIMUM SCREEN WIDTH (<= 330px) */
@media (max-width: 330px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .navbar-brand-img {
    height: 32px;
  }

  .hero-badge {
    font-size: 0.66rem;
  }

  .contact-btn-group .btn {
    padding: 7px 3px !important;
    font-size: 0.72rem !important;
    gap: 3px;
  }
}

/* 8. TOUCH & MOBILE INTERACTION FEEDBACK */
* {
  -webkit-tap-highlight-color: transparent;
}

@media (hover: none) and (pointer: coarse) {
  .btn:active {
    transform: scale(0.97) !important;
    transition: transform 0.1s ease !important;
  }
  
  .service-card:active,
  .about-value-card:active,
  .why-box:active,
  .process-card:active,
  .testimonial-card:active,
  .gallery-item:active,
  .contact-info-card:active {
    transform: scale(0.985) !important;
    transition: transform 0.12s ease !important;
  }
}
