/* ==========================================================================
   JIMSATEC — full-stylesheet reproduction of the Framer reference
   Breakpoints observed in the reference:
     desktop  >= 1200px
     tablet   810px – 1199.98px
     mobile   <= 809.98px
   ========================================================================== */

/* ---------- Fonts (self-hosted IBM Plex Sans, variable weight) ---------- */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-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;
}
/* Metric-compatible fallback so text does not jump while the webfont loads */
@font-face {
  font-family: "IBM Plex Sans Fallback";
  src: local("Arial"), local("Helvetica");
  size-adjust: 97%;
  ascent-override: 102%;
  descent-override: 26%;
  line-gap-override: 0%;
}

/* ---------- Design tokens (values measured on the reference) ---------- */
:root {
  --c-navy: #10233f;        /* headings, labels              rgb(16,35,63)    */
  --c-blue: #155e9f;        /* eyebrows, numbers, icons      rgb(21,94,159)   */
  --c-slate: #50657c;       /* hero + CTA summaries          rgb(80,101,124)  */
  --c-ink: #3f4852;         /* process summary               rgb(63,72,82)    */
  --c-bg-soft: #f3f6f8;     /* "What we do" band, cards      rgb(243,246,248) */
  --c-bg-cta: #e8f1f8;      /* "Start a project" band        rgb(232,241,248) */
  --c-dark: #2f3847;        /* "Why" band + footer           rgb(47,56,71)    */
  --c-sky: #8fc8f4;         /* eyebrow on dark               rgb(143,200,244) */
  --c-mist: #c7d5e2;        /* body text on dark             rgb(199,213,226) */
  --c-fog: #afc0d0;         /* footer text                   rgb(175,192,208) */
  --c-line: #d7e0e8;        /* process + industry borders    rgb(215,224,232) */
  --c-line-soft: #e0e7ed;   /* capability card border        rgb(224,231,237) */
  --c-line-dark: #52708d;   /* advantage separators          rgb(82,112,141)  */

  --font: "IBM Plex Sans", "IBM Plex Sans Fallback", sans-serif;
  --container: 1200px;
  --gutter: 40px;           /* 40 desktop · 32 tablet · 20 mobile */
  --section-y: 88px;        /* 88 desktop · 64 tablet · 56 mobile */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-navy);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, ol, address, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Page frame ---------- */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  overflow: clip;
  background: #fff;
}
.page > main { display: contents; }
.section {
  width: 100%;
  max-width: var(--container);
  padding: var(--section-y) var(--gutter);
  overflow: clip;
}

/* ---------- Typography primitives ---------- */
/* The reference balances summary paragraphs and keeps eyebrows/short labels on one line */
.hero__summary, .lead, .cta__summary { text-wrap: balance; }
.eyebrow, .industry .label { white-space: nowrap; }
.eyebrow {
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-blue);
}
.title {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--c-navy);
}
.lead {
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-ink);
}
.label {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--c-navy);
}
.icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--c-blue);
}

