/* ============================================================
   Precisionstål theme — hybrid: dark glass header/hero,
   clean light content. Loaded after Bootstrap; overrides it.
   ============================================================ */

/* ---- Brand font (self-hosted) ---- */
@font-face {
  font-family: 'JUST Sans';
  src: url('/fonts/JUST%20Sans%20Regular.woff2') format('woff2'), url('/fonts/JUST%20Sans%20Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('/fonts/JUST%20Sans%20Medium.woff2') format('woff2'), url('/fonts/JUST%20Sans%20Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('/fonts/JUST%20Sans%20SemiBold.woff2') format('woff2'), url('/fonts/JUST%20Sans%20SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('/fonts/JUST%20Sans%20Bold.woff2') format('woff2'), url('/fonts/JUST%20Sans%20Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens ---- */
:root {
  --ink: #16181d;
  --ink-soft: #4b5361;
  --ink-faint: #8a93a1;
  --paper: #f6f7f9;
  --paper-2: #eef0f3;
  --card: #ffffff;
  --line: #e3e7ec;
  --steel: #1f5f8b;
  --steel-dark: #164facd9;
  --steel-ink: #143a54;
  --dark: #101216;
  --dark-2: #17191d;
  --danger: #c53a2b;
  --ok: #1f7a4d;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 18, 22, 0.05);
  --shadow-md: 0 10px 30px rgba(16, 18, 22, 0.10);
  --shadow-lg: 0 24px 60px rgba(16, 18, 22, 0.18);
  --container: 1240px;
  --header-clear: 132px;
  --font-sans: 'JUST Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
}

::selection { background: rgba(31, 95, 139, 0.18); }

img { max-width: 100%; }

/* ---- Type & shared primitives ---- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.container-ps { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section-light { background: var(--paper); color: var(--ink); }
.section-white { background: var(--card); }
.section-dark { background: var(--dark); color: #e7eaee; }
.section-light h1, .section-light h2, .section-light h3 { color: var(--ink); }

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}
.section-dark .kicker { color: #7fb2d8; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.section-head .section-link { font-weight: 500; color: var(--steel); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.section-head .section-link:hover { color: var(--steel-ink); }

.icon { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.15em; }

/* Buttons */
.btn-ps, .glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn-ps:hover, .glass-btn:hover { background: var(--steel-ink); border-color: var(--steel-ink); color: #fff; }
.btn-ps:active, .glass-btn:active { transform: translateY(1px); }
.btn-ps.btn-steel { background: var(--steel); border-color: var(--steel); }
.btn-ps.btn-steel:hover { background: var(--steel-ink); border-color: var(--steel-ink); }
.btn-ps.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink-faint); }
.btn-ps.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ps.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ps.btn-light:hover { background: var(--paper-2); border-color: var(--paper-2); color: var(--ink); }
.btn-ps.is-added { background: var(--ok); border-color: var(--ok); }

/* Cards */
.card-ps {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.2s, transform 0.2s;
}
a.card-ps:hover, .card-ps.is-hoverable:hover { border-color: #c6cdd6; box-shadow: var(--shadow-md); transform: translateY(-2px); }

.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--paper-2); border-radius: var(--radius-pill); padding: 4px 12px; font-size: 0.8rem; color: var(--ink-soft); }

/* Media boxes (generated imagery with graceful fallback) */
.media-box { position: relative; overflow: hidden; background: linear-gradient(135deg, #232a33, #3a4654 55%, #232a33); }
.media-box img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
a:hover .media-box img { transform: scale(1.04); }
.media-16x9 { aspect-ratio: 16 / 9; }
.media-3x2 { aspect-ratio: 3 / 2; }

/* ============================================================
   Header: full-width topbar strip + full-width glass nav
   ============================================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  max-width: none;
  z-index: 40;
  height: 34px;
  display: flex;
  align-items: center;
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.topbar-shell { width: 100%; max-width: none; padding: 0 24px; }
.topbar-left { display: flex; gap: 18px; }
.topbar-right { display: flex; align-items: center; }
@media (max-width: 640px) { .topbar-link-mail span { display: none; } }

/* Full-width bar: overrides style.css .navbar (1300px) and .glass-nav (1000px);
   overflow must stay visible so dropdown panels are not clipped — the glass
   layers keep their own rounded box. */
.navbar.glass-nav {
  position: fixed !important;
  top: 34px !important;
  left: 0 !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  height: 58px;
  border-radius: 0;
  overflow: visible;
  z-index: 35 !important;
}
.glass-nav .glass-filter,
.glass-nav .glass-overlay,
.glass-nav .glass-specular { border-radius: 0; overflow: hidden; }
.glass-nav .glass-content { margin-top: 0; height: 100%; }
.glass-nav .nav-shell {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  height: 100%;
  width: 100%;
}
.navbar-brand { display: flex; align-items: center; flex: none; }

.site-nav { flex: 1; display: flex; justify-content: center; height: 100%; }
.site-nav-list { display: flex; align-items: stretch; gap: 2px; list-style: none; margin: 0; padding: 0; height: 100%; }
.site-nav-item { position: relative; display: flex; align-items: center; height: 100%; }
.site-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.site-nav-item:hover > .site-nav-link,
.site-nav-item:focus-within > .site-nav-link,
.site-nav-item.is-active > .site-nav-link { color: #fff; background: rgba(255, 255, 255, 0.14); }
/* Dark (gray) state: keep text white, add a soft drop shadow for legibility */
.glass-nav.is-gray .site-nav-link { color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.glass-nav.is-gray .site-nav-item:hover > .site-nav-link,
.glass-nav.is-gray .site-nav-item.is-active > .site-nav-link { color: #fff; background: rgba(255, 255, 255, 0.16); }
.nav-caret { width: 0.85em; height: 0.85em; opacity: 0.7; transition: transform 0.15s; }
.site-nav-item:hover .nav-caret, .site-nav-item.is-open .nav-caret { transform: rotate(180deg); }

/* Dropdown panels */
.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 250px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 60;
}
.site-nav-item:hover > .dropdown-panel,
.site-nav-item:focus-within > .dropdown-panel,
.site-nav-item.is-open > .dropdown-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-panel ul { list-style: none; margin: 0; padding: 0; }
.dropdown-panel li a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.9rem;
  text-decoration: none;
}
.dropdown-panel li a:hover { background: var(--paper-2); color: var(--steel-ink); }

/* Mega menu */
.has-mega { position: static; }
.mega-panel { left: 50%; transform: translateX(-50%) translateY(6px); width: min(920px, calc(100vw - 32px)); padding: 22px 22px 0; }
.site-nav-item.has-mega:hover > .mega-panel,
.site-nav-item.has-mega:focus-within > .mega-panel,
.site-nav-item.has-mega.is-open > .mega-panel { transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mega-title {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--steel);
}
.mega-title:hover { color: var(--steel); }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.875rem;
  text-decoration: none;
}
.mega-col li a:hover { background: var(--paper-2); color: var(--steel-ink); }
.mega-col li a small { color: var(--ink-faint); font-size: 0.72rem; }
.mega-footer {
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--line);
  margin: 18px -22px 0;
  padding: 13px 22px;
  background: var(--paper);
  border-radius: 0 0 var(--radius) var(--radius);
}
.mega-footer a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 500; color: var(--steel); text-decoration: none; }
.mega-footer a:hover { color: var(--steel-ink); }

/* Nav tools */
.nav-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.basket-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.basket-toggle:hover { color: #fff; background: rgba(255, 255, 255, 0.24); border-color: rgba(255, 255, 255, 0.55); }
.glass-nav.is-gray .basket-toggle { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.14); }
.glass-nav.is-gray .basket-toggle:hover { background: rgba(255, 255, 255, 0.26); border-color: rgba(255, 255, 255, 0.65); }
.basket-toggle .icon { width: 1.2em; height: 1.2em; }
.basket-count {
  background: var(--danger); color: #fff;
  font-size: 0.66rem; font-weight: 600;
  border-radius: var(--radius-pill);
  min-width: 17px; height: 17px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
}
@media (max-width: 1100px) { .basket-label { display: none; } .basket-toggle { padding: 7px 11px; } }
.mobile-menu-toggle { display: none; background: none; border: 0; color: rgba(255, 255, 255, 0.9); padding: 7px; cursor: pointer; }
.mobile-menu-toggle .icon { width: 1.4em; height: 1.4em; }
.glass-nav.is-gray .mobile-menu-toggle { color: rgba(255, 255, 255, 0.92); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45)); }

