/* ==========================================================================
   ABT LOGISTICS - CORE BRAND DESIGN SYSTEM & UI POLISH
   Source of Truth: https://abtlogistics.com & Local PHP Templates
   Palette: Extracted from live site CSS & img/Logistics_web_Logo.png
   ========================================================================== */

:root {
  /* ========================================================================
     1. BRAND COLORS (Extracted from https://abtlogistics.com & Logo)
     ======================================================================== */
  --brand-primary: #0a3161;       /* ABT Deep Navy Blue */
  --brand-secondary: #cd0104;     /* ABT Crimson Red */
  --brand-accent: #cd0104;        /* Primary action accent (Red) */
  --brand-primary-hover: #07244a; /* Deep Navy hover shade */
  --brand-accent-hover: #b00103;  /* Deep Red hover shade */
  --brand-link-hover: #36a8c5;    /* Cyan/Blue link hover from original CSS */

  /* Neutral Canvas & Surfaces */
  --bg: #ffffff;
  --bg-light: #f5f6f9;            /* Section background (Original --bs-light) */
  --card-bg: #ffffff;
  --border-color: #e5eaf0;
  --border-color-subtle: rgba(10, 49, 97, 0.1);
  --border-color-dark: rgba(255, 255, 255, 0.15);

  /* Typography Colors */
  --text: #212529;                /* Dark charcoal body text */
  --text-heading: #0a3161;        /* Navy heading text */
  --text-muted: #6c757d;          /* Muted gray text */
  --text-light: #818181;          /* Secondary gray */
  --text-white: #ffffff;

  /* Spacing & Radii (8px System) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(10, 49, 97, 0.05);
  --shadow-md: 0 4px 12px rgba(10, 49, 97, 0.08);
  --shadow-lg: 0 8px 24px rgba(10, 49, 97, 0.12);
  --shadow-hover: 0 10px 28px rgba(10, 49, 97, 0.14);

  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.25s ease-in-out;
}

/* ==========================================================================
   2. GLOBAL RESET & BASE CORRECTIONS
   ========================================================================== */
html {
  scroll-behavior: smooth;
  /* Updated dynamically by JS once header height is known */
  scroll-padding-top: 110px;
  font-size: 16px;
}

[id] {
  scroll-margin-top: 110px;
}

/* Flex column so footer always touches the bottom of the viewport */
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: var(--text) !important;
  background-color: var(--bg) !important;
  line-height: 1.6 !important;
  zoom: 100% !important;
  overflow-x: hidden !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Everything between header and footer grows to fill space */
body > *:not(.abt-header-wrapper):not(footer):not(.abt-footer):not(.abt-copyright):not(.back-to-top) {
  /* handled per-page; body flex is enough */
}

/* Ensure the main page content area expands */
.header-carousel,
main,
.container-fluid:not(.abt-topbar):not(.abt-navbar-inner) {
  flex-shrink: 0;
}

/* ==========================================================================
   3. TYPOGRAPHY SCALE & HIERARCHY
   ========================================================================== */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  font-family: 'Poppins', sans-serif !important;
  color: var(--brand-primary) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-top: 0;
}

h1, .h1 {
  font-size: clamp(24px, 3.2vw, 32px) !important;
  letter-spacing: -0.01em;
}

h2, .h2 {
  font-size: clamp(20px, 2.5vw, 26px) !important;
}

h3, .h3 {
  font-size: clamp(16px, 1.8vw, 18px) !important;
}

h4, .h4 {
  font-size: 16px !important;
}

p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.text-color {
  color: var(--brand-primary) !important;
}

.text-red {
  color: var(--brand-accent) !important;
}

