/* ============================================================
   TNT Track Path — Shared Stylesheet
   style.css
   Used by: index.html and track.html
============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; max-width: 100%; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; color: #1e293b; background: #fff; overflow-x: hidden; }
h1, h2, h3, h4, h5 { font-family: 'Syne', sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── CSS VARIABLES ── */
:root {
  --navy:   #0a1628;
  --navy2:  #112040;
  --blue:   #1a56db;
  --blue2:  #3b82f6;
  --blue3:  #93c5fd;
  --gold:   #f59e0b;
  --gold2:  #fcd34d;
  --green:  #10b981;
  --green2: #6ee7b7;
  --green3: #d1fae5;
  --red:    #ef4444;
  --red3:   #fee2e2;
  --orange: #f97316;
  --orange3:#ffedd5;
  --white:  #ffffff;
  --g50:    #f8fafc;
  --g100:   #f1f5f9;
  --g200:   #e2e8f0;
  --g400:   #94a3b8;
  --g600:   #475569;
  --g800:   #1e293b;
}

/* ── TOPBAR ── */
.topbar {
  background: #07101f;
  padding: 7px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}
.topbar-r { display: flex; gap: 20px; }

/* ── NAV ── */
nav {
  background: var(--navy);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo-icon {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800; color: var(--navy); font-size: 14px;
}
.logo-text { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--white); font-size: 18px; }
.logo-text span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: rgba(255,255,255,.65); font-size: 13.5px; transition: color .2s; cursor: pointer; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700 !important;
  font-size: 13px !important;
}
.nav-cta:hover { background: var(--gold2) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 4px 0; border-radius: 2px; transition: .3s; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 55%, #0f2d5a 100%);
  padding: 90px 5% 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.hero-orb1 {
  position: absolute; top: -100px; left: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,86,219,.1) 0%, transparent 70%);
  pointer-events: none; overflow: hidden;
}
.hero-orb2 {
  position: absolute; bottom: -80px; right: -80px;
  width: 350px; height: 350px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.08) 0%, transparent 70%);
  pointer-events: none; overflow: hidden;
}
.hero-badge {
  display: inline-block;
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.28);
  color: var(--gold);
  padding: 5px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(28px, 4.5vw, 56px);
  color: var(--white); line-height: 1.08;
  margin-bottom: 18px;
  max-width: 780px; margin-left: auto; margin-right: auto;
}
.hero h1 span { color: var(--gold); }
.hero-sub {
  color: rgba(255,255,255,.58);
  font-size: 16px;
  max-width: 510px;
  margin: 0 auto 46px;
  line-height: 1.7;
}

/* ── HERO TRACK BOX ── */
.hero-track-box {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 30px 36px;
  max-width: 600px;
  margin: 0 auto;
}
.hero-track-box h3 { color: var(--white); font-size: 17px; margin-bottom: 5px; }
.hero-track-box p { color: rgba(255,255,255,.4); font-size: 12.5px; margin-bottom: 18px; }
.track-row { display: flex; gap: 10px; }
.track-row input {
  flex: 1; padding: 13px 16px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.07);
  color: var(--white); font-size: 14px; outline: none;
  transition: border .2s; font-family: 'Inter', sans-serif;
}
.track-row input::placeholder { color: rgba(255,255,255,.28); }
.track-row input:focus { border-color: var(--blue2); }
.btn-gold {
  background: var(--gold); color: var(--navy);
  border: none; padding: 13px 26px; border-radius: 8px;
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background .2s, transform .1s;
}
.btn-gold:hover { background: var(--gold2); }
.btn-gold:active { transform: scale(.98); }

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--blue);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 26px 5%; text-align: center;
  width: 100%;
}
.stat-item { border-right: 1px solid rgba(255,255,255,.18); }
.stat-item:last-child { border: none; }
.stat-item .num { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 700; color: var(--white); }
.stat-item .lbl { font-size: 12px; color: rgba(255,255,255,.62); margin-top: 4px; }

/* ── SECTIONS ── */
section { padding: 76px 5%; }
.sec-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.sec-title { font-size: clamp(24px, 3vw, 36px); color: var(--navy); margin-bottom: 14px; }
.sec-sub { color: var(--g600); font-size: 15px; max-width: 530px; line-height: 1.7; }
.sec-header { margin-bottom: 48px; }
.bg-gray { background: var(--g50); }
.bg-navy { background: var(--navy); }
.bg-navy .sec-label { color: var(--gold); }
.bg-navy .sec-title { color: var(--white); }

