/* ===========================
   CARGOTRACK — MAIN STYLES
   =========================== */

:root {
  --navy: #0B2545;
  --navy-light: #134074;
  --teal: #13B68F;
  --teal-dark: #0D9B78;
  --accent: #F4A623;
  --danger-red: #E63946;
  --text-dark: #1A1A2E;
  --text-muted: #6B7280;
  --bg-light: #F7F9FC;
  --border: #E5E7EB;
  --white: #ffffff;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.14);
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text-dark); background: #fff; overflow-x: hidden; }

/* ---- TOPBAR ---- */
.topbar { background: var(--navy); font-size: 12.5px; }
.topbar-info span { color: rgba(255,255,255,.75); }
.topbar-info i { color: var(--teal); }
.topbar-social a { color: rgba(255,255,255,.5); font-size: 14px; transition: color .2s; }
.topbar-social a:hover { color: var(--teal); }

/* ---- NAVBAR ---- */
.main-navbar { background: var(--navy-light); padding: 10px 0; box-shadow: var(--shadow-md); }
.brand-icon { width: 42px; height: 42px; background: var(--teal); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; flex-shrink: 0; }
.brand-name { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.1; }
.brand-tagline { font-size: 10px; color: rgba(255,255,255,.5); font-weight: 400; letter-spacing: .04em; }
.main-navbar .nav-link { color: rgba(255,255,255,.85) !important; font-size: 13.5px; font-weight: 500; padding: 8px 12px !important; border-radius: var(--radius-sm); transition: all .2s; }
.main-navbar .nav-link:hover, .main-navbar .nav-link.active { color: #fff !important; background: rgba(255,255,255,.12); }
.main-navbar .dropdown-menu { background: var(--navy); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: 6px; margin-top: 8px; }
.main-navbar .dropdown-item { color: rgba(255,255,255,.8); font-size: 13px; border-radius: 6px; padding: 8px 12px; transition: all .2s; }
.main-navbar .dropdown-item:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-track-cta { background: var(--teal); color: #fff !important; border-radius: 8px; padding: 9px 20px !important; font-size: 13px; font-weight: 600; border: none; transition: all .2s; }
.btn-track-cta:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(19,182,143,.4); }

/* ---- HERO ---- */
.hero-section { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1a5276 100%); min-height: 88vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 80px 0 60px; }
.hero-section::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(19,182,143,.2); border: 1px solid rgba(19,182,143,.4); border-radius: 20px; padding: 5px 14px; font-size: 12.5px; color: #5DCAA5; font-weight: 500; margin-bottom: 20px; }
.hero-title { font-size: clamp(30px, 4.5vw, 52px); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 18px; }
.hero-title span { color: var(--teal); }
.hero-subtitle { font-size: 16px; color: rgba(255,255,255,.7); line-height: 1.8; margin-bottom: 32px; max-width: 520px; }
.hero-cta-group { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.btn-hero-primary { background: var(--teal); color: #fff; padding: 14px 32px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: none; display: inline-flex; align-items: center; gap: 8px; transition: all .25s; }
.btn-hero-primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 25px rgba(19,182,143,.45); }
.btn-hero-outline { background: transparent; color: #fff; padding: 14px 32px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 2px solid rgba(255,255,255,.35); display: inline-flex; align-items: center; gap: 8px; transition: all .25s; }
.btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-stat-num { font-size: 28px; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 3px; }
.hero-divider { width: 1px; background: rgba(255,255,255,.15); align-self: stretch; }

/* TRACK BOX in hero */
.hero-track-box { background: rgba(255,255,255,.07); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 28px; }
.hero-track-box h5 { color: #fff; font-weight: 600; font-size: 16px; margin-bottom: 16px; }
.track-input-group { display: flex; gap: 8px; }
.track-input-group input { flex: 1; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 12px 16px; color: #fff; font-size: 14px; }
.track-input-group input::placeholder { color: rgba(255,255,255,.45); }
.track-input-group input:focus { outline: none; border-color: var(--teal); background: rgba(255,255,255,.15); }
.btn-track-submit { background: var(--teal); color: #fff; border: none; border-radius: 8px; padding: 12px 22px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.btn-track-submit:hover { background: var(--teal-dark); }
.cargo-type-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cargo-pill { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 20px; padding: 5px 14px; font-size: 12px; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 5px; }
.hero-trust { margin-top: 16px; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.5); font-size: 12px; }

/* ---- SECTION COMMONS ---- */
.section-eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.section-eyebrow::before { content: ''; display: block; width: 30px; height: 2px; background: var(--teal); border-radius: 2px; }
.section-title { font-size: clamp(22px, 3vw, 36px); font-weight: 800; color: var(--text-dark); line-height: 1.2; margin-bottom: 14px; }
.section-desc { font-size: 15.5px; color: var(--text-muted); line-height: 1.8; max-width: 560px; }

/* ---- SERVICES ---- */
.services-section { padding: 90px 0; background: var(--bg-light); }
.service-card { background: #fff; border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--border); transition: all .3s; height: 100%; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.service-icon { width: 64px; height: 64px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 20px; }
.service-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; }
.service-features { list-style: none; padding: 0; margin: 0 0 20px; }
.service-features li { font-size: 13px; color: var(--text-muted); padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.service-features li i { color: var(--teal); font-size: 14px; }
.service-link { color: var(--teal); font-size: 13px; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 5px; }
.service-link:hover { color: var(--teal-dark); }

/* ---- HOW IT WORKS ---- */
.how-section { padding: 90px 0; }
.step-card { text-align: center; padding: 30px 20px; }
.step-number { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; position: relative; }
.step-number::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px dashed rgba(19,182,143,.4); }
.step-card h5 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }

/* ---- WHY US ---- */
.why-section { padding: 90px 0; background: var(--navy); }
.why-section .section-title { color: #fff; }
.why-section .section-desc { color: rgba(255,255,255,.65); }
.why-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 28px; transition: all .3s; }
.why-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.why-icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(19,182,143,.2); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--teal); margin-bottom: 16px; }
.why-card h5 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.why-card p { color: rgba(255,255,255,.6); font-size: 13.5px; line-height: 1.75; }

/* ---- STATS BANNER ---- */
.stats-section { background: var(--teal); padding: 60px 0; }
.stat-item { text-align: center; }
.stat-item .stat-num { font-size: 44px; font-weight: 900; color: #fff; line-height: 1; }
.stat-item .stat-label { font-size: 14px; color: rgba(255,255,255,.8); margin-top: 6px; }

/* ---- TESTIMONIALS ---- */
.testimonials-section { padding: 90px 0; background: var(--bg-light); }
.testimonial-card { background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); height: 100%; }
.testimonial-stars { color: var(--accent); font-size: 14px; margin-bottom: 14px; }
.testimonial-text { font-size: 14px; color: var(--text-muted); line-height: 1.8; font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0; }

/* ---- TRACKING PAGE ---- */
.tracking-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); padding: 60px 0 40px; }
.tracking-timeline .tl-item { display: flex; gap: 16px; padding-bottom: 28px; position: relative; }
.tracking-timeline .tl-item:last-child { padding-bottom: 0; }
.tracking-timeline .tl-line { position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--border); }
.tracking-timeline .tl-item.done .tl-line { background: var(--teal); }
.tracking-timeline .tl-dot { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; z-index: 1; }
.tl-dot.done { background: var(--teal); color: #fff; }
.tl-dot.active { background: var(--navy); color: #fff; animation: pulse-dot 1.5s ease-in-out infinite; }
.tl-dot.pending { background: var(--border); color: var(--text-muted); }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 0 rgba(19,182,143,.5); } 50% { box-shadow: 0 0 0 8px rgba(19,182,143,0); } }
.tl-content h6 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.tl-content small { font-size: 12px; color: var(--text-muted); }

