/* ==========================================================================
   GIMMS LINK GLOBAL LOGISTICS — design system
   Palette:  Harbor Navy / Sea-foam White / Signal Amber / Freight Teal
   Type:     Fraunces (display) · IBM Plex Sans (body/UI) · IBM Plex Mono (codes)
   ========================================================================== */

:root {
  /* ---- color ---- */
  --navy-950: #071c2c;
  --navy-800: #0f2e45;
  --navy-700: #163c58;
  --slate-600: #4a6478;
  --paper: #f3f5f4;
  --paper-dim: #e9ece9;
  --ink: #10202b;
  --ink-soft: #445564;
  --amber-500: #e2a33b;
  --amber-600: #c98a24;
  --teal-500: #1d7a82;
  --teal-600: #155f66;
  --line: #d7dee0;
  --line-on-dark: rgba(255, 255, 255, 0.14);
  --white: #ffffff;

  /* mode accent colors (air / sea / road) */
  --mode-air: var(--teal-500);
  --mode-sea: var(--navy-700);
  --mode-road: var(--amber-600);

  /* ---- type ---- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* ---- layout ---- */
  --container: 1180px;
  --radius: 3px;
  --header-h: 84px;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; max-width: 62ch; }
button { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--dark { background: var(--navy-950); color: var(--paper); }
.section--dark p { color: rgba(243,245,244,0.72); }
.section--dim { background: var(--paper-dim); }

.eyebrow-note { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.02em; color: var(--teal-600); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.section-head p { color: var(--ink-soft); }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--amber { background: var(--amber-500); color: var(--navy-950); }
.btn--amber:hover { background: var(--amber-600); }
.btn--outline-light { border-color: rgba(255,255,255,0.35); color: var(--paper); }
.btn--outline-light:hover { border-color: var(--paper); background: rgba(255,255,255,0.06); }
.btn--outline-dark { border-color: var(--navy-800); color: var(--navy-800); }
.btn--outline-dark:hover { background: var(--navy-950); color: var(--white); }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ==========================================================================
   Forms (quote + tracking + contact)
   ========================================================================== */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid--single { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy-800); }
.field .hint { font-size: 0.78rem; color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-500); }
.field--full { grid-column: 1 / -1; }
textarea { resize: vertical; min-height: 100px; }

.alert { padding: 14px 16px; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 22px; border: 1px solid; }
.alert--success { background: #eaf6ee; border-color: #a9d8b6; color: #1e5c33; }
.alert--error { background: #fdecec; border-color: #f0b4b4; color: #8a2020; }
.alert--info { background: #eaf3f6; border-color: #b7d8e0; color: var(--navy-800); }

.quote-result { margin-top: 24px; padding: 22px; border: 1px dashed var(--teal-500); border-radius: var(--radius); background: #f0f7f7; }
.quote-result__figure { font-family: var(--font-mono); font-size: 1.5rem; color: var(--navy-950); }
.quote-result__figure span { color: var(--ink-soft); font-size: 0.85rem; font-family: var(--font-body); display: block; }

/* tracking */
.track-form { display: flex; gap: 12px; max-width: 560px; }
.track-form input { flex: 1; }
@media (max-width: 560px) { .track-form { flex-direction: column; } }

.track-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; background: var(--paper-dim); color: var(--navy-800); }
.track-status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); }
.track-status[data-status="delivered"] .track-status__dot { background: #2e8b4f; }
.track-status[data-status="on_hold"] .track-status__dot { background: #c94a3a; }

.timeline { border-left: 2px solid var(--line); margin-top: 28px; padding-left: 26px; }
.timeline__item { position: relative; padding-bottom: 28px; }
.timeline__item::before { content: ""; position: absolute; left: -32px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--amber-500); border: 2px solid var(--paper); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item time { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); }
.timeline__item h4 { font-size: 1rem; margin: 4px 0 2px; }
.timeline__item p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }


/* ==========================================================================
   Misc content blocks
   ========================================================================== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-on-dark); border-bottom: 1px solid var(--line-on-dark); }
.stat-strip__item { padding: 28px 20px; text-align: center; border-left: 1px solid var(--line-on-dark); }
.stat-strip__item:first-child { border-left: none; }
.stat-strip__item strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--white); }
.stat-strip__item span { font-size: 0.8rem; color: rgba(243,245,244,0.6); }
@media (max-width: 700px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } .stat-strip__item:nth-child(3) { border-left: none; } }

.breadcrumb { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--teal-600); }
.breadcrumb a:hover { text-decoration: underline; }

.page-hero { background: var(--navy-950); color: var(--paper); padding: 56px 0; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 20ch; }
.page-hero p { color: rgba(243,245,244,0.72); }


/* ==========================================================================
   Admin panel
   ========================================================================== */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy-950); color: var(--paper); padding: 24px 18px; }
.admin-side .brand { margin-bottom: 30px; }
.admin-side a { display: block; padding: 10px 12px; border-radius: var(--radius); font-size: 0.9rem; color: rgba(243,245,244,0.8); margin-bottom: 2px; }
.admin-side a:hover, .admin-side a[aria-current="page"] { background: rgba(255,255,255,0.08); color: var(--white); }
.admin-main { padding: 36px 40px; background: var(--paper); }
.admin-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.table th { background: var(--paper-dim); font-weight: 600; color: var(--navy-800); }
.table td.mono, .table th.mono { font-family: var(--font-mono); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; background: var(--paper-dim); color: var(--navy-800); }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy-950); padding: 20px; }
.login-shell .card { width: 100%; max-width: 380px; }
@media (max-width: 760px) { .admin-shell { grid-template-columns: 1fr; } .admin-side { display: flex; gap: 4px; overflow-x: auto; padding: 14px; } .admin-side .brand { display: none; } }
