/* ==========================================================================
   Logistics Group — Design System
   Palette derived from crest mark: sky blue / ocean blue / deep navy / white
   Signature motif: the diagonal crest-split, reused as a structural device
   ========================================================================== */

:root {
  /* Color */
  --navy:        #0A1B33;
  --navy-2:      #102A4C;
  --ocean:       #155A96;
  --ocean-2:     #1B6FB0;
  --sky:         #6E9CC9;
  --sky-pale:    #E7EFF6;
  --ice:         #F5F8FB;
  --white:       #FFFFFF;
  --amber:       #E6A23C;
  --text:        #0A1B33;
  --text-muted:  #57667B;
  --text-inverse: #EAF1F8;
  --line:        #D9E3ED;

  /* Type */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Layout */
  --max: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -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);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 600; letter-spacing: 0.03em; }

p { margin: 0 0 1em; color: var(--text-muted); max-width: 62ch; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--ocean-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--amber);
  display: inline-block;
}

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 3px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: #f0b358; }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 27, 51, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 46px; width: auto; }
.brand-word {
  font-family: var(--font-display);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
  line-height: 1.1;
}
.brand-word span { display: block; font-size: 0.7rem; color: var(--sky); font-weight: 400; letter-spacing: 0.25em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  color: var(--text-inverse);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { border-color: var(--amber); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  padding: 8px 10px;
  color: var(--white);
  cursor: pointer;
}

.nav-cta {
  padding: 10px 20px;
  font-size: 0.8rem;
  margin-left: 26px;
  flex: none;
}
@media (max-width: 880px) {
  .nav-cta { display: none; }
}

.divisions-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 6px;
}
.divisions-strip span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: rgba(234,241,248,0.65);
}

@media (max-width: 880px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 var(--pad);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { max-height: 420px; padding-bottom: 16px; }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Diagonal / crest-split motif ---------- */
.crest-split {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.crest-split::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky) 32%, var(--ocean) 32%, var(--ocean) 33%, var(--navy) 33%, var(--navy) 100%);
  opacity: 0.94;
  z-index: 0;
}
.crest-split > .container { position: relative; z-index: 1; }

.watermark-lion {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 420px;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Page header (used on drill-down pages) ---------- */
.page-header {
  padding: 100px 0 64px;
  color: var(--white);
}
.page-header .eyebrow { color: var(--sky); }
.page-header .eyebrow::before { background: var(--amber); }
.page-header h1 { color: var(--white); }
.page-header p { color: rgba(234,241,248,0.82); font-size: 1.08rem; }

/* ---------- Hero (landing) ---------- */
.hero {
  padding: 130px 0 110px;
  color: var(--white);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero p.lede { color: rgba(234,241,248,0.85); font-size: 1.15rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.hero-panel {
  background: rgba(10,27,51,0.35);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(3px);
}
.hero-panel .eyebrow { color: var(--sky); }
.route-line {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 6px;
}
.route-stop {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 26px;
}
.route-stop:last-child { padding-bottom: 0; }
.route-stop::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--amber);
  margin-top: 4px;
  flex: none;
  z-index: 1;
}
.route-stop:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: -12px;
  width: 1px;
  border-left: 1px dashed rgba(255,255,255,0.35);
}
.route-stop .rt-title { font-family: var(--font-mono); font-size: 0.85rem; color: var(--white); }
.route-stop .rt-sub { font-size: 0.8rem; color: rgba(234,241,248,0.6); }
a.route-stop { text-decoration: none; color: inherit; transition: opacity 0.15s ease, transform 0.15s ease; }
a.route-stop:hover { opacity: 0.78; transform: translateX(3px); }

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

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--ice);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--ocean);
  font-weight: 600;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--sky-pale); }
.section-navy { background: var(--navy); color: var(--text-inverse); }
.section-navy h2 { color: var(--white); }
.section-navy p { color: rgba(234,241,248,0.78); }

.section-head { max-width: 640px; margin-bottom: 48px; }

/* ---------- Card grid (landing explore cards) ---------- */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.explore-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.explore-card:hover {
  border-color: var(--ocean-2);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -20px rgba(10,27,51,0.35);
}
.explore-card .icon { width: 42px; height: 42px; color: var(--ocean); }
.explore-card h3 { margin-bottom: 2px; }
.explore-card p { font-size: 0.94rem; margin-bottom: 0; }
.explore-card .go {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ocean-2);
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 6px;
}
@media (max-width: 980px) {
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .explore-grid { grid-template-columns: 1fr; }
}

