/* Al Faraina, Site 1 «الكتالوج» The Catalogue.
   A working catalogue, set like a good printed one: real pack shots on quiet grey tiles,
   hairline rules, one family (Rubik) in both scripts, ink for text, the logo's teal as the only accent.
   No icon badges, no gradients, no glow. Colour comes from the products themselves. */

:root {
  --ground: #F2F3F0;
  --tile: #E5E8E3;
  --tile-2: #DADFD8;
  --paper: #FBFBF9;
  --ink: #141917;
  --ink-2: #565E59;
  --rule: #D4D8D2;
  --teal: #0B6B5F;
  --teal-d: #08564C;
  --wa: #25D366;
  --wrap: 1360px;
  --gut: clamp(16px, 3.6vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: 'Rubik', 'Segoe UI', Tahoma, sans-serif; font-size: 1rem; line-height: 1.85; -webkit-font-smoothing: antialiased; }
html[lang="en"] body { line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { letter-spacing: normal; text-wrap: balance; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a, button { touch-action: manipulation; }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.ic { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: .5rem .9rem; }
.skip:focus { top: 12px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top-in { max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gut); height: 72px; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img:first-child { width: 44px; height: auto; }
.brand img:last-child { width: 150px; height: auto; }
.top-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); margin-inline-start: auto; }
.top-nav a, .lang { font-size: .95rem; font-weight: 500; color: var(--ink-2); padding-block: 6px; transition: color .2s var(--ease); }
.lang { border-inline-start: 1px solid var(--rule); padding-inline-start: clamp(14px, 2.2vw, 30px); }
.wa { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding-inline: 14px; background: var(--ink); color: #fff; font-weight: 500; font-size: .95rem; border-radius: 6px; transition: background-color .2s var(--ease); }
.wa .ic { color: var(--wa); width: 20px; height: 20px; }
.wa span { font-variant-numeric: tabular-nums; }
.wa:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) { .top-nav a:hover, .lang:hover { color: var(--ink); } .wa:hover { background: #2A302D; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding-inline: 22px; border-radius: 6px; background: var(--teal); color: #fff; font-weight: 500; transition: background-color .2s var(--ease); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--line .ic { color: #1DA851; width: 22px; height: 22px; }
.btn:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--teal-d); } .btn--line:hover { background: var(--ink); color: #fff; } }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 84px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 4.2rem); font-weight: 700; line-height: 1.25; }
html[lang="en"] .hero h1 { line-height: 1.06; letter-spacing: -.025em; }
.hero-copy p { margin-top: 18px; color: var(--ink-2); font-size: 1.08rem; max-width: 46ch; }
.hero-act { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shelf li a { display: grid; grid-template-rows: auto auto; gap: 8px; }
.shelf .t { position: relative; display: block; aspect-ratio: 1 / 1.08; background: var(--tile); border-radius: 6px; overflow: hidden; }
.shelf img { position: absolute; left: 50%; bottom: 9%; height: calc(var(--k, .8) * 80%); width: auto; max-width: 84%; object-fit: contain; transform: translateX(-50%); transition: transform .35s var(--ease); }
.shelf .n { font-size: .82rem; color: var(--ink-2); line-height: 1.4; }
.shelf .n b { display: block; color: var(--ink); font-weight: 500; font-size: .9rem; }
@media (hover: hover) and (pointer: fine) { .shelf a:hover img { transform: translate(-50%, -4px); } }
.facts { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--ink); }
.facts div { padding: 16px 18px; border-inline-start: 1px solid var(--rule); }
.facts div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.facts dt { font-size: .8rem; color: var(--ink-2); }
.facts dd { font-weight: 500; font-size: 1.02rem; }

/* ---------- catalogue ---------- */
.catalogue { padding-block: clamp(64px, 8vw, 110px); }
.cat-grid { display: grid; grid-template-columns: minmax(220px, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.side { position: sticky; top: 92px; display: grid; gap: 18px; }
.side h2 { font-size: 1.9rem; font-weight: 700; line-height: 1.2; }
.find input { width: 100%; height: 46px; padding-inline: 14px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); font-size: 16px; color: var(--ink); }
.find input::placeholder { color: #5F6662; }
.find input:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: transparent; }
.side-nav { display: grid; border-top: 1px solid var(--ink); }
.side-nav a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; color: var(--ink-2); transition: color .2s var(--ease); }
.side-nav a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.side-nav a[aria-current="true"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); align-self: center; }
@media (hover: hover) and (pointer: fine) { .side-nav a:hover { color: var(--ink); } }
.cat-body { display: grid; gap: clamp(48px, 6vw, 80px); }
.range { scroll-margin-top: 90px; }
.range-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: end; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.range-head h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 700; line-height: 1.3; }
.range-head p { grid-column: 1; color: var(--ink-2); max-width: 64ch; font-size: .98rem; }
.range-head .ask { grid-column: 2; grid-row: 1 / span 2; align-self: end; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--teal); white-space: nowrap; border-bottom: 1px solid currentColor; }
.range-head .ask .ic { color: #1DA851; width: 18px; height: 18px; }
.subs { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 0 18px; font-size: .88rem; color: var(--ink-2); }
.subs li { display: flex; align-items: center; gap: 18px; }
.subs li + li::before { content: ""; width: 1px; height: 12px; background: var(--rule); }
.items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 14px; }
.item a { display: grid; gap: 10px; }
.item .t { position: relative; display: block; aspect-ratio: 1 / 1.1; background: var(--tile); border-radius: 6px; overflow: hidden; transition: background-color .25s var(--ease); }
.item img { position: absolute; left: 50%; bottom: 9%; height: calc(var(--k, .82) * 80%); width: auto; max-width: 82%; object-fit: contain; transform: translateX(-50%); transition: transform .35s var(--ease); }
.item .meta { display: grid; gap: 1px; }
.item .meta b { font-weight: 500; font-size: .98rem; line-height: 1.4; }
.item .meta span { font-size: .84rem; color: var(--ink-2); line-height: 1.5; }
.item .meta .npk { font-variant-numeric: tabular-nums; color: var(--ink); direction: ltr; text-align: start; }
html[dir="rtl"] .item .meta .npk { text-align: right; }
.item .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .84rem; font-weight: 500; color: var(--teal); }
.item .go .ic { width: 16px; height: 16px; color: #1DA851; }
@media (hover: hover) and (pointer: fine) { .item a:hover .t { background: var(--tile-2); } .item a:hover img { transform: translate(-50%, -4px); } }
.item a:active .t { background: var(--tile-2); }
.none { grid-column: 1 / -1; padding: 22px; border: 1px dashed var(--rule); border-radius: 6px; color: var(--ink-2); font-size: .95rem; }
.text-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.text-items li { border-bottom: 1px solid var(--rule); }
.text-items a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 14px 16px 0; font-weight: 500; }
html[dir="rtl"] .text-items a { padding: 16px 0 16px 14px; }
.text-items .ic { width: 18px; height: 18px; color: #1DA851; }
.empty-find { padding: 40px 0; color: var(--ink-2); }

/* ---------- company ---------- */
.company { background: var(--paper); border-block: 1px solid var(--rule); padding-block: clamp(64px, 8vw, 110px); }
.co-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); }
.h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); font-weight: 700; line-height: 1.3; }
html[lang="en"] .h2 { line-height: 1.1; letter-spacing: -.02em; }
.body { margin-top: 16px; color: var(--ink-2); max-width: 58ch; font-size: 1.05rem; }
.quote { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 500; line-height: 1.7; max-width: 44ch; }
html[lang="en"] .quote { line-height: 1.45; }
.spec { border-top: 1px solid var(--ink); }
.spec div, .lines div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.spec dt, .lines dt { color: var(--ink-2); font-size: .9rem; }
.spec dd { font-weight: 500; }
.brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 14px; font-weight: 400; }
.brands span { direction: ltr; unicode-bidi: isolate; }

