/* ============================================================
   JLC — Jesumary Logistics Company Ltd.
   Design tokens
   ============================================================ */

:root {
  --navy: #1B2A3D;
  --navy-deep: #121D2B;
  --orange: #E15522;
  --orange-dark: #B8431A;
  --cream: #F4EFE2;
  --paper: #FCFAF5;
  --ink: #21252B;
  --slate: #5C6772;
  --route-line: #D8D2C2;
  --white: #FFFFFF;

  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius-sm: 3px;
  --radius-md: 6px;
  --max-width: 1200px;
  --edge: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: var(--navy);
  line-height: 1.05;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
h4 { font-size: 1.1rem; letter-spacing: 0.04em; }

p { margin: 0 0 1em; color: var(--ink); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--slate);
  max-width: 54ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1em;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--edge);
}

section {
  padding: clamp(48px, 8vw, 96px) 0;
}

.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }
.bg-navy p { color: #C6CDD6; }

.rule {
  border: none;
  border-top: 1px solid var(--route-line);
  margin: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-dark); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.bg-navy .btn-outline { color: var(--white); }
.bg-navy .btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-whatsapp {
  background: #25963F;
  color: var(--white);
}
.btn-whatsapp:hover { background: #1E7A33; }

.btn-block { width: 100%; justify-content: center; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.8em;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand .logo-chip {
  background: var(--white);
  border-radius: 8px;
  padding: 7px 11px 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.brand .logo-chip img { height: 21px; width: auto; display: block; }

.brand .logo-chip .brand-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.03em;
  color: var(--navy);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #D6DCE3;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--white);
  border-color: var(--orange);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,0.12);
}

.nav-actions .btn-primary {
  box-shadow: 0 3px 10px rgba(225,85,34,0.35);
}
.nav-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(225,85,34,0.45);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

@media (max-width: 1180px) {
  .main-nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 8px var(--edge) 24px;
    gap: 4px;
    display: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); white-space: normal; }
  .nav-toggle { display: block; }
  .nav-actions { border-left: none; padding-left: 0; }
  .nav-actions .btn span.long { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--cream);
  padding-top: clamp(48px, 8vw, 88px);
  padding-bottom: 0;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
}

.hero-copy h1 { margin-bottom: 0.3em; }
.hero-copy .accent { color: var(--orange); }

.hero-art {
  position: relative;
}

.consignment-card {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: var(--paper);
  border: 1px solid var(--route-line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate);
  box-shadow: 0 10px 30px rgba(18,29,43,0.14);
  max-width: 220px;
}
.consignment-card strong {
  display: block;
  color: var(--navy);
  font-size: 0.8rem;
  margin-bottom: 6px;
  font-family: var(--font-body);
}
.consignment-card .row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-top: 1px dashed var(--route-line);
}
.consignment-card .row:first-of-type { border-top: none; }

/* ---------- Manifest / route strip (signature element) ---------- */

.route-strip {
  position: relative;
  padding: 40px 0 8px;
}

.route-track {
  position: relative;
  height: 2px;
  background: repeating-linear-gradient(
    to right, var(--route-line) 0 10px, transparent 10px 18px
  );
  margin: 0 0 -1px;
}

.route-waypoints {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -12px;
}

@media (max-width: 800px) {
  .route-waypoints { grid-template-columns: repeat(2, 1fr); }
}

.waypoint {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.waypoint .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--orange);
  font-weight: 700;
}

.waypoint h4 { margin-bottom: 0.2em; font-size: 1rem; color: var(--navy); }
.waypoint p { font-size: 0.9rem; color: var(--slate); margin: 0; }

/* ---------- Cards / grids ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--route-line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.service-card:hover { border-color: var(--orange); transform: translateY(-2px); }

.service-card .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  color: var(--orange);
}

.service-card h3 { font-size: 1.15rem; margin-bottom: 0.35em; }
.service-card p { font-size: 0.92rem; color: var(--slate); margin: 0; }

.category-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  background: var(--cream);
  border: 1px solid var(--route-line);
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Section headers ---------- */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
}
.section-head .lede { margin: 0; }

@media (max-width: 700px) {
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Why choose / trust ---------- */

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.trust-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.trust-list .num {
  font-family: var(--font-mono);
  color: var(--orange);
  font-size: 0.85rem;
  border: 1px solid var(--orange);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-list h4 { margin-bottom: 0.15em; }
.trust-list p { color: var(--slate); font-size: 0.92rem; margin: 0; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--paper);
  border: 1px solid var(--route-line);
  border-radius: var(--radius-md);
  padding: clamp(24px, 4vw, 40px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--route-line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}

.field textarea { resize: vertical; min-height: 100px; }

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 24px;
}
fieldset legend {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
  font-size: 1.05rem;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--route-line);
  width: 100%;
  margin-bottom: 18px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--slate);
  background: var(--cream);
  border-left: 3px solid var(--orange);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 22px;
}