/* ---------- Generic content grid ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 880px) {
  .split, .split.reverse .split-media { grid-template-columns: 1fr; order: initial; }
  .split { grid-template-columns: 1fr; }
}

/* ---------- Image placeholder ---------- */
.img-placeholder {
  border: 1.5px dashed var(--sky);
  border-radius: var(--radius);
  background: var(--sky-pale);
  color: var(--ocean);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
}
.img-placeholder svg { width: 40px; height: 40px; opacity: 0.55; }
.img-placeholder .ph-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--ocean-2);
  text-transform: uppercase;
}
.img-placeholder .ph-note { font-size: 0.82rem; color: var(--text-muted); max-width: 30ch; }
.img-placeholder.ratio-16-9 { aspect-ratio: 16/9; min-height: 0; }
.img-placeholder.ratio-1-1 { aspect-ratio: 1/1; min-height: 0; }
.img-placeholder.ratio-4-3 { aspect-ratio: 4/3; min-height: 0; }

/* ---------- Real photo frame ---------- */
.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  background: var(--sky-pale);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame.ratio-4-3 { aspect-ratio: 4/3; }
.photo-frame.ratio-16-9 { aspect-ratio: 16/9; }
.photo-frame.ratio-1-1 { aspect-ratio: 1/1; }
.photo-frame.ratio-3-4 { aspect-ratio: 3/4; }
.photo-frame .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(0deg, rgba(10,27,51,0.82), rgba(10,27,51,0));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Photo gallery grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}
.gallery-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.gallery-card .cap-static {
  padding: 14px 16px;
}
.gallery-card .cap-static h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin: 0;
  color: var(--navy);
}
.gallery-card .cap-static p {
  margin: 4px 0 0;
  font-size: 0.85rem;
}

/* ---------- Feature list ---------- */
.feature-list { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 18px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 50%;
  width: 26px; height: 26px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
}
.feature-list strong { color: var(--navy); display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 0.92rem; letter-spacing: 0.02em; }
.feature-list span { color: var(--text-muted); font-size: 0.94rem; }

/* ---------- Service cards (services page) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  border-top: 3px solid var(--ocean);
}
.service-card .icon { width: 38px; height: 38px; color: var(--ocean); margin-bottom: 16px; }
.service-card ul { margin: 16px 0 0; padding-left: 18px; color: var(--text-muted); font-size: 0.92rem; }
.service-card li { margin-bottom: 6px; }
@media (max-width: 780px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Timeline (about page) ---------- */
.timeline { position: relative; margin-top: 40px; padding-left: 32px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 40px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--ocean);
}
.timeline-year { font-family: var(--font-mono); color: var(--ocean-2); font-size: 0.85rem; letter-spacing: 0.06em; }

/* ---------- Values grid ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.value-card .icon { width: 30px; height: 30px; color: var(--amber); margin-bottom: 12px; }

/* ---------- Team grid ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 880px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card { text-align: center; }
.team-card .img-placeholder { aspect-ratio: 1/1; min-height: 0; margin-bottom: 14px; border-radius: 50%; }
.team-card h4 { font-size: 0.95rem; margin-bottom: 2px; }
.team-card .role { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Tracking widget (fleet page) ---------- */
.track-box {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 40px;
  color: var(--white);
}
.track-form { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.track-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.92rem;
}
.track-form input::placeholder { color: rgba(234,241,248,0.45); }
.track-note { font-family: var(--font-mono); font-size: 0.76rem; color: rgba(234,241,248,0.5); margin-top: 14px; }

/* ---------- Fleet stats grid ---------- */
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 780px) { .fleet-grid { grid-template-columns: 1fr; } }
.fleet-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fleet-card .body { padding: 22px 24px; }
.fleet-card .tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ocean-2); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info-item .icon { width: 22px; height: 22px; color: var(--ocean); flex: none; margin-top: 2px; }
.contact-info-item strong { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.03em; color: var(--navy); }
.contact-info-item span { color: var(--text-muted); font-size: 0.92rem; }

.form-field { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.form-field input, .form-field select, .form-field textarea {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--white);
  color: var(--text);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ocean);
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: rgba(234,241,248,0.85); margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(234,241,248,0.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 40px; }
.footer-brand-word { font-family: var(--font-display); text-transform: uppercase; color: var(--white); letter-spacing: 0.05em; }
.footer-col h4 { color: var(--white); font-size: 0.82rem; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; font-size: 0.88rem; margin-bottom: 10px; color: rgba(234,241,248,0.65); }
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.78rem;
  color: rgba(234,241,248,0.45);
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
