/* ========================================
   LOGISTICSWALA — MAIN STYLESHEET
   ======================================== */

:root {
  --primary: #1A3C6E;
  --primary-light: #2557A0;
  --accent: #E07B00;
  --accent-light: #F5941F;
  --success: #16A34A;
  --danger: #DC2626;
  --warning: #F59E0B;
  --bg: #F8FAFF;
  --white: #FFFFFF;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --card-shadow: 0 4px 24px rgba(26,60,110,0.08);
  --card-shadow-hover: 0 8px 40px rgba(26,60,110,0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Poppins', sans-serif;
  --font-display: 'Rajdhani', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden { display: none !important; }

/* ========== TOP BAR ========== */
.topbar {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  padding: 6px 0;
}
.topbar-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.topbar span { opacity: 0.9; }
.whatsapp-top {
  background: #25D366;
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 600;
  margin-left: auto;
}

/* ========== NAVBAR ========== */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.logo-icon { font-size: 28px; }
.logo-dot { color: var(--accent); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: rgba(26,60,110,0.07); }
.btn-login {
  border: 1.5px solid var(--primary) !important;
  color: var(--primary) !important;
}
.btn-signup {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.btn-signup:hover { background: var(--accent-light) !important; }
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
  margin-left: auto;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(224,123,0,0.3); }
.btn-primary.full-width { width: 100%; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

.btn-whatsapp {
  display: inline-block;
  background: #25D366;
  color: #fff;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  transition: all 0.2s;
}
.btn-whatsapp:hover { background: #1EBE5A; }

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0F2447 60%, #1A3C6E 100%);
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.04) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(224,123,0,0.12) 0%, transparent 40%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 50px;
  align-items: center;
  position: relative;
}
.hero-badge {
  display: inline-block;
  background: rgba(224,123,0,0.2);
  border: 1px solid rgba(224,123,0,0.4);
  color: #FBBF24;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}
.highlight { color: var(--accent-light); }
.hero-sub { font-size: 17px; opacity: 0.85; margin-bottom: 24px; max-width: 500px; }
.hero-carriers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.carrier-pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ========== QUICK RATE CARD ========== */
.quick-rate-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.quick-rate-card h3 { color: var(--primary); margin-bottom: 20px; font-size: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select, .form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,60,110,0.08);
}

/* ========== RATE RESULT ========== */
.rate-result { margin-top: 16px; }
.rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #F0F7FF;
  border: 1px solid #D0E4F7;
  font-size: 14px;
}
.rate-row.best { background: #ECFDF5; border-color: #86EFAC; }
.rate-row.best .rate-badge { background: var(--success); color: #fff; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.rate-carrier { font-weight: 600; }
.rate-price { font-weight: 700; color: var(--primary); }

/* ========== STATS BANNER ========== */
.stats-banner {
  background: var(--primary);
  color: #fff;
  padding: 24px 0;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 40px;
}
.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-light);
  font-family: var(--font-display);
}
.stat-label { font-size: 12px; opacity: 0.8; font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

/* ========== SECTIONS ========== */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-tag {
  display: inline-block;
  background: rgba(26,60,110,0.08);
  color: var(--primary);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  font-family: var(--font-display);
}
.section-header p { color: var(--text-muted); font-size: 16px; }

/* ========== HOW IT WORKS ========== */
.how-it-works { background: var(--white); }
.steps-grid {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.step-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  flex: 1;
  min-width: 160px;
  transition: all 0.2s;
  position: relative;
}
.step-card:hover { border-color: var(--primary); box-shadow: var(--card-shadow); transform: translateY(-4px); }
.step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.step-icon { font-size: 36px; margin-bottom: 12px; }
.step-card h3 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.step-card p { font-size: 12.5px; color: var(--text-muted); }
.step-arrow { font-size: 24px; color: var(--accent); flex-shrink: 0; }

/* ========== FEATURES ========== */
.features-section { background: var(--bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.25s;
}
.feature-card:hover { border-color: var(--primary); box-shadow: var(--card-shadow-hover); transform: translateY(-4px); }
.feature-icon { font-size: 36px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 13.5px; }

/* ========== CARRIERS ========== */
.carriers-section { background: var(--white); }
.carriers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.carrier-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 30px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: all 0.2s;
  min-width: 140px;
}
.carrier-card:hover { border-color: var(--primary); box-shadow: var(--card-shadow); }
.carrier-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-display);
}
.carrier-logo.xb { background: #E84545; }
.carrier-logo.dtdc { background: #F5821F; }
.carrier-logo.gati { background: #00549F; }
.carrier-logo.bd { background: #CC0000; }
.carrier-logo.more { background: #64748B; }
.carrier-card span { font-weight: 600; font-size: 14px; color: var(--text); }

/* ========== TESTIMONIALS ========== */
.testimonials-section { background: var(--bg); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testimonial-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
}
.testimonial-card:hover { box-shadow: var(--card-shadow); }
.stars { color: #FBBF24; font-size: 18px; margin-bottom: 14px; }
.testimonial-card p { color: var(--text-muted); font-size: 14px; font-style: italic; margin-bottom: 18px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author small { color: var(--text-muted); font-size: 12px; }

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #C96A00 100%);
  color: #fff;
  padding: 60px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 32px; font-weight: 800; font-family: var(--font-display); }
.cta-inner p { opacity: 0.9; margin-top: 6px; }
.cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-buttons .btn-primary { background: #fff; color: var(--accent); }
.cta-buttons .btn-primary:hover { background: #FFF7ED; }

/* ========== FOOTER ========== */
.footer { background: #0F1E38; color: rgba(255,255,255,0.85); padding: 60px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; opacity: 0.7; line-height: 1.7; margin-bottom: 18px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  transition: all 0.2s;
}
.social-links a:hover { background: var(--accent); border-color: var(--accent); }
.footer-links h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul a { font-size: 13.5px; opacity: 0.7; transition: opacity 0.2s; }
.footer-links ul a:hover { opacity: 1; color: var(--accent-light); }
.footer-contact h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-contact p { font-size: 13.5px; opacity: 0.7; margin-bottom: 8px; }
.btn-whatsapp-footer {
  display: inline-block;
  background: #25D366;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 18px;
  font-size: 12.5px;
  opacity: 0.5;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 9999;
  animation: pulse-wa 2.5s infinite;
  text-decoration: none;
}
@keyframes pulse-wa {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.7); }
}

/* ========== INNER PAGES SHARED ========== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0F2447 100%);
  color: #fff;
  padding: 50px 0 40px;
  text-align: center;
}
.page-hero h1 { font-size: 36px; font-weight: 800; font-family: var(--font-display); margin-bottom: 10px; }
.page-hero p { opacity: 0.8; font-size: 16px; }
.breadcrumb { font-size: 13px; opacity: 0.6; margin-bottom: 12px; }
.breadcrumb a { color: var(--accent-light); }

.page-content { padding: 60px 0; }

/* Cards & Forms */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}
td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
tr:hover td { background: #F0F7FF; }
tr:last-child td { border-bottom: none; }

/* Status Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.badge-success { background: #DCFCE7; color: #15803D; }
.badge-warning { background: #FEF3C7; color: #B45309; }
.badge-danger { background: #FEE2E2; color: #B91C1C; }
.badge-info { background: #DBEAFE; color: #1D4ED8; }
.badge-primary { background: #EFF6FF; color: var(--primary); }

/* Form full */
.form-full { display: flex; flex-direction: column; gap: 16px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }

/* Alert boxes */
.alert { padding: 14px 18px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #ECFDF5; border: 1px solid #86EFAC; color: #14532D; }
.alert-warning { background: #FFFBEB; border: 1px solid #FCD34D; color: #78350F; }
.alert-danger { background: #FEF2F2; border: 1px solid #FCA5A5; color: #7F1D1D; }
.alert-info { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E3A8A; }

/* ========== DASHBOARD LAYOUT ========== */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 80vh; gap: 0; }
.sidebar {
  background: var(--primary);
  color: #fff;
  padding: 24px 0;
  border-radius: 0 0 0 var(--radius);
}
.sidebar-menu { list-style: none; }
.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.sidebar-menu li a:hover, .sidebar-menu li a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-right: 3px solid var(--accent);
}
.sidebar-section-title { padding: 18px 24px 6px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.4; }
.dashboard-main { padding: 30px; background: var(--bg); }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.dash-header h2 { font-size: 22px; font-weight: 700; color: var(--primary); }

/* Metric Cards */
.metrics-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.metric-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.metric-card .metric-val { font-size: 28px; font-weight: 800; color: var(--primary); font-family: var(--font-display); }
.metric-card .metric-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.metric-card .metric-change { font-size: 12px; color: var(--success); margin-top: 4px; font-weight: 600; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero-card { display: none; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .hero h1 { font-size: 28px; }
  .section-header h2 { font-size: 26px; }
  .features-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .stats-inner { gap: 10px; }
  .stat-item { padding: 10px 16px; }
  .stat-divider { display: none; }
  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .form-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
}