/* Tabular Numerals for stats & counters */
.counter-value,
.num-tabular,
.badge {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   4. BUTTONS & CTAs POLISH
   ========================================================================== */
.btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-radius: var(--radius-sm) !important;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:focus,
.btn:focus-visible {
  outline: 2px solid var(--brand-accent) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

.btn-primary {
  background-color: var(--brand-accent) !important;
  border-color: var(--brand-accent) !important;
  color: var(--text-white) !important;
  padding: 10px 24px;
}

.btn-primary:hover,
.btn-primary:active {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: var(--text-white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-danger,
.track-btn,
.locator-btn {
  background-color: var(--brand-accent) !important;
  border-color: var(--brand-accent) !important;
  color: var(--text-white) !important;
  font-weight: 600;
  border-radius: var(--radius-sm) !important;
  padding: 12px 28px !important;
  transition: all var(--transition-normal);
}

.btn-danger:hover,
.track-btn:hover,
.locator-btn:hover {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: var(--text-white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-light {
  background-color: var(--bg) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--brand-primary) !important;
  font-weight: 600;
  padding: 8px 20px;
}

.btn-light:hover {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: var(--text-white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   5. STICKY HEADER — Slanted/Curved Logo Panel & Navigation System
   ========================================================================== */

/* ── Outer wrapper: Sticky at top with z-index 9999 ── */
.abt-header-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  align-items: stretch;
  background: #0b3260;
  box-shadow: 0 2px 10px rgba(10, 49, 97, 0.15);
  transition: box-shadow 0.3s ease;
}

.abt-header-wrapper.scrolled {
  box-shadow: 0 4px 20px rgba(10, 49, 97, 0.35);
}

/* ── LEFT BLOCK: Logo panel holding the curved white shape ── */
.abt-logo-panel {
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  padding: 0 !important;
  margin-left: 0;
  margin-right: -77px; /* Pulls nav column to meet the bottom inset (18.4% of 420px) */
  position: relative;
  z-index: 10;
  transition: margin-right 0.3s ease;
}

/* Compact logo block on scroll (>80px) */
.abt-header-wrapper.scrolled .abt-logo-panel {
  margin-right: -48px; /* Inset for 260px */
}

/* Desktop brand logo link & panel shape (≥1200px) */
.abt-desktop-brand {
  position: relative;
  display: block;
  width: 420px;
  max-width: 100%;
  aspect-ratio: 761 / 186;
  margin: 0;
  padding: 0;
  background: none !important;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
  box-shadow: none !important;
  transition: width 0.3s ease;
}

/* Tablet brand logo link (hidden on desktop) */
.abt-tablet-brand {
  display: none;
  text-decoration: none;
  line-height: 0;
  padding: 4px 0;
}

.abt-tablet-logo {
  height: 68px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  display: block;
}

/* SVG curved white shape behind desktop image */
.abt-logo-curve-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

/* Combined transparent desktop logo image */
.brand-logo-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  background: none !important;
  object-fit: contain;
  box-shadow: none !important;
}

/* Compact scrolled state on desktop */
.abt-header-wrapper.scrolled .abt-desktop-brand {
  width: 260px;
}

/* Tablet view (768px to 1199.98px): switch to t_logo-v1.png */
@media (max-width: 1199.98px) {
  .abt-desktop-brand {
    display: none !important;
  }
  .abt-tablet-brand {
    display: block !important;
  }
  .abt-logo-panel {
    margin-right: 0 !important;
    padding: 0 10px !important;
  }
  .abt-topbar-inner {
    padding-left: 16px !important;
  }
  .abt-navbar-inner {
    padding-left: 16px !important;
  }
}

/* ── RIGHT COLUMN: Stacks Topbar (Red) above Navbar (Navy) ── */
.abt-nav-column {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #0b3260;
}

/* ── TOPBAR: Red (#cc0000) thin strip ── */
.abt-topbar {
  background: #cc0000;
  overflow: hidden;
  max-height: 38px;
  opacity: 1;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease;
}

/* Collapsed on scroll down */
.abt-header-wrapper.scrolled .abt-topbar {
  max-height: 0 !important;
  opacity: 0 !important;
  pointer-events: none;
}

.abt-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 95px;
  height: 36px;
}

.abt-topbar-contact {
  display: flex;
  align-items: center;
  gap: 22px;
}

.abt-topbar-link {
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.abt-topbar-link:hover {
  opacity: 0.85;
}
.abt-topbar-link i {
  font-size: 13px;
}

/* Thin white line separating top bar from nav bar */
.abt-topbar-divider {
  height: 1px;
  background: #ffffff;
  opacity: 0.35;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}
.abt-header-wrapper.scrolled .abt-topbar-divider {
  opacity: 0;
  height: 0;
}

.abt-topbar-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.abt-social-icon {
  color: #ffffff !important;
  font-size: 13.5px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
}
.abt-social-icon:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* ── NAVBAR: Dark Navy (#0b3260) ── */
.abt-navbar {
  background: #0b3260;
  flex: 1;
  display: flex;
  align-items: center;
}

.abt-navbar-inner {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 24px 0 65px;
  min-height: 54px;
}

.abt-header-wrapper.scrolled .abt-navbar-inner {
  padding-left: 55px;
  min-height: 50px;
}

/* Mobile brand logo (hidden on desktop) */
.abt-mobile-brand {
  display: none;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}
.abt-mobile-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Nav links list */
.abt-nav-collapse {
  display: flex;
  align-items: center;
  width: 100%;
}

.abt-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  gap: 2px;
}

.abt-nav-link {
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: #ffffff !important;
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 4px;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
  display: block;
}
.abt-nav-link:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1);
}
.abt-nav-link.active {
  color: #ffffff !important;
  font-weight: 700;
}
.abt-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 13px;
  right: 13px;
  height: 2px;
  background-color: #cc0000;
  border-radius: 2px;
}

/* Customer & Agent Buttons (Red, rounded-corner, comfortable padding) */
.abt-nav-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 12px;
}
.abt-btn-nav {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff !important;
  background-color: #cc0000;
  border: 1px solid #cc0000;
  border-radius: 8px;
  padding: 7px 18px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.abt-btn-nav:hover {
  background-color: #b30000;
  border-color: #b30000;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(204, 0, 0, 0.35);
}

/* Mobile Toggler */
.abt-toggler {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  padding: 6px;
}
.abt-toggler-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.abt-toggler.active .abt-toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.abt-toggler.active .abt-toggler-bar:nth-child(2) { opacity: 0; }
.abt-toggler.active .abt-toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Quick contact icons on mobile header (phone & WhatsApp) ── */
.abt-mobile-quick-actions {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 10px;
}
.abt-quick-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #cc0000;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.abt-quick-btn:hover {
  background-color: #aa0000;
  transform: scale(1.08);
}

/* ── RESPONSIVE ADAPTATIONS: Tablet (768px-1199px) & Mobile (≤767px) ── */

/* Tablet (768px to 1199.98px): Curved white block kept, scaled logo, phone/WA/social in red bar, nav collapsed */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .abt-header-wrapper {
    display: flex;
    align-items: stretch;
    background: #0b3260;
  }

  /* Curved white block kept on tablet */
  .abt-logo-panel {
    display: flex !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin-left: 0 !important;
    background: transparent !important;
  }
  .brand-logo {
    padding: 0 !important;
    background: none !important;
  }

  /* Red topbar on tablet shows phone, WhatsApp and social icons (email hidden) */
  .abt-topbar {
    max-height: 34px;
    background: #cc0000;
  }
  .abt-topbar-inner {
    padding: 0 16px;
    height: 32px;
  }
  .abt-contact-email {
    display: none !important;
  }
  .abt-topbar-link {
    font-size: 12.5px;
  }
  .abt-topbar-social {
    display: flex;
    gap: 8px;
  }
  .abt-social-icon {
    font-size: 12px;
  }

  /* Hide mobile brand and quick buttons on tablet because panel and topbar are present */
  .abt-mobile-brand,
  .abt-mobile-quick-actions {
    display: none !important;
  }

  /* Show hamburger button on tablet */
  .abt-toggler {
    display: flex;
    margin-left: auto;
  }

  /* Full-width slide-down menu */
  .abt-nav-collapse {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0b3260;
    padding: 16px 24px 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    border-radius: 0 0 10px 10px;
    z-index: 99998;
    overflow-y: auto;
    max-height: calc(100vh - 90px);
  }
  .abt-nav-collapse.open {
    display: block;
  }

  .abt-nav-links {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    width: 100%;
  }
  .abt-nav-links li {
    width: 100%;
  }
  .abt-nav-link {
    display: block;
    width: 100%;
    padding: 11px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 15px;
  }
  .abt-nav-link.active::after {
    display: none;
  }

  /* Customer and Agent buttons inside menu: stacked, full width */
  .abt-nav-buttons {
    flex-direction: column;
    margin-left: 0;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    gap: 10px;
    width: 100%;
  }
  .abt-btn-nav {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 11px 16px;
    font-size: 14px;
  }

  html { scroll-padding-top: 96px; }
  [id]  { scroll-margin-top: 96px; }
}

