/* ==========================================================================
   BMS COURIER & CARGO SERVICES - MAIN DESIGN SYSTEM & STYLES
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Color Palette */
  --primary: #0A192F;
  --secondary: #172A45;
  --accent: #FF512F;
  --accent-rgb: 255, 81, 47;
  --accent-alt: #DD2476;
  --success: #10B981;
  --nav-hover: #0077ff;
  
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;
  
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-slate: #0F172A;
  --border-color: #E2E8F0;
  
  /* Spacing & Layout */
  --nav-height: 80px;
  --nav-height-scroll: 70px;
  --container-width: 1280px;
  --transition-speed: 0.3s;
  --transition-curve: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 30px -15px rgba(2, 12, 27, 0.1);
  --shadow-xl: 0 20px 40px -15px rgba(2, 12, 27, 0.15);
  
  /* Fonts */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', var(--font-family);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed) var(--transition-curve);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* Common Layout Components */
.section-padding {
  padding: 100px 0;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  position: relative;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent); }

.section-title-wrapper {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-curve);
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(255, 81, 47, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 81, 47, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--text-white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background-color: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header-top {
  background-color: var(--primary);
  color: var(--text-white);
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top-info {
  display: flex;
  gap: 25px;
}

.header-top-info li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-top-info i {
  color: var(--accent);
}

.header-top-links li {
  display: inline-block;
  margin-left: 20px;
}

.header-top-links a:hover {
  color: var(--accent);
}

header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) var(--transition-curve);
  border-bottom: 1px solid var(--border-color);
}

.scrolled header {
  box-shadow: var(--shadow-lg);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height);
  transition: all var(--transition-speed) var(--transition-curve);
}

.scrolled .nav-wrapper {
  height: var(--nav-height-scroll);
}

.logo img {
  height: 48px;
  transition: all var(--transition-speed) var(--transition-curve);
}

.scrolled .logo img {
  height: 42px;
}

.nav-menu {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-menu > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  padding: 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.nav-link:hover, .nav-menu > li.active > .nav-link {
  color: var(--nav-hover);
}

.nav-link i {
  font-size: 12px;
  transition: transform var(--transition-speed);
}

.nav-menu > li:hover > .nav-link i {
  transform: rotate(180deg);
}

.header-cta {
  display: flex;
  align-items: center;
}

/* Hamburger Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ==========================================================================
   DROPDOWN MECHANICS & MEGA MENU
   ========================================================================== */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 8px 8px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--transition-speed) var(--transition-curve);
  border-top: 3px solid var(--nav-hover);
  padding: 10px 0;
  z-index: 1010;
}

.dropdown:hover > .dropdown-menu,
.dropdown.hovered > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  position: relative;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  transition: all 0.2s ease;
  border-bottom: 1px solid #f1f5f9;
}

.dropdown-menu li:last-child .dropdown-item {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: var(--bg-light);
  color: var(--nav-hover);
  padding-left: 28px;
}

.dropdown-item i {
  font-size: 10px;
}

/* Mega Flyout for International Courier */
.has-mega-flyout {
  position: relative;
}

.mega-flyout {
  position: absolute;
  top: -13px; /* Align near the top border */
  left: 100%;
  width: 900px;
  background-color: var(--bg-white);
  box-shadow: rgba(0, 43, 92, 0.08) 0px 0px 15px 5px;
  border-radius: 0 8px 8px 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  opacity: 0;
  visibility: hidden;
  transform: translateX(15px);
  transition: all var(--transition-speed) var(--transition-curve);
  padding: 15px;
  z-index: 1020;
  border-left: 1px solid var(--border-color);
}

.has-mega-flyout:hover > .mega-flyout {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.mega-col {
  padding: 10px 15px;
}

.mega-col:not(:last-child) {
  border-right: 1px solid var(--border-color);
}

.mega-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 6px;
}

.mega-col ul li a {
  display: block;
  font-size: 13px;
  color: #555555;
  padding: 8px 0;
  transition: all 0.2s ease;
  font-weight: 500;
}

.mega-col ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--primary);
  color: var(--text-white);
  height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 0.35; /* Overlay effect */
}

.hero .container {
  z-index: 5;
}

