/* nordic-3pl.com, the design D1-D12 approved by Henrik ("The design is good for now", CEO #81, message #358).
   CTO job #83, 2026-12-03. From tools/design_suggestion.css (2026-11-29, thirteenth, written from scratch), without the
   suggestion's note bar and its marked photo spots. Images (job #99): all made by us; S1 at the start page top, one on
   each card, one in the title band of every inner page.
   Colours: the red and grey of the Nordic 3PL logo, and the navy the current site lays over its photos.
   Fonts: the system fonts of the reader's device (nothing is loaded from other hosts). */
:root {
  --red: #bb0204;          /* logo red: buttons and accents */
  --red-dark: #8f0103;
  --navy: #101e49;         /* current site: overlay on the front-page photos; here the contact band and footer */
  --grey: #494d51;         /* logo grey: secondary text */
  --ink: #1d2125;          /* body text */
  --line: #dfe2e6;
  --light: #f3f5f7;        /* light bands */
  --white: #ffffff;
  --wrap: 1170px;          /* D5: content frame */
  --read: 46rem;           /* D5: reading column on inner pages */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-wrap: break-word; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 40; background: var(--white); color: var(--red); padding: 10px 16px; font-weight: 700; }
.skip:focus { left: 12px; top: 12px; }

/* D10: type scale */
h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.6rem); font-weight: 750; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1em; }
li { margin: .2em 0; }

/* D1: header, the current menu */
.top { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo img { width: 140px; height: auto; }
.menu-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.menu-btn { display: none; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; margin: 0; }
.nav a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; border-radius: 4px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.nav > li.has-sub > a::after { content: ""; display: inline-block; margin-left: 6px; width: 6px; height: 6px;
        border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.nav .sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%; min-width: 250px;
        background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--red);
        box-shadow: 0 8px 24px rgba(16, 30, 73, .12); display: none; }
.nav .lang .sub { left: auto; right: 0; min-width: 160px; }
.nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }
.nav .sub a { font-weight: 500; padding: 8px 18px; }

/* buttons */
.btn { display: inline-block; background: var(--red); color: var(--white); text-decoration: none; font-weight: 700;
       padding: 12px 26px; border-radius: 4px; }
.btn:hover { background: var(--red-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--light); color: var(--navy); }

/* D2: front page top: heading, the two opening paragraphs and the button; S1 beside them (job #99) */
.hero { background: var(--light); padding: 56px 0; }
.hero-in { display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 440px); gap: 48px; align-items: center;
           justify-content: space-between; }
.hero-text { max-width: 46rem; }
.hero-img { width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; }
.hero h1 { margin-bottom: .6em; }
.hero p { font-size: 1.1rem; max-width: 38rem; }
.hero-btn { margin-top: 1.4em; }

/* D3: service cards, each with its image (L1 storage, P1 picking and packing, I2 inbound, R3 returns; job #99) */
.cards-band { padding: 48px 0 8px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border: 1px solid var(--line);
        border-radius: 6px; overflow: hidden; background: var(--white); transition: box-shadow .15s; }
.card:hover { box-shadow: 0 6px 20px rgba(16, 30, 73, .12); color: var(--ink); }
.card { border-top: 4px solid var(--red); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; border-radius: 0; }
.card-t { font-weight: 700; font-size: 1.1rem; padding: 14px 16px 4px; }
.card-more { color: var(--red); font-weight: 600; padding: 0 16px 16px; font-size: .95rem; margin-top: auto; }
.card:not(.card-img) { justify-content: flex-end; min-height: 150px; background: var(--light); }   /* no photo: a tile, name at the same height as on the photo card */
.card:not(.card-img) .card-more { margin-top: 0; }

/* D4: two columns in a light band */
.band-light { background: var(--white); padding: 24px 0 56px; }
.cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 48px; }
.cols h2 { margin-top: 1em; }

/* D6: inner pages, title band and reading column, the page's own image smaller beside the text */
.title-band { background: var(--light); border-bottom: 1px solid var(--line); padding: 40px 0 28px; }
.title-band h1 { margin: 0; }
/* job #99: the page's image in the title band, in the same column as the service list below it */
.band-in { display: grid; grid-template-columns: minmax(0, var(--read)) 260px; gap: 56px; align-items: center;
           justify-content: space-between; }