/* Mobile (≤767.98px): Compact header 56-64px, logo left (80-90px), red topbar hidden, phone/WA beside hamburger, full width scrollable menu */
@media (max-width: 767.98px) {
  .abt-header-wrapper {
    display: block;
    background: #0b3260;
    min-height: 58px;
  }

  /* Hide desktop white panel and red topbar on mobile */
  .abt-logo-panel,
  .abt-topbar,
  .abt-topbar-divider {
    display: none !important;
  }

  .abt-navbar {
    min-height: 58px;
    height: 58px;
  }
  .abt-navbar-inner {
    padding: 0 12px;
    min-height: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Mobile brand: t_logo-v1.png (self-contained slanted white logo) */
  .abt-mobile-brand {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-right: auto !important;
    border-radius: 0 !important;
  }
  .abt-mobile-logo {
    height: 44px !important;
    width: auto !important;
    max-width: 130px !important;
    object-fit: contain;
    display: block;
    background: none !important;
  }

  /* Phone and WhatsApp icons beside hamburger */
  .abt-mobile-quick-actions {
    display: flex;
  }

  /* Hamburger toggler */
  .abt-toggler {
    display: flex;
    width: 36px;
    height: 36px;
    padding: 5px;
  }

  /* Full-width scrollable mobile menu with close-toggle */
  .abt-nav-collapse {
    display: none;
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0b3260;
    padding: 16px 20px 32px;
    z-index: 99999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  }
  .abt-nav-collapse.open {
    display: block;
  }

  .abt-nav-links {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    width: 100%;
  }
  .abt-nav-links li {
    width: 100%;
  }
  .abt-nav-link {
    display: block;
    width: 100%;
    padding: 13px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 15.5px;
  }
  .abt-nav-link.active::after {
    display: none;
  }

  /* Stacked full-width Customer and Agent buttons inside mobile menu */
  .abt-nav-buttons {
    flex-direction: column;
    margin-left: 0;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    gap: 12px;
    width: 100%;
  }
  .abt-btn-nav {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 12px 16px;
    font-size: 15px;
  }

  /* Prevent page body scroll when mobile menu is active */
  body.abt-nav-open {
    overflow: hidden !important;
  }

  html { scroll-padding-top: 64px; }
  [id]  { scroll-margin-top: 64px; }
}

@media (max-width: 375px) {
  .abt-mobile-hanuman {
    display: none !important; /* Hide hanuman on ultra-compact screens <=375px to avoid crowding */
  }
  .abt-mobile-quick-actions {
    gap: 5px;
    margin-right: 6px;
  }
  .abt-quick-btn {
    width: 30px;
    height: 30px;
    font-size: 12.5px;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .brand-logo-img, .abt-mobile-logo,
  .abt-logo-panel, .abt-topbar,
  .abt-nav-link, .abt-btn-nav,
  .abt-toggler-bar {
    transition: none !important;
  }
}

/* Legacy cleanup */
.overlay2 { display: none !important; }
.top-text { margin-left: 0 !important; }

/* ==========================================================================
   6. HERO BANNER & CAROUSEL POLISH
   ========================================================================== */
.header-carousel .owl-carousel-item img,
.header-carousel img {
  width: 100%;
  height: auto !important;
  min-height: 0;
  max-height: 580px;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 991.98px) {
  .header-carousel .owl-carousel-item img,
  .header-carousel img {
    min-height: 0;
    max-height: none;
    object-fit: contain;
  }

  .header-carousel .owl-prev,
  .header-carousel .owl-next {
    top: 50% !important;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    padding: 0;
  }

  .header-carousel .owl-prev {
    left: 10px;
  }

  .header-carousel .owl-next {
    right: 10px;
  }
}

@media (max-width: 575.98px) {
  .header-carousel .owl-prev,
  .header-carousel .owl-next {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .header-carousel .owl-prev {
    left: 6px;
  }

  .header-carousel .owl-next {
    right: 6px;
  }
}

/* ==========================================================================
   7. SERVICES CARDS POLISH (Equal Height, Clean Lift, 8px rhythm)
   ========================================================================== */
.service-item {
  background-color: var(--card-bg) !important;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(10, 49, 97, 0.2);
}

.service-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 24px 20px !important;
}

.service-content-inner {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.service-content-inner img {
  height: 140px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 16px;
  transition: transform var(--transition-normal);
}

.service-item:hover .service-content-inner img {
  transform: scale(1.03);
}

.service-content-inner p {
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  color: var(--text) !important;
  margin-bottom: 20px !important;
  flex-grow: 1;
}

.service-content-inner .btn {
  margin-top: auto;
  width: 100%;
}

/* ==========================================================================
   8. WHY US CARDS POLISH (Desktop Unchanged, Tablet & Mobile Scaled)
   ========================================================================== */
.why-us-section {
  background-color: var(--bg);
  overflow: visible;
}

.why-us-section .service-item {
  background-color: #f7fafc !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(10, 49, 97, 0.06) !important;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
}

.why-us-section .service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(10, 49, 97, 0.12) !important;
}

.why-us-section .image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.why-us-section .circle-image {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
  padding: 14px;
  background: #1f2d6b !important;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), background-color var(--transition-normal);
}

.why-us-section .service-item:hover .circle-image {
  transform: scale(1.08);
  background: var(--brand-accent) !important;
}

.why-us-section h3 {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 500 !important;
  color: #1f2d6b !important;
  text-align: center;
  margin: 0;
  line-height: 1.35;
}

/* Tablet (768px to 1199.98px): 3 cards per row, gap 16px, padding 18px 12px, icon circle 64px, title 15px */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .why-us-section .container {
    padding: 0 20px !important;
  }
  .why-us-section .row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    margin: 0 !important;
    justify-content: center !important;
  }
  .why-us-section .row > [class*="col-"] {
    flex: 0 0 calc(33.333% - 11px) !important;
    max-width: calc(33.333% - 11px) !important;
    padding: 0 !important;
  }
  .why-us-section .service-item {
    height: auto !important;
    padding: 18px 12px !important;
  }
  .why-us-section .service-content {
    padding: 0 !important;
  }
  .why-us-section .image-container {
    margin-bottom: 12px !important;
  }
  .why-us-section .circle-image {
    width: 64px !important;
    height: 64px !important;
    padding: 16px !important;
  }
  .why-us-section h3 {
    font-size: 15px !important;
    line-height: 1.3 !important;
  }
}

