/* ===========================================================
   CargoLink — public site styles
   Palette: near-black #0E0F11, mint accent #5FE3A6,
   off-white sections #F6F7F5, ink text #15171A
   =========================================================== */

:root {
  --ink: #15171A;
  --black: #0E0F11;
  --mint: #5FE3A6;
  --mint-dark: #3FC988;
  --paper: #F6F7F5;
  --line: #E4E6E2;
  --muted: #6B7268;
  --white: #FFFFFF;
  --warn: #E0A95C;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* ---------- Navbar ---------- */
.navbar { background: var(--black); color: var(--white); }
.navbar .container {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 800;
  letter-spacing: 0.04em; font-size: 1.1rem; text-transform: uppercase;
}
.brand .dot { color: var(--mint); }
.nav-links {
  display: flex; align-items: center; gap: 28px; font-size: 0.92rem;
  font-weight: 600; letter-spacing: 0.02em;
}
.nav-links a { opacity: 0.85; transition: opacity .15s; }
.nav-links a:hover { opacity: 1; }
.btn {
  display: inline-block; border: none; border-radius: 999px; padding: 10px 22px;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em; cursor: pointer; text-align: center;
}
.btn-mint { background: var(--mint); color: var(--black); }
.btn-mint:hover { background: var(--mint-dark); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.4); color: var(--white); }
.btn-outline:hover { border-color: var(--mint); color: var(--mint); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #222; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { background: var(--black); color: var(--white); padding: 90px 0 110px; }
.hero .eyebrow {
  color: var(--mint); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 0.78rem; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; font-weight: 800;
  margin: 0 0 20px; max-width: 720px;
}
.hero h1 span { color: var(--mint); }
.hero p {
  color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 540px;
  margin: 0 0 32px; line-height: 1.6;
}
.hero .cta-row { display: flex; gap: 14px; }

/* ---------- Section ---------- */
.section { padding: 72px 0; }
.section-paper { background: var(--paper); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head .eyebrow {
  color: var(--mint-dark); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; font-size: 0.78rem; margin-bottom: 10px;
}
.section-head h2 { font-size: 2rem; font-weight: 800; margin: 0 0 12px; }
.section-head p { color: var(--muted); line-height: 1.6; margin: 0; }

/* ---------- Status timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .timeline { grid-template-columns: 1fr; } }
.timeline-step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px;
}
.timeline-step .num {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--black); color: var(--mint); font-weight: 800;
  font-size: 0.85rem; margin-bottom: 14px;
}
.timeline-step h3 { font-size: 1rem; margin: 0 0 6px; font-weight: 700; }
.timeline-step p { color: var(--muted); font-size: 0.88rem; margin: 0; line-height: 1.5; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: rgba(255,255,255,0.6); padding: 40px 0; font-size: 0.85rem; }
.footer .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}

/* ---------- Auth card ---------- */
.auth-wrap {
  min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center;
  background: var(--paper); padding: 40px 20px;
}
.auth-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 36px; width: 100%; max-width: 380px;
}
.auth-card h1 { font-size: 1.5rem; margin: 0 0 6px; font-weight: 800; }
.auth-card .sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 0.95rem; font-family: inherit;
}
.field input:focus { outline: none; border-color: var(--mint-dark); }
.form-error {
  background: #FDECEC; color: #B3261E; padding: 10px 14px; border-radius: 8px;
  font-size: 0.85rem; margin-bottom: 18px;
}

/* ---------- Dashboard ---------- */
.dash-header { background: var(--black); color: var(--white); padding: 36px 0; }
.dash-header h1 { margin: 0 0 6px; font-size: 1.6rem; font-weight: 800; }
.dash-header p { margin: 0; color: rgba(255,255,255,0.65); }

.order-grid {
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  padding: 40px 0 70px;
}
.order-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.order-card .top-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.order-card h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; }
.order-card .order-id { color: var(--muted); font-size: 0.8rem; }
.badge { display: inline-block; font-size: 0.74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.02em; }
.badge-status { background: #E9F8F0; color: var(--mint-dark); }
.badge-paid { background: #E9F8F0; color: var(--mint-dark); }
.badge-unpaid { background: #FBF0E2; color: #9A6B23; }
.order-meta { font-size: 0.88rem; color: var(--ink); margin: 4px 0; }
.order-meta b { color: var(--muted); font-weight: 600; }
.progress-track { display: flex; gap: 4px; margin: 16px 0 10px; }
.progress-seg { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.progress-seg.done { background: var(--mint); }
.order-notes { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