/* Search + suggestions */
.nav-search { position: relative; }
.nav-search-suggest {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 330px; max-height: 430px; overflow-y: auto;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px; z-index: 70; box-shadow: var(--shadow-lg);
}
.suggest-item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: var(--radius-sm); color: inherit; text-decoration: none; font-size: 0.875rem; }
.suggest-item:hover { background: var(--paper-2); color: var(--steel-ink); }
.suggest-item small { color: var(--ink-faint); }
.suggest-category { font-weight: 600; }

/* Flags */
.flag { display: inline-flex; width: 20px; height: 15px; border-radius: 2.5px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); }
.flag svg { display: block; width: 100%; height: 100%; }

/* Language menu */
.lang-menu { position: relative; display: inline-block; }
.lang-menu > summary { list-style: none; cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 6px; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu-list {
  position: absolute; right: 0; top: calc(100% + 8px);
  z-index: 1100; min-width: 180px; margin: 0; padding: 6px;
  list-style: none;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lang-menu-list a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; white-space: nowrap; font-size: 0.875rem; }
.lang-menu-list a:hover { background: var(--paper-2); }
.lang-menu-list a[aria-current="true"] { background: var(--paper-2); font-weight: 600; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--dark-2); color: #e7eaee;
  padding: 18px 22px 30px; overflow-y: auto;
}
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mobile-menu-close { background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.mobile-menu-close .icon { width: 1.5em; height: 1.5em; }
.mobile-search { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius-pill); padding: 10px 16px; margin-bottom: 18px; }
.mobile-search input { flex: 1; background: none; border: 0; color: #fff; outline: none; font: inherit; }
.mobile-search input::placeholder { color: rgba(255, 255, 255, 0.5); }
.mobile-group { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.mobile-group summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; font-weight: 600; cursor: pointer; list-style: none; }
.mobile-group summary::-webkit-details-marker { display: none; }
.mobile-group[open] summary .icon { transform: rotate(180deg); }
.mobile-group ul { list-style: none; margin: 0 0 12px; padding: 0; }
.mobile-group li a { display: block; padding: 8px 0 8px 14px; color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.mobile-group li a:hover { color: #fff; }
.mobile-family { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin: 10px 0 2px 14px; }
.mobile-all-link { display: block; padding: 6px 0 16px 14px; color: #9cc3e0; text-decoration: none; font-weight: 500; }
.mobile-plain-link { display: block; padding: 15px 0; font-weight: 600; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.mobile-menu-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.mobile-menu-foot a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
body.menu-open { overflow: hidden; }

@media (max-width: 1080px) {
  .site-nav { display: none; }
  .nav-search { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
  .glass-nav .nav-shell { justify-content: space-between; }
}

/* ============================================================
   Hero (video kept) + stat ribbon
   ============================================================ */
.hero__content .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 1.4rem; }
.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px;
  margin-top: 2.2rem; padding: 14px 26px;
  background: rgba(12, 14, 18, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-stats span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 500; color: rgba(255, 255, 255, 0.92); white-space: nowrap; }
.hero-stats .icon { color: #9cc3e0; }

/* ============================================================
   Home sections
   ============================================================ */
.family-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.family-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; }
.family-card .media-box { border-radius: var(--radius) var(--radius) 0 0; }
.family-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.family-card-body h3 { font-size: 1.05rem; font-weight: 600; margin: 0; }
.family-card-body p { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }
.family-card-more { margin-top: auto; padding-top: 10px; font-size: 0.86rem; font-weight: 500; color: var(--steel); display: inline-flex; align-items: center; gap: 6px; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.service-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; }
.service-card .media-box { border-radius: var(--radius) var(--radius) 0 0; }
.service-card-body { padding: 18px 20px 20px; }
.service-card-body h3 { font-size: 1.02rem; font-weight: 600; margin: 0 0 6px; }
.service-card-body p { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }

.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 900px) { .split-section { grid-template-columns: 1fr; } }
.split-media .media-box { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; margin: 0 0 14px; }
.split-body p { color: var(--ink-soft); line-height: 1.65; }
.split-quote { border-left: 3px solid var(--steel); padding: 4px 0 4px 18px; margin: 18px 0; font-size: 1.02rem; color: var(--ink); font-style: italic; }
.split-stats { display: flex; gap: 34px; margin: 22px 0; flex-wrap: wrap; }
.split-stat strong { display: block; font-size: 1.6rem; font-weight: 700; color: var(--steel-ink); letter-spacing: -0.01em; }
.split-stat span { font-size: 0.82rem; color: var(--ink-faint); }

.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.industry-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; }
.industry-card .media-box { aspect-ratio: 16 / 10; }
.industry-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 16, 0) 35%, rgba(10, 12, 16, 0.78)); }
.industry-card span { position: absolute; left: 16px; right: 16px; bottom: 13px; z-index: 1; font-weight: 600; font-size: 0.95rem; }
.industry-card:hover { color: #fff; }

.cta-band { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 44px 40px; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 600; margin: 0 0 6px; color: #fff; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.72); max-width: 560px; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   Catalog
   ============================================================ */
.page-shell { padding: var(--header-clear) 0 72px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 0.84rem; }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--ink-faint); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--steel); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 500; }

