/* North Pole Express – huisstijl volgens design-handoff/DESIGN.md. Fonts zelf gehost, geen externe requests. */

@font-face { font-family: "Archivo"; src: url("fonts/archivo-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo Black"; src: url("fonts/archivo-black-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --red: #C8102E;
  --red-hover: #9E0B23;
  --navy: #10233F;
  --text-2: #33445E;
  --text-3: #4A5A72;
  --label: #5B6B82;
  --gold: #F4D27A;
  --gold-dark: #8A6A1F;
  --sleigh-gold: #D4A437;
  --on: #B8E04A;
  --off: #22385A;
  --cream: #FBF6EC;
  --line: #E8DFCC;
  --line-2: #E2D6BD;
  --ice: #E9EEF4;
  --radius: 14px;
  --display: "Archivo Black", Archivo, system-ui, sans-serif;
  --sans: Archivo, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--red); }
a:hover { color: var(--red-hover); }
img { max-width: 100%; }
.mono { font-family: var(--mono); }
.empty { color: var(--text-3); font-style: italic; margin: 0; }

.eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.eyebrow--red { color: var(--red); }
.eyebrow--gold { color: var(--gold-dark); }
.eyebrow--goldlight { color: var(--gold); }
.label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; color: var(--label); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; cursor: pointer;
  font-family: var(--sans); font-weight: 800; font-size: 15px; line-height: 1.2;
  text-decoration: none; padding: 14px 22px; min-height: 48px;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover, .btn--red:focus-visible { background: var(--red-hover); color: #fff; }
.btn--red:disabled { opacity: .5; cursor: not-allowed; }
.btn--navy { background: var(--navy); color: #fff; align-self: flex-start; }
.btn--navy:hover { color: #fff; background: #1b3459; }
.btn--block { width: 100%; }
.icon-arrow { flex-shrink: 0; }

/* ---------- Header ---------- */
.topbar { background: var(--red); color: #fff; }
.topbar__inner { max-width: 1200px; margin: 0 auto; padding: 14px 18px 0; display: flex; flex-direction: column; gap: 12px; }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand__logo { width: 44px; height: 30px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--display); font-size: 17px; letter-spacing: .2px; }
.brand__sub { font-size: 11px; font-weight: 700; letter-spacing: 3.2px; color: var(--gold); margin-top: 2px; }
.fleet-badge { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: #FFE3E8; white-space: nowrap; }
.nav { display: flex; gap: 4px; font-size: 13px; font-weight: 700; overflow-x: auto; }
.nav a { color: #fff; text-decoration: none; padding: 10px 10px 12px; opacity: .85; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a:hover { opacity: 1; color: #fff; }
.nav a.is-active { opacity: 1; border-bottom-color: var(--gold); }
.nav__long { display: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 22px 16px 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.narrow { max-width: 640px; }
.page-head { display: flex; flex-direction: column; gap: 6px; }
.page-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.05; letter-spacing: -.3px; }
.lead { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-3); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Home: hero ---------- */
.hero { position: relative; background: var(--cream); }
.hero__media { position: relative; height: 250px; overflow: hidden; background: var(--ice); }
.hero__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 74% 62%; }
.hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(180deg, rgba(251, 246, 236, 0) 0%, var(--cream) 100%); }
.hero__inner { position: relative; margin-top: -8px; padding: 0 16px; }
.hero__content { display: flex; flex-direction: column; gap: 14px; }
.hero__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.03; letter-spacing: -.5px; }
.hero__lead { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }

.trackbox { background: #fff; border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 10px 30px rgba(16, 35, 63, .12); }
.trackbox__label { font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; color: var(--label); padding: 8px 10px 0; }
.trackbox__number { font-family: var(--mono); font-size: 17px; font-weight: 700; padding: 4px 10px 8px; letter-spacing: .3px; }
.trackbox__btn { width: 100%; font-size: 16px; }

.perks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.perks li { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 7px 11px; }

/* ---------- Home: diensten, nieuws, vloot ---------- */
.home { gap: 18px; padding-top: 18px; }
.services { display: flex; flex-direction: column; gap: 10px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: flex-start; }
.service__icon { width: 32px; height: 32px; flex-shrink: 0; }
.service h2 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.service p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-3); }

.home-row { display: flex; flex-direction: column; gap: 18px; }
.latest { overflow: hidden; }
.latest__img { display: block; width: 100%; height: 170px; object-fit: cover; }
.latest__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.latest__title { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.2; }
.latest__body p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-3); }
.more { font-weight: 800; font-size: 14.5px; text-decoration: none; padding: 6px 0; align-self: flex-start; }