.band-img { width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; }
.content { padding: 32px 0 56px; }
.content-in { display: grid; grid-template-columns: minmax(0, var(--read)) 260px; gap: 56px; justify-content: space-between; }
.content-in.no-side { grid-template-columns: minmax(0, var(--read)); }
.text > :first-child { margin-top: 0; }
.text .mt { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; align-items: start; margin: 0 0 1em; }
.text .mt-media { margin: 0; order: 2; }   /* the image always beside the text, on the right */
.text .mt-media img, .text .fig img { border-radius: 6px; width: 100%; max-width: 220px; aspect-ratio: auto; }
.text .fig { margin: 0 0 1em; }
.text h2 { margin-top: 1.4em; }

/* D8: the 3PL services beside the text */
.services { align-self: start; position: sticky; top: 100px; border-left: 3px solid var(--red); padding-left: 16px; }
.services ul { list-style: none; margin: 0; padding: 0; }
.services a { display: block; padding: 5px 0; color: var(--ink); text-decoration: none; font-size: .95rem; }
.services a:hover, .services a[aria-current="page"] { color: var(--red); font-weight: 600; }
.services li:first-child a { font-weight: 700; }

/* D9: contact band and footer */
.cta { background: var(--navy); color: var(--white); padding: 28px 0; }
.cta-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-mail { color: var(--white); font-weight: 600; font-size: 1.1rem; }
.cta-mail:hover { color: #ffd9d9; }
.foot { background: #0b1534; color: #d7dce6; padding: 40px 0 48px; font-size: .95rem; }
.foot-in { display: grid; grid-template-columns: 180px 1fr 1.3fr auto; gap: 32px; align-items: start; }
.foot-logo img { width: 150px; background: var(--white); padding: 8px; border-radius: 4px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot a { color: var(--white); text-decoration: none; }
.foot a:hover { text-decoration: underline; color: var(--white); }
.foot li { margin: 0 0 6px; }
.foot p { margin: 0 0 6px; }
.foot-lang { display: flex; flex-direction: column; gap: 6px; }
.foot-lang a[aria-current] { font-weight: 700; }

/* D11: phone and tablet */
@media (max-width: 960px) {
  .menu-btn { display: flex; cursor: pointer; width: 44px; height: 44px; align-items: center; justify-content: center;
              border: 1px solid var(--line); border-radius: 4px; }
  .menu-toggle:focus-visible + .menu-btn { outline: 2px solid var(--red); outline-offset: 2px; }
  .menu nav { display: none; }
  .menu-toggle:checked ~ nav { display: block; }
  .burger, .burger::before, .burger::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; content: ""; }
  .burger::before { position: absolute; top: -7px; } .burger::after { position: absolute; top: 7px; }
  .menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line);
              box-shadow: 0 10px 20px rgba(16, 30, 73, .1); max-height: 75vh; overflow: auto; }
  .nav { flex-direction: column; align-items: stretch; padding: 8px 12px 16px; gap: 0; }
  .nav .sub, .nav .lang .sub { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 6px 14px; min-width: 0; }
  .nav > li { border-bottom: 1px solid var(--line); }
  .nav > li.has-sub > a::after { display: none; }
  .hero { padding: 32px 0; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-img { max-width: 520px; }
  .band-in { grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .cols { grid-auto-flow: row; grid-template-columns: 1fr; gap: 0; }
  .content-in { grid-template-columns: 1fr; gap: 24px; }
  .services { position: static; }
  .text .mt { grid-template-columns: 1fr; }
  .text .mt-media img { max-width: 260px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .top-in { min-height: 64px; }
  .logo img { width: 116px; }
  .card-t { font-size: 1rem; padding: 10px 12px 2px; }
  .card-more { padding: 0 12px 12px; }
  .title-band { padding: 28px 0 24px; }
  .band-in { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .band-img { max-width: 360px; }
  .foot-in { grid-template-columns: 1fr; }
}
