/* ==========================================================================
   Al Faraina Agriculture — Design 2 · Modern Corporate (Swiss-UAE executive)
   White #FFFFFF · slate #1A202C · agricultural green #1E6B4B · gold highlights
   Plus Jakarta Sans · Cairo. Numbered sections, data tables, hairline grid.
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --tint: #F4F6F6;
  --tint-2: #EBEFEF;
  --slate: #1A202C;
  --slate-2: #2A3242;
  --ink: #1A202C;
  --muted: #586273;
  --line: #E2E6EB;
  --line-2: #C9D0D8;
  --green: #1E6B4B;
  --green-h: #175A3E;
  --green-tint: #EAF3EE;
  --gold: #87672F;
  --gold-soft: #D8C39A;
  --f: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1360px;
  --pad: clamp(20px, 3.6vw, 48px);
  --header-h: 76px;
  --radius: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html[lang="ar"] { --f: 'Cairo', 'Segoe UI', Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.6 var(--f); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] body * { letter-spacing: normal !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
section[id] { scroll-margin-top: calc(var(--header-h) + 4px); }
[hidden] { display: none !important; }
bdi { unicode-bidi: isolate; direction: ltr; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--slate); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.ic { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: middle; }
[dir="rtl"] .ic-dir { transform: scaleX(-1); }

/* ---------- type ---------- */
.h1 { font-weight: 600; font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1.03; letter-spacing: -.035em; color: var(--slate); }
.h1 .hl { color: var(--green); }
html[lang="ar"] .h1 { font-weight: 700; font-size: clamp(2.1rem, 3.9vw, 3.6rem); line-height: 1.38; }
.h2 { font-weight: 600; font-size: clamp(1.9rem, 3vw, 2.75rem); line-height: 1.12; letter-spacing: -.028em; color: var(--slate); max-width: 22ch; }
html[lang="ar"] .h2 { font-weight: 700; font-size: clamp(1.6rem, 2.5vw, 2.3rem); line-height: 1.5; }
.lead { font-size: 18px; line-height: 1.7; color: var(--ink); }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-block-end: 26px; }
.kicker-no { color: var(--green); padding-inline-end: 12px; border-inline-end: 1px solid var(--line-2); }
html[lang="ar"] .kicker { text-transform: none; font-size: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 15px; }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 13px; gap: 7px; }
.btn-sm .ic { width: 16px; height: 16px; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-h); }
.btn-outline { border-color: var(--line-2); color: var(--slate); background: var(--white); }
.btn-outline:hover { border-color: var(--slate); }
.btn-outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn-ghost { color: var(--green); padding: 0; min-height: 36px; }
.btn-ghost:hover { color: var(--green-h); text-decoration: underline; text-underline-offset: 4px; }
.btn-white { background: #fff; color: var(--slate); border-color: var(--line-2); }
.btn-white:hover { border-color: var(--slate); }
html[lang="ar"] .btn { font-weight: 600; font-size: 15px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--green); }
.link:hover { gap: 12px; }
.link .ic { width: 16px; height: 16px; transition: transform .2s; }

