/* EuroTradeFlow — shared stylesheet
   Direction: a well-set procurement / tender document.
   Cool neutral paper, white panels, ink type, one restrained blue accent.
   One grotesk family (IBM Plex Sans) + IBM Plex Mono for data.
   Separation by 1px rules and whitespace. No shadows, gradients, textures or blur. */

:root {
  --paper: #f4f5f7;
  --white: #ffffff;
  --ink: #141618;
  --ink-2: #4b5159;
  --line: #d5d9de;
  --line-strong: #141618;
  --accent: #1d3f6e;
  --accent-hover: #162f53;
  --accent-tint: #e9eef5;
  --ok: #1f5c3a;
  --err: #a12b1f;
  --err-tint: #fbf0ee;

  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --max: 1100px;
  --gutter: clamp(20px, 4vw, 36px);
  --section: clamp(48px, 7vw, 88px);
  --radius: 1px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-tint); }
strong { font-weight: 600; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 14px;
  font-size: 14px; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Typography ---------- */
.mono { font-family: var(--mono); }
.eyebrow, .label-mono {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 12px;
}
.lead { font-size: 18px; line-height: 1.5; color: var(--ink); max-width: 44ch; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 60px;
}
.wordmark {
  font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
  text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 10px;
}
.wordmark:hover { color: var(--ink); }
.wordmark .mark {
  width: 22px; height: 22px; background: var(--ink); color: var(--white);
  display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; line-height: 1;
  border-radius: var(--radius);
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; display: flex; gap: 22px; }
.site-nav ul a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.site-nav ul a:hover { color: var(--ink); }
.lang { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }
.lang a { text-decoration: none; padding: 2px 0; color: var(--ink-2); }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { color: var(--ink); font-weight: 500; border-bottom: 2px solid var(--accent); }
.lang span { color: var(--line); }
.nav-toggle {
  display: none; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 7px 12px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: var(--white);
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap; line-height: 1.2;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-sm { padding: 9px 14px; font-size: 12px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; color: var(--accent); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
.textlink:hover { color: var(--accent-hover); }
.textlink .arrow { width: 14px; height: 14px; flex: none; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); border-top: 1px solid var(--line); }
.section-alt { background: var(--white); }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 72ch; }
.section-head h2 { font-size: clamp(26px, 3vw, 30px); display: flex; align-items: baseline; gap: 18px; }
.section-head h2 .num, .num {
  font-family: var(--mono); font-weight: 500; font-size: 0.6em; color: var(--ink-2); letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums; flex: none;
}
.section-head .intro { color: var(--ink-2); margin: 12px 0 0 0; font-size: 17px; max-width: 62ch; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.hero h1 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -0.015em; max-width: 14ch; }
.hero .lead { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); }
.hero .sub { color: var(--ink-2); font-size: 16px; max-width: 46ch; }
.hero .sub strong { color: var(--ink); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }

/* Comparable offers sheet (illustrative example, mono values) */
figure.sheet { margin: 0; }
.sheet { border: 1px solid var(--line-strong); background: var(--white); width: 100%; font-size: 14px; }
.sheet-head { padding: 12px 14px 10px; border-bottom: 1px solid var(--line-strong); }
.sheet-head .title { font-weight: 600; font-size: 15px; display: block; }
.sheet-head .note { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); display: block; margin-top: 4px; letter-spacing: 0.01em; }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th, .sheet td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.sheet th:first-child, .sheet td:first-child { padding-left: 14px; }
.sheet thead th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.sheet tbody th { font-weight: 500; color: var(--ink); width: 32%; font-size: 13.5px; }
.sheet td { font-family: var(--mono); font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.sheet tbody tr.sum th, .sheet tbody tr.sum td { border-top: 1px solid var(--line-strong); border-bottom: 0; font-weight: 500; background: var(--accent-tint); }
.sheet td.pending { color: var(--ink-2); }
.sheet-foot { padding: 9px 14px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); border-top: 1px solid var(--line-strong); }