.hero-content {
  max-width: 750px;
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

/* Quick Search / Tracking box overlapping Hero */
.quick-track-section {
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.quick-track-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 30px 40px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.track-intro {
  flex: 1;
}

.track-intro h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.track-intro p {
  color: var(--text-muted);
  font-size: 14px;
}

.track-form {
  flex: 2;
  display: flex;
  gap: 10px;
}

.track-input-wrapper {
  position: relative;
  flex: 1;
}

.track-input-wrapper i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.track-input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  background-color: var(--bg-light);
  transition: all 0.3s ease;
}

.track-input:focus {
  background-color: var(--bg-white);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 81, 47, 0.1);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-images-wrapper {
  position: relative;
}

.about-img-main {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: 85%;
}

.about-img-sub {
  position: absolute;
  bottom: -40px;
  right: 0;
  width: 50%;
  border-radius: 12px;
  border: 8px solid var(--bg-white);
  box-shadow: var(--shadow-xl);
}

.about-info h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin: 30px 0;
}

.about-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.about-feat-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 81, 47, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}

.about-feat-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.about-feat-item p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Stat Counter Bar */
.counter-section {
  background-color: var(--primary);
  color: var(--text-white);
  padding: 60px 0;
  position: relative;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.counter-card i {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 15px;
}

.counter-number {
  font-size: 42px;
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 6px;
}

.counter-label {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   SERVICES GRID & CARDS
   ========================================================================== */
.services-section {
  background-color: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-card {
  background-color: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) var(--transition-curve);
  border: 1px solid var(--border-color);
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 81, 47, 0.2);
}

.service-card-img {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.08);
}

.service-card-icon {
  position: absolute;
  bottom: -24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background-color: var(--accent);
  color: var(--text-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(255, 81, 47, 0.3);
}

.service-card-content {
  padding: 35px 25px 25px 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card-content h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.service-card-content p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card-cta {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-card-cta i {
  transition: transform 0.2s ease;
}

.service-card:hover .service-card-cta i {
  transform: translateX(4px);
}

/* ==========================================================================
   PROCESS SECTION
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}

/* Line connecting steps */
.process-grid::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 2;
}

.process-step-num {
  width: 80px;
  height: 80px;
  background-color: var(--bg-white);
  border: 4px solid var(--border-color);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin: 0 auto 20px auto;
  font-family: var(--font-heading);
  transition: all var(--transition-speed) var(--transition-curve);
  position: relative;
}

.process-step:hover .process-step-num {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--text-white);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 81, 47, 0.3);
}

.process-step-icon {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 11px;
}

.process-step:hover .process-step-icon {
  background-color: var(--secondary);
}

.process-step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
  background-color: var(--bg-light);
}