/* ---- ADMIN ---- */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--navy); flex-shrink: 0; display: flex; flex-direction: column; }
.sidebar-nav { padding: 12px 8px; flex: 1; }
.sidebar-nav .nav-label { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3); padding: 8px 10px 4px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: rgba(255,255,255,.65); font-size: 13.5px; text-decoration: none; transition: all .2s; margin-bottom: 2px; }
.sidebar-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.sidebar-link.active { background: var(--teal); color: #fff; font-weight: 600; }
.sidebar-link i { font-size: 16px; width: 20px; text-align: center; }
.admin-main { flex: 1; background: #F4F6FB; overflow-x: hidden; }
.admin-topbar { background: #fff; padding: 0 28px; height: 60px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.admin-content { padding: 28px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--border); }
.stat-card-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.admin-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.admin-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-card-header h5 { font-size: 15px; font-weight: 700; margin: 0; }
.admin-card-body { padding: 20px; }
.admin-table thead th { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; border: none; background: var(--bg-light); padding: 10px 14px; }
.admin-table tbody td { font-size: 13.5px; padding: 12px 14px; vertical-align: middle; border-color: var(--border); }
.admin-table tbody tr:hover { background: var(--bg-light); }
.badge-status { padding: 4px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.badge-pending { background: #FEF3C7; color: #92400E; }
.badge-picked_up { background: #DBEAFE; color: #1E40AF; }
.badge-in_transit { background: #FEF9C3; color: #854D0E; }
.badge-at_warehouse { background: #EDE9FE; color: #5B21B6; }
.badge-out_for_delivery { background: #D1FAE5; color: #065F46; }
.badge-delivered { background: #D1FAE5; color: #064E3B; }
.badge-failed { background: #FEE2E2; color: #991B1B; }
.form-section-title { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.form-section-title i { color: var(--teal); }

/* ---- RECEIPT ---- */
.receipt-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-md); overflow: hidden; }
.receipt-header { background: var(--navy); padding: 28px 32px; }

/* ---- PRINT ---- */
@media print {
  .no-print, nav, .main-navbar, .topbar, footer, .admin-sidebar, .admin-topbar { display: none !important; }
  .receipt-card { box-shadow: none !important; }
  body { background: #fff !important; }
}

/* ---- UTILS ---- */
.bg-navy { background: var(--navy) !important; }
.text-teal { color: var(--teal) !important; }
.text-navy { color: var(--navy) !important; }
.btn-teal { background: var(--teal); color: #fff; border: none; border-radius: 8px; padding: 10px 22px; font-weight: 600; font-size: 14px; transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-teal:hover { background: var(--teal-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; border: none; border-radius: 8px; padding: 10px 22px; font-weight: 600; font-size: 14px; transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-navy:hover { background: var(--navy-light); color: #fff; }

/* FOOTER */
.site-footer { background: var(--navy); }
.footer-top { padding: 70px 0 50px; }
.footer-desc { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.8; }
.footer-badge { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 5px 12px; font-size: 11.5px; color: rgba(255,255,255,.7); display: inline-flex; align-items: center; }
.social-links { display: flex; gap: 8px; }
.social-links a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: 15px; transition: all .2s; text-decoration: none; }
.social-links a:hover { background: var(--teal); color: #fff; }
.footer-heading { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 18px; padding-bottom: 8px; border-bottom: 2px solid var(--teal); display: inline-block; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: 13.5px; text-decoration: none; transition: all .2s; display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--teal); padding-left: 4px; }
.footer-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-contact-list li { display: flex; gap: 12px; color: rgba(255,255,255,.6); font-size: 13.5px; line-height: 1.6; }
.footer-contact-list li i { color: var(--teal); font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.footer-subscribe input { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; }
.footer-subscribe input::placeholder { color: rgba(255,255,255,.3); }
.footer-subscribe input:focus { background: rgba(255,255,255,.12); border-color: var(--teal); outline: none; box-shadow: none; }
.footer-bottom { background: rgba(0,0,0,.3); padding: 18px 0; }
.footer-bottom p, .footer-bottom a { color: rgba(255,255,255,.45); font-size: 13px; text-decoration: none; }
.footer-bottom a:hover { color: var(--teal); }

@keyframes fadeInUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
.animate-fade-up { animation: fadeInUp .7s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
