/* SOL Freight – single page
   Palette taken from the logo
   --navy    deep version of the logo's indigo (hero, rate, footer)
   --indigo  wordmark colour (headings)
   --blue    logo arcs (accents, links, buttons)
   --sky     light arc tint (accents on navy)
   --mist    cool page background
   --silver  the grey arcs under the wordmark (lines)
*/
:root {
  --navy: #1E2B5E;
  --navy-2: #2A3B78;
  --indigo: #3E4F96;
  --blue: #4A72AE;
  --sky: #AFC3E6;
  --mist: #F0F3F8;
  --silver: #D9DDE5;
  --ink: #1B2440;
  --steel: #59627A;
  --white: #FFFFFF;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --space: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.12; }
h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(2rem, 4.2vw, 3rem); color: var(--indigo); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: inherit; }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--silver);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: block; line-height: 0; }
.brand img { width: auto; height: 92px; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--indigo);
}
.main-nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--blue); }
.main-nav .nav-cta {
  color: var(--white);
  background: var(--blue);
  padding: 10px 18px;
  border-radius: 4px;
}
.main-nav .nav-cta:hover { background: var(--indigo); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--sky); }
.btn-line { color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.btn-line:hover { box-shadow: inset 0 0 0 2px var(--white); }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: clamp(56px, 8vw, 104px) 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}
.hero h1 {
  max-width: 16ch;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.04;
}
.hero .lead {
  max-width: 50ch;
  margin-top: 28px;
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  color: rgba(255,255,255,.8);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Globe: the one bold element.
   Pure CSS rotation: every meridian, city and route dot moves sideways
   with sine easing, which is exactly how points on a turning sphere move
   when seen from the front. --d / --m / --t are phase offsets per element. */
.globe { margin: 0; }
.globe svg { display: block; width: 100%; height: auto; max-width: 580px; margin-left: auto; overflow: visible; }
.globe .graticule path { fill: none; stroke: var(--sky); stroke-opacity: .2; stroke-width: 1; }
.globe .limb { fill: none; stroke: var(--blue); stroke-width: 3; }
.globe .meridian { transform-box: fill-box; transform-origin: 0% 50%; transform: scaleX(.5); }
.globe .routes circle { fill: var(--white); }
.globe .city circle { fill: var(--white); stroke: var(--navy); stroke-width: 1.5; }
.globe .city text { fill: var(--white); font-family: var(--sans); font-size: 12.5px; font-weight: 600; paint-order: stroke; stroke: var(--navy-2); stroke-width: 3px; stroke-opacity: .6; }

.globe .pt {
  animation:
    spin 60s linear infinite var(--d),
    face 60s linear infinite var(--d);
}
.globe .meridian { animation: meridian 30s infinite var(--m); }
.globe .routes circle { opacity: 0; animation: trail 12s linear infinite var(--t); }

@keyframes spin {
  0%   { transform: translateX(calc(var(--a) * -1)); animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
  50%  { transform: translateX(var(--a)); animation-timing-function: linear; }
  100% { transform: translateX(calc(var(--a) * -1)); }
}
@keyframes face {
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  44%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes meridian {
  0%   { transform: scaleX(-1); animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
  100% { transform: scaleX(1); }
}
@keyframes trail {
  0%   { opacity: 0; }
  1%   { opacity: 1; }
  38%  { opacity: 1; }
  48%, 100% { opacity: 0; }
}

/* No motion: freeze the globe and show every route */
@media (prefers-reduced-motion: reduce) {
  .globe .pt, .globe .meridian { animation-play-state: paused; }
  .globe .routes circle { animation: none; opacity: .8; }
}

/* ---------- Sections ---------- */
.section { padding: var(--space) 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head p { margin: 0; color: var(--steel); max-width: 52ch; font-size: 1.1rem; }

/* Services */
.modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 3px solid var(--indigo);
}
.mode { padding: 32px 32px 36px 0; }
.mode + .mode { padding-left: 32px; border-left: 1px solid var(--silver); }
.mode-icon {
  width: 44px; height: 44px; margin-bottom: 20px;
  fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round;
}
.mode h3 { color: var(--indigo); margin-bottom: 10px; }
.mode p { color: var(--steel); margin: 0; }

.specialties {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.specialty {
  background: var(--white);
  border-left: 6px solid var(--blue);
  padding: 28px 32px;
}
.specialty h3 { font-family: var(--serif); font-weight: 600; color: var(--indigo); font-size: 1.55rem; margin-bottom: 10px; }
.specialty p { margin: 0; color: var(--steel); }

/* Approach */
.approach { background: var(--white); }
.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 32px 64px;
}
.principles { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
.principles dt { font-weight: 700; font-size: 1.12rem; color: var(--indigo); margin-bottom: 6px; }
.principles dd { margin: 0; color: var(--steel); }

/* Rate request */
.rate { background: var(--navy); color: var(--white); }
.rate h2 { color: var(--white); margin-bottom: 20px; }
.rate-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px 80px;
  align-items: start;
}
.rate-copy p { color: rgba(255,255,255,.8); max-width: 44ch; font-size: 1.1rem; }
.rate-copy .btn { margin: 8px 0 20px; }
.rate-copy .small { font-size: .95rem; color: rgba(255,255,255,.65); }
.rate-copy .small a { color: var(--white); }

.checklist {
  background: var(--navy-2);
  padding: 32px 36px;
  border-radius: 4px;
}
.checklist h3 { margin-bottom: 16px; }
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.9);
}
.checklist li span { color: var(--sky); font-weight: 650; }

/* Tools */
.tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px 64px;
  align-items: start;
}
.chargeable {
  background: var(--white);
  padding: 32px 36px;
  border-top: 3px solid var(--indigo);
}
.chargeable h3 { color: var(--indigo); margin-bottom: 10px; }
.chargeable > p { color: var(--steel); }
.chargeable table { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.chargeable th, .chargeable td { text-align: left; vertical-align: top; padding: 12px 0; border-top: 1px solid var(--silver); }
.chargeable thead th { font-size: .9rem; color: var(--steel); font-weight: 600; border-top: 0; padding-top: 0; }
.chargeable tbody th { font-weight: 700; color: var(--indigo); width: 32%; padding-right: 16px; }
.muted { color: var(--steel); font-size: .95rem; }

.links { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--indigo); }
.links li { border-bottom: 1px solid var(--silver); padding: 18px 0; }
.links a {
  display: block;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--indigo);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--silver);
}
.links a:hover { text-decoration-color: var(--blue); }
.links span { display: block; color: var(--steel); font-size: .95rem; margin-top: 2px; }