/* ---------- Outcomes (What you get) ---------- */
.outcomes { border-top: 1px solid var(--line-strong); }
.outcome { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: 6px 24px; }
.outcome .tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); padding-top: 4px; }
.outcome h3 { font-size: 18px; margin-bottom: 6px; }
.outcome p { color: var(--ink-2); margin: 0; max-width: 66ch; font-size: 15.5px; }
.note-box {
  margin-top: 32px; padding: 16px 20px; border: 1px solid var(--line-strong); background: var(--white);
  max-width: 76ch; font-size: 15.5px; color: var(--ink);
}
.note-box .label-mono { margin-bottom: 6px; }
.note-box p { margin: 0; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-strong); }
.service { padding: 20px 0; border-bottom: 1px solid var(--line); }
.service h3 { font-size: 18px; margin-bottom: 6px; }
.service p { color: var(--ink-2); margin: 0; max-width: 62ch; font-size: 15.5px; }
@media (min-width: 760px) {
  .services { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .service { padding: 22px 0; }
}

/* ---------- Process (How it works) ---------- */
.steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 0 40px; border-top: 1px solid var(--line-strong); }
.steps .phase-label {
  grid-column: 1 / -1; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); padding: 14px 0 4px; font-weight: 500;
}
.step { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.step-num { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent); padding-top: 3px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 16px; margin-bottom: 4px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; max-width: 48ch; }