/* ---------- contact ---------- */
.contact { padding-block: clamp(64px, 8vw, 110px); }
.ct-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.wa-big { margin-top: 26px; display: inline-flex; align-items: center; gap: 16px; padding: 14px 22px 14px 16px; border-radius: 6px; background: var(--ink); color: #fff; transition: background-color .2s var(--ease); }
html[dir="rtl"] .wa-big { padding: 14px 16px 14px 22px; }
.wa-big .ic { width: 40px; height: 40px; color: var(--wa); }
.wa-big small { display: block; color: #B9C0BC; font-size: .82rem; }
.wa-big b { font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.wa-big:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) { .wa-big:hover { background: #2A302D; } }
.lines { border-top: 1px solid var(--ink); }
.lines dd a { border-bottom: 1px solid var(--rule); transition: border-color .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .lines dd a:hover { border-color: var(--ink); } }
.lines [data-phones] { display: grid; gap: 6px; }
.lines .phone { display: flex; justify-content: space-between; gap: 16px; border: 0 !important; }
.lines .phone .ic { display: none; }
.lines .phone span { display: flex; justify-content: space-between; gap: 16px; width: 100%; }
.lines .phone b { font-weight: 500; font-variant-numeric: tabular-nums; }
.lines .phone small { color: var(--ink-2); font-size: .88rem; }
.ig { display: inline-flex; align-items: center; gap: 8px; }
.ig .ic { width: 20px; height: 20px; color: #C13584; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); background: var(--paper); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 28px 96px; font-size: .85rem; color: var(--ink-2); }
.foot-in img { width: 72px; height: auto; }
.foot-in a { border-bottom: 1px solid var(--rule); }

.wa-float { position: fixed; z-index: 45; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px rgba(20, 25, 23, .5); }
.wa-float .ic { width: 30px; height: 30px; }
.wa-float:active { transform: scale(.95); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .co-grid, .ct-grid { grid-template-columns: minmax(0, 1fr); }
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; top: 72px; z-index: 5; background: var(--ground); padding-block: 10px; gap: 10px; }
  .side h2 { display: none; }
  .side-nav { display: flex; overflow-x: auto; gap: 8px; border: 0; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a { flex: none; border: 1px solid var(--rule); border-radius: 6px; padding: 7px 12px; background: var(--paper); }
  .side-nav a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
  .side-nav a[aria-current="true"]::after { display: none; }
  .items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .facts div:nth-child(-n + 2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 720px) {
  .top-in { height: 64px; gap: 12px; }
  .brand img:first-child { width: 36px; } .brand img:last-child { width: 112px; }
  .top-nav a { display: none; }
  .lang { border: 0; padding-inline-start: 0; }
  .wa span { display: none; }
  .wa { width: 42px; justify-content: center; padding: 0; }
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .shelf .n { display: none; }
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .text-items { grid-template-columns: minmax(0, 1fr); }
  .range-head { grid-template-columns: minmax(0, 1fr); }
  .range-head .ask { grid-column: 1; grid-row: auto; justify-self: start; }
  .spec div, .lines div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .wa-float { width: 52px; height: 52px; }
}
