:root {
  --kraft-50: #fbf6ef;
  --kraft-100: #f4e8d7;
  --kraft-200: #e6cfae;
  --kraft-300: #e6b980;
  --kraft-400: #c98d4f;
  --kraft-500: #b07436;
  --kraft-700: #7a4a1e;
  --kraft-900: #3b2410;
  --navy: #0d2a5c;
  --navy-900: #081b3d;
  --navy-700: #163a78;
  --green: #4fae1b;
  --green-700: #2f8a1c;
  --green-300: #9bd84a;
  --tint: #f2f7ef;
  --tint-2: #e3efdc;
  --ink: #13213b;
  --muted: #56627a;
  --bg: #ffffff;
  --surface: #ffffff;
  --line: #e2e8e0;
  --accent: var(--green);
  --accent-ink: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(13, 42, 92, .22);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[lang="ar"] { --font: "Cairo", "Segoe UI", Tahoma, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
html[lang="ar"] h1, html[lang="ar"] h2 { letter-spacing: 0; line-height: 1.35; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--green-700); margin-bottom: .75rem; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.eyebrow.light { color: var(--green-300); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--green-300); outline-offset: 2px; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--navy-700); }
.btn-ghost { border-color: var(--green); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--tint); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-logo { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.2rem; }
.brand-text small { color: var(--muted); font-size: .75rem; }
.menu { display: flex; gap: 1.4rem; margin-inline-start: auto; }
.menu a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted); }
.menu a:hover { color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.lang-btn { font: inherit; font-weight: 600; font-size: .9rem; background: var(--tint); color: var(--navy); border: 0; padding: .5rem .85rem; border-radius: 999px; cursor: pointer; }
.lang-btn:hover { background: var(--tint-2); }
.burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); background:
  radial-gradient(60% 60% at 85% 30%, var(--tint-2), transparent 70%),
  linear-gradient(var(--bg), var(--tint)); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--muted); font-weight: 500; }