/* ---------- Header: empty nav bar + centred logo ---------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  padding: 24px 40px;           /* the reference keeps 40px here on tablet too */
  overflow: clip;
}
/* Language selector — lives in the (otherwise empty) navigation strip, right-aligned */
.lang { margin-left: auto; }
.lang__list {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  min-height: 14px;
}
.lang__link {
  display: block;
  padding: 8px 2px;               /* 28px touch target… */
  margin: -7px -2px;              /* …without changing the 14px layout height of the strip */
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-slate);
  transition: color 120ms ease;
}
.lang__link:hover { color: var(--c-navy); }
.lang__link[aria-current] {
  color: var(--c-navy);
  text-decoration: underline;
  text-decoration-color: var(--c-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.brand { display: block; }
.brand__wide { width: 933px; height: 86px; object-fit: cover; }
.brand__stack { display: none; width: 113px; height: 103px; object-fit: contain; }

/* ---------- Hero ("Introduction") ---------- */
.hero {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 72px var(--gutter) 23px;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  flex: 1 0 0;
  min-width: 0;
}
.hero__copy > *, .why__intro > *, .capabilities__intro > * { width: 100%; }
.hero__title {
  font-size: 48px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -1.6px;
  color: var(--c-navy);
}
.hero__summary {
  font-size: 18px;
  line-height: 1.55;
  color: var(--c-slate);
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 155px;
  min-height: 41px;
}
.hero__media {
  flex: 1 0 0;
  min-width: 0;
  height: 420px;
  border-radius: 4px;
  overflow: clip;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ---------- Process ("What we do") ---------- */
.process {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding: 26px var(--gutter);
  background: var(--c-bg-soft);
}
.process__intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}
.process__intro .title { flex: 0 0 55%; }
.process__intro .lead { flex: 0 0 38%; }
.process__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(50px, 1fr));
  gap: 12px;
  width: 100%;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  background: #fff;
  border-radius: 4px;
}
.step::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--c-line);
  border-radius: inherit;
  pointer-events: none;
}
.step__num {
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  color: var(--c-blue);
}

/* ---------- Capabilities ---------- */
.capabilities {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding: 45px var(--gutter);
}
.capabilities__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 60%;
}
.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(50px, 1fr));
  gap: 12px;
  width: 100%;
}
.capability {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 22px;
  background: var(--c-bg-soft);
  border-radius: 4px;
}
.capability::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--c-line-soft);
  border-radius: inherit;
  pointer-events: none;
}

/* ---------- Why JIMSATEC (dark band) ---------- */
.why {
  display: flex;
  align-items: flex-start;
  gap: 72px;
  background: var(--c-dark);
}
.why__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  flex: 0 0 42%;
}
.why .eyebrow { color: var(--c-sky); }
.why .title { color: #fff; }
.why .lead { color: var(--c-mist); }
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(50px, 1fr));
  gap: 24px;
  flex: 1 0 0;
  min-width: 0;
}
.advantage {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--c-line-dark);
}
.advantage__title {
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
  color: #fff;
}
.advantage__text {
  font-size: 14px;
  line-height: 1.45;
  color: var(--c-mist);
}

/* ---------- Industries ---------- */
.industries {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
.industries .title { width: 62%; }
.industries__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(50px, 1fr));
  gap: 12px;
  width: 100%;
}
.industry {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 4px;
}
.industry::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--c-line);
  border-radius: inherit;
  pointer-events: none;
}
.industry .icon { width: 20px; height: 20px; }

