/* Nomad Bearing Solutions: navigation, first screen and enquiry. */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/plex-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}
:root {
  --ink: #172028;
  --ink-2: #344149;
  --muted: #525f65;
  --paper: #fff;
  --surface: #fff;
  --line: #c9cfd2;
  --line-2: #dce0e1;
  --gold: #efbd68;
  --gold-text: #73521c;
  --ok: #256047;
  --err: #902c25;
  --sans: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --mono: Consolas, "Liberation Mono", monospace;
  --wrap: 1512px;
  --gutter: clamp(20px, 4.8vw, 78px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--sans); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #1972af; outline-offset: 3px; }
.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.skip { position: absolute; z-index: 4; left: 12px; top: 8px; padding: 10px 16px; background: var(--ink); color: #fff; transform: translateY(-165%); }
.skip:focus { transform: none; }
:where(section[id]) { scroll-margin-block-start: 14px; }

/* Masthead */
.top { background: white; }
.top .wrap { display: flex; align-items: center; gap: clamp(20px, 3.2vw, 50px); min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand svg { width: 43px; height: 43px; }
.brand-name { display: flex; flex-direction: column; white-space: nowrap; line-height: 1.1; }
.brand-name b { font-size: 23px; letter-spacing: .075em; font-weight: 700; }
.brand-name span { margin-top: 2px; font-size: 10px; color: var(--ink-2); letter-spacing: .15em; text-transform: uppercase; }
.nav, .langs { display: flex; align-items: center; }
.nav { margin-left: auto; gap: clamp(16px, 2.4vw, 36px); }
.nav a, .langs a, .top-phone { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: none; white-space: nowrap; }
.nav a:hover, .langs a:hover, .top-phone:hover { text-decoration: underline; }
.langs { gap: 2px; }
.langs a { padding-inline: 8px; font-size: 13px; color: var(--muted); }
.langs a[aria-current="page"] { color: var(--ink); font-weight: 650; text-decoration: underline; text-underline-offset: 6px; }
.top-phone { font-weight: 600; }

/* First screen: a single, full-width photographic spread. */
.hero { background: #18242a; color: #f9fbfa; }
.hero-inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); align-items: stretch; }
.hero-copy { padding: clamp(52px, 6vw, 92px) clamp(28px, 3.7vw, 66px) clamp(55px, 6.4vw, 98px) var(--gutter); align-self: center; }
.origin { display: flex; align-items: center; gap: 10px; margin: 0 0 clamp(27px, 2.8vw, 42px); color: #e4e9e9; font-size: 15px; font-weight: 450; }
.origin::before { content: ""; width: 25px; height: 2px; background: var(--gold); }
h1 { margin: 0; font-size: clamp(45px, 4.8vw, 75px); line-height: .99; letter-spacing: -.052em; font-weight: 530; }
:lang(en) h1 { font-size: clamp(55px, 6.3vw, 98px); }
.lead { color: #d2dbdc; font-size: clamp(17px, 1.42vw, 21px); line-height: 1.48; max-width: 42ch; margin: clamp(20px, 2vw, 32px) 0 0; }
.hero-actions { margin-top: clamp(26px, 3vw, 43px); display: flex; flex-wrap: wrap; align-items: center; gap: 13px 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 11px 20px; background: var(--ink); color: #fff; border: 1px solid transparent; border-radius: 2px; font: 600 16px/1.3 var(--sans); text-align: center; text-decoration: none; cursor: pointer; }
.btn:hover { background: #31424d; color: #fff; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.hero .btn { background: var(--gold); color: #211a12; }
.hero .btn:hover { background: #ffcd7a; color: #15110d; }
.catalog-link { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 5px; font-size: 16px; color: #f4f6f7; }
.hero :focus-visible { outline-color: #fff; }
.product-photo { position: relative; margin: 0; min-height: 0; background: #e6e7e1; display: grid; grid-template-rows: 1fr auto; }
.photo-frame { position: relative; min-height: 0; overflow: hidden; }
.photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 49%; }
.product-photo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 12px; padding: 8px 18px; background: #f2f3f0; color: #374145; font-size: 12px; line-height: 1.4; }
.product-photo figcaption a { padding-block: 4px; color: #495256; }
.product-photo a:focus-visible { outline-color: #195987; }

/* Enquiry modes share the same anchor, address and input state. */
.request-section { padding-block: clamp(48px, 6vw, 96px); border-block: 1px solid var(--line); background: #edf1f1; }
.request-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(24px, 6vw, 100px); }
.request-intro h2 { font-size: clamp(31px, 3.55vw, 53px); font-weight: 600; letter-spacing: -.043em; line-height: 1.07; margin: 0; max-width: 18ch; text-wrap: balance; }
.request-intro > p { margin: 18px 0 0; max-width: 44ch; color: var(--ink-2); }
.request-body { width: 100%; max-width: 660px; }
.mail-cta > p:first-child { margin: 0 0 17px; }
.addr-line { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 15px; margin: 16px 0 0; }
.addr-line a { font-size: 18px; font-weight: 550; }
.copy { border: 0; background: transparent; padding: 7px 0; color: var(--ink-2); cursor: pointer; font: 400 14px/1.4 var(--sans); text-decoration: underline; text-underline-offset: 3px; }
.photo-hint, .direct { margin: 18px 0 0; font-size: 15px; color: var(--ink-2); }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #8e9ba1; border-radius: 2px; padding: 11px 12px; }
.field textarea { min-height: 78px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--err); }
.field .hint, .field .error { margin-top: 5px; font-size: 14px; }
.field .hint { color: var(--muted); }
.field .error { color: var(--err); font-weight: 550; }
.field .error:empty, .form-status:empty { display: none; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-status { margin-top: 16px; }
.form-status.is-error { padding: 12px 15px; background: #fff5f3; color: var(--err); border-left: 3px solid currentColor; }
.hp { position: absolute; left: -9999px; }
.success h2 { margin: 0 0 10px; color: var(--ok); }
.success p { margin: 0 0 8px; }
.success .echo { font-family: var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.success .next { padding-left: 23px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); }
  h1 { font-size: clamp(38px, 5.32vw, 48px); }
  .hero-copy { padding-block: 49px; }
  .hero-actions { gap: 7px 17px; }
  .top .wrap { gap: 17px; }
  .top-phone { display: none; }
}
@media (max-width: 700px) {
  .top .wrap { min-height: 58px; display: grid; grid-template-columns: 1fr auto; gap: 0; padding-block-start: 8px; }
  .brand { gap: 8px; }
  .brand svg { width: 32px; height: 32px; }
  .brand-name b { font-size: 17px; }
  .brand-name span { font-size: 8px; }
  .langs { grid-column: 2; grid-row: 1; }
  .langs a { min-height: 40px; padding-inline: 7px; }
  .nav { grid-row: 2; grid-column: 1 / -1; margin: 0; gap: 21px; }
  .nav a { min-height: 40px; font-size: 14px; }
  .hero-inner { display: block; }
  .hero-copy { padding: 35px var(--gutter) 32px; }
  .origin { font-size: 14px; margin-bottom: 21px; }
  h1 { font-size: clamp(39px, 9.5vw, 62px); }
  :lang(en) h1 { font-size: clamp(46px, 11vw, 70px); }
  .lead { font-size: 17px; margin-top: 17px; }
  .hero-actions { margin-top: 21px; }
  .hero .btn { padding-inline: 15px; font-size: 15px; }
  .catalog-link { font-size: 15px; }
  .photo-frame { height: clamp(145px, 37vw, 217px); }
  .photo-frame img { object-position: 50% 23%; }
  .product-photo figcaption { padding: 4px var(--gutter); }
  .request-layout { grid-template-columns: 1fr; }
  .request-intro h2 { max-width: 21ch; }
}
@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .hero-actions { gap: 6px 16px; }
  .row-2 { grid-template-columns: 1fr; gap: 0; }
}