/* ---------- segmented controls ---------- */
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.seg > button, .seg .tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  font-weight: 600; font-size: 13.5px; color: var(--muted);
  border-inline-end: 1px solid var(--line-2); transition: background-color .2s, color .2s;
}
.seg > button:last-child, .seg .tab:last-child { border-inline-end: 0; }
.seg > button:hover, .seg .tab:hover { color: var(--slate); background: var(--tint); }
.seg > button[aria-pressed="true"], .seg .tab[aria-pressed="true"] { background: var(--slate); color: #fff; }
.tab-n { font-size: 11.5px; font-weight: 500; opacity: .65; }
.lang > button { min-height: 34px; padding: 0 11px; font-size: 12.5px; letter-spacing: .06em; }
html[lang="ar"] .seg .tab { font-size: 14.5px; }

/* ---------- topbar & header ---------- */
.topbar { background: var(--slate); color: rgba(255, 255, 255, .72); font-size: 12.5px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 36px; }
.topbar-in p { display: flex; align-items: center; gap: 14px; min-width: 0; white-space: nowrap; overflow: hidden; }
.topbar-legal { letter-spacing: .04em; }
.topbar-sep { width: 1px; height: 12px; background: rgba(255, 255, 255, .25); }
.topbar-links { display: flex; gap: 22px; flex: none; }
.topbar-links a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar-links a:hover { color: #fff; }
.topbar-links .ic { width: 15px; height: 15px; }
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-emblem { height: 52px; width: auto; }
.brand-word { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a:not(.btn) { padding: 10px 12px; font-size: 14px; font-weight: 500; color: var(--slate); border-radius: var(--radius); transition: background-color .2s, color .2s; }
.nav a:not(.btn):hover { background: var(--tint); }
.nav a[aria-current]:not(.btn) { color: var(--green); box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
html[lang="ar"] .nav a:not(.btn) { font-size: 15px; }
.nav-wa { display: none; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.header-wa { min-height: 40px; padding: 0 14px; }
.menu-btn { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: var(--radius); }
.menu-btn .ic { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 6vw, 88px); }
.hero-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end;
  padding-bottom: clamp(40px, 5vw, 64px);
}
.hero-copy { grid-column: 1 / span 8; padding-block: 8px; }
.hero-copy .h1 { max-width: 15ch; margin-block-end: 26px; }
.hero-lede { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 58ch; margin-block-end: 34px; }
html[lang="ar"] .hero-lede { font-size: 18px; line-height: 1.95; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.glance { grid-column: 9 / span 4; border: 1px solid var(--line-2); background: var(--white); border-radius: var(--radius); }
.glance-title { padding: 14px 18px; border-bottom: 1px solid var(--line-2); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); background: var(--tint); }
html[lang="ar"] .glance-title { text-transform: none; font-size: 14px; }
.glance dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.glance dl > div:last-child { border-bottom: 0; }
.glance dt { color: var(--muted); }
.glance dd { font-weight: 600; color: var(--slate); text-align: end; }

.pano { position: relative; height: clamp(260px, 34vw, 500px); overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--tint-2); }
.pano img { position: absolute; inset: -4% -6%; width: 112%; height: 108%; max-width: none; object-fit: cover; animation: pan 26s ease-in-out infinite alternate; }
@keyframes pan { from { transform: translate3d(-2.5%, 0, 0); } to { transform: translate3d(2.5%, -1.5%, 0); } }
.pano-tag { position: absolute; top: 18px; inset-inline-start: 18px; display: inline-flex; align-items: center; gap: 10px; background: var(--white); padding: 9px 14px; border-radius: var(--radius); font-size: 13px; font-weight: 600; color: var(--slate); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
.index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-2); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.index a {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center;
  padding: 20px 22px; border-inline-end: 1px solid var(--line-2); transition: background-color .2s;
}
.index a:last-child { border-inline-end: 0; }
.index a:hover { background: var(--green-tint); }
.index-no { grid-row: 1 / 3; font-size: 13px; font-weight: 700; color: var(--gold); align-self: start; padding-top: 2px; }
.index-name { font-weight: 600; font-size: 15px; color: var(--slate); }
.index-n { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.index .ic { grid-row: 1 / 3; grid-column: 3; color: var(--green); width: 18px; height: 18px; transition: transform .25s var(--ease); }
.index a:hover .ic { transform: translateX(4px); }
[dir="rtl"] .index a:hover .ic { transform: scaleX(-1) translateX(4px); }

/* ---------- numbered sections ---------- */
.sec { padding-block: clamp(72px, 8vw, 120px); border-top: 1px solid var(--line); }
.hero + .sec { border-top: 0; }
.sec-tint { background: var(--tint); }
.sec-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
.sec-label { display: flex; align-items: center; gap: 12px; align-self: start; position: sticky; top: calc(var(--header-h) + 28px); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .sec-label { text-transform: none; font-size: 14.5px; }
.sec-no { font-size: 13px; color: var(--green); padding-inline-end: 12px; border-inline-end: 1px solid var(--line-2); }
.sec-label-light { color: rgba(255, 255, 255, .7); }
.sec-label-light .sec-no { color: var(--gold-soft); border-color: rgba(255, 255, 255, .25); }
.sec-body > .h2 { margin-block-end: 40px; }
.sec-head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-block-end: 36px; }

/* company */
.company-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-block-end: 56px; }
.company-text { display: grid; gap: 18px; max-width: 66ch; color: var(--muted); }
.company-text .lead { color: var(--ink); }
html[lang="ar"] .company-text, html[lang="ar"] .company-text .lead { line-height: 2; }
.company-mark { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 28px; display: grid; place-items: center; background: var(--white); }
.company-mark img { width: min(100%, 230px); }
.line { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--slate); }
.line li { position: relative; padding: 26px 22px 0 0; display: grid; gap: 6px; align-content: start; }
[dir="rtl"] .line li { padding: 26px 0 0 22px; }
.line li::before { content: ''; position: absolute; top: -6px; inset-inline-start: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--white); border: 2px solid var(--green); }
.line-y { font-size: 22px; font-weight: 700; color: var(--green); letter-spacing: -.02em; }
.line-t { font-weight: 600; color: var(--slate); }
.line-d { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* divisions */
.divs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-inline-start: 1px solid var(--line-2); background: var(--white); }
.div { padding: 0 0 22px; border-inline-end: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; }
.div-photo { height: 170px; overflow: hidden; background: var(--tint-2); }
.div-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.div:hover .div-photo img { transform: scale(1.04); }
.div > :not(.div-photo) { margin-inline: 22px; }
.div-no { margin-top: 20px; font-size: 13px; font-weight: 700; color: var(--gold); }
.div h3 { margin-top: 6px; font-size: 19px; font-weight: 700; letter-spacing: -.015em; color: var(--slate); line-height: 1.3; }
html[lang="ar"] .div h3 { font-size: 18.5px; line-height: 1.6; }
.div-line { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--muted); min-height: 3.2em; }
.div-subs { margin-top: 16px; margin-block-end: 16px; border-top: 1px solid var(--line); }
.div-subs a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 500; transition: color .2s; }
.div-subs a:hover { color: var(--green); }
.div-subs [data-n] { color: var(--muted); font-size: 12.5px; min-width: 1.5em; text-align: end; }
.div .btn-ghost { margin-top: auto; align-self: flex-start; }