.fleet { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.fleet__top { display: flex; justify-content: space-between; align-items: baseline; }
.fleet__pct { font-family: var(--display); font-size: 28px; line-height: 1; }
.fleet__text { margin: 0; font-size: 13.5px; color: #DCE4F0; line-height: 1.45; order: 3; }
.fleet__bar { display: flex; gap: 4px; padding: 4px; border: 2px solid var(--gold); border-radius: 8px; }
.fleet__bar span { flex: 1; height: 16px; border-radius: 3px; background: var(--on); }
.fleet__bar span.off { background: var(--off); }

/* ---------- Track ---------- */
.shipment { overflow: hidden; }
.shipment__top { padding: 16px 16px 14px; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line-2); }
.shipment__id { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.shipment__number { font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.barcode { max-width: 100%; height: auto; }
.postmark { flex-shrink: 0; transform: rotate(-12deg); margin: -4px -4px 0 0; opacity: .88; }
.shipment__body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.charge-head { display: flex; justify-content: space-between; align-items: baseline; }
.charge-head__pct { font-size: 13px; font-weight: 700; }

.battery { display: flex; align-items: center; gap: 4px; }
.battery__cells { flex: 1; display: flex; gap: 5px; padding: 5px; border: 2.5px solid var(--navy); border-radius: 9px; background: var(--navy); }
.battery__seg { flex: 1; height: 26px; border-radius: 4px; background: var(--off); }
.battery__seg.is-on { background: var(--on); animation: seg-on .5s ease-out both; }
.battery__seg.is-last { animation: seg-on .5s ease-out both, seg-glow 1.4s ease-in-out 3; }
.seg-1 { animation-delay: 0s; }
.seg-2 { animation-delay: .7s; }
.seg-3 { animation-delay: 1.4s; }
.seg-4 { animation-delay: 2.1s; }
.seg-5 { animation-delay: 2.8s; }
.seg-6 { animation-delay: 3.5s; }
.battery__seg.seg-1.is-last { animation-delay: 0s, .5s; }
.battery__seg.seg-2.is-last { animation-delay: .7s, 1.2s; }
.battery__seg.seg-3.is-last { animation-delay: 1.4s, 1.9s; }
.battery__seg.seg-4.is-last { animation-delay: 2.1s, 2.6s; }
.battery__seg.seg-5.is-last { animation-delay: 2.8s, 3.3s; }
.battery.is-full .battery__seg.is-on { animation: seg-on .5s ease-out both, seg-blink .5s ease-in-out 4.2s 3; }
.battery.is-full .seg-1 { animation-delay: 0s, 4.2s; }
.battery.is-full .seg-2 { animation-delay: .7s, 4.2s; }
.battery.is-full .seg-3 { animation-delay: 1.4s, 4.2s; }
.battery.is-full .seg-4 { animation-delay: 2.1s, 4.2s; }
.battery.is-full .seg-5 { animation-delay: 2.8s, 4.2s; }
.battery.is-full .seg-6 { animation-delay: 3.5s, 4.2s; }
.battery__tip { width: 6px; height: 18px; background: var(--navy); border-radius: 0 3px 3px 0; }
@keyframes seg-on { 0% { opacity: .15; } 100% { opacity: 1; } }
@keyframes seg-glow { 0%, 100% { box-shadow: 0 0 0 rgba(184, 224, 74, 0); } 50% { box-shadow: 0 0 14px rgba(184, 224, 74, .85); } }
@keyframes seg-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.battery__labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--label); line-height: 1.25; margin-top: -6px; }
.battery__labels span:nth-child(2) { text-align: center; }
.battery__labels span:nth-child(3) { text-align: right; }
.fully-charged { margin: 0; font-weight: 800; color: #2F4A0B; background: #EEF7D9; border-radius: 10px; padding: 10px 14px; }

.current { background: var(--cream); border-radius: 10px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; }
.current__icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.current > div { display: flex; flex-direction: column; gap: 3px; }
.current__text { font-size: 16px; font-weight: 800; line-height: 1.3; }
.current__when { font-size: 12.5px; color: var(--text-3); }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.tile--dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.tile__main { font-size: 17px; font-weight: 800; line-height: 1.2; }
.tile__sub { font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.tile--dark .tile__sub { color: #C9D3E3; }

.shiplabel { padding: 14px 16px; display: flex; gap: 14px; align-items: stretch; }
.shiplabel__lines { flex: 1; display: flex; flex-direction: column; gap: 10px; font-size: 12px; line-height: 1.35; min-width: 0; }
.shiplabel__lines > div { display: flex; flex-direction: column; gap: 2px; }
.shiplabel__lines span:not(.label) { color: var(--text-3); }
.stamp { width: 86px; flex-shrink: 0; border: 2px dashed var(--red); border-radius: 6px; padding: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #FFF7F2; }
.stamp .mono { font-size: 9px; font-weight: 700; color: var(--red); letter-spacing: .5px; }

.history { padding: 18px 16px 8px; }
.history__title { margin: 0 0 14px; font-family: var(--display); font-weight: 400; font-size: 19px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.timeline__item::before { content: ""; position: absolute; left: 8px; top: 21px; bottom: 4px; width: 2px; background: var(--line-2); }
.timeline__item:last-child::before { display: none; }
.timeline__dot { width: 14px; height: 14px; border-radius: 50%; margin: 3px 2px 0; flex-shrink: 0; background: #fff; border: 3px solid var(--navy); }
.is-latest .timeline__dot { background: var(--red); border-color: #F9D5DB; }
.timeline__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.timeline__text { font-size: 15px; font-weight: 800; line-height: 1.3; }
.timeline__when { font-size: 11.5px; color: var(--gold-dark); }
.timeline__photo { display: block; width: auto; max-width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: 10px; margin: 6px 0 2px; }

.charger { background: var(--navy); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: center; color: #fff; }
.charger__icon { width: 56px; height: 56px; flex-shrink: 0; }
.charger > div { display: flex; flex-direction: column; gap: 4px; }
.charger p { margin: 0; font-size: 13.5px; line-height: 1.4; color: #E6ECF5; }

/* ---------- News ---------- */
.news-page { gap: 18px; }
.post { overflow: hidden; display: flex; flex-direction: column; }
.post__media { position: relative; height: 200px; background: #DCE6F2; }
.post__img { display: block; width: 100%; height: 200px; object-fit: cover; }
.post__tag { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; padding: 5px 8px; border-radius: 5px; }
.post__tag--inline { position: static; align-self: flex-start; }
.post__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.post__date { font-size: 11.5px; font-weight: 700; color: var(--gold-dark); }
.post__title { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; }
.post__body p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-3); }
.classified { border: 2px dashed var(--red); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: center; background: #FFF7F2; }
.classified__icon { width: 28px; height: 28px; flex-shrink: 0; }
.classified > div { display: flex; flex-direction: column; gap: 3px; }
.classified strong { font-size: 13px; font-weight: 800; }
.classified span { font-size: 12.5px; color: var(--text-3); line-height: 1.4; }

/* ---------- Veiligheidsvraag ---------- */
.gate { gap: 18px; padding-top: 28px; padding-left: 18px; padding-right: 18px; }
.gate__head { display: flex; align-items: center; gap: 10px; }
.gate__shield { width: 34px; height: 34px; flex-shrink: 0; }
.gate .page-title { font-size: 28px; line-height: 1.1; }
.gate .lead { font-size: 15px; line-height: 1.55; }
.gate__card { padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.gate__ship { font-size: 12px; font-weight: 700; color: var(--label); }
.gate__form { display: flex; flex-direction: column; gap: 14px; }
.gate__q { font-size: 17px; font-weight: 800; line-height: 1.35; }
.stepper { display: flex; gap: 10px; align-items: stretch; }
.stepper__btn { width: 52px; min-height: 52px; border-radius: 12px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); font-size: 24px; font-weight: 700; cursor: pointer; font-family: var(--sans); }
.stepper__btn:hover { background: var(--cream); }
.stepper__input { flex: 1; min-width: 0; min-height: 52px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--cream); text-align: center; font-size: 26px; font-weight: 700; color: var(--navy); -moz-appearance: textfield; appearance: textfield; }
.stepper__input::-webkit-outer-spin-button, .stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__input:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.notice { border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.notice--wrong { background: #FFF1F3; color: #7A0A1C; }
.notice--hint { background: #FBF3DC; color: #5C4510; }
.notice--ok { background: #EEF7D9; color: #2F4A0B; display: flex; flex-direction: column; gap: 10px; padding: 14px; font-size: 15px; }
.gate__note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--label); }

/* ---------- Footer ---------- */
.footer { margin-top: auto; border-top: 1px solid var(--line); color: var(--label); font-size: 12px; }
.footer__inner { max-width: 1200px; margin: 0 auto; padding: 20px 16px 26px; display: flex; flex-direction: column; gap: 6px; }
.footer__copy { font-weight: 700; color: var(--navy); }
.footer--dark { background: var(--navy); border-top: 0; color: #C9D3E3; }
.footer--dark .footer__copy { color: #fff; }

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
  .topbar__inner { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 32px; gap: 20px; }
  .brand__logo { width: 54px; height: 36px; }
  .brand__name { font-size: 21px; }
  .brand__sub { font-size: 12px; letter-spacing: 4px; }
  .nav { font-size: 14px; gap: 6px; }
  .nav a { padding: 10px 14px; }
  .nav__long { display: inline; }
  .nav__short { display: none; }
  .fleet-badge { margin-left: 20px; }

  .container { padding: 40px 32px 56px; }
  .narrow { max-width: 704px; }
  .page-title { font-size: 40px; }
  .footer__inner { flex-direction: row; justify-content: space-between; flex-wrap: wrap; padding: 28px 32px; font-size: 14px; }

  /* Hero: foto over de volle breedte met verloopwaas links */
  .hero { background: var(--ice); overflow: hidden; }
  .hero__media { position: absolute; inset: 0; height: auto; }
  .hero__img { object-position: 72% 60%; }
  .hero__fade { inset: 0; height: auto; background: linear-gradient(90deg, rgba(240, 244, 249, .92) 0%, rgba(240, 244, 249, .7) 32%, rgba(240, 244, 249, 0) 55%); }
  .hero__inner { max-width: 1200px; margin: 0 auto; padding: 96px 32px 104px; }
  .hero__content { max-width: 560px; gap: 22px; }
  .eyebrow--red { font-size: 12px; letter-spacing: 2px; }
  .hero__title { font-size: clamp(40px, 5vw, 56px); line-height: 1.02; letter-spacing: -.8px; }
  .hero__lead { font-size: 18px; max-width: 470px; }
  .trackbox { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 520px; }
  .trackbox__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .trackbox__number { flex: 1 1 200px; font-size: 16px; padding: 12px; }
  .trackbox__btn { width: auto; font-size: 15px; }
  .perks { gap: 28px; font-size: 13px; padding-top: 6px; }
  .perks li { background: none; border: 0; padding: 0; }

  .home { padding: 56px 32px 72px; gap: 48px; }
  .services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
  .service { flex-direction: column; gap: 12px; padding: 24px; border-radius: 16px; }
  .service__icon { width: 40px; height: 40px; }
  .service h2 { font-size: 20px; margin-bottom: 12px; }
  .service p { font-size: 15px; line-height: 1.55; }
  .home-row { flex-direction: row; flex-wrap: wrap; gap: 24px; align-items: stretch; }
  .latest { flex: 2 1 520px; border-radius: 16px; }
  .latest__img { display: none; }
  .latest__body { padding: 28px; gap: 12px; }
  .latest .eyebrow { font-size: 12px; letter-spacing: 1.8px; }
  .latest__title { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; }
  .latest__body p { font-size: 16px; line-height: 1.6; }
  .more { font-size: 15px; margin-top: 4px; }
  .fleet { flex: 1 1 280px; border-radius: 16px; padding: 28px; gap: 14px; justify-content: space-between; }
  .fleet__top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .fleet .eyebrow { font-size: 12px; letter-spacing: 1.8px; }
  .fleet__pct { font-size: 44px; }
  .fleet__text { order: 0; font-size: 15px; line-height: 1.5; margin-top: -6px; }
  .fleet__bar { gap: 5px; padding: 5px; }
  .fleet__bar span { height: 18px; }

  .post__media, .post__img { height: 260px; }
  .gate { padding-top: 48px; }
}

/* ---------- Minder beweging ---------- */
@media (prefers-reduced-motion: reduce) {
  .battery__seg.is-on, .battery__seg.is-last, .battery.is-full .battery__seg.is-on { animation: none !important; }
}
