/* ==========================================================================
   Metong — PL market layer (loaded after site.css)
   Polish B2B buying style: white/paper surfaces, graphite structure,
   signal-red accents, dense technical typography, always-visible quote path.
   Only overrides tokens and component skins; no structural rules of site.css
   are removed, so every existing page keeps its layout.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --ink: #141d25;
  --ink-2: #1a242d;
  --ink-3: #21303a;
  --navy: #1e3d4d;
  --navy-2: #26536c;
  --navy-3: #33708c;
  --accent: #d0202f;
  --accent-soft: #e25761;
  --accent-ink: #a1141f;
  --paper: #f5f3ef;
  --paper-2: #ebe8e2;
  --line: #ddd8d1;
  --line-strong: #c2bbb2;
  --text: #161e26;
  --muted: #5c6871;
  --radius: 0px;
}

/* ---------- typographic voice ---------- */
h1, h2, h3, h4 { letter-spacing: -.028em; }
.lead { line-height: 1.62; }
.kicker {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .7rem;
  color: var(--accent-ink);
}
.kicker::before { background: var(--accent); opacity: 1; width: 1.9rem; }
.section--ink .kicker { color: var(--accent-soft); }
.mono, .caption, .card__cat, .task__no { letter-spacing: .05em; }

/* ---------- header / navigation ---------- */
.site-header { border-top: 3px solid var(--accent); border-bottom-color: rgba(255, 255, 255, .1); }
.nav__link { letter-spacing: .01em; }
.nav__link[aria-current="page"] { border-color: var(--accent); color: #fff; }
.mega { border-top: 2px solid var(--accent); }
.mega__col-title { border-bottom-color: rgba(255, 255, 255, .14); }

/* ---------- buttons ---------- */
.btn {
  border-radius: 0;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn--dark { background: var(--ink); border-color: var(--ink); }
.btn--dark:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .34); }
.btn--ghost:hover { border-color: var(--accent-soft); color: #fff; background: rgba(208, 32, 47, .18); }
.link-arrow { border-bottom-color: rgba(208, 32, 47, .35); }
.link-arrow:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(105deg, #101820 0%, #16232c 58%, #1b2c36 100%); }
.hero__eyebrow { color: var(--accent-soft); }
.hero__eyebrow::before { background: var(--accent); }
.hero h1 { letter-spacing: -.032em; }
.hero__deck { color: rgba(255, 255, 255, .8); }
.hero__points span {
  border-color: rgba(255, 255, 255, .18);
  border-left: 2px solid var(--accent);
  padding-left: .62rem;
  color: rgba(255, 255, 255, .84);
}
.nameplate { border-top-color: rgba(208, 32, 47, .6); border-right-color: rgba(255, 255, 255, .14); }
.nameplate b { color: #fff; }

/* Homepage hero: the source shot is 1920 x 600 (3.2:1); a 1.36:1 half-column
   with object-fit:cover only showed ~40% of its width. Give the file its own
   full-width band so the whole scene is visible, and keep the copy above it. */
.hero__inner { grid-template-columns: minmax(0, 1fr); }
.hero__copy { padding-bottom: clamp(1.9rem, 3vw, 2.8rem); }
.hero__figure { min-height: 0; }
.hero__figure img {
  height: auto;
  aspect-ratio: 1920 / 600;
  object-fit: cover;
  object-position: center;
}
.hero__figure::after {
  background: linear-gradient(180deg, rgba(8, 24, 31, .04) 0%, rgba(8, 24, 31, .5) 100%);
}
/* Wide screens (>=1360px): full-bleed photo behind the copy, the way the
   reference hero looks — copy on a dark scrim at the left, caption plate in
   the bottom-right corner, facts band below. The photo is anchored to its
   right edge so only the left part (already under the scrim) is cropped. */
@media (min-width: 1360px) {
  .hero { position: relative; overflow: hidden; }
  .hero__inner {
    position: relative;
    min-height: clamp(420px, calc(100vw / 3.2), 760px);
  }
  .hero__figure {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    min-height: 0;
    z-index: 0;
  }
  .hero__figure img {
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 100% center;
  }
  /* dark scrim on the left so the copy stays readable, photo clear on the right */
  .hero__figure::after {
    background:
      linear-gradient(90deg, rgba(8, 24, 31, .95) 0%, rgba(8, 24, 31, .82) 32%, rgba(8, 24, 31, .34) 62%, rgba(8, 24, 31, 0) 86%),
      linear-gradient(180deg, rgba(8, 24, 31, .22) 0%, rgba(8, 24, 31, 0) 42%);
  }
  .hero__copy {
    position: relative;
    z-index: 2;
    max-width: 43rem;
    padding-block: clamp(1.9rem, 2.8vw, 2.9rem);
  }
  /* proof tags as dot-led lines, as in the reference hero */
  .hero__points span {
    border: 0;
    padding: 0 0 0 1rem;
    position: relative;
    color: rgba(255, 255, 255, .86);
  }
  .hero__points span::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 6px;
    height: 6px;
    background: var(--accent-soft);
  }
  /* caption plate moves to the bottom-right corner of the photo */
  .hero__figure .nameplate {
    left: auto;
    right: calc((100vw - min(100vw - 2.75rem, 1560px)) / 2);
    max-width: min(40rem, 44vw);
    border-right: 0;
    border-left: 1px solid rgba(255, 255, 255, .16);
    background: rgba(8, 24, 31, .74);
  }
}

/* Below 1360px the copy sits above the photo and the caption becomes a plain
   bar under it — a 3.2:1 strip is too short to carry overlay text safely. */
@media (max-width: 1359px) {
  .hero__figure { display: block; }
  .hero__figure::after { display: none; }
  .hero__figure .nameplate {
    position: static;
    max-width: none;
    border-right: 0;
    border-top: 3px solid var(--accent);
    background: rgba(8, 24, 31, .96);
    backdrop-filter: none;
    padding: .72rem 0 .8rem;
  }
  .hero__figure .nameplate b { font-size: .74rem; }
  .hero__figure .nameplate span { font-size: .68rem; line-height: 1.5; }
}

/* ---------- sections & surfaces ---------- */
.section--paper { background: var(--paper); }
.section--paper .rule, .rule { border-color: var(--line); }
.section--ink { background: var(--ink); }

/* ---------- cards (catalogue, news, projects) ---------- */
.card { border-color: var(--line); transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease); }
.card:hover { border-color: var(--accent); box-shadow: 0 14px 28px -18px rgba(20, 29, 37, .55); transform: translateY(-2px); }
.card__cat { color: var(--accent-ink); text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; line-height: 1.4; }
.card__title { letter-spacing: -.015em; }
.card__foot { font-family: "IBM Plex Mono", monospace; font-size: .72rem; letter-spacing: .04em; }
.card__media { background: #fbfaf8; }

/* ---------- numbers & facts ---------- */
.facts__num { letter-spacing: -.03em; }
.facts__item { border-left-color: rgba(255, 255, 255, .12); }
.facts__item .stat__icon { color: var(--accent-soft); }
.facts__num, .stat b { color: #fff; }

/* ---------- spec tables ---------- */
.app-table th, .spec-block th { font-family: "IBM Plex Mono", monospace; letter-spacing: .04em; }
.app-table td, .spec-block td { font-variant-numeric: tabular-nums; }
.spec-block h3, .spec-block .h3 { border-left: 3px solid var(--accent); padding-left: .7rem; }

/* ---------- contact / inquiry area ---------- */
.contact-enquiry { background: var(--paper); }
.contact-enquiry .kicker { color: var(--accent-ink); }
.contact-enquiry iframe {
  display: block;
  margin-top: 1.1rem;
  border: 1px solid var(--line);
  background: #fff;
}
.contact-card { border-top-color: var(--accent); }
.contact-line__icon { color: var(--accent-ink); }

/* ---------- footer ---------- */
.site-footer { background: #101820; border-top: 2px solid var(--accent); }
.footer-col h3 { color: var(--accent-soft); }
.footer-bottom a:hover { color: var(--accent-soft); }

/* ---------- forms ---------- */
.field input, .field select, .field textarea { border-radius: 0; border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline-offset: 2px; }

/* ==========================================================================
   New shared blocks: top utility bar, trust band, sticky quote bar
   ========================================================================== */

/* ---------- top utility bar ---------- */
.pl-topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--muted);
}
.pl-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.6rem;
  flex-wrap: wrap;
  min-width: 0;
  min-height: 36px;
  padding-block: .35rem;
}
.pl-topbar__item { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; }
.pl-topbar__item::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex: none; }
.pl-topbar__links { display: inline-flex; align-items: center; gap: 1.2rem; margin-left: auto; }
.pl-topbar__links a { color: var(--text); border-bottom: 1px solid transparent; }
.pl-topbar__links a:hover { border-color: var(--accent); color: var(--accent-ink); }
.pl-topbar__cta { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink) !important; }

