/* CIJ B2B export site — industrial, conversion-first */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #1a2332;
  --muted: #5a6575;
  --line: #d8dee6;
  --brand: #0b3d5c;
  --brand-2: #146a8a;
  --accent: #c45c26;
  --ok: #2f6b4f;
  --dyn-bg: #fff3a3;
  --dyn-border: #e6c200;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  --radius: 6px;
  --max: 1180px;
  --font: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "IBM Plex Sans", "Source Sans 3", "Segoe UI", sans-serif;
  --fs-base: 18px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: var(--fs-base);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Dynamic / CMS-bound fields — yellow highlight for later DB wiring */
.dyn {
  background: var(--dyn-bg);
  border-bottom: 2px dashed var(--dyn-border);
  padding: 0 0.15em;
  border-radius: 2px;
}
body.hide-dyn .dyn {
  background: transparent;
  border-bottom: none;
  padding: 0;
}
.dyn-toggle {
  position: fixed;
  left: 12px;
  bottom: 72px;
  z-index: 60;
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 13px;
  cursor: pointer;
  opacity: 0.85;
}
.dyn-toggle:hover { opacity: 1; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brand);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-left: auto;
  align-items: center;
}
.nav a {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
}
.nav a:hover, .nav a.is-active { color: var(--brand-2); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.5rem; }
.lang-wrap { max-width: 240px; }
.lang-select {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem 0.5rem;
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  max-width: 240px;
  width: 100%;
}
.lang-fallback-note {
  margin: 0.35rem 0 0.75rem;
  padding: 0.6rem 0.85rem;
  background: #eef5f9;
  border: 1px solid #c5d8e4;
  border-radius: var(--radius);
  color: var(--brand);
  font-size: 0.92rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 1.02rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  line-height: 1.2;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: rgba(11, 61, 92, 0.06); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.95rem; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0b3d5c 0%, #146a8a 55%, #1d7f6f 100%);
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 3.25rem 0 3.5rem;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin: 0 0 0.85rem;
  font-weight: 700;
}
.hero .lede {
  font-size: 1.2rem;
  opacity: 0.92;
  max-width: 36rem;
  margin: 0 0 1.35rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.hero .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.65); }
.hero .btn-secondary:hover { background: rgba(255,255,255,0.1); }
.ph {
  background: rgba(255,255,255,0.12);
  border: 1px dashed rgba(255,255,255,0.45);
  border-radius: 8px;
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.25rem;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
}
.ph-dark {
  background: #e8eef3;
  border: 1px dashed #9aa8b5;
  color: var(--muted);
  min-height: 180px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  font-size: 1rem;
}
.ph-sm { min-height: 120px; }
.ph-lg { min-height: 280px; }

/* Real product photos */
.media-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  background: #e8eef3;
}
.media-img-lg { min-height: 260px; max-height: 420px; object-fit: cover; }
.media-img-sm { height: 140px; object-fit: cover; }
.media-img-md { height: 200px; object-fit: cover; }
.hero .media-img {
  min-height: 280px;
  max-height: 380px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.card > a.media-link,
.card > .media-link { display: block; margin: -0.15rem -0.15rem 0; }
.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.thumb-row .media-img { height: 100px; }

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--surface); }
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  margin: 0 0 0.4rem;
  color: var(--brand);
}
.section-intro {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 42rem;
  font-size: 1.08rem;
}
main h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.25;
  color: var(--brand);
  margin: 0.35rem 0 0.75rem;
}
.hero h1 { color: #fff; }
.trust-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
}
.trust-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 0.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.trust-item .num {
  display: block;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--brand);
}
.trust-item .label { font-size: 0.92rem; color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0.75rem 0 0.35rem;
  font-size: 1.15rem;
  color: var(--brand);
}
.card p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.card .card-link { display: inline-block; margin-top: 0.75rem; font-weight: 700; }

.list-check { margin: 0; padding: 0; list-style: none; }
.list-check li {
  position: relative;
  padding-left: 1.35rem;
  margin: 0.45rem 0;
  color: var(--ink);
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--ok);
  border-radius: 50%;
}

/* Product detail */
.breadcrumb {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 1rem 0 0;
}
.breadcrumb a { color: var(--muted); }
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0 2rem;
}
.specs {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
}
.specs th, .specs td {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
  text-align: left;
  font-size: 1.02rem;
}
.specs th { width: 40%; background: #f0f4f7; color: var(--brand); font-weight: 700; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--brand); }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 1.02rem;
  background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-note { font-size: 0.95rem; color: var(--muted); margin-top: 0.5rem; }

/* Blog / misc */
.meta { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.5rem; }
.prose { max-width: 48rem; font-size: 1.08rem; }
.prose h2 { margin-top: 1.75rem; font-size: 1.35rem; }
.prose p { color: var(--ink); font-size: 1.08rem; }
.table-wrap { overflow-x: auto; }

/* Footer */
.site-footer {
  background: #122033;
  color: #c9d3df;
  padding: 2.5rem 0 5.5rem;
  margin-top: 2rem;
}
.site-footer a { color: #e8eef5; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1.5rem;
}
.site-footer h4 { color: #fff; margin: 0 0 0.75rem; font-size: 1.08rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.4rem 0; font-size: 1rem; }
.footer-copy {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.95rem;
}

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: none;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.sticky-cta .btn { flex: 1; }

.wa-float {
  position: fixed;
  right: 14px;
  bottom: 72px;
  z-index: 55;
  background: #25d366;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.8rem 1.05rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-2);
  background: #e7f2f6;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.steps { counter-reset: step; display: grid; gap: 0.75rem; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem 0.9rem 3rem;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero-grid, .product-layout, .grid-3, .grid-4, .footer-grid, .trust-bar, .form-grid, .grid-2 {
    grid-template-columns: 1fr;
  }
  .trust-bar { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0; right: 0; top: 72px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    align-items: flex-start;
  }
  .menu-btn {
    display: inline-flex !important;
    margin-left: auto;
  }
  .sticky-cta { display: flex; }
  .wa-float { bottom: 70px; }
}
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 0.4rem 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

/* RTL */
html[dir="rtl"] .nav { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .header-actions { margin-left: 0; margin-right: 0.5rem; }
html[dir="rtl"] .list-check li { padding-left: 0; padding-right: 1.35rem; }
html[dir="rtl"] .list-check li::before { left: auto; right: 0; }
html[dir="rtl"] .step { padding: 0.9rem 3rem 0.9rem 1rem; }
html[dir="rtl"] .step::before { left: auto; right: 0.85rem; }
html[dir="rtl"] .wa-float { right: auto; left: 14px; }
html[dir="rtl"] .dyn-toggle { left: auto; right: 12px; }