/* Contact */
.contact { background: var(--white); border-top: 1px solid var(--silver); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr);
  gap: 32px 56px;
  align-items: start;
}
address { font-style: normal; color: var(--ink); }
address .org { font-weight: 700; color: var(--indigo); margin-bottom: 6px; }
address a { color: var(--blue); font-weight: 600; }
.contact-lines { display: flex; flex-direction: column; gap: 10px; }
.contact-big {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  color: var(--indigo);
  text-decoration: none;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.contact-big:hover { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .section-head,
  .approach-grid,
  .rate-grid,
  .tools-grid { grid-template-columns: 1fr; }
  .globe svg { max-width: 440px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid h2 { grid-column: 1 / -1; }
  .modes { grid-template-columns: 1fr; }
  .mode, .mode + .mode { padding: 28px 0; border-left: 0; }
  .mode + .mode { border-top: 1px solid var(--silver); }
  .mode { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; }
  .mode-icon { grid-row: span 2; margin: 0; }
}

@media (max-width: 720px) {
  .brand img { height: 68px; }
  .globe .city text { font-size: 16px; }
  .main-nav a:not(.nav-cta) { display: none; }
  .specialties,
  .principles,
  .contact-grid { grid-template-columns: 1fr; }
  .checklist, .chargeable { padding: 24px 22px; }
  .checklist li { grid-template-columns: 5rem 1fr; }
  .footer-inner { flex-direction: column; }
}