.hero-points li::before { content: "■"; color: var(--green); margin-inline-end: .5rem; font-size: .7em; vertical-align: middle; }
.hero-boxes { width: 100%; max-width: 480px; margin-inline: auto; filter: drop-shadow(0 30px 30px rgba(59, 36, 16, .18)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Box faces (shared by all illustrations) */
.f-top { fill: var(--kraft-300); }
.f-left { fill: var(--kraft-400); }
.f-right { fill: var(--kraft-500); }
.f-sheet { fill: var(--kraft-200); }
.f-edge { fill: var(--kraft-500); }
.tape { stroke: #d9a25f; stroke-width: 9; opacity: .8; }
.strap { stroke: var(--kraft-900); stroke-width: 2.5; opacity: .5; }
.print rect, .print-r { fill: rgba(255, 255, 255, .85); }
.print-c { fill: #c0392b; opacity: .85; }
.arrows path { stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.holes circle { fill: var(--kraft-900); opacity: .55; }

/* Stats */
.stats { background: var(--navy); color: #fff; padding: 2rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat b { display: block; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--green-300); font-variant-numeric: tabular-nums; }
.stat span { font-size: .95rem; opacity: .9; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.alt { background: var(--tint); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 2.8rem; }
.section-head p { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.two-col p { color: var(--muted); font-size: 1.05rem; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.feature-list li { display: flex; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.feature-list h3 { margin-bottom: .2rem; }
.feature-list p { margin: 0; font-size: .95rem; }
.ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tint-2); color: var(--green-700); font-weight: 800; }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-art { background: var(--tint); border-radius: 10px; padding: 1rem; margin-bottom: 1.1rem; }
.card-art svg { height: 110px; margin-inline: auto; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }

.grades { margin-top: 3.5rem; }
.grades > h3 { text-align: center; font-size: 1.4rem; margin-bottom: 1.5rem; }
.grade-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 820px; margin-inline: auto; }
.grade { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.board { width: 100%; height: 56px; margin-bottom: 1rem; }
.board .liner { fill: var(--kraft-500); }
.board .flute { fill: none; stroke: var(--kraft-400); stroke-width: 2; }
.grade h4 { font-size: 1.05rem; margin-bottom: .3rem; }
.grade p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: s; }
.steps li { position: relative; padding: 1.5rem 1.5rem 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; margin-bottom: .9rem; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Industries */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; max-width: 900px; margin: 0 auto; }
.chip { background: var(--surface); border: 1px solid var(--tint-2); color: var(--navy); padding: .6rem 1.1rem; border-radius: 999px; font-weight: 600; }

/* Quote */
.quote-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.5rem; align-items: start; }
.quote-form, .preview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.quote-form { position: relative; display: grid; gap: 1rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
input, select, textarea { font: inherit; font-weight: 400; font-size: 1rem; width: 100%; padding: .7rem .85rem; border: 1px solid #cfd8cc; border-radius: 10px; background: var(--bg); color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--green); }
input[aria-invalid="true"] { border-color: #c0392b; background: #fff6f5; }
.dims { border: 1px dashed #c4d3bf; border-radius: 12px; padding: .9rem 1rem 1rem; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.dims legend { font-weight: 700; font-size: .9rem; padding: 0 .4rem; color: var(--navy); }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.form-error { color: #b03a2e; margin: 0; font-weight: 600; }
select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #c0392b; background: #fff6f5; }
[hidden] { display: none !important; }
label.req > span:first-child::after { content: " *"; color: #c0392b; }
.quote-closed { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); text-align: center; display: grid; gap: 1rem; justify-items: center; max-width: 640px; margin-inline: auto; }
.quote-closed p { margin: 0; font-size: 1.05rem; }

.preview { position: sticky; top: 90px; }
.preview svg { width: 100%; height: auto; background: var(--tint); border-radius: 10px; margin-bottom: 1rem; }
.specs { margin: 0; display: grid; gap: .1rem; }
.specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.note { font-size: .82rem; color: var(--muted); margin: .9rem 0 0; }
.dim-label { font: 600 11px var(--font); fill: var(--kraft-900); direction: ltr; unicode-bidi: plaintext; }
.dim-line { stroke: var(--navy); stroke-width: 1; }

/* Contact */
.contact { background: var(--navy); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact p { color: rgba(255, 255, 255, .75); font-size: 1.05rem; }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 1rem 1.2rem; }
.contact-list small { display: block; color: var(--green-300); font-weight: 600; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.c-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--green); font-size: 1.1rem; }

.offices { display: grid; gap: 1rem; }
.office { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.office h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; margin-bottom: .6rem; }
.office h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green-300); flex: none; }
.office p { margin: 0 0 .35rem; color: rgba(255, 255, 255, .8); font-size: 1rem; }
.office a { color: #fff; font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.office a:hover { text-decoration: underline; }
.office .main-tag { font-size: .72rem; font-weight: 700; background: var(--green); color: #fff; border-radius: 6px; padding: .1rem .45rem; }
.map-wrap { position: relative; margin-top: 2.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .05); }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }
.map-btn { position: absolute; inset-inline-end: 16px; bottom: 16px; }
@media (max-width: 620px) { .map-wrap iframe { height: 300px; } .map-btn { position: static; width: 100%; border-radius: 0; } }

.footer { background: var(--navy-900); color: rgba(255, 255, 255, .65); padding: 1.3rem 0; font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer a { text-decoration: none; }

.wa-float { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .4); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 980px) {
  .menu { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem; transform: translateY(-120%); transition: transform .25s; box-shadow: var(--shadow); }
  .menu.open { transform: none; }
  .menu a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-actions { margin-inline-start: auto; }
  .burger { display: block; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-grid, .two-col, .contact-grid, .quote-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-boxes { max-width: 340px; }
  .cards, .grade-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .preview { position: static; }
}
@media (max-width: 620px) {
  .hide-sm { display: none; }
  .brand-text small { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .cards, .grade-grid, .steps, .row { grid-template-columns: 1fr; }
  .dims { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .form-actions .btn { flex: 1 1 100%; }
}

/* Dynamic content additions */
.card-art img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; }
.card-art:has(img) { padding: 0; overflow: hidden; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* spam trap, hidden in LTR and RTL */
.form-ok { background: #e7f4ee; color: #17614d; border: 1px solid #b9dfcf; border-radius: 10px; padding: .8rem 1rem; margin: 0; font-weight: 600; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ===========================================================================
   Alternative heroes: slider / video / parallax
   =========================================================================== */
.btn-green { background: var(--green); color: #fff; box-shadow: 0 10px 30px -12px rgba(79, 174, 27, .6); }
.btn-green:hover { background: var(--green-700); }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .16); }

.hx { position: relative; overflow: hidden; color: #fff; background: var(--navy-900); min-height: min(88vh, 820px); display: grid; }
.hx-shade { position: absolute; inset: 0; pointer-events: none; }
.hx-copy { position: relative; z-index: 2; align-self: center; padding-block: 4rem 5rem; }
.hx-copy .hx-title { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; max-width: 16ch; margin: 0 0 .4em; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
html[lang="ar"] .hx-copy .hx-title { letter-spacing: 0; line-height: 1.35; }
.hx-copy .lead { color: rgba(255, 255, 255, .85); max-width: 36rem; }
.hx-copy.center { text-align: center; display: grid; justify-items: center; }
.hx-copy.center .hero-cta { justify-content: center; }
.hx-scroll { position: absolute; z-index: 3; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 14px; }
.hx-scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: hx-wheel 1.8s infinite; }
@keyframes hx-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Slider */
.hx-slider .hx-track { position: absolute; inset: 0; }
.hx-slide { position: absolute; inset: 0; display: grid; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.hx-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.hx-media { position: absolute; inset: 0; }
.hx-media > img, .hx-media > svg { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08); transition: transform 7s ease-out; }
.hx-slide.is-active .hx-media > img, .hx-slide.is-active .hx-media > svg { transform: scale(1); }
html[dir="rtl"] .hx-media > svg { transform: scale(-1.08, 1.08); }
html[dir="rtl"] .hx-slide.is-active .hx-media > svg { transform: scale(-1, 1); }
.hx-slider .hx-shade { background: linear-gradient(90deg, rgba(8, 27, 61, .92) 0%, rgba(8, 27, 61, .65) 45%, rgba(8, 27, 61, .05) 80%); }
html[dir="rtl"] .hx-slider .hx-shade { background: linear-gradient(270deg, rgba(8, 27, 61, .92) 0%, rgba(8, 27, 61, .65) 45%, rgba(8, 27, 61, .05) 80%); }
.hx-slide .hx-copy > * { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.hx-slide.is-active .hx-copy > * { opacity: 1; transform: none; }
.hx-slide.is-active .hx-copy > :nth-child(2) { transition-delay: .12s; }
.hx-slide.is-active .hx-copy > :nth-child(3) { transition-delay: .24s; }
.hx-slide.is-active .hx-copy > :nth-child(4) { transition-delay: .36s; }
.hx-arrow { position: absolute; z-index: 3; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(8, 27, 61, .35); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); }
.hx-arrow:hover { background: var(--green); border-color: var(--green); }
.hx-arrow.prev { inset-inline-start: 18px; }
.hx-arrow.next { inset-inline-end: 18px; }
html[dir="rtl"] .hx-arrow { transform: scaleX(-1); }
.hx-dots { position: absolute; z-index: 3; bottom: 34px; inset-inline-start: 50%; transform: translateX(-50%); display: flex; gap: .55rem; }
html[dir="rtl"] .hx-dots { transform: translateX(50%); }
.hx-dots button { width: 12px; height: 12px; padding: 0; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .3s, background .3s; }
.hx-dots button[aria-current] { width: 34px; background: var(--green-300); }
.hx-progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .12); }
.hx-progress span { display: block; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .hx-progress span { transform-origin: right; }

/* Video */
.hx-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-video .hx-shade { background: radial-gradient(70% 70% at 50% 50%, rgba(8, 27, 61, .45), rgba(8, 27, 61, .85)); }
.hx-pause { position: absolute; z-index: 3; bottom: 22px; inset-inline-end: 22px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(8, 27, 61, .4); color: #fff; cursor: pointer; font-size: .85rem; }
.hx-pause:hover { background: rgba(8, 27, 61, .7); }

/* Parallax */
.hx-parallax { min-height: min(100vh, 900px); }
.px-layer { position: absolute; inset: -12% -4% 0; will-change: transform; }
.px-layer > svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.px-photo { background-size: cover; background-position: center; }
.hx-parallax .hx-shade { background: linear-gradient(180deg, rgba(8, 27, 61, .25), rgba(8, 27, 61, .1) 40%, rgba(8, 27, 61, .55)); }
.px-copy { position: relative; z-index: 2; align-self: center; will-change: transform; }

/* Preview switcher (only shown with ?hero=…) */
.hx-switch { position: fixed; z-index: 70; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: .25rem; padding: .35rem; background: rgba(8, 27, 61, .92); color: #fff; border-radius: 999px; box-shadow: 0 12px 40px -10px rgba(0, 0, 0, .5); font-size: .9rem; backdrop-filter: blur(8px); max-width: calc(100% - 32px); overflow-x: auto; }
.hx-switch span { padding: 0 .6rem; opacity: .7; white-space: nowrap; }
.hx-switch a { color: #fff; text-decoration: none; padding: .45rem .9rem; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.hx-switch a:hover { background: rgba(255, 255, 255, .12); }
.hx-switch a[aria-current] { background: var(--green); }

@media (max-width: 720px) {
  .hx { min-height: 78vh; }
  .hx-arrow { display: none; }
  .hx-slider .hx-shade, html[dir="rtl"] .hx-slider .hx-shade { background: linear-gradient(180deg, rgba(8, 27, 61, .55), rgba(8, 27, 61, .9)); }
  .hx-copy { align-self: end; padding-block: 3rem 5rem; }
  .hx-switch span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-media > img, .hx-media > svg { transform: none !important; }
}
/* Scene motion: boxes riding the conveyor, road markings passing the truck */
.scene-belt { animation: hx-belt 7s linear infinite; }
@keyframes hx-belt { from { transform: translate(-230px, 0); } to { transform: translate(0, 0); } }
.scene-road { animation: hx-road 1.6s linear infinite; }
@keyframes hx-road { from { transform: translateX(0); } to { transform: translateX(-160px); } }
@media (prefers-reduced-motion: reduce) { .scene-belt, .scene-road { animation: none; } }
@media (min-width: 721px) {
  .hx-slider .hx-copy { padding-inline: 72px; } /* keep text clear of the arrows */
}
.hx-switch { top: 84px; bottom: auto; }