/* catalogue */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.seg-tabs { flex-wrap: wrap; }
.seg-view { margin-inline-start: auto; }
.seg-view > button { min-width: 42px; justify-content: center; padding: 0; }
.seg-view .ic { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--slate); background: var(--white); transition: all .2s; }
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green-tint); border-color: var(--green); color: var(--green-h); }
.chip-n { font-size: 11.5px; color: var(--muted); }
html[lang="ar"] .chip { font-size: 14px; }
.count { margin: 22px 0 16px; font-size: 13px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sec .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .2s, box-shadow .3s var(--ease); }
.card:hover { border-color: var(--line-2); box-shadow: 0 14px 30px -22px rgba(26, 32, 44, .35); }
.card-media { position: relative; display: grid; place-items: center; height: 220px; background: var(--tint); border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.card-media img { height: 172px; width: auto; max-width: 70%; object-fit: contain; transition: transform .45s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-flag { position: absolute; top: 10px; inset-inline-start: 10px; padding: 4px 8px; font-size: 11px; font-weight: 600; color: var(--green-h); background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius); }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card-kicker { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 600; color: var(--muted); margin-block-end: 6px; }
.card-kicker span { color: var(--gold); font-weight: 700; }
.card-title { font-size: 17px; font-weight: 700; letter-spacing: -.015em; color: var(--slate); line-height: 1.3; }
html[lang="ar"] .card-title { font-size: 17px; line-height: 1.6; }
.card-maker { font-size: 13px; color: var(--muted); margin-block-end: 12px; }
.card-spec { border-top: 1px solid var(--line); margin-block-end: 16px; }
.card-spec div { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.card-spec dt { color: var(--muted); }
.card-spec dd { font-weight: 600; color: var(--slate); }
html[lang="ar"] .card-spec div { font-size: 13px; grid-template-columns: 6.5em minmax(0, 1fr); }
.card-actions { margin-top: auto; display: grid; gap: 8px; }
.card-actions .btn { width: 100%; }
.cat-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 32px; color: var(--muted); font-size: 14px; }
.empty { grid-column: 1 / -1; padding: 48px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty-clear { margin-top: 12px; font-weight: 600; color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

/* table (list) view */
.grid.is-list { display: block; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--white); }
.trow { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.3fr) minmax(0, 1.7fr) minmax(0, .7fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.trow:last-child { border-bottom: 0; }
.trow:not(.trow-head):hover { background: var(--tint); }
.trow-head { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--tint); padding-block: 12px; }
html[lang="ar"] .trow-head { text-transform: none; font-size: 13px; }
.trow-prod { display: flex; align-items: center; gap: 14px; text-align: start; }
.trow-prod img { width: 44px; height: 52px; object-fit: contain; background: var(--tint); border-radius: var(--radius); padding: 3px; flex: none; }
.trow-prod strong { display: block; font-weight: 700; color: var(--slate); }
.trow-prod em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.trow-prod:hover strong { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.trow-cell { color: var(--slate); }

/* standards */
.criteria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); margin-block-end: 56px; }
.criteria li { padding: 26px 26px 30px 0; border-bottom: 1px solid var(--line-2); display: grid; gap: 8px; align-content: start; }
[dir="rtl"] .criteria li { padding: 26px 0 30px 26px; }
.crit-no { font-size: 13px; font-weight: 700; color: var(--green); }
.criteria h3 { font-size: 18.5px; font-weight: 700; color: var(--slate); letter-spacing: -.01em; }
.criteria p { font-size: 14.5px; line-height: 1.65; color: var(--muted); }
html[lang="ar"] .criteria p { line-height: 1.9; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--white); margin-block-end: 32px; }
.brand-table caption { text-align: start; padding: 16px 18px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); border-bottom: 1px solid var(--line-2); }
html[lang="ar"] .brand-table caption { text-transform: none; font-size: 14px; }
.brand-table th, .brand-table td { padding: 13px 18px; text-align: start; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.brand-table thead th { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--tint); }
.brand-table tbody th { font-weight: 700; color: var(--slate); }
.brand-table td { color: var(--muted); }
.brand-table tbody tr:last-child > * { border-bottom: 0; }
.brand-table tbody tr:hover { background: var(--green-tint); }
.docs-title { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-block-end: 12px; }
html[lang="ar"] .docs-title { text-transform: none; font-size: 14px; }
.docs ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.docs li { display: flex; align-items: center; gap: 10px; padding: 16px; border: 1px dashed var(--line-2); border-radius: var(--radius); font-size: 14px; font-weight: 600; color: var(--slate); background: var(--white); }
.docs .ic { color: var(--gold); width: 20px; height: 20px; }