/* Mobile (≤767.98px): 2 cards per row, gap 12px, last odd card centered (flex: 0 0 calc(50% - 6px)), padding 14px 8px, icon circle 52-56px, title 13px, heading ~22px */
@media (max-width: 767.98px) {
  .why-us-section {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }
  .why-us-section .container {
    padding: 0 16px !important;
  }
  .why-us-section h1 {
    font-size: 22px !important;
    margin-bottom: 12px !important;
  }
  .why-us-section .pb-5 {
    padding-bottom: 18px !important;
  }
  .why-us-section .row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin: 0 !important;
    justify-content: center !important;
  }
  .why-us-section .row > [class*="col-"] {
    flex: 0 0 calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
    padding: 0 !important;
  }
  .why-us-section .service-item {
    height: auto !important;
    padding: 14px 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  }
  .why-us-section .service-content {
    padding: 0 !important;
  }
  .why-us-section .image-container {
    margin-bottom: 8px !important;
  }
  .why-us-section .circle-image {
    width: 54px !important;
    height: 54px !important;
    padding: 14px !important;
  }
  .why-us-section h3 {
    font-size: 13px !important;
    line-height: 1.25 !important;
  }
}

/* ==========================================================================
   9. PAN INDIA METRICS & STATS CARDS
   ========================================================================== */
