/* ==========================================================
   MACHINE-X  |  Stylesheet
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --red: #c8201a;
  --red-dark: #a51914;
  --red-soft: #e5483f;
  --ink: #17181d;
  --ink-2: #22242b;
  --ink-3: #2e3039;
  --paper: #eff0f2;
  --white: #fff;
  --line: #d9dbe0;
  --muted: #666b76;
  --wa: #1fa855;
  --radius: 8px;
  --shadow: 0 6px 24px rgba(23, 24, 29, .10);
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
[dir="rtl"] .flow-step:not(:last-child)::after { content: '←'; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.eyebrow { font: 700 .8rem var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--red-soft); margin-bottom: .8rem; display: block; }
.lead { font-size: 1.15rem; color: var(--muted); }
.empty { text-align: center; padding: 80px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--red); color: #fff; border: 2px solid var(--red);
  padding: .8rem 1.5rem; border-radius: var(--radius); font: 600 .95rem var(--body); cursor: pointer;
  transition: background .2s, transform .2s, color .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.dark .btn-outline, .hero .btn-outline, .btn-outline.on-dark { color: #fff; border-color: #fff; }
.dark .btn-outline:hover, .hero .btn-outline:hover { background: #fff; color: var(--ink); }
.btn-wa { background: var(--wa); border-color: var(--wa); }
.btn-wa:hover { background: #17894a; border-color: #17894a; }
.btn-small { padding: .45rem 1rem; font-size: .85rem; }
.cta-row, .form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4rem; }
.link-arrow { color: var(--red); font-weight: 600; font-size: .92rem; }
.floating-whatsapp {
  position: fixed; inset-inline-end: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 60; display: grid; width: 58px; height: 58px; place-items: center;
  color: #fff; background: var(--wa); border: 2px solid #fff; border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .28); transition: transform .2s, background .2s;
}
.floating-whatsapp:hover { background: #17894a; transform: translateY(-3px); }
.floating-whatsapp:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.floating-whatsapp svg { width: 31px; height: 31px; fill: currentColor; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--red); }
.header-utility { background: #090a0d; }
.header-utility-inner { display: flex; align-items: center; justify-content: flex-end; gap: 22px; min-height: 34px; }
.header-utility a { color: #cfd1d8; font-size: .78rem; }
.header-utility a:hover { color: #fff; }
.header-utility .language-switcher { margin: 0; }
.header-utility .language-switcher select { height: 30px; border: 0; background: transparent; padding-inline: 0; font-size: .76rem; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand img { height: 48px; width: auto; border-radius: 4px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) { color: #cfd1d8; padding: .5rem .75rem; border-radius: 6px; font-size: .9rem; font-weight: 500; transition: color .2s, background .2s; }
.main-nav a:not(.btn):hover { color: #fff; background: var(--ink-3); }
.main-nav a.active { color: #fff; box-shadow: inset 0 -3px 0 var(--red); border-radius: 6px 6px 0 0; }
.main-nav .btn { margin-inline-start: 8px; }
.nav-category { position: relative; display: flex; align-items: center; }
.nav-category-link { white-space: nowrap; }
.nav-category-toggle { display: grid; place-items: center; width: 24px; height: 36px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.nav-category-toggle::after { width: 6px; height: 6px; border-right: 1px solid #cfd1d8; border-bottom: 1px solid #cfd1d8; content: ''; transform: rotate(45deg) translateY(-2px); }
.nav-category-toggle[aria-expanded="true"]::after { transform: rotate(225deg) translateY(-2px); }
.nav-category-menu { position: absolute; top: 100%; inset-inline-start: 0; z-index: 5; display: grid; min-width: 240px; margin: 0; padding: 8px; list-style: none; background: var(--ink); border-top: 2px solid var(--red); border-radius: 0 0 6px 6px; box-shadow: 0 12px 24px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.nav-category:hover .nav-category-menu, .nav-category:focus-within .nav-category-menu, .nav-category.open .nav-category-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-category-menu a { display: block; padding: .65rem .75rem !important; color: #cfd1d8; border-radius: 4px; font-size: .86rem; }
.nav-category-menu a:hover, .nav-category-menu a:focus-visible { color: #fff; background: var(--ink-3); }
.language-switcher { margin-block: 0; margin-inline-start: 8px; }
.language-switcher select { width: 96px; height: 34px; border: 1px solid rgba(255,255,255,.25); border-radius: 5px; background: var(--ink-3); color: #fff; color-scheme: dark; padding: 0 .55rem; font: 600 .78rem var(--body); cursor: pointer; }
.language-switcher select:focus-visible { outline: 2px solid var(--red-soft); outline-offset: 2px; }
.language-switcher option { color: #fff; background: var(--ink-3); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .25s; }
.server-warning { background: #fff3cd; color: #5c4400; padding: 14px 20px; text-align: center; font-size: .95rem; }
.server-warning code { background: rgba(0,0,0,.08); padding: 2px 6px; border-radius: 4px; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--red); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 90px 0 80px; }
.hero h1 { color: #fff; }
.hero p { color: #c4c7cf; font-size: 1.15rem; max-width: 560px; }
.hero-art { position: relative; }
.hero-slider {
  position: relative; background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08); border-radius: 18px; overflow: hidden; min-height: 420px; box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 24px;
  opacity: 0; visibility: hidden; transform: scale(1.04); transition: opacity .4s ease, transform .4s ease, visibility .4s ease;
}
.hero-slide.is-active {
  opacity: 1; visibility: visible; transform: scale(1); z-index: 1;
}
.hero-slide img { max-height: 100%; width: 90%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0,0,0,.42)); }
.hero-slide figcaption {
  margin-top: 12px; font: 700 .8rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75);
}
.hero-slider-nav {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; padding-bottom: 6px;
}
.hero-slider-nav button {
  width: 12px; height: 12px; border: 0; border-radius: 50%; background: rgba(255,255,255,.28); cursor: pointer; transition: transform .2s ease, background .2s ease;
}
.hero-slider-nav button.is-active { background: var(--red-soft); transform: scale(1.2); }
.hero-slider-nav button:hover { background: rgba(255,255,255,.55); }
.note-bar { border-inline-start: 4px solid var(--red); padding-inline-start: 14px; margin-top: 2rem; color: #fff; }
.note-bar span { display: block; color: #aeb1ba; font-size: .95rem; }

/* ---------- Page header ---------- */
.page-head { background: var(--ink); color: #fff; padding: 48px 0 40px; border-bottom: 4px solid var(--red); }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { color: #b9bcc5; max-width: 720px; margin: 0; font-size: 1.1rem; }
.breadcrumb { font-size: .85rem; color: #9296a1; margin-bottom: 1rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-style: normal; margin: 0 4px; opacity: .5; }
.breadcrumb span:last-child { color: #d8dae0; }
.light-crumb .breadcrumb { color: var(--muted); }
.light-crumb .breadcrumb span:last-child { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--white); }
.section.dark { background: var(--ink); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); }
.dark .section-head p { color: #aeb1ba; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ---------- Path cards ---------- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.path-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 28px; position: relative; transition: transform .2s, box-shadow .2s, border-color .2s; }
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--red); }
.path-num { position: absolute; top: 20px; inset-inline-end: 22px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 .85rem var(--body); display: grid; place-items: center; }
.path-icon { width: 46px; height: 46px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; margin-bottom: 16px; }
.path-icon svg { width: 24px; height: 24px; stroke: var(--red-soft); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.path-card h3 { margin-bottom: .3em; }
.path-card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Cards ---------- */
.card { background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { background: radial-gradient(circle at 50% 40%, #fff, #e4e6ea); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 18px; }
.card-img img { max-height: 100%; width: auto; object-fit: contain; }
.sub-card .card-img { box-sizing: border-box; height: clamp(200px, 24vw, 280px); flex: 0 0 auto; min-height: 0; overflow: hidden; }
.sub-card .card-img img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.article-card .card-img { background: var(--ink-2); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 1.35rem; margin: 0; }
.card-body p { color: var(--muted); font-size: .93rem; margin: 0 0 6px; flex: 1; }
.tag { display: inline-block; background: rgba(200,32,26,.1); color: var(--red); font: 700 .72rem var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; width: fit-content; }
.dark .tag { background: rgba(229,72,63,.18); color: #ff8a82; }

/* ---------- Mindsets / conversation strips ---------- */
.mindset { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 10px; padding: 22px; }
.mindset h3 { margin-bottom: .2em; }
.mindset p { color: #aeb1ba; margin: 0; font-size: .95rem; }
.converge { height: 40px; margin: 0 12.5%; border: 2px solid #4a4d57; border-top: 0; border-bottom: 0; }
.converge-bar { background: var(--red); color: #fff; text-align: center; font: 700 1.5rem var(--head); letter-spacing: .12em; padding: 18px; border-radius: 8px; text-transform: uppercase; }
.routes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.route { background: var(--white); border-inline-start: 4px solid var(--red); border-radius: 8px; padding: 18px; transition: transform .2s, box-shadow .2s; }
.route:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.route h3 { font-size: 1.15rem; margin-bottom: .25em; }
.route p { margin: 0; font-size: .88rem; color: var(--muted); }
.convo-box { background: var(--ink); border-radius: 14px; padding: 28px; }
.convo-box .routes .route { background: #fbfbfa; }
.convo-box h2 { color: #fff; margin-bottom: 18px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs a, .tabs button { background: var(--white); border: 1px solid var(--line); border-radius: 30px; padding: .5rem 1.1rem; font: 600 .88rem var(--body); cursor: pointer; color: var(--ink); transition: .2s; }
.tabs a:hover, .tabs button:hover { border-color: var(--red); }
.tabs a.active, .tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.gallery-main { background: radial-gradient(circle at 50% 40%, #fff, #e0e3e8); border-radius: 14px; border: 1px solid var(--line); aspect-ratio: 1 / .85; display: grid; place-items: center; padding: 24px; }
.gallery-main img { max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { width: 78px; height: 66px; background: var(--white); border: 2px solid var(--line); border-radius: 8px; padding: 4px; cursor: pointer; }
.gallery-thumbs button.active { border-color: var(--red); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-info h1 { font-size: clamp(2rem, 4vw, 3rem); margin: .4em 0 .3em; }
.product-details { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; margin-top: 56px; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.spec-table th { background: var(--ink); color: #fff; text-align: start; padding: 12px 16px; font: 600 .85rem var(--body); letter-spacing: .05em; text-transform: uppercase; }
.spec-table td { padding: 12px 16px; border-top: 1px solid var(--line); font-size: .95rem; }
.spec-table td:first-child { font-weight: 600; width: 45%; background: #fafafa; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li { background: var(--white); border: 1px solid var(--line); border-inline-start: 4px solid var(--red); border-radius: 8px; padding: 14px 18px; display: flex; flex-direction: column; }
.feature-list span { color: var(--muted); font-size: .92rem; }

/* ---------- Forms ---------- */
.form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 36px; max-width: 900px; box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font: 700 1.35rem var(--head); padding: 0 0 12px; margin-bottom: 14px; border-bottom: 2px solid var(--ink); width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field span { font-size: .88rem; font-weight: 600; }
.field em { color: var(--red); font-style: normal; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,32,26,.15); }
textarea { resize: vertical; margin-top: 4px; }
fieldset > .field { margin-top: 16px; }
.enquiry-dynamic-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.enquiry-dynamic-field-wide { grid-column: 1 / -1; }
.enquiry-dynamic-field > label { display: flex; flex-direction: column; gap: 6px; }
.enquiry-dynamic-field > label span, .enquiry-dynamic-choices legend { font-size: .88rem; font-weight: 600; }
.enquiry-dynamic-choices { margin: 0; }
.enquiry-dynamic-choices legend { padding: 0; margin-bottom: 8px; border: 0; }
.enquiry-dynamic-choice { display: inline-flex; align-items: center; gap: 8px; margin-inline-end: 16px; }
.enquiry-dynamic-choice input { width: auto; }
.dropzone { border: 2px dashed #b4b8c1; border-radius: 12px; padding: 30px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; cursor: pointer; background: #fafafa; transition: .2s; position: relative; }
.dropzone:hover, .dropzone.drag { border-color: var(--red); background: #fff4f3; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone span { color: var(--muted); font-size: .9rem; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 14px; }
.preview { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.preview img { width: 100%; height: 90px; object-fit: cover; }
.preview small { display: block; padding: 4px 6px; font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(23,24,29,.8); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.form-error { color: var(--red); font-size: .88rem; margin: 8px 0 0; }
.enq-item { background: #f4f4f6; border-inline-start: 4px solid var(--red); padding: 10px 16px; border-radius: 6px; margin-bottom: 24px; }
.enq-item:empty { display: none; }
.success { text-align: center; padding: 30px 10px; }
.success-icon svg { width: 64px; height: 64px; stroke: var(--wa); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.success p { color: var(--muted); max-width: 520px; margin-inline: auto; }

/* ---------- Process (How we work) ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 26px 20px; position: relative; counter-increment: s; }
.step::before { content: '0' counter(s); font: 800 2.4rem var(--head); color: var(--red); display: block; margin-bottom: 6px; }
.step h3 { margin-bottom: .3em; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Article ---------- */
.article-wrap { max-width: 780px; }
.article-wrap h1 { font-size: clamp(2rem, 4vw, 3rem); margin: .4em 0 .2em; }
.meta { color: var(--muted); font-size: .9rem; }
.article-hero { width: 100%; max-height: 360px; object-fit: contain; background: var(--ink-2); border-radius: 12px; padding: 24px; margin: 20px 0 32px; }
.article-body p { font-size: 1.05rem; }
.article-body h3 { margin-top: 1.6em; font-size: 1.6rem; }
.article-cta { background: var(--ink); color: #fff; border-radius: 14px; padding: 30px; margin-top: 40px; }
.article-cta h3 { color: #fff; }
.article-cta p { color: #b9bcc5; }
.article-cta .btn-outline { color: #fff; border-color: #fff; }
.article-cta .btn-outline:hover { background: #fff; color: var(--ink); }
.article-dynamic-form { max-width: 780px; margin: 32px 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.article-dynamic-form h2 { margin-top: 0; }
.dynamic-form { display: grid; gap: 16px; }
.dynamic-form-field { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.dynamic-form-field label, .dynamic-form-field legend { color: var(--ink); font-weight: 700; }
.dynamic-form-field input:not([type="radio"]):not([type="checkbox"]), .dynamic-form-field select, .dynamic-form-field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; }
.dynamic-form-field textarea { min-height: 120px; resize: vertical; }
.dynamic-form-choice { display: flex; align-items: center; gap: 8px; font-weight: 400 !important; }
.dynamic-form-choice input { accent-color: var(--red); }
.dynamic-form-error { color: #a81914; }
.dynamic-form-success { padding: 12px 15px; border: 1px solid #b4ddc2; border-radius: 7px; background: #eaf7ee; color: #1c6635; }
.article-dynamic-form { max-width: 780px; margin: 32px 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.article-dynamic-form h2 { margin-top: 0; }
.dynamic-form { display: grid; gap: 16px; }
.dynamic-form-field { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.dynamic-form-field label, .dynamic-form-field legend { color: var(--ink); font-weight: 700; }
.dynamic-form-field input:not([type="radio"]):not([type="checkbox"]), .dynamic-form-field select, .dynamic-form-field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; }
.dynamic-form-field textarea { min-height: 120px; resize: vertical; }
.dynamic-form-choice { display: flex; align-items: center; gap: 8px; font-weight: 400 !important; }
.dynamic-form-choice input { accent-color: var(--red); }
.dynamic-form-error { color: #a81914; }
.dynamic-form-success { padding: 12px 15px; border: 1px solid #b4ddc2; border-radius: 7px; background: #eaf7ee; color: #1c6635; }

/* ---------- Contact / About ---------- */
.info-list { list-style: none; padding: 0; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.info-list li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border: 0; }
.info-list a { color: var(--red); font-weight: 500; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-logo { background: var(--ink); border-radius: 16px; padding: 40px; }
.about-logo img { width: 100%; max-width: 420px; margin: auto; border-radius: 6px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.value { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.value h3 { color: var(--red); }
.value p { margin: 0; color: var(--muted); font-size: .95rem; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.stat { background: var(--ink); color: #fff; border-radius: 10px; padding: 20px; }
.stat strong { display: block; font: 800 1.8rem var(--head); color: var(--red-soft); }
.stat span { font-size: .85rem; color: #b9bcc5; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9bcc5; margin-top: 0; border-top: 4px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding: 56px 0 40px; }
.footer-brand img { height: 64px; width: auto; border-radius: 4px; margin-bottom: 14px; }
.footer-brand p { font-size: .9rem; max-width: 280px; }
.site-footer h4 { color: #fff; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--ink-3); padding: 18px 0; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner, .product-layout, .product-details, .split { grid-template-columns: 1fr; }
  .grid-4, .routes, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .paths, .values { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; inset-inline: 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; display: none; border-bottom: 3px solid var(--red); }
  .main-nav.open { display: flex; }
  .main-nav .btn { margin: 8px 0 0; text-align: center; }
  .nav-category { display: grid; grid-template-columns: 1fr auto; }
  .nav-category-toggle { width: 40px; height: 42px; }
  .nav-category-menu { position: static; grid-column: 1 / -1; display: none; min-width: 0; padding: 4px 0 8px; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nav-category.open .nav-category-menu { display: grid; }
  .nav-category-menu a { padding-inline-start: 1.5rem !important; }
  .language-switcher { align-self: center; margin: 10px 0 0; }
  .main-nav a.active { box-shadow: none; background: var(--ink-3); }
}
@media (max-width: 480px) {
  .header-utility-inner { gap: 14px; min-height: 38px; }
  .header-utility a { font-size: .72rem; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2, .paths, .routes, .steps, .values, .stat-row, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .hero-inner { padding: 56px 0; }
  .form-wrap { padding: 22px; }
  .info-list li { grid-template-columns: 1fr; gap: 2px; }
  .converge { display: none; }
}

/* ==========================================================
   Laravel edition additions (catalogue V6)
   ========================================================== */
.brand img, .footer-brand img { border-radius: 0; background: none; }
.brand img { height: 52px; }
.footer-brand img { height: 84px; }
.about-logo img { border-radius: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.4rem 0 .4rem; }
.chips span { border: 1px solid #3a3d47; color: #c4c7cf; border-radius: 30px; padding: 4px 12px; font-size: .78rem; letter-spacing: .04em; }
.more { margin-top: 28px; }

/* production flow */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.flow-step { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px 18px; position: relative; transition: transform .2s, box-shadow .2s, border-color .2s; }
.flow-step:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--red); }
.flow-step:not(:last-child)::after { content: '→'; position: absolute; inset-inline-end: -14px; top: 50%; transform: translateY(-50%); color: var(--red); font-size: 1.2rem; z-index: 1; background: var(--white); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; line-height: 1; }
.flow-step small { font: 800 1.1rem var(--head); color: var(--red); }
.flow-step h3 { margin: .1em 0 .2em; }
.flow-step p { margin: 0; color: var(--muted); font-size: .9rem; }
.flow-note { margin-top: 20px; color: var(--muted); font-size: .95rem; }

/* sub tabs */
.tabs-sub { margin-top: -10px; }
.tabs-sub a { font-size: .82rem; padding: .35rem .9rem; background: transparent; }

/* product page */
.stat-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 1.4rem 0 .4rem; }
.stat-chips div { background: var(--ink); color: #fff; border-radius: 10px; padding: 14px 14px 12px; }
.stat-chips strong { display: block; font: 800 1.35rem/1.1 var(--head); color: #fff; }
.stat-chips span { font-size: .75rem; color: #aeb1ba; letter-spacing: .03em; }
.secondary-cta { margin: 14px 0 0; }
.img-note { font-size: .75rem; color: var(--muted); margin: 8px 0 0; }
.gallery-main img { max-width: 100%; }
.placement { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; margin-top: 48px; }
.placement > div { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; }
.placement small { font: 700 .72rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.placement p { margin: 4px 0 0; font-size: .95rem; }
.placement .placement-mid { background: var(--ink); border-color: var(--ink); color: #fff; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.placement .placement-mid strong { font: 700 1.2rem var(--head); }
.points { margin-top: 48px; }
.points ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.points li { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 12px 18px; padding-inline-start: 44px; position: relative; font-size: .95rem; }
.points li::before { content: ''; position: absolute; inset-inline-start: 18px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.spec-note { font-size: .8rem; color: var(--muted); margin-top: 12px; }

/* enquiry */
.enquiry-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.enquiry-layout .form-wrap { max-width: none; }
.enquiry-aside { background: var(--ink); color: #fff; border-radius: 14px; padding: 26px; position: sticky; top: 92px; }
.enquiry-aside h3 { color: #fff; margin-bottom: 14px; }
.enquiry-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.enquiry-aside li { border-inline-start: 3px solid var(--red); padding-inline-start: 12px; display: flex; flex-direction: column; }
.enquiry-aside li span { color: #b9bcc5; font-size: .88rem; }
.form-alert { background: #fdecea; border: 1px solid #f3b7b2; color: #7a1b15; border-radius: 8px; padding: 14px 18px; margin-bottom: 22px; font-size: .92rem; }
.form-alert ul { margin: 6px 0 0; padding-inline-start: 18px; }
input.invalid, select.invalid, textarea.invalid { border-color: var(--red); background: #fff7f6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success.form-wrap { margin-inline: auto; text-align: center; }

/* how we work, contact */
.step-outcome { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink) !important; font-size: .88rem !important; }
.step-outcome small { display: block; color: var(--red); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; margin-bottom: 2px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { padding-inline-start: 28px; position: relative; }
.check-list li::before { content: ''; position: absolute; inset-inline-start: 0; top: 7px; width: 14px; height: 8px; border-inline-start: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
.check-list a { color: var(--red); font-weight: 600; }
.know-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 64px; }
.section.alt .value, .value { height: 100%; }

/* ---------- Database-driven homepage ---------- */
.home-hero {
  min-height: 640px; position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: stretch; color: #fff; background: var(--ink);
}
.home-hero .hero-slide { z-index: -2; display: block; margin: 0; padding: 0; transform: scale(1.03); }
.home-hero .hero-slide.is-active { z-index: -2; transform: scale(1); }
.home-hero-slide img { width: 100%; height: 100%; max-height: none; object-fit: cover; filter: none; }
.home-hero-overlay { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(13,14,18,.94) 0%, rgba(13,14,18,.78) 48%, rgba(13,14,18,.35) 100%); }
.home-hero-content { display: flex; flex-direction: column; justify-content: center; padding-block: 72px 30px; min-height: 640px; position: relative; }
.home-hero-copy { max-width: 700px; }
.home-hero .eyebrow { color: #ff7770; }
.home-hero h1 { color: #fff; max-width: 680px; font-size: clamp(2.7rem, 5.5vw, 4.7rem); }
.home-hero-copy > p { max-width: 600px; color: #e1e2e6; font-size: 1.08rem; }
.home-hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.78); }
.home-hero .btn-outline:hover { background: #fff; color: var(--ink); }
.home-hero-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 52px; }
.home-hero-action {
  display: flex; align-items: flex-start; gap: 12px; min-height: 104px; padding: 14px;
  border: 1px solid rgba(255,255,255,.32); border-radius: 6px; background: rgba(22,23,28,.78);
  color: #fff; transition: background .2s, border-color .2s, transform .2s;
}
.home-hero-action:hover { border-color: var(--red-soft); background: rgba(35,25,27,.92); transform: translateY(-2px); }
.home-hero-action-number { flex: 0 0 auto; color: #ff7770; font: 700 1rem var(--head); }
.home-hero-action-copy { display: grid; gap: 5px; }
.home-hero-action-copy strong { font-size: .88rem; }
.home-hero-action-copy > span { color: #c9cbd1; font-size: .78rem; line-height: 1.45; }
.home-hero-action-arrow { flex: 0 0 auto; align-self: center; margin-inline-start: auto; color: #ff7770; }
.home-challenges { background: #f6f6f7; }
.home-challenge-card { min-height: 205px; position: relative; padding: 26px 24px 22px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 4px; display: flex; flex-direction: column; align-items: flex-start; transition: transform .2s, box-shadow .2s; }
.home-challenge-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.home-challenge-card h3 { margin: 20px 0 8px; }
.home-challenge-card p { flex: 1; color: var(--muted); font-size: .92rem; }
.home-card-number { font: 700 .78rem var(--body); color: var(--red); letter-spacing: .12em; }
.home-challenge-card .link-arrow, .home-solution-card .link-arrow { font-size: .84rem; }
.home-production-review {
  min-height: 500px; position: relative; display: flex; align-items: center; overflow: hidden;
  color: #fff; background-color: var(--ink); background-image: linear-gradient(90deg, rgba(13,14,18,.96) 0%, rgba(13,14,18,.82) 36%, rgba(13,14,18,.08) 76%), var(--review-image);
  background-position: center; background-size: cover;
}
.home-production-review::after { position: absolute; inset: 0; content: ''; pointer-events: none; background: linear-gradient(0deg, rgba(13,14,18,.22), transparent 32%); }
.home-production-review-inner { position: relative; z-index: 1; }
.home-production-review-copy { max-width: 520px; padding-block: 64px; }
.home-production-review .eyebrow { color: var(--red-soft); }
.home-production-review h2 { max-width: 500px; margin-block: 16px; color: #fff; font-size: clamp(2rem, 3.5vw, 2.75rem); }
.home-production-review p { max-width: 500px; color: #e1e2e6; }
.home-production-review ul { display: grid; gap: 8px; margin: 18px 0 30px; padding: 0; list-style: none; color: #e1e2e6; }
.home-production-review li { position: relative; padding-inline-start: 24px; }
.home-production-review li::before { position: absolute; inset-inline-start: 0; color: var(--red); content: '—'; }
.home-production-review .btn span { margin-inline-start: 8px; }
html[dir="rtl"] .home-production-review { background-image: linear-gradient(270deg, rgba(13,14,18,.96) 0%, rgba(13,14,18,.82) 36%, rgba(13,14,18,.08) 76%), var(--review-image); }
.home-solutions { background: #fff; }
.home-solution-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.home-solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.home-solution-image { height: 190px; background: #e4e6ea; overflow: hidden; }
.home-solution-image img { width: 100%; height: 100%; object-fit: cover; }
.home-solution-body { padding: 19px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.home-solution-body h3 { font-size: 1.25rem; }
.home-solution-body p { flex: 1; color: var(--muted); font-size: .9rem; }
.home-machines { background: #f2f3f4; }
.home-stage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-stage-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 5px; transition: transform .2s, box-shadow .2s; }
.home-stage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.home-stage-image { height: 150px; padding: 10px; background: #e4e6ea; }
.home-stage-image img { width: 100%; height: 100%; object-fit: contain; }
.home-stage-copy { padding: 15px; }
.home-stage-copy > span { color: var(--red); font: 700 .7rem var(--body); letter-spacing: .1em; }
.home-stage-copy h3 { margin: 5px 0; font-size: 1.15rem; }
.home-stage-copy p { margin: 0; color: var(--muted); font-size: .82rem; }
.home-process { background: #15161a; }
.home-process .section-head { max-width: 760px; }
.home-process-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.home-process-step { min-width: 0; padding: 18px 14px; border-top: 2px solid var(--red); background: #202126; }
.home-process-number { display: block; margin-bottom: 18px; color: #ff7770; font: 700 .85rem var(--body); }
.home-process-step h3 { font-size: 1.2rem; }
.home-process-step p { margin: 0; color: #b7b9c0; font-size: .82rem; }
.home-process-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 28px; padding-top: 22px; border-top: 1px solid #3a3b42; color: #e3e4e7; font-weight: 600; }
.home-guides { background: #fff; }
.home-guides .more { margin-top: 28px; }
.home-contact { background: #111216; }
.home-contact-card { min-width: 0; min-height: 220px; display: flex; flex-direction: column; align-items: flex-start; padding: 23px; background: #1c1d22; border: 1px solid #36373d; border-radius: 5px; }
.home-contact-card h3 { margin: 17px 0 8px; }
.home-contact-card p { flex: 1; color: #b7b9c0; font-size: .9rem; }
.home-hero h1 { font-size: clamp(2rem, 8vw, 2.5rem); margin-bottom: .35em; }
.home-hero-copy > p { font-size: .92rem; line-height: 1.45; margin-bottom: .65em; }
.home-hero-copy > h1 { font-size: 1.5rem; line-height: 1.45; margin-bottom: .65em; }
.home-hero-copy .cta-row { margin-top: .9rem; }
.home-hero-content { justify-content: flex-start; padding-block: 24px 20px; }
.header-utility-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.utility-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s ease;
}

.utility-btn:hover {
    background: #555;
    color: #fff;
}



.language-switcher select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}
@media (max-width: 1000px) {
  .header-inner { flex-wrap: wrap; }
  .language-switcher { margin-inline-start: auto; }
  .main-nav { order: 4; width: 100%; justify-content: center; flex-wrap: wrap; padding-bottom: 10px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .home-process-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-stage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-challenges .grid-3, .home-solutions .grid-4, .home-guides .grid-3, .home-contact .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step::after { display: none; }
  .enquiry-layout, .know-grid { grid-template-columns: 1fr; }
  .enquiry-aside { position: static; }
  .placement { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-inner { flex-wrap: nowrap; }
  .main-nav { order: initial; width: auto; padding-bottom: 0; }
  .language-switcher { margin-inline-start: 0; }
  .flow, .stat-chips { grid-template-columns: 1fr; }
  .home-hero, .home-hero-content { min-height: 620px; }
  .home-hero-content { justify-content: flex-start; padding-block: 24px 20px; }
  .home-hero h1 { font-size: clamp(2rem, 8vw, 2.5rem); margin-bottom: .35em; }
  .home-hero-copy > p { font-size: .92rem; line-height: 1.45; margin-bottom: .65em; }
  .home-hero-copy .cta-row { margin-top: .9rem; }
  .home-hero-overlay { background: linear-gradient(90deg, rgba(13,14,18,.92), rgba(13,14,18,.66)); }
  .home-production-review { min-height: 540px; background-image: linear-gradient(90deg, rgba(13,14,18,.94), rgba(13,14,18,.74)), var(--review-image); }
  html[dir="rtl"] .home-production-review { background-image: linear-gradient(270deg, rgba(13,14,18,.94), rgba(13,14,18,.74)), var(--review-image); }
  .home-production-review-copy { padding-block: 48px; }
  .home-hero-actions { grid-template-columns: 1fr; gap: 7px; margin-top: 24px; }
  .home-hero-action { min-height: 66px; padding: 10px 12px; }
  .home-stage-grid, .home-process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-challenges .grid-3, .home-solutions .grid-4, .home-guides .grid-3, .home-contact .grid-3 { grid-template-columns: 1fr; }
  .home-solution-image { height: 155px; }
  .home-process-footer { align-items: flex-start; flex-direction: column; }
}