/* partnership */
.partner { background: var(--slate); color: #fff; padding-block: clamp(72px, 8vw, 120px); }
.partner .h2 { color: #fff; margin-block-end: 44px; max-width: 24ch; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255, 255, 255, .18); margin-block-end: 44px; }
.steps li { padding: 28px 28px 0 0; display: grid; gap: 10px; align-content: start; }
[dir="rtl"] .steps li { padding: 28px 0 0 28px; }
.step-no { font-size: 40px; font-weight: 300; letter-spacing: -.04em; color: var(--gold-soft); line-height: 1; }
.steps h3 { font-size: 19px; font-weight: 700; }
.steps p { color: rgba(255, 255, 255, .7); font-size: 15px; line-height: 1.65; }
.partner-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.form { border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); background: var(--white); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; margin-block-end: 16px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--slate); }
html[lang="ar"] .field > span { font-size: 14px; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 11px 13px; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); font-size: 14px; }
.form-status.is-ok { background: var(--green-tint); color: var(--green-h); }
.form-status.is-error { background: #FBEDEA; color: #8A2C16; }
.form-status a { text-decoration: underline; }
.contact-table { border-top: 1px solid var(--line-2); margin-block-end: 20px; }
.contact-table div { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.contact-table dt { color: var(--muted); }
.contact-table dd { font-weight: 600; }
.contact-table a:hover { color: var(--green); }
.map { position: relative; height: 290px; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.map-ph {
  position: absolute; inset: 0; padding: 18px;
  background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 40px), repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 40px);
}
.map-coord { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.map-place { font-size: 16px; font-weight: 700; color: var(--slate); }
.map-pin { position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 8px rgba(30, 107, 75, .16), 0 0 0 18px rgba(30, 107, 75, .07); }
.map-actions { position: absolute; inset-inline: 18px; bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.map.is-live iframe { width: 100%; height: 100%; border: 0; }

/* footer */
.footer { background: var(--slate); color: rgba(255, 255, 255, .7); padding-top: clamp(56px, 6vw, 88px); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.nameplate { width: 150px; background: #fff; padding: 14px; border-radius: var(--radius); margin-block-end: 20px; }
.footer-brand p { max-width: 34ch; line-height: 1.7; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-block-end: 6px; }
html[lang="ar"] .footer-col h4 { text-transform: none; font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 26px; font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.footer-base::before { content: ''; position: absolute; top: 0; inset-inline: var(--pad); height: 1px; background: rgba(255, 255, 255, .12); }
.credit a { color: var(--gold-soft); }
.credit a:hover { text-decoration: underline; }

/* floating WhatsApp */
.float-wa { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 10px 24px -12px rgba(26, 32, 44, .5); transform: translateY(90px); transition: transform .35s var(--ease), background-color .2s; }
.float-wa.is-on { transform: none; }
.float-wa:hover { background: var(--green-h); }
.float-wa .ic { width: 22px; height: 22px; }
body.modal-open .float-wa, body.menu-open .float-wa { transform: translateY(90px); }

/* modal */
.modal { width: min(940px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line-2); border-radius: 6px; background: var(--white); color: var(--ink); overflow: auto; }
.modal::backdrop { background: rgba(26, 32, 44, .55); }
.modal[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: .4; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.modal-title { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -.025em; color: var(--slate); line-height: 1.15; }
html[lang="ar"] .modal-title { line-height: 1.5; }
.modal-close { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); flex: none; }
.modal-close:hover { border-color: var(--slate); }
.modal-close .ic { width: 20px; height: 20px; }
.modal-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
.modal-media { position: relative; display: grid; place-items: center; background: var(--tint); padding: 32px; min-height: 360px; border-inline-end: 1px solid var(--line); }
.modal-media img { max-height: 300px; width: auto; max-width: 85%; object-fit: contain; }
.modal-info { padding: 22px 26px; }
.spec-table th, .spec-table td { text-align: start; vertical-align: top; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table th { width: 38%; font-weight: 500; color: var(--muted); padding-inline-end: 16px; }
.spec-table td { font-weight: 600; color: var(--slate); }
.modal-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 16px 26px; border-top: 1px solid var(--line); background: var(--tint); }

/* catalogue page */
.cat-head { padding-block: 28px clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; gap: 10px; font-size: 13px; color: var(--muted); margin-block-end: clamp(28px, 4vw, 48px); }
.crumbs a:hover { color: var(--green); }
.cat-head-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.cat-title { margin-block-end: 14px; }
.cat-line { color: var(--muted); max-width: 62ch; min-height: 1.6em; }
.cat-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: var(--radius); }
.cat-stats div { padding: 18px; border-inline-end: 1px solid var(--line-2); }
.cat-stats div:last-child { border-inline-end: 0; }
.cat-stats dt { font-size: 12.5px; color: var(--muted); }
.cat-stats dd { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; color: var(--slate); }
.cat-bar { position: sticky; top: var(--header-h); z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); padding-block: 14px; }
.cat-bar .chips { margin-top: 12px; }
.search { display: flex; align-items: center; gap: 10px; flex: 1 1 240px; max-width: 360px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius); }
.search .ic { width: 18px; height: 18px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); padding: 8px 0; }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.cat-results { padding-block: 24px clamp(64px, 8vw, 104px); }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.results-head .count { margin: 0 0 16px; }
.results-note { font-size: 13px; color: var(--muted); margin-block-end: 16px; }
.cat-help { background: var(--tint); border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 88px); }
.cat-help-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.cat-help-grid p { color: var(--muted); margin-top: 12px; max-width: 52ch; }
.cat-help-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* scroll-linked entrance, visible by default */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .div, .criteria li, .line li, .steps li, .company-mark {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%;
    }
  }
}
@keyframes rise { from { opacity: .35; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav a:not(.btn) { padding-inline: 9px; }
}
@media (max-width: 1160px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--menu-top, var(--header-h)) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--pad) 40px;
    background: var(--white); border-top: 1px solid var(--line); overflow-y: auto;
    visibility: hidden; opacity: 0; transition: opacity .25s var(--ease), visibility 0s .25s;
  }
  body.menu-open .nav { visibility: visible; opacity: 1; transition-delay: 0s; }
  body.menu-open { overflow: hidden; }
  .nav a:not(.btn) { padding: 16px 0; font-size: 20px; font-weight: 600; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current]:not(.btn) { box-shadow: none; }
  .nav-wa { display: inline-flex; margin-top: 24px; min-height: 54px; }
  .header-tools { margin-inline-start: auto; }
  .divs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index a:nth-child(2) { border-inline-end: 0; }
  .index a:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .hero-copy, .glance { grid-column: 1 / -1; }
  .sec-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sec-label { position: static; }
  .company-grid, .contact-grid, .cat-head-grid, .cat-help-grid { grid-template-columns: minmax(0, 1fr); }
  .company-mark { max-width: 320px; }
  .criteria { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-help-ctas { justify-content: flex-start; }
  .trow { grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.5fr) auto; }
  .trow > :nth-child(4), .trow > :nth-child(5) { display: none; }
  .trow-head > :nth-child(4), .trow-head > :nth-child(5) { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .topbar-legal, .topbar-sep { display: none; }
  .topbar-links a:last-child { display: none; }
  .brand-emblem { height: 42px; }
  .brand-word { height: 28px; }
  .header-wa span { display: none; }
  .header-wa { width: 40px; padding: 0; }
  .header-tools { gap: 8px; }
  .header-in { gap: 12px; }
  .lang > button { padding: 0 9px; }
  .grid, .sec .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-media { height: 170px; }
  .card-media img { height: 130px; }
  .card-body { padding: 12px; }
  .card-spec div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .card-flag { font-size: 10px; }
  .card-actions .btn span { white-space: normal; }
  .divs, .line, .steps, .criteria, .docs ul, .field-row, .cat-stats { grid-template-columns: minmax(0, 1fr); }
  .cat-stats div { border-inline-end: 0; border-bottom: 1px solid var(--line-2); }
  .cat-stats div:last-child { border-bottom: 0; }
  .line { border-top: 0; border-inline-start: 2px solid var(--slate); }
  .line li { padding: 0 0 26px 22px; }
  [dir="rtl"] .line li { padding: 0 22px 26px 0; }
  .line li::before { top: 4px; inset-inline-start: -7px; }
  .steps li { padding-inline: 0; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .criteria li { padding-inline: 0; }
  .seg-tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .seg-tabs::-webkit-scrollbar { display: none; }
  .seg-tabs .tab { white-space: nowrap; }
  .toolbar { gap: 10px; }
  .search { max-width: none; order: 3; flex-basis: 100%; }
  .seg-view { margin-inline-start: 0; }
  .sec-head-row { flex-direction: column; align-items: flex-start; }
  .index { grid-template-columns: minmax(0, 1fr); }
  .index a { border-inline-end: 0; border-bottom: 1px solid var(--line-2); }
  .index a:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .modal-grid { grid-template-columns: minmax(0, 1fr); }
  .modal-media { min-height: 0; height: 240px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .modal-media img { max-height: 190px; }
  .modal-foot { justify-content: stretch; }
  .modal-foot .btn { flex: 1 1 100%; }
  .float-wa span { display: none; }
  .float-wa { padding: 0; width: 52px; justify-content: center; }
  .grid.is-list { border: 0; background: none; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
  .trow-head { display: none; }
  .trow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); gap: 8px 14px; padding: 12px; }
  .trow > :nth-child(4), .trow > :nth-child(5) { display: block; }
  .trow-prod { grid-column: 1 / -1; }
  .trow-cell { font-size: 13px; }
  .trow-cell::before { content: attr(data-k); display: block; font-size: 11.5px; color: var(--muted); }
  .trow-act { grid-column: 1 / -1; }
  .trow-act .btn { width: 100%; }
}
@media (max-width: 400px) {
  .brand-emblem { height: 38px; }
  .brand-word { height: 25px; }
  .grid, .sec .grid { grid-template-columns: minmax(0, 1fr); }
  .card-media { height: 200px; }
  .card-media img { height: 156px; }
}