.box-white {
  background-color: var(--card-bg) !important;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm);
  padding: 24px 16px !important;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
}

.box-white:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(205, 1, 4, 0.3);
}

.pin img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-bottom: 10px;
}

.box-white .counter-value {
  font-size: 2.25rem !important;
  font-weight: 700 !important;
  color: var(--brand-accent) !important;
}

.box-white h4.text-red {
  color: var(--brand-accent) !important;
  font-weight: 700 !important;
}

.box-white p.text-color {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brand-primary) !important;
}

/* Feature Icons (Tracking & Locator strips) */
.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(205, 1, 4, 0.1);
  color: var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.icon-circle-blue {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(10, 49, 97, 0.1);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   10. BRANDS MARQUEE / CAROUSEL POLISH (Responsive & Mobile Fixes)
   ========================================================================== */
.brands-section {
  background-color: var(--bg);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 48px 0;
}

.brands-section .brands-carousel.owl-carousel {
  position: relative !important;
  padding-left: 64px !important;
  padding-right: 64px !important;
  box-sizing: border-box !important;
}

.client-logo-item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 90px !important;
  padding: 12px 20px !important;
  margin: 0 !important;
  background: #ffffff !important;
  border: 1px solid var(--border-color, #e2e8f0) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(10, 49, 97, 0.05) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  transition: all 0.3s ease !important;
}

.client-logo-item:hover {
  transform: translateY(-3px) !important;
  border-color: #0a3161 !important;
  box-shadow: 0 8px 20px rgba(10, 49, 97, 0.12) !important;
}

.client-logo-item img {
  max-width: 100% !important;
  max-height: 52px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  filter: grayscale(100%) opacity(80%);
  transition: all var(--transition-normal);
}

.client-logo-item:hover img {
  filter: grayscale(0%) opacity(100%);
  transform: scale(1.04);
}

/* Nav arrows desktop */
.brands-section .brands-carousel.owl-carousel .owl-nav .owl-prev,
.brands-section .brands-carousel.owl-carousel .owl-nav .owl-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 2px solid #cd0104 !important;
  color: #cd0104 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(205, 1, 4, 0.18) !important;
  cursor: pointer !important;
  z-index: 10 !important;
  transition: all 0.25s ease !important;
}