/* ---------- Tracking interface ---------- */

.tracker-shell {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: clamp(24px, 4vw, 44px);
  color: var(--white);
}

.tracker-input-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.tracker-input-row input {
  flex: 1;
  min-width: 220px;
  font-family: var(--font-mono);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 1rem;
}
.tracker-input-row input::placeholder { color: #8996A4; }
.tracker-input-row input:focus { outline: 2px solid var(--orange); border-color: var(--orange); }

.tracker-result {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 0.92rem;
  display: none;
}
.tracker-result.show { display: block; }

/* ---------- Shipment tracking result ---------- */

.ship-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--route-line);
  border: 1px solid var(--route-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 32px;
}
@media (max-width: 700px) { .ship-summary { grid-template-columns: repeat(2, 1fr); } }
.ship-summary div {
  background: var(--paper);
  padding: 16px 18px;
}
.ship-summary .k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 6px;
}
.ship-summary .v { font-weight: 600; color: var(--navy); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--route-line);
  color: var(--navy);
  margin-bottom: 28px;
}
.status-pill .live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--orange);
}

.exception-banner {
  background: #FBEAE7;
  border: 1px solid #EFC6BE;
  color: #9c2c20;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  font-size: 0.92rem;
}

.ship-timeline { list-style: none; margin: 0; padding: 0; }
.ship-timeline li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding-bottom: 30px;
  position: relative;
}
.ship-timeline li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 30px;
  bottom: 0;
  width: 2px;
  background: var(--route-line);
}
.ship-timeline li:last-child::before { display: none; }
.ship-timeline li:last-child { padding-bottom: 0; }

.ship-timeline .marker {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  border: 2px solid var(--route-line);
  background: var(--paper);
  color: var(--slate);
  z-index: 1;
}
.ship-timeline li.done .marker { border-color: var(--orange); background: var(--orange); color: #fff; }
.ship-timeline li.done::before { background: var(--orange); }
.ship-timeline li.current .marker { border-color: var(--orange); color: var(--orange); background: var(--paper); }
.ship-timeline li.current .stage-name { color: var(--orange); }

.ship-timeline .stage-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 2px;
}
.ship-timeline .stage-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--slate);
}
.ship-timeline li.pending .stage-name,
.ship-timeline li.pending .stage-meta { color: #A9A296; }

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--route-line);
}
.faq-item summary {
  cursor: pointer;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  text-transform: none;
  letter-spacing: 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--orange);
  flex: none;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 20px; color: var(--slate); max-width: 65ch; }

/* ---------- Contact blocks ---------- */

.contact-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-top: 1px solid var(--route-line);
}
.contact-block:first-child { border-top: none; }
.contact-block .icon { color: var(--orange); flex: none; width: 26px; height: 26px; margin-top: 2px; }
.contact-block h4 { margin-bottom: 0.2em; }
.contact-block a.value { font-family: var(--font-mono); color: var(--navy); }
.contact-block a.value:hover { color: var(--orange); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #C6CFD8;
  padding: 56px 0 28px;
}

/* The global `p { color: var(--ink) }` rule always wins over inherited
   color, since a direct element-selector match beats inheritance
   regardless of specificity. That was leaving footer paragraphs in a
   near-black color on a near-black background — this rule overrides
   it explicitly for anything inside the footer. */
.site-footer p { color: #C6CFD8; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .logo-chip {
  background: var(--white);
  border-radius: 6px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  line-height: 0;
}
.footer-brand img { height: 22px; display: block; }
.footer-brand span { color: var(--white); font-family: var(--font-display); font-size: 1rem; }

/* ---------- Homepage quick tracker ---------- */

.quick-track {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-top: 28px;
  max-width: 460px;
}
.quick-track p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9AA7B4;
  margin: 0 0 12px;
}
.quick-track form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.quick-track input {
  flex: 1;
  min-width: 160px;
  font-family: var(--font-mono);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.95rem;
}
.quick-track input::placeholder { color: #8996A4; }
.quick-track input:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 44px;
}
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page-hero .lede { color: #C6CDD6; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #8996A4;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}
.breadcrumb a:hover { color: var(--white); }

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: var(--white);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

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