/* ============================================================
   North Helm Logistics  ·  style.css
   1 Tokens   2 Base   3 Buttons   4 Header   5 Hero + stats
   6 Sections   7 Contact form   8 Footer   9 Small screens
   ============================================================ */

/* ---------- 1. Tokens: every color and font, named once ---------- */
:root {
  --navy: #13213A;   --navy-2: #0F1B30;
  --steel: #4F6F90;  --steel-l: #8EA7C0;
  --gold: #B08D4F;   --gold-d: #8C6F3E;
  --ground: #F5F3EE; --paper: #FFFFFF;
  --ink: #12233F;    --body: #475A70;  --line: #E2E5EA;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --mont: Montserrat, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--body); font: 18px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h1, h2 { font: 500 clamp(34px, 3.8vw, 48px)/1.1 var(--serif); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.lead { font-size: 19px; max-width: 560px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 700 12px var(--mont); letter-spacing: .2em; text-transform: uppercase; color: var(--steel); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
/* small uppercase labels, shared by many sections */
.pain small, .tag, .case dt, th, .foot-col h4, .contact-list small {
  font: 700 11px var(--mont); letter-spacing: .18em; text-transform: uppercase; color: var(--steel);
}
/* the two reusable icons */
.ic { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
/* keyboard "skip" link and the spam-trap checkbox stay off screen */
.skip { position: absolute; left: -999px; top: 8px; z-index: 30; padding: 8px 14px; background: var(--gold); color: #000; }
.skip:focus { left: 8px; }
.hide { position: absolute; left: -9999px; }
/* fade-in as you scroll (script.js adds .in) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ---------- 3. Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border: 0; border-radius: 4px; font: 700 15px var(--mont); white-space: nowrap; cursor: pointer; transition: transform .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-gold { background: #F0A63A; color: #22262D; box-shadow: 0 8px 22px rgba(224,138,40,.38); }
.btn-gold:hover { background: #F7B44E; transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.link { display: inline-flex; align-items: center; gap: 8px; font: 700 15px var(--mont); color: #2A2E35; }
.link:hover .ic, .btn:hover .ic { transform: translateX(3px); }

/* ---------- 4. Header ---------- */
.site-head { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .25s, box-shadow .25s; }
.site-head.solid { background: rgba(250,248,244,.96); box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 10px 30px rgba(42,46,53,.08); backdrop-filter: blur(8px); }
.site-head .wrap { height: 84px; display: flex; align-items: center; gap: 28px; transition: height .25s; }
.site-head.solid .wrap { height: 72px; }
.site-head .btn { padding: 11px 20px; font-size: 14px; }
.logo { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.logo img { width: 54px; height: 54px; }
.wordmark { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.wordmark b { font: 500 27px/1 var(--serif); color: #2A2E35; }
.wordmark small { display: flex; align-items: center; gap: 6px; font: 600 8.5px var(--mont); letter-spacing: .5em; text-transform: uppercase; color: #5A6170; }
.wordmark i { flex: 1; height: 2px; background: var(--gold); }
.nav { display: flex; gap: 30px; }
.nav a { position: relative; padding: 6px 0; font: 600 15px var(--mont); color: #2A2E35; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav a:hover::after { transform: scaleX(1); }
.menu-btn { display: none; padding: 10px; background: none; border: 0; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; margin: 5px 0; background: #2A2E35; }
.menu-btn span:last-child { width: 16px; background: var(--gold); }

/* ---------- 5. Hero and stats ---------- */
.hero { position: relative; min-height: min(860px, 100vh); display: flex; align-items: center; background: #BCD1E4; overflow: hidden; }
.scene, .scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,245,240,.9), rgba(247,245,240,.62) 36%, rgba(247,245,240,0) 60%); }
.hero .wrap { position: relative; width: 100%; padding-top: 120px; padding-bottom: 96px; }
.hero-copy { max-width: 600px; display: grid; gap: 24px; }
.hero .eyebrow { color: var(--gold-d); }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; color: #2A2E35; }
.hero p:not(.eyebrow) { font-size: 20px; color: #3E4756; max-width: 540px; }
.actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 10px; }

.stats { background: var(--navy); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 38px 28px; border-left: 1px solid rgba(255,255,255,.1); }
.stat:first-child { border: 0; padding-left: 0; }
.stat b { display: block; margin-bottom: 8px; font: 500 36px/1.1 var(--serif); color: #fff; }
.stat em { font-style: normal; color: var(--gold); }
.stat span { font-size: 15px; line-height: 1.45; color: var(--steel-l); }

/* ---------- 6. Sections ---------- */
section { padding: 120px 0; }
.tint { background: var(--ground); }
.dark { background: var(--navy); }
.dark h2, .dark h3, .dark b { color: #fff; }
.dark p, .dark .eyebrow { color: var(--steel-l); }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 60px; }
.head > div { display: grid; gap: 18px; }

/* Where it hurts */
.pains { border-bottom: 1px solid var(--line); }
.pain { display: grid; grid-template-columns: 3fr 4fr 5fr; gap: 40px; padding: 30px 0; border-top: 1px solid var(--line); }
.pain h3 { font: 500 30px/1.15 var(--serif); }
.pain p { font-size: 17px; }
.pain small { display: block; margin-bottom: 4px; }
.pain .fix { color: var(--ink); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 20px 48px; flex-wrap: wrap; margin-top: 56px; padding: 32px 36px; background: var(--navy); border-radius: 6px; }
.cta-row > div { flex: 1 1 320px; display: grid; gap: 6px; }
.cta-row h3 { font: 500 30px/1.15 var(--serif); color: #fff; }
.cta-row p { font-size: 17px; color: var(--steel-l); max-width: 560px; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.photos img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-radius: 6px; background: var(--line); }
.photos figcaption { margin-top: 10px; font-size: 15px; line-height: 1.45; }

/* Sample baseline sheet */
.sheet { border: 1px solid var(--line); border-radius: 6px; background: var(--paper); box-shadow: 0 18px 40px rgba(18,35,63,.08); overflow: hidden; }
.sheet-head { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding: 32px 36px; background: var(--ground); border-bottom: 1px solid var(--line); }
.sheet-head > div { display: grid; gap: 6px; }
.sheet-head h3 { font: 500 30px/1.15 var(--serif); }
.sheet-head p { font-size: 16px; }
.stamp { align-self: start; padding: 8px 12px; border: 1px solid var(--gold); border-radius: 4px; font: 700 11px var(--mont); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-d); white-space: nowrap; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
tr > :first-child { padding-left: 36px; }
tr > :last-child { padding-right: 36px; }
.grp th { padding-top: 10px; padding-bottom: 10px; background: var(--ground); color: var(--ink); }
tbody tr:not(.grp) th { font: 600 17px/1.35 var(--sans); color: var(--ink); letter-spacing: 0; text-transform: none; }
td { font-size: 15.5px; line-height: 1.45; }
.v { font: 26px/1.1 var(--serif); color: var(--ink); white-space: nowrap; }
.v small { font: 14px var(--sans); color: var(--body); }
.c { font-size: 15px; color: var(--ink); white-space: nowrap; }
.c.low { color: var(--gold-d); font-weight: 600; }
.sheet-foot { padding: 20px 36px 26px; font-size: 15px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.step { position: relative; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); display: grid; gap: 12px; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--gold); }
.step em { font: 700 14px var(--mont); font-style: normal; letter-spacing: .15em; color: var(--gold); }
.step h3 { font: 500 32px var(--serif); }
.step p { font-size: 17px; }
.note { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); font-size: 17px; max-width: 760px; }

/* What you get */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { padding: 40px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; display: grid; gap: 14px; align-content: start; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: var(--steel-l); box-shadow: 0 18px 40px rgba(18,35,63,.08); }
.card h3 { font: 800 22px/1.25 var(--mont); }
.card p { font-size: 17px; }
.card ul { list-style: none; margin: 6px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.card li { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--ink); }
.card .ic { color: var(--gold-d); }

/* Questions */
.faq { border-top: 1px solid var(--line); }
.qa { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.qa h3 { font: 500 28px/1.15 var(--serif); }
.qa p { font-size: 17px; max-width: 620px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 88px; align-items: center; }
.portrait { display: grid; gap: 12px; }
.portrait img { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 6px; background: var(--line); }
.portrait b { display: block; font: 700 17px var(--mont); color: var(--ink); }
.portrait span { font-size: 15px; }
.about-copy { display: grid; gap: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 600; color: var(--ink); }
.proof { grid-column: 1 / -1; display: grid; gap: 28px; padding-top: 48px; border-top: 1px solid var(--line); }
.proof > div:first-child { display: grid; gap: 10px; font-size: 17px; max-width: 640px; }
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case { padding: 36px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; display: grid; gap: 14px; align-content: start; }
.case h3 { font: 500 30px/1.15 var(--serif); }
.case dl { margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.case dd { margin-bottom: 10px; font-size: 16.5px; line-height: 1.55; }
.case .num { color: var(--ink); font-weight: 600; }

/* ---------- 7. Contact and form ---------- */
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
.contact-copy { display: grid; gap: 22px; justify-items: start; }
.contact-list { display: grid; gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); width: 100%; }
.contact-list div { display: grid; }
.contact-list a, .contact-list span { font-size: 17px; font-weight: 500; color: var(--ink); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 40px; background: var(--ground); border: 1px solid var(--line); border-radius: 6px; }
label { display: grid; gap: 8px; font: 600 13px var(--mont); color: var(--ink); }
.full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font: 16px var(--sans); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(79,111,144,.2); }
.form-msg { grid-column: 1 / -1; display: none; padding: 14px 16px; border: 1px solid rgba(184,151,90,.4); border-radius: 4px; background: rgba(184,151,90,.14); font-size: 16px; color: var(--ink); }
.form-msg.show { display: block; }
.form-msg.bad { background: rgba(176,58,46,.08); border-color: rgba(176,58,46,.45); }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.form-foot small { font-size: 14px; }

/* ---------- 8. Footer ---------- */
footer { padding: 72px 0 36px; background: var(--navy-2); color: var(--steel-l); font-size: 16px; }
footer .wordmark b { color: #fff; }
footer .wordmark small { color: var(--steel-l); }
.foot-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; }
.foot-brand { display: grid; gap: 18px; max-width: 320px; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col h4 { margin-bottom: 6px; color: #fff; }
.foot-col a:hover { color: #fff; }
.foot-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; color: rgba(255,255,255,.5); }

/* ---------- 9. Small screens ---------- */
@media (max-width: 1060px) {
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .pain { grid-template-columns: 1fr 1fr; gap: 16px 32px; }
  .pain h3 { grid-column: 1 / -1; }
  .foot-top { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  /* hamburger menu */
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; flex-direction: column; gap: 0; padding: 10px 20px 20px; background: #FAF8F4; border-radius: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(42,46,53,.1); }
  .nav a::after { display: none; }
  .site-head .wrap { gap: 12px; }
}
@media (max-width: 860px) {
  .site-head .wrap, .site-head.solid .wrap { height: 64px; gap: 8px; padding: 0 12px; }
  .site-head .btn { padding: 10px 12px; font-size: 12px; }
  .logo { gap: 8px; }
  .logo img { width: 36px; height: 36px; }
  .wordmark b { font-size: 18px; }
  .wordmark small { font-size: 6.5px; letter-spacing: .4em; }
  .menu-btn { padding: 8px; }
  .hero { min-height: 820px; align-items: flex-end; }
  .hero::before { background: linear-gradient(180deg, rgba(247,245,240,.5), rgba(247,245,240,0) 20%, rgba(247,245,240,0) 44%, rgba(247,245,240,.85) 62%, rgba(247,245,240,.97)); }
  .hero .wrap { padding-top: 260px; padding-bottom: 44px; }
  .hero p:not(.eyebrow) { font-size: 17px; }
  .actions { flex-direction: column; align-items: stretch; gap: 18px; }
  .actions .link { justify-content: center; }
  .stat { padding: 24px 16px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat b { font-size: 26px; }
  .stat span { font-size: 13px; }
  section { padding: 72px 0; }
  .head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .lead { font-size: 17px; }
  .pain { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .pain h3 { font-size: 26px; }
  .cta-row { margin-top: 32px; padding: 26px 22px; }
  .cta-row h3 { font-size: 26px; }
  .cta-row .btn, .form-foot .btn, .contact-copy .btn { width: 100%; }
  .photos, .cards, .cases, .steps, .qa, .about, .contact, form { grid-template-columns: 1fr; }
  .photos { gap: 16px; margin-top: 32px; }
  .card, .case { padding: 26px 22px; }
  .card h3 { font-size: 20px; }
  .steps { gap: 28px; }
  .step h3 { font-size: 27px; }
  .note { margin-top: 36px; }
  .qa { gap: 10px; padding: 22px 0; }
  .qa h3 { font-size: 24px; }
  .about { gap: 40px; }
  .portrait { max-width: 440px; }
  .proof { padding-top: 32px; gap: 20px; }
  .case h3 { font-size: 26px; }
  form { padding: 24px 20px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  /* the baseline table becomes a stack of rows */
  .sheet-head { padding: 24px 22px; }
  .sheet-head h3 { font-size: 26px; }
  table, tbody { display: block; }
  thead { display: none; }
  tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; padding: 16px 22px; border-bottom: 1px solid var(--line); }
  th, td { padding: 0 !important; border: 0; }
  .grp { display: block; padding: 10px 22px; background: var(--ground); }
  .v { grid-column: 2; text-align: right; font-size: 24px; }
  td:not(.v):not(.c) { grid-column: 1 / -1; font-size: 15px; }
  .c { grid-column: 1 / -1; font-size: 14px; white-space: normal; }
  .c::before { content: "Confidence: "; color: var(--body); font-weight: 400; }
  .sheet-foot { padding: 18px 22px 22px; }
}