.brands-section .brands-carousel.owl-carousel .owl-nav .owl-prev {
  left: 6px !important;
  right: auto !important;
}

.brands-section .brands-carousel.owl-carousel .owl-nav .owl-next {
  right: 6px !important;
  left: auto !important;
}

.brands-section .brands-carousel.owl-carousel .owl-nav .owl-prev:hover,
.brands-section .brands-carousel.owl-carousel .owl-nav .owl-next:hover {
  background: #0a3161 !important;
  border-color: #0a3161 !important;
  color: #ffffff !important;
}

.brands-section .brands-carousel.owl-carousel .owl-nav .owl-prev:hover i,
.brands-section .brands-carousel.owl-carousel .owl-nav .owl-next:hover i {
  color: #ffffff !important;
}

/* Tablet (768px - 991px) */
@media (max-width: 991.98px) {
  .brands-section .brands-carousel.owl-carousel {
    padding-left: 52px !important;
    padding-right: 52px !important;
  }
  .client-logo-item {
    height: 80px !important;
    padding: 10px 16px !important;
  }
  .client-logo-item img {
    max-height: 44px !important;
  }
}

/* Mobile (≤ 767px) - Fixes brand logos overlapping each other & arrows */
@media (max-width: 767.98px) {
  .brands-section {
    padding: 36px 0 !important;
  }

  .brands-title {
    font-size: 21px !important;
  }

  .brands-subtitle {
    font-size: 13.5px !important;
  }

  .brands-section .brands-carousel.owl-carousel {
    padding-left: 42px !important;
    padding-right: 48px !important;
  }

  .client-logo-item {
    height: 72px !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    border-radius: 10px !important;
  }

  .client-logo-item img {
    max-width: 100% !important;
    max-height: 38px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    filter: none !important;
  }

  .brands-section .brands-carousel.owl-carousel .owl-nav .owl-prev,
  .brands-section .brands-carousel.owl-carousel .owl-nav .owl-next {
    width: 32px !important;
    height: 32px !important;
    font-size: 12px !important;
    border-width: 1.5px !important;
    box-shadow: 0 2px 8px rgba(205, 1, 4, 0.15) !important;
  }

  .brands-section .brands-carousel.owl-carousel .owl-nav .owl-prev {
    left: 2px !important;
  }

  .brands-section .brands-carousel.owl-carousel .owl-nav .owl-next {
    right: 8px !important;
  }
}