.catalog-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; align-items: center; margin-bottom: 36px; }
@media (max-width: 860px) { .catalog-hero { grid-template-columns: 1fr; } }
.catalog-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 650; letter-spacing: -0.01em; margin: 0 0 12px; }
.catalog-hero .lede { color: var(--ink-soft); line-height: 1.65; max-width: 640px; }
.catalog-hero .media-box { border-radius: var(--radius); box-shadow: var(--shadow-md); }

.family-section { margin-bottom: 44px; }
.family-section > h2 { font-size: 1.2rem; font-weight: 600; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.group-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; }
.group-card .media-box { border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 5 / 2; }
.group-card-body { padding: 16px 18px 18px; }
.group-card-body h3 { font-size: 1rem; font-weight: 600; margin: 0 0 4px; display: flex; justify-content: space-between; gap: 10px; }
.group-card-body h3 small { font-weight: 500; color: var(--ink-faint); font-size: 0.78rem; }
.group-card-body p { font-size: 0.84rem; color: var(--ink-soft); margin: 0; }
.group-card-sub { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.group-card-sub li { font-size: 0.78rem; background: var(--paper-2); border-radius: var(--radius-pill); padding: 3px 11px; color: var(--ink-soft); }

.category-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 22px 0 30px; }
.category-tile { display: flex; flex-direction: column; gap: 3px; padding: 15px 18px; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color 0.15s, box-shadow 0.15s; }
.category-tile:hover { border-color: var(--steel); box-shadow: var(--shadow-sm); }
.category-tile-name { font-weight: 600; font-size: 0.92rem; }
.category-tile-count { font-size: 0.78rem; color: var(--ink-faint); }

