/* JOMA Cargo — company colors (V2 2026 logo pack, Knam Media)
   Navy #000C24 + Orange #F06000. Orange is a fill/accent; orange TEXT on light
   backgrounds uses --orange-text so it stays readable (WCAG AA). */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/archivo-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* brand */
  --navy: #000C24;
  --navy-800: #0B1A3A;
  --navy-700: #16284F;
  --orange: #F06000;          /* fills, icons, text on navy */
  --orange-hover: #FF7A1A;
  --orange-text: #B84A00;     /* orange text on white / paper-2 */
  --orange-tint: rgba(240, 96, 0, .10);
  --on-orange: #000C24;       /* text on orange buttons */
  /* neutrals */
  --ink: #0E1726;
  --muted: #5A6577;
  --line: #E3E7EE;
  --control: #8A94A6;
  --paper: #FFFFFF;
  --paper-2: #F4F6F9;
  --on-dark: #FFFFFF;
  --on-dark-muted: rgba(255, 255, 255, .74);
  /* status */
  --success: #1B7F3B;
  --error: #C62828;
  /* shape / type */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.55; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1, h2 { font-stretch: 112%; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
h3 { font-size: clamp(19px, 1.6vw, 22px); font-weight: 700; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--on-orange); font-weight: 700; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px/1 var(--font); font-stretch: 96%; padding: 16px 24px; border-radius: var(--radius-sm); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .18s, border-color .18s, transform .18s, box-shadow .18s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(240, 96, 0, .6); }
.btn-primary::after { content: "→"; transition: transform .18s; }
.btn-primary:hover::after { transform: translateX(3px); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 11px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.hero :focus-visible, .band :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .callout :focus-visible { outline-color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(0, 12, 36, .96); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid rgba(255, 255, 255, .08); transition: box-shadow .25s; padding-top: env(safe-area-inset-top); }
.site-header .wrap { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.site-header.scrolled { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .6); }
.header-row { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand img { height: 43px; width: auto; }   /* ~20% larger on desktop; phones override below */
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: #fff; }
.header-cta { display: flex; align-items: center; gap: 16px; }
.phone-link { color: #fff; font-weight: 700; text-decoration: none; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Hero */
.hero { color: #fff; background: radial-gradient(120% 90% at 85% 40%, #13254d 0%, var(--navy) 60%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: center; padding-block: 88px 96px; }
.hero-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .06); }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.hero h1 { font-size: clamp(34px, 4.1vw, 56px); font-weight: 800; font-stretch: 104%; line-height: 1.03; letter-spacing: -.03em; max-width: 16ch; margin-bottom: 20px; }
.hero h1 .eyebrow { display: block; letter-spacing: .16em; line-height: 1.4; margin-bottom: 16px; }
.hero h1 .accent { color: var(--orange); }
.lede { font-size: clamp(17px, 2vw, 20px); max-width: 40ch; color: rgba(255, 255, 255, .86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-trust { margin: 18px 0 0; font-size: 14px; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.hero-trust a { color: #fff; text-underline-offset: 3px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 700; font-stretch: 88%; color: var(--orange); margin-bottom: 14px; }
.eyebrow.dark { color: var(--orange-text); }

/* Facts */
.facts { background: var(--navy-800); color: #fff; }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 22px 16px; border-left: 1px solid rgba(255, 255, 255, .1); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font-size: 20px; font-weight: 800; font-stretch: 112%; }
.fact span { color: rgba(255, 255, 255, .7); font-size: 14px; }

/* Sections */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-alt { background: var(--paper-2); }
.section-lede { font-size: 19px; color: var(--muted); max-width: 60ch; margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-color: rgba(240, 96, 0, .4); transform: translateY(-2px); box-shadow: 0 16px 32px -24px rgba(0, 12, 36, .4); }
.card p { color: var(--muted); font-size: 16px; margin: 0; }
.ico { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--orange-tint); stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }

/* Fleet */
.fleet-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.fleet-copy p { color: var(--muted); }
.ticks { list-style: none; margin: 0; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px 32px; box-shadow: 0 24px 50px -30px rgba(0, 12, 36, .6); }
.ticks li { padding: 12px 0 12px 32px; position: relative; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 15px; width: 18px; height: 18px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000C24' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }

/* How it works band */
.band { background: var(--navy); color: #fff; padding: clamp(56px, 7vw, 88px) 0; }
.band h2 { font-size: clamp(28px, 3.6vw, 40px); }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { border-top: 2px solid var(--orange); padding-top: 18px; }
.steps b { display: block; font-stretch: 112%; color: var(--orange); font-size: 14px; letter-spacing: .1em; margin-bottom: 10px; }
.steps h3 { color: #fff; }
.steps p { color: var(--on-dark-muted); margin: 0; }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Apply */
.apply-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.req { list-style: none; padding: 0; margin: 8px 0 20px; }
.req li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.req span { color: var(--orange-text); font-weight: 700; font-size: 14px; font-stretch: 88%; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.more-link { display: inline-block; margin-bottom: 28px; }
.callout { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px; }
.callout p { margin: 0; }
.big-phone { display: block; font-size: clamp(30px, 4vw, 40px); font-weight: 800; font-stretch: 112%; color: var(--orange); text-decoration: none; margin: 4px 0 6px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.callout .muted { color: var(--on-dark-muted); }

.apply-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: 0 20px 50px -30px rgba(0, 12, 36, .35); }
.apply-form h3 { font-size: 26px; margin-bottom: 4px; font-stretch: 112%; }
.field { margin: 0 0 16px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 14px; }
label, legend { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: 16px var(--font); color: var(--ink); padding: 13px 14px; border: 1.5px solid var(--control); border-radius: var(--radius-sm); background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240, 96, 0, .2); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { color: var(--error); font-size: 14px; font-weight: 600; margin: 6px 0 0; }
.field-error:empty { display: none; }
.pills { border: 0; padding: 0; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pills label { margin: 0; font-weight: 600; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills span { display: block; padding: 11px 18px; border: 1.5px solid var(--control); border-radius: 999px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.pills input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pills input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.pills.invalid span { border-color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; margin: 12px 0 0; font-weight: 600; }
.form-status.err { color: var(--error); }
.fine { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.fine a { color: var(--orange-text); }
.done { text-align: center; padding: 24px 8px; outline: none; }
.done svg { width: 56px; height: 56px; margin: 0 auto 16px; stroke: var(--success); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.done h3 { font-size: 26px; }

/* FAQ */
.faq-list { max-width: 820px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 19px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 500; color: var(--orange-text); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); margin: 0 0 20px; max-width: 65ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.contact-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-item h3 { font-size: 14px; font-stretch: 88%; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-item p, .contact-item address { font-weight: 600; margin-bottom: 10px; overflow-wrap: anywhere; }
.contact-item p a { text-decoration: none; }
.link { color: var(--orange-text); font-weight: 700; font-size: 15px; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); padding: 56px 0 24px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-grid p { margin: 0 0 8px; }
.footer-tag { margin-top: 14px !important; }
.footer-ids { margin-top: 12px !important; }
.footer-grid h2 { font-size: 13px; font-stretch: 88%; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a, .site-footer address a { text-decoration: none; }
.footer-links a:hover, .site-footer address a:hover { color: #fff; }
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.footer-cta .big-phone { font-size: 24px; margin: 0; }
.copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.copy nav { display: flex; gap: 18px; }
.copy a { text-decoration: none; }
.copy a:hover { color: #fff; }

.mobile-bar { display: none; }

/* Job page & legal pages */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 800; }
.legal h2 { font-size: 22px; margin-top: 32px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.job-meta li { background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; margin: 0; }

/* Motion (respects reduced-motion) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (min-width: 981px) {
  .hero-photo { margin-right: calc(-1 * (max(0px, (100vw - var(--wrap)) / 2) + 20px)); border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
}
@media (max-width: 1080px) { .nav { gap: 18px; } .phone-link { display: none; } }
@media (max-width: 980px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .phone-link { display: inline; }
  .cards, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .fleet-grid, .apply-grid, .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid { padding-block: 48px 56px; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .fact { padding: 16px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .fact:nth-child(-n+2) { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  .header-row { height: 68px; }
  .site-header .wrap { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
  .brand img { height: 30px; }
  .header-cta .btn-sm { padding: 12px 16px; }
  .phone-link { display: none; }
  .hero-grid { padding-block: 32px 40px; gap: 28px; }
  .hero-photo { border-radius: 14px; order: -1; }
  .hero-actions .btn { flex: 1 1 100%; }
  .fact strong { font-size: 17px; }
  .cards, .contact-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
  .apply-form { padding: 22px; }
  .band-actions .btn { flex: 1; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .12); padding-bottom: env(safe-area-inset-bottom); transition: transform .25s; }
  .mobile-bar a { color: #fff; text-align: center; padding: 18px 0; font-weight: 700; text-decoration: none; }
  .mobile-bar .mb-primary { background: var(--orange); color: var(--on-orange); }
  .form-in-view .mobile-bar { transform: translateY(110%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .mobile-bar { transition: none; }
}