/* ── SERVICE CARDS ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 22px; }
.svc-card {
  background: var(--white); border: 1px solid var(--g200);
  border-radius: 14px; padding: 30px 26px;
  transition: box-shadow .2s, transform .2s, border-color .2s; cursor: pointer;
}
.svc-card:hover { box-shadow: 0 10px 36px rgba(10,22,40,.09); transform: translateY(-3px); border-color: var(--blue2); }
.svc-icon { width: 50px; height: 50px; background: #dbeafe; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.svc-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.svc-card p { font-size: 13.5px; color: var(--g600); line-height: 1.65; }

/* ── WHY US ── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 30px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-dot { width: 42px; height: 42px; min-width: 42px; background: linear-gradient(135deg, var(--blue), var(--blue2)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.why-item h4 { font-size: 15px; color: var(--navy); margin-bottom: 5px; }
.why-item p { font-size: 13px; color: var(--g600); line-height: 1.6; }

/* ── TESTIMONIALS ── */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 22px; }
.testi-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 26px; }
.testi-stars { color: var(--gold); font-size: 13px; margin-bottom: 14px; }
.testi-card blockquote { color: rgba(255,255,255,.76); font-size: 13.5px; line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-av { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 700; color: var(--navy); font-size: 12px; }
.testi-name { font-weight: 500; color: var(--white); font-size: 13.5px; }
.testi-role { font-size: 11.5px; color: rgba(255,255,255,.4); }

/* ── CTA ── */
.cta-section { background: linear-gradient(135deg, var(--blue) 0%, #1e40af 100%); padding: 70px 5%; text-align: center; }
.cta-section h2 { color: var(--white); font-size: 34px; margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,.7); font-size: 15px; margin-bottom: 34px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: var(--white); color: var(--blue); padding: 13px 30px; border-radius: 8px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; cursor: pointer; border: none; transition: opacity .2s; }
.btn-white:hover { opacity: .9; }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.4); padding: 13px 30px; border-radius: 8px; font-family: 'Syne', sans-serif; font-weight: 600; font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.07); }

/* ── FOOTER ── */
footer { background: var(--navy); padding: 56px 5% 28px; border-top: 1px solid rgba(255,255,255,.05); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.footer-col h4 { font-size: 13px; color: var(--white); margin-bottom: 14px; font-weight: 600; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { color: rgba(255,255,255,.45); font-size: 13px; transition: color .2s; cursor: pointer; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-desc { color: rgba(255,255,255,.42); font-size: 12.5px; line-height: 1.7; margin-top: 10px; }
.footer-track { display: flex; gap: 8px; margin-top: 14px; }
.footer-track input { flex: 1; padding: 9px 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: var(--white); font-size: 12.5px; outline: none; font-family: 'Inter', sans-serif; }
.footer-track input::placeholder { color: rgba(255,255,255,.22); }
.footer-track button { background: var(--gold); color: var(--navy); border: none; padding: 9px 14px; border-radius: 6px; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 22px; display: flex; justify-content: space-between; font-size: 11.5px; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 8px; }

/* ── PAGE HERO (inner pages) ── */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); padding: 56px 5% 48px; text-align: center; }
.page-hero h1 { color: var(--white); font-size: 36px; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.52); font-size: 15px; }
.breadcrumb { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,.32); margin-top: 14px; }
.breadcrumb a { color: var(--gold); cursor: pointer; }

/* ── TRACK SECTION ── */
.track-section { padding: 52px 5%; background: var(--g50); }
.track-box { background: var(--white); border: 1px solid var(--g200); border-radius: 16px; padding: 36px; max-width: 700px; margin: 0 auto 34px; box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.track-box h2 { font-size: 21px; color: var(--navy); margin-bottom: 7px; }
.track-box > p { font-size: 13.5px; color: var(--g600); margin-bottom: 26px; line-height: 1.65; }
.track-form { display: flex; gap: 10px; }
.track-form input { flex: 1; padding: 13px 16px; border: 1.5px solid var(--g200); border-radius: 8px; font-size: 14px; outline: none; transition: border-color .2s; color: var(--g800); font-family: 'Inter', sans-serif; }
.track-form input:focus { border-color: var(--blue2); }
.track-form button { background: var(--navy); color: var(--white); border: none; padding: 13px 26px; border-radius: 8px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .2s; }
.track-form button:hover { background: var(--blue); }
.track-tips { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--g200); }
.track-tip { font-size: 12.5px; color: var(--g600); display: flex; align-items: center; gap: 7px; }
.track-tip::before { content: '✓'; color: var(--green); font-weight: 700; }

