:root {
  --navy: #1e3a5f;
  --navy-700: #16304f;
  --blue: #2f6fb0;
  --blue-500: #3b82c4;
  --accent: #f5a623;
  --ink: #1f2933;
  --muted: #5b6b7b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(30, 58, 95, 0.08);
  --maxw: 1140px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.muted { color: var(--muted); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
}
.brand-logo { height: 60px; width: auto; display: block; }
.brand-mark { font-size: 22px; letter-spacing: 0.5px; }
.brand-sub { font-size: 13px; color: var(--accent); letter-spacing: 2px; font-weight: 700; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 60%, #0f2440 100%);
  color: #fff;
  padding: 64px 0 72px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 10px;
  font-weight: 700;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 16px;
}
.hero-sub { font-size: 18px; color: #d6e2f0; max-width: 540px; }
.hero-cta { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #1b1b1b; }
.btn-primary:hover { background: #ffb733; text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { border-color: #fff; text-decoration: none; }

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 24px;
}
.hero-card h3 { margin: 0 0 14px; font-size: 17px; color: var(--accent); }
.hero-card p { margin: 0 0 12px; font-size: 14px; color: #e6eefa; }
.hero-card a { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: 30px;
  color: var(--navy);
  margin: 0 0 8px;
  text-align: center;
}
.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 36px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-text p { margin: 0 0 16px; }
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.stat-value { font-size: 22px; font-weight: 800; color: var(--navy); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(30,58,95,0.12); }
.service-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--blue);
  margin-bottom: 14px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-cat {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}
.service-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 20px; }
.service-summary { color: var(--blue); font-weight: 600; margin: 0 0 12px; }
.feature-list { margin: 14px 0 0; padding-left: 18px; color: var(--muted); }
.feature-list li { margin: 4px 0; }

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.why-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.why-item h4 { margin: 0 0 8px; color: var(--navy); }
.why-item p { margin: 0; color: var(--muted); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }

/* Footer */
.site-footer {
  background: var(--navy-700);
  color: #cdd9e8;
  padding: 48px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 30px;
}
.site-footer h3 { color: #fff; margin: 0 0 10px; }
.site-footer h4 { color: var(--accent); margin: 0 0 12px; }
.site-footer a { color: #cdd9e8; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 16px 0;
  font-size: 13px;
  color: #9fb1c7;
  text-align: center;
}

/* ---------- Track & Trace ---------- */
.hero-track { padding: 56px 0 60px; }
.track-wrap { max-width: 880px; }
.track-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.track-label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.track-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--ink);
  resize: vertical;
  background: #fff;
}
.track-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,176,0.15); }
.track-input:disabled { background: var(--bg-alt); color: var(--muted); cursor: not-allowed; }
.track-actions { margin-top: 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.track-status { color: var(--muted); font-size: 14px; }
.track-results { margin-top: 26px; display: grid; gap: 18px; }

.track-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.track-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 12px;
}
.tc-no { font-size: 18px; font-weight: 800; color: var(--navy); word-break: break-all; }
.tc-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.5px; }
.tc-badge {
  background: var(--blue); color: #fff; font-weight: 700; font-size: 13px;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.track-meta {
  display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted);
  font-size: 14px; border-top: 1px dashed var(--line); padding-top: 12px;
}
.track-error { color: #b42318; font-weight: 600; }
.track-muted { color: var(--muted); }

.timeline { list-style: none; margin: 12px 0 0; padding: 0 0 0 18px; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 4px; top: 4px; bottom: 4px;
  width: 2px; background: var(--line);
}
.timeline-item { position: relative; padding: 0 0 16px 14px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -18px; top: 4px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--blue); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--blue);
}
.tl-time { font-weight: 700; color: var(--ink); font-size: 14px; }
.tl-status { color: var(--navy); font-weight: 600; font-size: 14px; }
.tl-loc { color: var(--muted); font-size: 13px; }
.tl-desc { color: var(--muted); font-size: 14px; }

.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert-info { background: #eaf2fb; color: #1e3a5f; border: 1px solid #cfe0f5; }
.alert-error { background: #fdecea; color: #b42318; border: 1px solid #f6c9c3; }
.alert-ok { background: #e9f7ef; color: #1a7f4b; border: 1px solid #bfe6cf; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .about-grid, .contact-grid, .service-grid, .why-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: 32px; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
}
