/* =================================================================
   mobile-fixes.css  — Loaded LAST on all pages to win specificity.
   These rules override inline <style> blocks on service pages.
   ================================================================= */

/* --- Service Pages: Mobile Sidebar & Layout (<=991px) -------------
   1. Hide "Our Logistics Services" navigation card on mobile.
   2. Show main content first, Hubs card second (after content).
   ----------------------------------------------------------------- */
@media (max-width: 991.98px) {

  /* Hide the first sidebar card (Our Logistics Services nav list) */
  aside.sidebar-wrap > div.service-sidebar-card:first-child,
  .sidebar-wrap > .service-sidebar-card:first-of-type {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* Reorder columns: main content first, hubs sidebar second */
  section.service-detail-sec .row {
    display: flex !important;
    flex-direction: column !important;
  }

  section.service-detail-sec .col-lg-8 {
    order: 1 !important;
  }

  section.service-detail-sec .col-lg-4 {
    order: 2 !important;
  }

  /* Testimonial section: prevent horizontal bleed & responsive styling */
  .review-sec {
    overflow: hidden !important;
    padding: 55px 0 !important;
    max-width: 100vw !important;
  }

  .review-sec .review-thumb {
    min-height: 300px !important;
    height: 300px !important;
  }

  .testimonial-float-chip {
    max-width: calc(100% - 20px) !important;
  }

  .testimonial-float-chip.float-chip-top {
    left: 10px !important;
    top: 12px !important;
  }

  .testimonial-float-chip.float-chip-bottom {
    right: 10px !important;
    bottom: 12px !important;
  }

  .review-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .review-slider,
  .review-slider .swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .review-wrapper h2.sec-title {
    font-size: 1.6rem !important;
    letter-spacing: -0.015em !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  .modern-review-card {
    padding: 24px 20px 20px !important;
    border-radius: 20px !important;
  }
}

@media (max-width: 575.98px) {

  .review-sec {
    padding: 40px 0 !important;
  }

  .review-sec .review-thumb {
    min-height: 220px !important;
    height: 220px !important;
    border-radius: 16px !important;
  }

  .review-wrapper h2.sec-title {
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
  }

  .modern-review-card {
    padding: 18px 14px 14px !important;
    border-radius: 16px !important;
  }

  .modern-review-card::before {
    font-size: 38px !important;
    right: 10px !important;
    top: 10px !important;
  }

  .review-highlight-quote {
    font-size: 14.5px !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
    word-break: break-word !important;
  }

  .review-body-text {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
    word-break: break-word !important;
  }

  .review-author-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding-top: 14px !important;
  }

  .btn-review-video {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
  }

  .review-slider-controls {
    justify-content: center !important;
    margin-top: 14px !important;
  }

  .testimonial-float-chip {
    font-size: 10.5px !important;
    padding: 5px 10px !important;
    gap: 6px !important;
    max-width: calc(100% - 16px) !important;
  }

  .testimonial-float-chip.float-chip-top {
    left: 8px !important;
    top: 8px !important;
  }

  .testimonial-float-chip.float-chip-bottom {
    right: 8px !important;
    bottom: 8px !important;
  }

  .hub-contact-list {
    gap: 10px !important;
  }
}

/* =================================================================
   CTA SECTION — Laptop / Desktop View (min-width: 992px)
   Align "Connect with us" capsule pill to the left under action buttons.
   ================================================================= */
@media (min-width: 992px) {
  section.home-master-cta-sec .cta-box-wrapper,
  .home-master-cta-sec .cta-box-wrapper {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  section.home-master-cta-sec .cta-btn-group,
  .home-master-cta-sec .cta-btn-group {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
  }

  section.home-master-cta-sec .cta-socials-wrap,
  .home-master-cta-sec .cta-socials-wrap,
  .cta-socials-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 9px !important;
    background: rgba(2, 14, 42, 0.45) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    padding: 8px 18px !important;
    border-radius: 50px !important;
    margin-top: 16px !important;
    align-self: flex-start !important;
    width: auto !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18) !important;
  }

  section.home-master-cta-sec .cta-social-label,
  .home-master-cta-sec .cta-social-label,
  .cta-social-label {
    font-size: 11.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    margin-right: 4px !important;
  }

  section.home-master-cta-sec .cta-social-link,
  .home-master-cta-sec .cta-social-link,
  .cta-social-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.22) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.25s ease !important;
  }

  section.home-master-cta-sec .cta-social-link i,
  .home-master-cta-sec .cta-social-link i,
  .cta-social-link i {
    color: #ffffff !important;
    font-size: 14px !important;
    line-height: 1 !important;
  }

  .cta-social-link.yt:hover { background: #ff0000 !important; border-color: #ff0000 !important; }
  .cta-social-link.fb:hover { background: #1877f2 !important; border-color: #1877f2 !important; }
  .cta-social-link.ig:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important; border-color: transparent !important; }
  .cta-social-link.tt:hover { background: #000000 !important; border-color: #000000 !important; }
}

/* =================================================================
   CTA SECTION — Mobile Fix (<=991px, <=767px, <=575px)
   Stunning frosted capsule, full-width buttons, visible circular social icons.
   ================================================================= */
@media (max-width: 991.98px) {

  /* ── CTA box: full width, centered column layout ── */
  section.home-master-cta-sec,
  .home-master-cta-sec {
    padding: 50px 0 !important;
    text-align: center !important;
  }

  section.home-master-cta-sec .cta-box-wrapper,
  .home-master-cta-sec .cta-box-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 8px !important;
  }

  /* ── Button group: stack buttons vertically, full width ── */
  section.home-master-cta-sec .cta-btn-group,
  .home-master-cta-sec .cta-btn-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    gap: 12px !important;
  }

  /* ── Each button: full width ── */
  section.home-master-cta-sec .cta-btn-group .btn-cta-quote,
  section.home-master-cta-sec .cta-btn-group .btn-whatsapp-master,
  section.home-master-cta-sec .btn-cta-quote,
  section.home-master-cta-sec .btn-whatsapp-master,
  .btn-cta-quote,
  .btn-whatsapp-master {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 15px 22px !important;
    font-size: 15px !important;
    border-radius: 14px !important;
  }

  /* ── "Connect with us" pill: visible frosted dark-glass capsule ── */
  section.home-master-cta-sec .cta-socials-wrap,
  .home-master-cta-sec .cta-socials-wrap,
  .cta-socials-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 9px !important;
    background: rgba(2, 14, 42, 0.45) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    padding: 9px 18px !important;
    border-radius: 50px !important;
    margin-top: 18px !important;
    align-self: center !important;
    width: auto !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18) !important;
  }

  /* ── Label: uppercase, bold, white ── */
  section.home-master-cta-sec .cta-social-label,
  .home-master-cta-sec .cta-social-label,
  .cta-social-label {
    font-size: 11.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    margin-right: 4px !important;
  }

  /* ── Social icon buttons: clearly circular with high-contrast icon ── */
  section.home-master-cta-sec .cta-social-link,
  .home-master-cta-sec .cta-social-link,
  .cta-social-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.22) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.25s ease !important;
  }

  section.home-master-cta-sec .cta-social-link i,
  .home-master-cta-sec .cta-social-link i,
  .cta-social-link i {
    color: #ffffff !important;
    font-size: 14px !important;
    line-height: 1 !important;
  }

  /* ── Brand colors on hover / touch active ── */
  .cta-social-link.yt:hover, .cta-social-link.yt:active { background: #ff0000 !important; border-color: #ff0000 !important; }
  .cta-social-link.fb:hover, .cta-social-link.fb:active { background: #1877f2 !important; border-color: #1877f2 !important; }
  .cta-social-link.ig:hover, .cta-social-link.ig:active { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important; border-color: transparent !important; }
  .cta-social-link.tt:hover, .cta-social-link.tt:active { background: #000000 !important; border-color: #000000 !important; }
}

@media (max-width: 575.98px) {
  section.home-master-cta-sec .cta-socials-wrap,
  .home-master-cta-sec .cta-socials-wrap,
  .cta-socials-wrap {
    padding: 8px 14px !important;
    gap: 8px !important;
  }

  section.home-master-cta-sec .cta-social-label,
  .home-master-cta-sec .cta-social-label,
  .cta-social-label {
    font-size: 10.5px !important;
  }

  section.home-master-cta-sec .cta-social-link,
  .home-master-cta-sec .cta-social-link,
  .cta-social-link {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }

  section.home-master-cta-sec .cta-social-link i,
  .home-master-cta-sec .cta-social-link i,
  .cta-social-link i {
    font-size: 13px !important;
  }
}

/* =================================================================
   BANNER HEADINGS — Mobile Font Size Reduction (<=991px, <=767px, <=575px)
   Reduces huge banner titles on mobile so they fit gracefully without
   overwhelming the banner visual.
   ================================================================= */
@media (max-width: 991.98px) {
  section.promo-sec h1,
  section.promo-sec .display-2,
  section.promo-sec .promo-wrap h1,
  .promo-wrap h1,
  .promo-wrap .display-2,
  .page-banner-heading,
  .team-promo-banner h1,
  .contact-promo-banner h1,
  .page-promo-banner h1 {
    font-size: 28px !important;
    line-height: 1.22 !important;
  }
}

@media (max-width: 767.98px) {
  section.promo-sec {
    padding: 120px 0 50px !important;
  }
  section.promo-sec .promo-wrap {
    padding-left: 18px !important;
  }
  section.promo-sec .promo-wrap::before {
    width: 4px !important;
  }
  section.promo-sec h1,
  section.promo-sec .display-2,
  section.promo-sec .promo-wrap h1,
  .promo-wrap h1,
  .promo-wrap .display-2,
  .page-banner-heading,
  .team-promo-banner h1,
  .contact-promo-banner h1,
  .page-promo-banner h1 {
    font-size: 23px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    letter-spacing: -0.015em !important;
  }
}

@media (max-width: 575.98px) {
  section.promo-sec {
    padding: 110px 0 42px !important;
  }
  section.promo-sec .promo-wrap {
    padding-left: 14px !important;
  }
  section.promo-sec .promo-wrap::before {
    width: 3.5px !important;
  }
  section.promo-sec h1,
  section.promo-sec .display-2,
  section.promo-sec .promo-wrap h1,
  .promo-wrap h1,
  .promo-wrap .display-2,
  .page-banner-heading,
  .team-promo-banner h1,
  .contact-promo-banner h1,
  .page-promo-banner h1 {
    font-size: 20px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
  }
}

/* =================================================================
   SERVICE DETAIL HERO SUB-IMAGES & FLOATING TAGS — Full Height on Mobile
   Ensures single service sub-images have full, spacious vertical height
   so background graphics and the floating tag cards are both fully
   visible without clipping or covering the entire picture.
   ================================================================= */
@media (max-width: 991.98px) {
  .service-main-hero {
    position: relative !important;
    width: 100% !important;
    height: 380px !important;
    min-height: 360px !important;
    max-height: 420px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    margin-bottom: 24px !important;
    box-shadow: 0 12px 32px -8px rgba(2, 17, 47, 0.16) !important;
    border: 1px solid rgba(13, 110, 253, 0.14) !important;
  }

  .service-main-hero img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }

  .service-floating-highlight {
    position: absolute !important;
    bottom: 14px !important;
    left: 14px !important;
    right: 14px !important;
    background: rgba(2, 17, 47, 0.92) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
    z-index: 2 !important;
  }
}

@media (max-width: 575.98px) {
  .service-main-hero {
    height: 360px !important;
    min-height: 340px !important;
    border-radius: 16px !important;
    margin-bottom: 20px !important;
  }

  .service-floating-highlight {
    bottom: 10px !important;
    left: 10px !important;
    right: 10px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
  }

  .service-floating-highlight strong,
  .service-floating-highlight .hero-highlight-title {
    font-size: 13.5px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
  }

  .service-floating-highlight span:not(.badge),
  .service-floating-highlight .hero-highlight-sub {
    font-size: 11.5px !important;
    line-height: 1.3 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    display: block !important;
  }

  .service-floating-highlight .badge,
  .service-floating-highlight .hero-highlight-badge {
    font-size: 11px !important;
    padding: 5px 10px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  .service-floating-highlight .hero-highlight-icon,
  .service-floating-highlight div[style*="width: 40px"],
  .service-floating-highlight div[style*="width: 38px"] {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    font-size: 16px !important;
  }
}