/* ── RESULT CARD ── */
#trackResult { display: none; max-width: 700px; margin: 0 auto; }
.result-card { background: var(--white); border: 1px solid var(--g200); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.05); margin-bottom: 22px; }
.result-header { background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); padding: 26px 30px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.result-header-l h3 { color: var(--white); font-size: 19px; margin-bottom: 4px; }
.result-header-l .trk-num { color: rgba(255,255,255,.5); font-size: 12.5px; font-family: monospace; }
.status-pill { padding: 7px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sp-transit   { background: #dbeafe; color: #1e40af; }
.sp-delivered { background: var(--green3); color: #065f46; }
.sp-pending   { background: var(--orange3); color: #9a3412; }
.sp-delayed   { background: var(--red3); color: #991b1b; }

/* ── RESULT META ── */
.result-meta { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--g200); }
.meta-item { padding: 18px 22px; border-right: 1px solid var(--g200); }
.meta-item:last-child { border: none; }
.meta-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--g400); margin-bottom: 5px; }
.meta-val { font-size: 14px; font-weight: 500; color: var(--navy); }

/* ── ROUTE DIAGRAM ── */
.route-diagram-wrap { background: var(--navy); padding: 26px 30px; }
.route-diagram-wrap h4 { color: var(--white); font-size: 15px; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);}50%{opacity:.4;transform:scale(1.5);} }
.route-svg-wrap { width: 100%; overflow: hidden; border-radius: 8px; }

/* ── TIMELINE ── */
.result-timeline { padding: 26px 30px; }
.result-timeline h4 { font-size: 15px; color: var(--navy); margin-bottom: 22px; }
.tl-item { display: flex; gap: 16px; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-left { display: flex; flex-direction: column; align-items: center; }
.tl-dot { width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid var(--g200); background: var(--white); flex-shrink: 0; z-index: 1; }
.tl-dot.done   { border-color: var(--green); background: var(--green); }
.tl-dot.active { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 4px rgba(26,86,219,.14); }
.tl-line { width: 2px; flex: 1; background: var(--g200); margin-top: 2px; min-height: 18px; }
.tl-line.done { background: var(--green); }
.tl-content { flex: 1; }
.tl-event { font-size: 13.5px; font-weight: 500; color: var(--navy); }
.tl-event.muted { color: var(--g400); font-weight: 400; }
.tl-loc-time { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.tl-loc { font-size: 12px; color: var(--g600); }
.tl-time { font-size: 12px; color: var(--g400); }

/* ── INFO BOXES ── */
.result-info { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 0 30px 28px; }
.info-box { background: var(--g50); border-radius: 10px; padding: 15px 17px; }
.info-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--g400); margin-bottom: 5px; }
.info-val { font-size: 13.5px; color: var(--navy); font-weight: 500; }
.info-sub { font-size: 12px; color: var(--g600); margin-top: 2px; }

/* ── NOT FOUND ── */
.not-found { padding: 50px 30px; text-align: center; }
.not-found .nf-icon { font-size: 44px; margin-bottom: 12px; }
.not-found h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.not-found p { font-size: 13.5px; color: var(--g600); }

/* ── LOADING SPINNER ── */
.spinner-wrap { text-align: center; padding: 40px; }
.spinner { display: inline-block; width: 36px; height: 36px; border: 3px solid var(--g200); border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TOAST ── */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: 9px; font-size: 13px; font-weight: 500; z-index: 999; transform: translateY(80px); opacity: 0; transition: all .3s; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid var(--green); }
.toast.error   { border-left: 4px solid var(--red); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  /* Mobile nav */
  nav { position: sticky; flex-wrap: wrap; height: auto; min-height: 66px; padding: 0 5%; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,22,40,.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 300;
    padding: 40px 5%;
    backdrop-filter: blur(10px);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 20px !important;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
    width: 100%;
    text-align: center;
    color: rgba(255,255,255,.85) !important;
  }
  .nav-links a:hover { color: var(--gold) !important; }
  .nav-links .nav-cta {
    background: var(--gold) !important;
    color: var(--navy) !important;
    border-radius: 8px;
    padding: 12px 28px !important;
    margin-top: 8px;
    font-size: 16px !important;
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 400;
    position: relative;
  }
  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: all .3s;
  }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .track-row, .track-form { flex-direction: column; }
  .result-meta { grid-template-columns: 1fr; }
  .result-info { grid-template-columns: 1fr; }
  .hero-track-box { padding: 22px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero { padding: 60px 5% 52px; }
  section { padding: 52px 5%; }
  .result-header { flex-direction: column; }
  .result-timeline, .route-diagram-wrap { padding: 20px; }
  .result-info { padding: 0 20px 22px; }
}