.catalog-layout { display: grid; grid-template-columns: 262px 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .catalog-layout { grid-template-columns: 1fr; } }
.filter-sidebar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 130px; }
.filter-sidebar h3 { font-size: 0.95rem; font-weight: 600; margin: 0 0 14px; }
.filter-group { margin-bottom: 15px; }
.filter-group label, .filter-label { display: block; font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); margin-bottom: 5px; }
.filter-group select, .filter-range-inputs input {
  width: 100%; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 0.875rem; background: #fff; font-family: inherit; color: var(--ink);
}
.filter-group select:focus, .filter-range-inputs input:focus { outline: 2px solid rgba(31, 95, 139, 0.35); outline-offset: 1px; border-color: var(--steel); }
.filter-range-inputs { display: flex; gap: 8px; }
.filter-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.filter-clear { font-size: 0.84rem; color: var(--ink-soft); }
@media (max-width: 900px) {
  .filter-sidebar { position: static; }
  .filter-sidebar h3 { cursor: pointer; }
}

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 16px; }
.product-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.product-card-link { text-decoration: none; color: inherit; }
.product-card-link:hover .product-card-name { color: var(--steel); }
.product-card-name { font-size: 0.97rem; font-weight: 600; margin: 0; line-height: 1.4; transition: color 0.15s; }
.product-card-specs { margin: 0; font-size: 0.82rem; display: grid; gap: 3px; }
.product-card-specs div { display: flex; justify-content: space-between; gap: 10px; }
.product-card-specs dt { color: var(--ink-faint); font-weight: 400; }
.product-card-specs dd { margin: 0; text-align: right; color: var(--ink); }
.product-card-footer { margin-top: auto; }
.quote-add-form .btn-ps { width: 100%; }
.catalog-pagination { margin-top: 30px; display: flex; justify-content: center; }
.catalog-pagination .page-link { color: var(--steel); border-color: var(--line); }
.catalog-pagination .page-item.active .page-link { background: var(--steel); border-color: var(--steel); }
.catalog-empty { padding: 34px 0; color: var(--ink-soft); }
.search-count { color: var(--ink-soft); margin-bottom: 20px; }
.search-page-form { display: flex; gap: 10px; margin: 18px 0 26px; max-width: 500px; }
.search-page-form input { flex: 1; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); font: inherit; }