/* Small mobile (≤ 420px) */
@media (max-width: 420px) {
  .brands-section .brands-carousel.owl-carousel {
    padding-left: 36px !important;
    padding-right: 42px !important;
  }

  .client-logo-item {
    height: 66px !important;
    padding: 6px 10px !important;
  }

  .client-logo-item img {
    max-height: 34px !important;
  }

  .brands-section .brands-carousel.owl-carousel .owl-nav .owl-prev,
  .brands-section .brands-carousel.owl-carousel .owl-nav .owl-next {
    width: 28px !important;
    height: 28px !important;
    font-size: 11px !important;
  }

  .brands-section .brands-carousel.owl-carousel .owl-nav .owl-prev {
    left: 1px !important;
  }

  .brands-section .brands-carousel.owl-carousel .owl-nav .owl-next {
    right: 6px !important;
  }
}

/* ==========================================================================
   11. TESTIMONIALS POLISH (Even Heights & Clean Typography)
   ========================================================================== */
.testimonial-item {
  background-color: var(--card-bg) !important;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm);
  padding: 28px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 290px;
}

.testimonial-item p.mt-4 {
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  color: var(--text) !important;
  font-style: italic;
  margin-top: 12px !important;
  margin-bottom: 16px !important;
}

.testimonial-item h5 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--brand-primary) !important;
  margin-bottom: 2px !important;
}

.testimonial-item p.mb-0 {
  font-size: 13px !important;
  color: var(--text-muted) !important;
}

.testimonial-item img.rounded-circle {
  width: 72px !important;
  height: 72px !important;
  object-fit: contain !important;
  border: 1px solid var(--border-color) !important;
  padding: 4px;
  background: #ffffff;
}

/* ==========================================================================
   12. FAQ ACCORDION POLISH
   ========================================================================== */
.faq-section {
  background-color: var(--bg-light);
  padding: 56px 0;
}

.faq-wrapper .accordion-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-wrapper .accordion-button {
  font-family: 'Poppins', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--brand-primary);
  background-color: var(--card-bg);
  padding: 16px 20px;
  box-shadow: none !important;
}

.faq-wrapper .accordion-button:not(.collapsed) {
  color: var(--brand-accent);
  background-color: rgba(205, 1, 4, 0.04);
}

.faq-wrapper .accordion-button:focus {
  outline: 2px solid var(--brand-accent);
  outline-offset: -2px;
}