/* ---------- Coverage ---------- */
.coverage { display: grid; grid-template-columns: 1fr; gap: 36px; }
.coverage-main h3 { font-size: 20px; margin-bottom: 12px; max-width: 30ch; }
.coverage-main p { max-width: 58ch; color: var(--ink-2); }
.on-request { margin-top: 20px; padding: 14px 18px; border: 1px solid var(--line-strong); font-size: 15px; max-width: 62ch; background: var(--white); }
.on-request p { margin: 0; }
.on-request p + p { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.route { border: 1px solid var(--line); background: var(--white); padding: 20px 18px 14px; }
.route svg { width: 100%; height: auto; max-width: 480px; margin-inline: auto; }
.route .line { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; fill: none; }
.route .hub { fill: var(--accent); }
.route .node { fill: var(--white); stroke: var(--ink); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.route .name { font-family: var(--sans); font-weight: 500; font-size: 14px; fill: var(--ink); }
.route .dist { font-family: var(--mono); font-size: 12.5px; fill: var(--ink-2); }
.route-caption { font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin: 14px 0 0; text-align: center; }
.caps-block { margin-top: 48px; }
.caps { border-top: 1px solid var(--line-strong); }
.caps > div { display: grid; grid-template-columns: 1fr; gap: 2px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.caps dt { font-weight: 600; font-size: 15.5px; }
.caps dd { color: var(--ink-2); font-size: 14.5px; }
.caps-note { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.vision { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: 8px 24px; }
.vision h3 { font-size: 16px; }
.vision p { color: var(--ink-2); max-width: 70ch; margin: 0; font-size: 15.5px; }

/* ---------- Forms ---------- */
.form-col { max-width: 760px; }
.promise {
  border: 1px solid var(--line-strong); background: var(--white); padding: 16px 20px; margin-bottom: 20px;
}
.promise .label-mono { margin-bottom: 6px; }
.promise p { margin: 0; font-size: 16px; font-weight: 500; }
.promise p + p { font-weight: 400; color: var(--ink-2); font-size: 14.5px; margin-top: 6px; }

form.rfq, form.benchmark, form.contact-form {
  background: var(--white); border: 1px solid var(--line-strong); padding: clamp(20px, 3vw, 32px);
}
fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
fieldset:last-of-type { margin-bottom: 0; }
legend {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--ink-2);
  padding: 0 0 8px; margin-bottom: 16px; width: 100%; border-bottom: 1px solid var(--line);
}
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.span-2 { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 500; }
label .opt { color: var(--ink-2); font-weight: 400; font-family: var(--mono); font-size: 12px; }
.hint { font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin: 0; line-height: 1.5; }
.hint.is-error { color: var(--err); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink); min-height: 44px;
  transition: border-color .15s ease;
}
input::placeholder, textarea::placeholder { color: #7a8089; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); background: var(--err-tint); }
textarea { min-height: 110px; resize: vertical; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23141618' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
}
input[type="file"] {
  width: 100%; padding: 9px; border: 1px dashed var(--ink-2); border-radius: var(--radius); background: var(--white); font-size: 14px;
}
input[type="file"]::file-selector-button {
  font: inherit; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--ink); background: var(--white); color: var(--ink); padding: 7px 11px; margin-right: 12px; cursor: pointer; border-radius: var(--radius);
}
input[type="file"]::file-selector-button:hover { background: var(--ink); color: var(--white); }
.checks { display: grid; gap: 10px; }
.check { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; font-size: 15px; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.check.consent { font-size: 14px; color: var(--ink-2); }
.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form-status { font-size: 14px; color: var(--err); margin: 0; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-foot { margin-top: 14px; font-size: 13.5px; color: var(--ink-2); }
.form-foot:last-child { margin-bottom: 0; }

/* Collapsed optional details inside forms */
.more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 24px 0; }
.more summary {
  list-style: none; cursor: pointer; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink);
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--accent); }
.more[open] summary::after { content: "\2212"; }
.more summary:hover { color: var(--accent); }
.more .more-body { padding: 4px 0 24px; }
.more .more-body fieldset:last-of-type { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 40px 16px 0; position: relative;
  font-size: 17px; font-weight: 500; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 14px; font-family: var(--mono); font-size: 20px; color: var(--accent); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 0 18px; color: var(--ink-2); max-width: 68ch; font-size: 15.5px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.contact-info p { max-width: 44ch; color: var(--ink-2); }
.contact-info .mail { font-family: var(--mono); font-size: clamp(16px, 2vw, 19px); text-decoration: none; border-bottom: 1px solid currentColor; }
.contact-info dl { margin: 28px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 14.5px; border-top: 1px solid var(--line-strong); padding-top: 12px; }
.contact-info dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
.contact-info dd { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-strong); padding: 28px 0 40px; font-size: 13.5px; color: var(--ink-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; align-items: center; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Simple pages (legal, thanks, 404) ---------- */
.page { padding-block: clamp(40px, 6vw, 72px); }
.page .wrap-narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.page h1 { font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -0.01em; margin-bottom: 10px; }
.page .updated { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); margin-bottom: 36px; padding-bottom: 16px; border-bottom: 1px solid var(--line-strong); }
.page h2 { font-size: 20px; margin: 36px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.page h3 { font-size: 16px; margin: 20px 0 6px; }
.page p, .page li { color: var(--ink-2); font-size: 15.5px; }
.page ul, .page ol { padding-left: 22px; margin-bottom: 16px; }
.page li { margin-bottom: 6px; }
.page .next { list-style: none; padding: 0; counter-reset: n; margin: 28px 0; border-top: 1px solid var(--line-strong); }
.page .next li { counter-increment: n; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.page .next li::before { content: counter(n, decimal-leading-zero); font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent); padding-top: 3px; }
.page .next strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.page .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.page .note-alt { margin-top: 28px; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .outcome { grid-template-columns: 130px 1fr; }
  .caps > div { grid-template-columns: 220px 1fr; }
  .vision { grid-template-columns: 220px 1fr; }
}
@media (min-width: 760px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .site-nav .btn { display: none; }
  .hero .wrap { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .coverage { grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
  .contact-grid { grid-template-columns: 1fr 1.4fr; gap: 56px; }
}
@media (max-width: 899.98px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line-strong);
    padding: 16px var(--gutter) 20px; flex-direction: column; align-items: stretch; gap: 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 10px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { width: 100%; }
  .header-cta { display: none; }
}
@media (max-width: 480px) {
  .btn { width: 100%; }
  .hero-actions .textlink { width: auto; }
  .sheet th, .sheet td { padding: 7px 6px; }
  .sheet th:first-child, .sheet td:first-child { padding-left: 10px; }
  .sheet tbody th { width: 28%; font-size: 12.5px; overflow-wrap: anywhere; hyphens: auto; }
  .sheet td { font-size: 11.5px; overflow-wrap: anywhere; }
  .sheet thead th { font-size: 10px; letter-spacing: 0.04em; }
}

/* Grid children must be allowed to shrink below their min-content width (no horizontal scroll at 360px) */
.hero .wrap > *, .coverage > *, .contact-grid > *, .step > *, .outcome > *, .caps > div > *, .vision > * { min-width: 0; }
/* Keep anchored section titles clear of the sticky header */
[id] { scroll-margin-top: 76px; }