/* Product page */
.product-page { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .product-page { grid-template-columns: 1fr; } }
.product-main h1 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 650; letter-spacing: -0.01em; margin: 0 0 12px; }
.product-description { color: var(--ink-soft); line-height: 1.65; max-width: 680px; }
.product-note { background: #fff8e6; border: 1px solid #f0e3b8; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.875rem; display: flex; gap: 8px; align-items: baseline; }
.product-side { position: sticky; top: 130px; display: grid; gap: 16px; }
@media (max-width: 900px) { .product-side { position: static; } }
.product-quote-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.product-quote-box h2 { font-size: 1.05rem; font-weight: 600; margin: 0 0 6px; }
.product-quote-box > p { font-size: 0.86rem; color: var(--ink-soft); margin: 0 0 16px; }
.product-contact { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; display: grid; gap: 7px; font-size: 0.86rem; }
.product-contact a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.product-contact a:hover { color: var(--steel); }
.product-contact .icon { color: var(--steel); }
.product-grade-link { display: inline-flex; align-items: center; gap: 6px; color: var(--steel); font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.product-grade-link:hover { color: var(--steel-ink); }

.spec-table-wrapper { overflow-x: auto; margin-top: 22px; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 15px; border-bottom: 1px solid var(--paper-2); font-size: 0.885rem; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 220px; font-weight: 600; background: var(--paper); color: var(--ink-soft); }
.spec-table tbody tr:hover td { background: #fafbfc; }

.related-products { margin-top: 42px; }
.related-products h2 { font-size: 1.12rem; font-weight: 600; margin-bottom: 14px; }
.related-products-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.related-products-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 15px; display: flex; flex-direction: column; transition: border-color 0.15s; }
.related-products-list li:hover { border-color: var(--steel); }
.related-products-list a { color: inherit; text-decoration: none; font-size: 0.87rem; font-weight: 500; }
.related-products-list a:hover { color: var(--steel); }
.related-products-list small { color: var(--ink-faint); }
.material-meta { display: flex; gap: 8px; margin: 4px 0 14px; }

/* ============================================================
   Quote basket
   ============================================================ */
.quote-drawer-canvas { background: var(--dark-2); color: #fff; }
.quote-drawer-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.quote-drawer-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 12px; }
.quote-drawer-item-info { min-width: 0; }
.quote-drawer-item-info strong { font-size: 0.9rem; font-weight: 600; }
.quote-drawer-item-info small { display: block; color: rgba(255, 255, 255, 0.55); font-size: 0.78rem; }
.quote-remove-btn, .quote-update-btn { background: none; border: 0; color: rgba(255, 255, 255, 0.55); cursor: pointer; padding: 6px; }
.quote-remove-btn:hover { color: #ff8a76; }
.quote-drawer-cta { margin-top: 18px; width: 100%; }
.quote-drawer-empty { color: rgba(255, 255, 255, 0.65); }

.quote-page-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 900px) { .quote-page-layout { grid-template-columns: 1fr; } }
.quote-items-table td, .quote-items-table th { vertical-align: middle; }
.quote-items-table .quote-remove-btn { color: var(--ink-faint); }
.quote-items-table .quote-remove-btn:hover { color: var(--danger); }
.quote-thanks { text-align: center; padding: 60px 0; max-width: 560px; margin: 0 auto; }
.quote-thanks .icon { width: 44px; height: 44px; color: var(--ok); margin-bottom: 16px; }

/* Forms */
.form-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.form-box h2 { font-size: 1.12rem; font-weight: 600; margin: 0 0 16px; }
.form-box label { display: block; margin-bottom: 13px; font-size: 0.84rem; }
.form-box label span { display: block; margin-bottom: 5px; font-weight: 600; color: var(--ink-soft); }
.form-box input, .form-box textarea {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff;
}
.form-box input:focus, .form-box textarea:focus { outline: 2px solid rgba(31, 95, 139, 0.35); outline-offset: 1px; border-color: var(--steel); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-errors { background: #fdecea; border: 1px solid #f5c6bd; color: #90281a; border-radius: var(--radius-sm); padding: 12px 18px; margin: 14px 0; font-size: 0.9rem; }
.form-errors ul { margin: 0; padding-left: 18px; }
.flash-status {
  position: fixed; top: 118px; left: 50%; transform: translateX(-50%);
  z-index: 1300; background: var(--ink); color: #fff;
  border-radius: var(--radius-pill); padding: 11px 24px; font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  animation: flash-in 0.25s ease;
}
@keyframes flash-in { from { opacity: 0; transform: translate(-50%, -8px); } }

/* ============================================================
   Content pages
   ============================================================ */
.page-hero { position: relative; margin-bottom: 34px; }
.page-hero.has-image { border-radius: var(--radius); overflow: hidden; color: #fff; }
.page-hero.has-image .media-box { aspect-ratio: 21 / 8; }
.page-hero.has-image .page-hero-inner { position: absolute; inset: auto 0 0 0; padding: 34px 38px; background: linear-gradient(180deg, rgba(10, 12, 16, 0), rgba(10, 12, 16, 0.82)); }
.page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 650; letter-spacing: -0.01em; margin: 0 0 8px; }
.page-hero.has-image h1 { color: #fff; }
.page-hero-intro { font-size: 1.06rem; color: var(--ink-soft); max-width: 720px; line-height: 1.6; margin: 0; }
.page-hero.has-image .page-hero-intro { color: rgba(255, 255, 255, 0.88); }
@media (max-width: 720px) {
  .page-hero.has-image .media-box { aspect-ratio: 16 / 10; }
  .page-hero.has-image .page-hero-inner { padding: 20px 22px; }
}

.content-container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.content-rich-text { max-width: 760px; line-height: 1.7; color: var(--ink-soft); }
.content-rich-text p { margin-bottom: 1em; }
.content-heading { font-size: 1.3rem; font-weight: 600; margin: 34px 0 12px; }
.content-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 30px; }
.content-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; }
.content-card .media-box { border-radius: var(--radius) var(--radius) 0 0; }
.content-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.content-card h2 { font-size: 1.05rem; font-weight: 600; margin: 0; }
.content-card p { font-size: 0.87rem; color: var(--ink-soft); margin: 0; }
.content-card-more { margin-top: auto; padding-top: 10px; font-size: 0.86rem; font-weight: 500; color: var(--steel); }
.content-cta { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 32px 34px; margin: 34px 0; }
.content-cta h2 { color: #fff; font-size: 1.25rem; margin-top: 0; }
.content-related-categories { margin-top: 36px; }
.content-related-categories h2 { font-size: 1.15rem; font-weight: 600; }
.content-feature-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.content-feature-list li { display: flex; gap: 12px; }
.content-image-text { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; margin: 26px 0; }
.content-image-text.image-right picture { order: 2; }
@media (max-width: 760px) { .content-image-text { grid-template-columns: 1fr; } }
.content-image-text img { width: 100%; border-radius: var(--radius); }

.about-subnav { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.about-subnav a { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 8px 18px; color: var(--ink); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.about-subnav a:hover { border-color: var(--steel); color: var(--steel); }

.staff-section { margin-top: 44px; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
.staff-card { padding: 20px; display: flex; flex-direction: column; gap: 3px; font-size: 0.88rem; }
.staff-card strong { font-size: 0.98rem; }
.staff-card > span { color: var(--steel); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 5px; }
.staff-card a { color: var(--ink-soft); text-decoration: none; }
.staff-card a:hover { color: var(--steel); }

.job-list { margin-top: 40px; }
.job-list h2 { font-size: 1.2rem; font-weight: 600; }
.job-list ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.job-list-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.job-list-item a { color: inherit; text-decoration: none; }
.job-list-item a:hover strong { color: var(--steel); }
.job-list-item > span { color: var(--ink-faint); font-size: 0.85rem; }
.job-meta { color: var(--ink-soft); margin-bottom: 20px; }
.job-apply { margin-top: 26px; }

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.article-card { overflow: hidden; display: flex; flex-direction: column; }
.article-card > a { color: inherit; text-decoration: none; }
.article-card .media-box { border-radius: var(--radius) var(--radius) 0 0; }
.article-card h2 { font-size: 1.02rem; font-weight: 600; margin: 14px 18px 4px; }
.article-card time { display: block; margin: 0 18px; font-size: 0.78rem; color: var(--ink-faint); }
.article-card p { margin: 8px 18px 18px; font-size: 0.87rem; color: var(--ink-soft); }
.article-meta { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 18px; }
.news-article picture img { border-radius: var(--radius); margin-bottom: 22px; }

.faq-group { margin: 30px 0; }
.faq-group h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; }
.faq-item summary { padding: 15px 20px; cursor: pointer; font-weight: 600; font-size: 0.94rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.15rem; color: var(--ink-faint); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: 0 20px 17px; line-height: 1.65; color: var(--ink-soft); font-size: 0.9rem; }

.contact-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: start; margin-top: 26px; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info address { font-style: normal; line-height: 1.65; color: var(--ink-soft); }
.contact-info h2, .contact-info h3 { font-size: 1.05rem; font-weight: 600; }
.contact-info h3 { margin-top: 24px; }
.opening-hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 0.9rem; color: var(--ink-soft); }
.opening-hours li { display: flex; justify-content: space-between; gap: 16px; max-width: 320px; }
.opening-hours li span:last-child { font-variant-numeric: tabular-nums; color: var(--ink); }
.map-embed { background: var(--paper-2); border-radius: var(--radius); min-height: 230px; display: flex; align-items: center; justify-content: center; margin: 18px 0; overflow: hidden; }
.map-embed iframe { width: 100%; height: 290px; border: 0; }
.order-callout { background: rgba(31, 95, 139, 0.08); border: 1px solid rgba(31, 95, 139, 0.25); border-radius: var(--radius-sm); padding: 14px 18px; margin: 18px 0; font-size: 0.9rem; }
.order-callout a { color: var(--steel); font-weight: 600; text-decoration: none; }

/* Timeline (history page) */
.timeline { list-style: none; margin: 30px 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--steel); border: 2px solid var(--paper); }
.timeline strong { display: block; font-size: 0.82rem; color: var(--steel); letter-spacing: 0.06em; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--dark); color: #cfd4da; padding: 56px 0 26px; margin-top: 40px; }
.footer-shell { max-width: var(--container); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 860px) { .footer-shell { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-shell { grid-template-columns: 1fr; } }
.footer-col h4 { color: #fff; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: 0.88rem; }
.footer-col a:hover { color: #fff; }
.footer-col-brand address { font-style: normal; margin: 16px 0 10px; line-height: 1.6; font-size: 0.88rem; color: rgba(255, 255, 255, 0.72); }
.footer-hours { font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); line-height: 1.6; }
.footer-legal { max-width: var(--container); margin: 40px auto 0; padding: 20px 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.09); font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); }

/* Misc */
.not-found-shell { min-height: 55vh; display: flex; align-items: center; }

/* ============================================================
   Mobile refinements
   ============================================================ */
.quote-items { overflow-x: auto; }

@media (max-width: 1340px) {
  /* The decorative ribbon is anchored far left of center and would sit
     half off-screen on narrower viewports. */
  .ribbon-holder { display: none; }
}

@media (max-width: 720px) {
  .section { padding: 48px 0; }
  .page-shell { padding-top: 116px; padding-bottom: 48px; }

  .hero-stats { flex-direction: column; align-items: flex-start; gap: 10px; border-radius: var(--radius); padding: 16px 22px; }
  .hero__content .hero-ctas .btn-ps { padding: 11px 24px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }

  .cta-band { padding: 28px 24px; }
  .split-stats { gap: 22px; }

  .spec-table th { width: 40%; }
  .form-box { padding: 20px; }
  .page-hero.has-image .page-hero-inner h1 { font-size: 1.45rem; }
  .flash-status { top: 100px; width: max-content; max-width: calc(100vw - 32px); text-align: center; }
  .footer-legal { text-align: left; }
}

@media (max-width: 420px) {
  .topbar-left { gap: 12px; }
  .topbar-link span { font-size: 11px; }
  .glass-nav .nav-shell { padding: 0 16px; }
  .container-ps, .content-container { padding: 0 16px; }
}