/* ---------- trust band ---------- */
.pl-trust {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.pl-trust__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: .85rem 0 1rem;
}
.pl-trust__item {
  padding: .25rem 1rem;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.pl-trust__item:nth-child(odd) { border-left: 0; padding-left: 0; }
.pl-trust__item b {
  display: block;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  line-height: 1.1;
}
.pl-trust__item span {
  display: block;
  margin-top: .18rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: .7rem;
  letter-spacing: .04em;
  color: var(--muted);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
@media (min-width: 760px) {
  .pl-trust__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pl-trust__item:nth-child(odd) { border-left: 1px solid var(--line); padding-left: 1rem; }
  .pl-trust__item:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- sticky quote bar ---------- */
.pl-rfq {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: var(--ink);
  border-top: 2px solid var(--accent);
  color: #fff;
  box-shadow: 0 -16px 34px -22px rgba(0, 0, 0, .7);
  transform: translateY(115%);
  transition: transform .28s var(--ease);
  padding: .55rem 0;
}
.pl-rfq.is-on { transform: none; }
.pl-rfq__inner {
  display: flex;
  align-items: center;
  gap: .8rem 1.4rem;
  flex-wrap: wrap;
}
.pl-rfq__text {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .6rem;
  font-size: .9rem;
  line-height: 1.4;
}
.pl-rfq__text b { font-family: "Archivo", Arial, sans-serif; font-size: 1rem; font-weight: 600; }
.pl-rfq__text span { color: rgba(255, 255, 255, .68); font-size: .82rem; }
.pl-rfq__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.pl-rfq__actions .btn { padding: .55rem 1rem; font-size: .85rem; }
.pl-rfq__mail {
  font-family: "IBM Plex Mono", monospace;
  font-size: .78rem;
  color: rgba(255, 255, 255, .8);
  border-bottom: 1px solid rgba(255, 255, 255, .3);
}
.pl-rfq__mail:hover { color: #fff; border-color: var(--accent-soft); }
.pl-rfq__close {
  background: none;
  border: 1px solid rgba(255, 255, 255, .26);
  color: rgba(255, 255, 255, .8);
  width: 30px;
  height: 30px;
  line-height: 1;
  font-size: 1rem;
  cursor: pointer;
  flex: none;
}
.pl-rfq__close:hover { border-color: var(--accent); color: #fff; }
@media (max-width: 640px) {
  .pl-rfq__text span { display: none; }
  .pl-rfq__inner { justify-content: space-between; }
  .pl-rfq__actions { margin-left: 0; }
  .pl-rfq__mail { display: none; }
  .pl-topbar { font-size: .64rem; }
  .pl-topbar__item { flex: 1 1 100%; }
  .pl-topbar__links { display: none; }
}

/* keep the sticky bar from covering the native inquiry form */
.pl-rfq.is-parked { transform: translateY(115%); }