.faq-wrapper .faq-icon {
  color: var(--brand-accent);
  margin-right: 12px;
}

.faq-wrapper .accordion-body {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.65;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   13. FOOTER POLISH (Variables & High-Contrast Readability)
   ========================================================================== */
.abt-footer {
  background: var(--brand-primary) !important;
  color: #ffffff !important;
  padding: 56px 0 24px 0 !important;
  margin: 0 !important;
}

.abt-footer-title {
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
  border-bottom: 2px solid var(--brand-accent);
  padding-bottom: 6px;
  display: inline-block;
}

.abt-footer-links a,
.abt-footer-contact a {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: all var(--transition-fast);
  display: inline-block;
  margin-bottom: 8px;
}

.abt-footer-links a:hover,
.abt-footer-contact a:hover {
  color: #ffffff !important;
  transform: translateX(3px);
}

.abt-footer-links a i {
  color: var(--brand-accent) !important;
}

.abt-footer-social a {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid var(--border-color-dark) !important;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  margin-right: 8px;
  transition: all var(--transition-fast);
}

.abt-footer-social a:hover {
  background: var(--brand-accent) !important;
  border-color: var(--brand-accent) !important;
  transform: translateY(-2px);
}

/* ── Red Copyright Bar: butts directly against the navy block with 0 margin ── */
.abt-copyright {
  background: #cd0104 !important;
  width: 100% !important;
  border-top: none !important;
  padding: 18px 15px !important;
  text-align: center !important;
  margin: 0 !important; /* Zero margin - removes white gap completely */
}

.abt-copyright-text {
  font-size: 15px !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin: 0 !important;
  line-height: 1.6 !important;
}

/* ── Back to Top button: red square with arrow, overlays without pushing layout ── */
.back-to-top {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: var(--radius-sm) !important;
  background-color: var(--brand-accent) !important;
  border: 1px solid var(--brand-accent) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  transition: all var(--transition-fast) !important;
  margin: 0 !important;
}

.back-to-top:hover {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #ffffff !important;
  transform: translateY(-3px) !important;
}

/* ==========================================================================
   14. FLOATING WIDGET & POPUP MODALS POLISH
   ========================================================================== */
.abt-widget-btn {
  background: var(--brand-primary) !important;
  color: #ffffff !important;
  transition: background var(--transition-fast), transform var(--transition-fast) !important;
}

.abt-widget-btn:hover {
  background: var(--brand-accent) !important;
}

.abt-popup,
#popup1, #popup2, #popup3, #popup4, #popup5 {
  z-index: 1060 !important;
}

.modal,
.modal-backdrop {
  z-index: 1065 !important;
}

.abt-popup {
  background: rgba(10, 49, 97, 0.75) !important;
  backdrop-filter: blur(4px);
}

.abt-popup-content,
.abt-popup-content5 {
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border-color);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  max-height: 88vh;
  overflow-y: auto;
}

.abt-popup-content h5 {
  color: var(--brand-primary) !important;
  font-weight: 700;
  margin-bottom: 12px;
}

.abt-close-btn {
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.abt-close-btn:hover {
  color: var(--brand-accent) !important;
}

.form-control:focus {
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 3px rgba(10, 49, 97, 0.15) !important;
}

/* ==========================================================================
   15. RESPONSIVE BREAKPOINTS (320px, 375px, 768px, 1024px, 1280px, 1440px)
   ========================================================================== */
@media (max-width: 991.98px) {
  .margin-left {
    margin-left: 0 !important;
  }
  .topbar {
    text-align: center;
  }
  .abt-footer-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px !important;
  }
  .management_container {
    flex-direction: column !important;
    height: auto !important;
    min-height: auto !important;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 36px 0 !important;
  }
  .track-btn,
  .locator-btn {
    width: 100% !important;
    max-width: 100% !important;
  }
  .abt-footer-row {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .testimonial-item {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  .box-white .counter-value {
    font-size: 1.85rem !important;
  }
  .icon-circle,
  .icon-circle-blue {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