/* ---------- CTA ("Start a project") ---------- */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--c-bg-cta);
  text-align: center;
}
.cta__title {
  width: 70%;
  font-size: 38px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--c-navy);
}
.cta__summary {
  width: 58%;
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-slate);
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  padding: 28px var(--gutter);
  background: var(--c-dark);
  color: var(--c-fog);
  overflow: clip;
}
.footer__brand {
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}
.footer__contact {
  font-size: 20px;
  line-height: 20px;
}
.footer__tagline {
  font-size: 13px;
  line-height: 1;
}
.footer__badge {
  display: block;
  flex: 0 0 auto;
  width: 80px;
}
.footer__badge img { width: 100%; height: auto; }
.footer__badge:focus-visible { outline-color: #fff; }

/* ==========================================================================
   Tablet  810px – 1199.98px
   ========================================================================== */
@media (min-width: 810px) and (max-width: 1199.98px) {
  :root { --gutter: 32px; --section-y: 64px; }
  .brand__wide { width: 737px; height: 75px; object-fit: contain; } /* the reference crops "MECHANICAL" here; contain avoids it */
  .hero { flex-direction: column; gap: 40px; padding: 56px var(--gutter) 72px; }
  .hero__copy, .hero__media { flex: none; width: 100%; }
  .hero__media { height: 360px; }
  .process { padding: 64px var(--gutter); }
  .process__steps { grid-template-columns: repeat(3, minmax(50px, 1fr)); }
  .capabilities { padding: 64px var(--gutter); }
  .capabilities__grid { grid-template-columns: repeat(2, minmax(50px, 1fr)); }
  .why { flex-direction: column; gap: 44px; }
  .why__intro { flex: none; width: 100%; }
  .why__grid { flex: none; width: 100%; }
}

/* ==========================================================================
   Mobile  <= 809.98px
   ========================================================================== */
@media (max-width: 809.98px) {
  :root { --gutter: 20px; --section-y: 56px; }
  .nav { min-height: 100px; padding: 20px; }
  .lang__list { gap: 16px; }
  .brand__wide { display: none; }
  .brand__stack { display: block; }
  .hero { flex-direction: column; gap: 32px; padding: 40px var(--gutter) 56px; }
  .hero__copy, .hero__media { flex: none; width: 100%; }
  .hero__title { font-size: 34px; letter-spacing: -0.8px; }
  .hero__summary { font-size: 17px; }
  .hero__actions { flex-direction: column; align-items: flex-start; min-width: 0; width: 100%; }
  .hero__media { height: 250px; }
  .title { font-size: 28px; }
  .process { gap: 26px; padding: 56px var(--gutter); }
  .process__intro { flex-direction: column; align-items: flex-start; gap: 20px; }
  .process__intro .title, .process__intro .lead { flex: none; width: 100%; }
  .process__steps { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .capabilities { padding: 56px var(--gutter); }
  .capabilities__intro { width: 100%; }
  .capabilities__grid { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .why { flex-direction: column; gap: 36px; }
  .why__intro { flex: none; width: 100%; }
  .why .title { font-size: 34px; }          /* the reference keeps 34px here on mobile */
  .why__grid { display: flex; flex-direction: column; align-items: stretch; gap: 18px; flex: none; width: 100%; }
  .industries .title { width: 100%; }
  .industries__grid { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .cta__title { width: 100%; font-size: 30px; }
  .cta__summary { width: 100%; }
  .footer { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer__badge { width: 96px; }
}

/* ==========================================================================
   Contact page (new page, same visual language as the landing)
   ========================================================================== */
.contact {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}
.contact__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  flex: 0 0 42%;
}
.contact__intro > * { width: 100%; }
.contact__title { font-size: 38px; line-height: 1.12; letter-spacing: -1px; }
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 14px;
}
.contact__detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--c-line);
}
.contact__detail:last-child { border-bottom: 1px solid var(--c-line); }
.contact__detail dd { margin: 0; }
.contact__detail dt { text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; }

.contact__form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 0 0;
  min-width: 0;
  padding: 32px;
  background: var(--c-bg-soft);
  border-radius: 4px;
}
.contact__form::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--c-line-soft);
  border-radius: inherit;
  pointer-events: none;
}
.contact__form-title {
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--c-navy);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field__label {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--c-navy);
}
.field__req { color: var(--c-blue); }
.field__input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--c-navy);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field__input::placeholder { color: var(--c-fog); }
.field__input:focus { outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(21, 94, 159, 0.18); }
textarea.field__input { resize: vertical; min-height: 140px; }
.field__upload { width: 100%; min-width: 0; padding: 10px; font-size: 14px; }
.field__upload::file-selector-button { padding: 8px 12px; margin-right: 10px; border: 1px solid var(--c-fog); border-radius: 4px; background: var(--c-paper, #fff); color: inherit; cursor: pointer; }
.file-clear { align-self: flex-start; border: 0; padding: 4px 0; background: transparent; color: var(--c-blue); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.file-clear:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; }
.field__hint { font-size: 13px; line-height: 1.45; color: var(--c-slate); }
.field__error { font-size: 13px; line-height: 1.45; font-weight: 600; color: #b3261e; }
.field--error .field__input { border-color: #b3261e; }
.field--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field--check .field__label { font-weight: 400; line-height: 1.45; }
.field__check { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--c-blue); }
.field--honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.link { color: var(--c-blue); text-decoration: underline; text-underline-offset: 2px; }
.link:hover { color: var(--c-navy); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 41px;
  padding: 11px 20px;
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  color: #fff;
  background: var(--c-blue);
  border: 1px solid var(--c-blue);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.button:hover { background: #10233f; border-color: #10233f; }
.button:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; }
.button[disabled] { opacity: 0.6; cursor: default; }
.contact__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { padding: 14px 16px; border-radius: 4px; font-size: 15px; line-height: 1.45; }
.form-status--success { color: #0f5132; background: #e3f3ea; border: 1px solid #b7dfc6; }
.form-status--error { color: #842029; background: #fbe9eb; border: 1px solid #f1c2c7; }

@media (min-width: 810px) and (max-width: 1199.98px) {
  .contact { flex-direction: column; gap: 44px; }
  .contact__intro, .contact__form { flex: none; width: 100%; }
}
@media (max-width: 809.98px) {
  .contact { flex-direction: column; gap: 36px; }
  .contact__intro, .contact__form { flex: none; width: 100%; }
  .contact__title { font-size: 30px; }
  .contact__form { padding: 22px; }
  .field-row { grid-template-columns: 1fr; }
}

[hidden] { display: none !important; }
.field__input[aria-invalid="true"] { border-color: #b3261e; }
.field__check[aria-invalid="true"] { outline: 2px solid #b3261e; outline-offset: 2px; }
.cta .button { margin-top: 24px; }
.footer__privacy { display: inline-block; margin-top: 12px; text-decoration: underline; text-underline-offset: 3px; }
.legal { max-width: 900px; }
.legal .title { margin-top: 18px; overflow-wrap: anywhere; }
.legal__date { margin-top: 18px; color: var(--c-slate); font-size: 14px; }
.legal h2 { margin: 32px 0 12px; font-size: 23px; line-height: 1.25; }
.legal p + p { margin-top: 14px; }
.legal p { overflow-wrap: anywhere; }
.legal__back { margin-top: 36px !important; }
.legal-footer { flex-wrap: wrap; gap: 20px; }
.nav { gap: 18px; flex-wrap: wrap; }
.site-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; font-weight: 600; }
.site-links a { padding: 8px 0; }
.site-links a:hover, .site-links a[aria-current="page"] { color: var(--c-blue); text-decoration: underline; text-underline-offset: 5px; }
.hero__actions { flex-wrap: wrap; }
.hero__media picture { display: block; width: 100%; height: 100%; }
.capability__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; font-size: 13px; color: var(--c-slate); margin-bottom: 24px; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.services-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.services-intro .breadcrumbs { margin-bottom: 0; }
.services-intro .title { max-width: 850px; font-size: 44px; }
.services-intro .lead { max-width: 850px; text-wrap: pretty; }
.services-routes { background: var(--c-bg-soft); }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 32px; }
.service-card { padding: 26px; background: white; border: 1px solid var(--c-line); border-radius: 4px; scroll-margin-top: 24px; }
.service-card h3 { font-size: 21px; line-height: 1.25; margin-bottom: 14px; }
.service-card p { color: var(--c-ink); }
.services-checklist { list-style: disc; padding-left: 24px; margin: 28px 0; }
.services-checklist li + li { margin-top: 12px; }
.services-faq { padding-top: 0; }
.services-faq .title { margin-bottom: 28px; }
.services-faq details { border-top: 1px solid var(--c-line); padding: 20px 0; }
.services-faq summary { cursor: pointer; font-weight: 600; font-size: 18px; }
.services-faq details p { margin-top: 14px; max-width: 900px; color: var(--c-ink); }
.services-faq .button { margin-top: 28px; }
@media (max-width: 809.98px) {
  .nav { padding: 20px var(--gutter); }
  .site-links { gap: 18px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-intro .title { font-size: 32px; }
  .service-card { padding: 22px; }
}
