/* ============================================================
   NEXTGEN DELIVERY LIMITED — responsive.css
   ============================================================ */

@media (max-width: 1200px) {
  .hero-card-float.card3 { display: none; }
}

@media (max-width: 992px) {
  section { padding: 72px 0; }
  h1 { font-size: clamp(2rem, 6vw, 3rem); }

  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 1.6rem; }
  .hero-card-float { display: none; }

  .stat-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding: 28px 16px; }
  .stat-card:last-child { border-bottom: none; }

  .navbar-collapse {
    background: rgba(11,31,58,.97);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
  }
  .navbar-nav .nav-link::after { display: none; }

  .contact-info-card { margin-bottom: 24px; }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }

  .page-hero { padding: 120px 0 56px; }
  .page-hero h1 { font-size: 2rem; }

  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; }

  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-num { font-size: 2.4rem; }

  .contact-form-card { padding: 24px; }

  .blog-card-img { height: 180px; }

  .trust-bar .col-auto { width: 50%; margin-bottom: 8px; }
}

@media (max-width: 576px) {
  h2 { font-size: 1.6rem; }
  .section-badge { font-size: .72rem; }

  .btn-primary-custom, .btn-outline-custom { padding: 12px 22px; font-size: .85rem; }

  .contact-form-card { padding: 20px; }

  .team-card { padding: 24px 16px; }

  .portfolio-filter { flex-wrap: wrap; gap: 8px; }
  .portfolio-filter .btn { font-size: .78rem; padding: 6px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-card-float { animation: none !important; }
  #pageLoader { display: none !important; }
}


/* ============================================================
   SHARED HEADER — MOBILE FIX
   Same header behaviour on index.html and about.html
   ============================================================ */

#siteHeader {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100%;
}

#topBar,
#mainNav {
  width: 100%;
}

@media (max-width: 991.98px) {
  /* TOP INFO BAR */
  #topBar {
    padding: 7px 0 !important;
  }

  #topBar > .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  #topBar .container > .d-flex {
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }

  #topBar .container > .d-flex > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
    overflow: hidden;
  }

  /* Hide the long street address on phones. */
  #topBar .topbar-item:first-child,
  #topBar .topbar-divider:first-of-type {
    display: none !important;
  }

  #topBar .topbar-item {
    font-size: 11px !important;
    line-height: 1.25 !important;
    gap: 5px !important;
    white-space: nowrap !important;
    min-width: 0;
  }

  #topBar .topbar-item i {
    font-size: 11px !important;
    flex-shrink: 0;
  }

  #topBar .topbar-item a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #topBar .topbar-divider {
    margin: 0 6px !important;
    height: 12px !important;
    flex: 0 0 1px;
  }

  #topBar .topbar-reg {
    flex: 0 0 auto;
    font-size: 10px !important;
    padding: 5px 8px !important;
    gap: 4px !important;
    white-space: nowrap !important;
  }

  /* MAIN NAVBAR */
  #mainNav {
    padding: 0 !important;
    min-height: 68px;
  }

  #mainNav > .container {
    min-height: 68px;
    padding-left: 12px !important;
    padding-right: 12px !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  #mainNav .navbar-brand {
    margin-right: auto;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
    max-width: calc(100% - 60px);
  }

  #mainNav .nav-logo-img {
    height: 48px !important;
    width: auto !important;
    max-width: 190px;
    object-fit: contain;
  }

  #mainNav .navbar-toggler {
    width: 44px;
    height: 42px;
    padding: 7px 9px !important;
    margin-left: 10px;
    border: 1.5px solid #ddd !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    outline: none !important;
    flex: 0 0 auto;
  }

  #mainNav .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255,107,0,.14) !important;
  }

  #mainNav .navbar-toggler-icon {
    width: 100%;
    height: 100%;
    background-size: 22px 22px !important;
  }

  /* Full-width mobile menu below the logo row. */
  #mainNav .navbar-collapse {
    width: 100%;
    flex-basis: 100%;
    background: #fff !important;
    border-top: 1px solid #eee;
    box-shadow: none !important;
    padding: 8px 0 12px !important;
    margin: 0 !important;
  }

  #mainNav .navbar-nav {
    width: 100%;
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0 !important;
  }

  #mainNav .navbar-nav .nav-item {
    width: 100%;
  }

  #mainNav .navbar-nav .nav-link {
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 11px 12px !important;
    border-radius: 6px;
    font-size: .88rem !important;
    color: #1c1c1c !important;
  }

  #mainNav .navbar-nav .nav-link:hover,
  #mainNav .navbar-nav .nav-link.active {
    color: #ff6b00 !important;
    background: #fff7f0;
  }

  #mainNav .navbar-nav .nav-link::after {
    display: none !important;
  }

  #mainNav .nav-quote-main {
    width: 100%;
    justify-content: center;
    margin: 8px 0 0 !important;
    padding: 11px 18px !important;
    min-height: 44px;
    border-radius: 6px;
    font-size: .86rem !important;
  }
}

@media (max-width: 575.98px) {
  #topBar .topbar-item,
  #topBar .topbar-item i {
    font-size: 10px !important;
  }

  #topBar .topbar-reg {
    font-size: 9px !important;
    padding: 4px 7px !important;
  }

  #mainNav .nav-logo-img {
    height: 45px !important;
    max-width: 175px;
  }

  #mainNav > .container,
  #mainNav {
    min-height: 64px;
  }
}

@media (max-width: 380px) {
  #topBar .topbar-item:nth-of-type(3),
  #topBar .topbar-divider:nth-of-type(2) {
    display: none !important;
  }

  #topBar .topbar-reg {
    font-size: 8.5px !important;
  }

  #mainNav .nav-logo-img {
    height: 42px !important;
    max-width: 160px;
  }
}



/* ============================================================
   FINAL MOBILE TOP BAR — SAME ON HOME + ABOUT
   Mobile: Email on left, Registration badge on right
   ============================================================ */
@media (max-width: 991.98px) {
  #topBar .container > .d-flex {
    flex-wrap: nowrap !important;
  }

  #topBar .container > .d-flex > div:first-child {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
  }

  /* Hide address + phone on mobile. */
  #topBar .container > .d-flex > div:first-child .topbar-item:first-child,
  #topBar .container > .d-flex > div:first-child .topbar-item:nth-of-type(2),
  #topBar .container > .d-flex > div:first-child .topbar-divider {
    display: none !important;
  }

  /* Email is the only contact item shown. */
  #topBar .container > .d-flex > div:first-child .topbar-item:last-child {
    display: inline-flex !important;
    align-items: center !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: rgba(255,255,255,.9) !important;
  }

  #topBar .container > .d-flex > div:first-child .topbar-item:last-child a {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  #topBar .container > .d-flex > div:first-child .topbar-item:last-child i {
    flex: 0 0 auto !important;
  }

  #topBar .topbar-reg {
    flex: 0 0 auto !important;
    margin-left: 8px !important;
  }
}

@media (max-width: 575.98px) {
  #topBar .topbar-item:last-child {
    font-size: 10px !important;
  }

  #topBar .topbar-reg {
    font-size: 9px !important;
    padding: 4px 8px !important;
  }
}

@media (max-width: 380px) {
  #topBar .topbar-item:last-child {
    font-size: 9px !important;
  }

  #topBar .topbar-reg {
    font-size: 8px !important;
    padding: 4px 7px !important;
  }
}