.testimonial-carousel {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.testimonial-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-card {
  min-width: 100%;
  padding: 40px;
  background-color: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--border-color);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.testimonial-stars {
  color: #FBBF24;
  margin-bottom: 15px;
  font-size: 18px;
}

.testimonial-quote {
  font-size: 18px;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 25px;
  position: relative;
}

.testimonial-quote::before, .testimonial-quote::after {
  content: '"';
  font-size: 40px;
  color: rgba(255, 81, 47, 0.1);
  position: absolute;
  line-height: 1;
}

.testimonial-quote::before { left: -15px; top: -10px; }
.testimonial-quote::after { right: -15px; bottom: -20px; }

.testimonial-author h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.testimonial-author p {
  font-size: 13px;
  color: var(--text-muted);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--text-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.testimonial-dot.active {
  background-color: var(--accent);
}

/* ==========================================================================
   FAQ ACCORDION SECTION
   ========================================================================== */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.faq-card.active {
  border-color: rgba(255, 81, 47, 0.3);
  box-shadow: var(--shadow-md);
}

.faq-header {
  padding: 22px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: var(--bg-white);
}

.faq-header h3 {
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s ease;
  user-select: none;
}

.faq-card.active .faq-header h3 {
  color: var(--accent);
}

.faq-icon-wrapper {
  width: 28px;
  height: 28px;
  background-color: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.3s ease;
}

.faq-card.active .faq-icon-wrapper {
  background-color: var(--accent);
  color: var(--text-white);
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-content {
  padding: 0 30px 25px 30px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ==========================================================================
   CONTACT FORM & INFO SECTION
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info-card {
  background-color: var(--primary);
  color: var(--text-white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.contact-info-card h3 {
  color: var(--text-white);
  font-size: 24px;
  margin-bottom: 12px;
}

.contact-info-card > p {
  color: var(--text-light);
  margin-bottom: 35px;
}

.contact-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 81, 47, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-details-list h4 {
  color: var(--text-white);
  font-size: 15px;
  margin-bottom: 4px;
}

.contact-details-list p, .contact-details-list a {
  color: var(--text-light);
  font-size: 14px;
}

.contact-details-list a:hover {
  color: var(--accent);
}

.contact-form-wrapper {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-full {
  grid-column: span 2;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  background-color: var(--bg-light);
  transition: all 0.3s ease;
}

.form-control:focus {
  background-color: var(--bg-white);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 81, 47, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Map Section */
.map-section {
  height: 400px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 50px;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   TRACKING DETAIL STYLING (ON TRACKING PAGE)
   ========================================================================== */
.tracking-dashboard {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.tracking-search-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 30px;
  margin-bottom: 35px;
}

.tracking-status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.status-in-transit {
  background-color: rgba(255, 81, 47, 0.1);
  color: var(--accent);
}

.status-delivered {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.status-booked {
  background-color: rgba(15, 23, 42, 0.1);
  color: var(--primary);
}

.tracking-metadata {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.meta-item h4 {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.meta-item p {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

.timeline-tracker {
  position: relative;
  margin: 40px 0;
  display: flex;
  justify-content: space-between;
}

.timeline-tracker::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 5%;
  width: 90%;
  height: 4px;
  background-color: var(--border-color);
  z-index: 1;
}

.timeline-tracker-progress {
  position: absolute;
  top: 15px;
  left: 5%;
  height: 4px;
  background-color: var(--success);
  z-index: 2;
  transition: width 0.8s ease;
}

.timeline-node {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 20%;
}

.node-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 4px solid var(--border-color);
  margin: 0 auto 12px auto;
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 10px;
}

.timeline-node.completed .node-dot {
  border-color: var(--success);
  background-color: var(--success);
  color: var(--text-white);
}

.timeline-node.active .node-dot {
  border-color: var(--accent);
  background-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 81, 47, 0.2);
}

.node-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 2px;
}

.timeline-node.completed .node-title, .timeline-node.active .node-title {
  color: var(--primary);
}

.node-date {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   SERVICE PAGE SPECIFIC UI
   ========================================================================== */
.service-banner {
  background-color: var(--primary);
  color: var(--text-white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(10, 25, 47, 0.8), rgba(23, 42, 69, 0.85));
  z-index: 1;
}

.service-banner .container {
  z-index: 2;
}

.service-banner h1 {
  font-size: 44px;
  color: var(--text-white);
  margin-bottom: 15px;
}

.service-breadcrumbs {
  font-size: 14px;
  color: var(--text-light);
}

.service-breadcrumbs a {
  color: var(--text-white);
}

.service-breadcrumbs a:hover {
  color: var(--accent);
}

.service-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.main-service-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.main-service-desc h2 {
  font-size: 26px;
  color: var(--primary);
  margin: 30px 0 15px 0;
}

.main-service-desc p {
  margin-bottom: 15px;
}

.service-benefits-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 15px;
}

.benefit-item i {
  color: var(--success);
}

.sidebar-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
}

.sidebar-card h3 {
  font-size: 18px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.sidebar-services-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.sidebar-services-list li a:hover, .sidebar-services-list li.active a {
  background-color: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}

.sidebar-cta-card {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-white);
  border-radius: 10px;
  padding: 40px 30px;
  text-align: center;
}

.sidebar-cta-card h3 {
  color: var(--text-white);
  font-size: 22px;
  margin-bottom: 12px;
}

.sidebar-cta-card p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 25px;
}

.sidebar-cta-card h4 {
  font-size: 20px;
  color: var(--accent);
  margin-top: 15px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background-color: var(--bg-slate);
  color: var(--text-white);
  padding: 80px 0 20px 0;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h3 {
  color: var(--text-white);
  font-size: 18px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
}

.footer-col p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 20px;
}

.footer-col-logo img {
  height: 42px;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-light);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 15px;
}

.footer-contact i {
  color: var(--accent);
  margin-top: 4px;
}

.footer-seo-box {
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 30px 0;
  margin-bottom: 30px;
}

.footer-seo-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.footer-seo-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom-links a {
  margin-left: 20px;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (CALL & WHATSAPP)
   ========================================================================== */
.floating-widget {
  position: fixed;
  bottom: 25px;
  z-index: 999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 24px;
}

.floating-widget:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#whatsapp-float {
  right: 25px;
  background-color: #25D366;
}

#call-float {
  right: 90px;
  background-color: var(--accent);
}

/* Scroll to top button */
#scroll-top {
  left: 25px;
  background-color: var(--primary);
  opacity: 0;
  visibility: hidden;
  font-size: 18px;
}

#scroll-top.show {
  opacity: 0.8;
  visibility: visible;
}

/* ==========================================================================
   SCROLL & FADE ANIMATIONS
   ========================================================================== */
.reveal {
  position: relative;
  opacity: 0;
  transition: all 0.8s var(--transition-curve);
}

.reveal.reveal-left {
  transform: translateX(-50px);
}

.reveal.reveal-right {
  transform: translateX(50px);
}

.reveal.reveal-up {
  transform: translateY(50px);
}

.reveal.reveal-scale {
  transform: scale(0.9);
}

.reveal.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Helper delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE FIRST COMPATIBILITY)
   ========================================================================== */

@media (max-width: 1024px) {
  :root {
    --nav-height: 70px;
  }
  
  .header-top { display: none; }
  
  /* Menu Layout Shifts */
  .menu-toggle {
    display: flex;
    z-index: 1050;
  }
  
  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    transition: left 0.4s var(--transition-curve);
    overflow-y: auto;
    z-index: 1040;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .nav-menu > li {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
  }
  
  .nav-link {
    padding: 10px 0;
    font-size: 18px;
    width: 100%;
    justify-content: space-between;
  }
  
  .header-cta {
    display: none; /* In header on desktop, hide in mobile bar */
  }
  
  /* Dropdowns on Mobile - Toggle behavior */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    display: none;
    transform: none;
    box-shadow: none;
    border-top: none;
    padding: 10px 0 0 15px;
    width: 100%;
  }
  
  .dropdown.open > .dropdown-menu {
    display: block;
  }
  
  /* Mega Menu becomes simple vertical list on mobile */
  .mega-flyout {
    position: static;
    width: 100%;
    grid-template-columns: 1fr;
    opacity: 1;
    visibility: visible;
    display: none;
    transform: none;
    box-shadow: none;
    border-left: none;
    padding: 10px 0 0 15px;
    background-color: transparent;
  }
  
  .has-mega-flyout.open > .mega-flyout {
    display: block;
  }
  
  .mega-col {
    padding: 0;
    border-right: none !important;
    margin-bottom: 15px;
  }
  
  .mega-col-title {
    font-size: 13px;
    margin-bottom: 5px;
  }
  
  /* Layout Grids */
  .hero {
    height: 550px;
  }
  
  .hero-title {
    font-size: 38px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-img-main {
    width: 100%;
  }
  
  .about-img-sub {
    display: none; /* Hide secondary overlapping image on tablet */
  }
  
  .counter-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .process-grid::before {
    display: none; /* Hide process connector line */
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 120px 0 80px 0;
    text-align: center;
  }
  
  .hero-btns {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .hero-desc {
    font-size: 16px;
  }
  
  .quick-track-card {
    flex-direction: column;
    padding: 25px;
  }
  
  .track-form {
    width: 100%;
    flex-direction: column;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .counter-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .process-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-card {
    padding: 25px;
  }
  
  .faq-header {
    padding: 18px 20px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group-full {
    grid-column: span 1;
  }
  
  .contact-form-wrapper {
    padding: 25px;
  }
  
  .service-content-grid {
    grid-template-columns: 1fr;
  }
  
  .service-banner h1 {
    font-size: 30px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .footer-bottom-links a {
    margin: 0 10px;
  }
  
  #call-float {
    bottom: 20px;
    right: 20px;
  }
  
  #whatsapp-float {
    bottom: 80px;
    right: 20px;
  }
  
  #scroll-top {
    bottom: 140px;
    right: 20px;
  }
}

/* ==========================================================================
   IMPROVISATIONS: CALCULATOR & ACTIVITY TICKER
   ========================================================================== */

/* Quick Widget Tabbing */
.quick-widget-container {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.quick-widget-tabs {
  display: flex;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.widget-tab-btn {
  flex: 1;
  padding: 18px 24px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 3px solid transparent;
}

.widget-tab-btn:hover {
  color: var(--primary);
  background-color: rgba(0,0,0,0.02);
}

.widget-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background-color: var(--bg-white);
}

.widget-content-pane {
  padding: 35px 40px;
  display: none;
}

.widget-content-pane.active {
  display: block;
}

/* Calculator Grid */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.calc-results-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  background: var(--bg-light);
  border-radius: 8px;
  padding: 25px;
  border: 1px dashed var(--border-color);
}

.calc-result-metrics {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
}

.metric-row strong {
  color: var(--primary);
}

.calc-chargeable-card {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-white);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-chargeable-card h4 {
  color: var(--text-light);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.calc-chargeable-value {
  font-size: 32px;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent);
}

/* Shipping Ticker Styles */
.ticker-section {
  background-color: var(--primary);
  color: var(--text-white);
  border-bottom: 2px solid rgba(255, 81, 47, 0.2);
  padding: 12px 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
}

.ticker-wrapper {
  display: flex;
  align-items: center;
}

.ticker-title {
  background-color: var(--accent);
  color: var(--text-white);
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-right: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 81, 47, 0.3);
}

.ticker-content-box {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  height: 24px;
}

.ticker-track {
  display: flex;
  position: absolute;
  white-space: nowrap;
  animation: ticker-loop 35s linear infinite;
}

.ticker-item {
  margin-right: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
}

.ticker-item i {
  color: var(--accent);
}

.ticker-item strong {
  color: var(--text-white);
}

@keyframes ticker-loop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive adjustment for Calculator */
@media (max-width: 1024px) {
  .calc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .calc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-results-wrapper {
    grid-template-columns: 1fr;
  }
  .quick-track-card {
    padding: 0;
    box-shadow: none;
    background: transparent;
  }
  .widget-content-pane {
    padding: 25px 20px;
  }
}

@media (max-width: 500px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MEGA MENU POSITIONING & STYLING
   ========================================================================== */
.dropdown-menu.mega-flyout-main {
  position: absolute;
  top: 100%;
  left: -200px !important;
  width: 800px !important;
  background-color: var(--bg-white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
  border-top: 3px solid var(--nav-hover);
  border-radius: 0 0 8px 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--transition-speed) var(--transition-curve);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 25px !important;
  gap: 20px !important;
  z-index: 1020;
}

.dropdown:hover > .dropdown-menu.mega-flyout-main,
.dropdown.hovered > .dropdown-menu.mega-flyout-main {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu.mega-flyout-dest {
  position: absolute;
  top: 100%;
  left: -400px !important;
  width: 1000px !important;
  background-color: var(--bg-white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
  border-top: 3px solid var(--nav-hover);
  border-radius: 0 0 8px 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--transition-speed) var(--transition-curve);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 25px !important;
  gap: 10px !important;
  z-index: 1020;
}

.dropdown:hover > .dropdown-menu.mega-flyout-dest,
.dropdown.hovered > .dropdown-menu.mega-flyout-dest {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-col ul {
  padding: 0;
  margin: 0;
}

.mega-col.divider {
  border-right: 1px solid var(--border-color) !important;
  padding-right: 25px !important;
}

/* Row Separators inside Mega Menus */
.mega-col ul li {
  border-bottom: 1px solid #f1f5f9;
}

.mega-col ul li:last-child {
  border-bottom: none;
}

.mega-col ul li a {
  display: block;
  font-size: 13px !important;
  font-weight: 500;
  color: #475569 !important;
  padding: 8px 10px !important;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.mega-col ul li a:hover {
  background-color: var(--bg-light) !important;
  color: var(--nav-hover) !important;
  padding-left: 14px !important;
}

/* Specific styling for Destination Menu to optimize grid */
.mega-flyout-dest .mega-col ul li {
  border-bottom: 1px solid #f8fafc;
}

.mega-flyout-dest .mega-col ul li a {
  font-size: 12px !important;
  padding: 6px 8px !important;
  white-space: nowrap;
}

.mega-flyout-dest .mega-col ul li a:hover {
  padding-left: 12px !important;
}

/* Responsive Styles for Mobile Viewports */
@media (max-width: 1024px) {
  .dropdown-menu.mega-flyout-main,
  .dropdown-menu.mega-flyout-dest {
    position: static !important;
    width: 100% !important;
    left: 0 !important;
    transform: none !important;
    display: none !important;
    grid-template-columns: 1fr !important;
    padding: 15px !important;
    box-shadow: none !important;
    border-top: none !important;
    background-color: transparent !important;
  }
  
  .dropdown.open > .dropdown-menu.mega-flyout-main,
  .dropdown.open > .dropdown-menu.mega-flyout-dest {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .mega-col.divider {
    border-right: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding-bottom: 15px !important;
    margin-bottom: 15px !important;
  }
  
  .mega-col ul li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .mega-col ul li a {
    padding: 10px 15px !important;
    font-size: 14px !important;
  }
}


