/* The company website (docs/13): the approved merged proposal's look — field and factory colours,
   the specification-sheet layout. Start/end (logical) sides only: Arabic lays out right to left,
   English left to right, from the same rules. Phones first; nothing wider than the screen. */
:root {
  color-scheme: light;
  --ground: #f3ede2; --paper: #fbf8f2; --ink: #2a2118; --soft: #5a4e40; --muted: #6e6253; --line: #e0d6c6; --row: #ece4d6;
  --green: #2f5d3a; --green-deep: #1f4128; --shell: #b8862f; --shell-ink: #8a5a28; --cream: #f1ece2; --tag: #e8efe6; --gold: #e2c27a;
  --display: "Reem Kufi", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --body: "IBM Plex Sans Arabic", Tahoma, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.75; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--shell); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
.icon { flex-shrink: 0; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 8px; color: var(--paper); }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 900px) { .wrap { padding-inline: 48px; } }
.kicker { font-size: 14px; font-weight: 600; color: var(--shell-ink); letter-spacing: .03em; }
.hint { font-size: 14px; color: var(--muted); }
.first { padding-top: 40px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 12px; font-weight: 600; font-size: 16px; border: 0; cursor: pointer; font-family: inherit; text-align: center; }
.btn-green { background: var(--green); color: #fff; } .btn-green:hover { background: var(--green-deep); color: #fff; }
.btn-cream { background: var(--cream); color: var(--green); font-weight: 700; }
.btn-ink { background: var(--ink); color: var(--paper); } .btn-ink:hover { background: #000; color: var(--paper); }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); }

/* top bar and header */
.topbar { background: var(--ink); color: #e9dfcf; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 8px; }
.topbar .info { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; min-width: 0; }
.topbar span { display: inline-flex; gap: 8px; align-items: center; }
.topbar .icon { color: var(--shell); }
.topbar a { color: #e9dfcf; font-weight: 600; }
header.site { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
header.site .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 12px; position: relative; }
.brand { display: flex; gap: 12px; align-items: center; color: var(--ink); min-width: 0; }
.brand .logo { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.brand b { display: block; font-family: var(--display); font-size: 22px; line-height: 1.2; }
.brand small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
nav.main { display: flex; gap: 24px; font-weight: 500; }
nav.main a, .menu nav a { color: var(--ink); }
nav.main a[aria-current], .menu nav a[aria-current] { color: var(--green); font-weight: 600; }
.actions { display: flex; gap: 10px; align-items: center; }
.menu { display: none; }
.menu summary { list-style: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; top: 100%; inset-inline: 0; display: flex; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
.menu nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 1080px) {
  nav.main, .topbar .hours { display: none; }
  .menu { display: block; }
}
@media (max-width: 640px) { .portal, .brand small, .topbar .addr { display: none; } }

/* hero and the three doors */
.hero { display: grid; gap: 32px; padding-block: 36px 28px; }
@media (min-width: 900px) { .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; padding-block: 64px 40px; } }
.hero-text { display: grid; gap: 18px; }
.hero h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.3; }
.hero p { font-size: clamp(16px, 1.6vw, 19px); color: var(--soft); max-width: 58ch; line-height: 1.85; }
.hero-img { width: 100%; height: clamp(220px, 34vw, 440px); border-radius: 28px; object-fit: cover; }
.hero-img.mark { background: var(--green-deep); display: flex; align-items: center; justify-content: center; }
.hero-img.mark img { width: min(60%, 260px); height: auto; }
.doors { display: grid; gap: 14px; }
@media (min-width: 760px) { .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.door { border-radius: 18px; padding: 20px 22px; display: grid; gap: 6px; border: 1px solid transparent; }
.door small { font-size: 14px; }
.door b { font-family: var(--display); font-size: clamp(19px, 1.8vw, 23px); font-weight: 600; }
.door.buy { background: var(--green); color: #fff; } .door.buy small { color: #cfe0cf; } .door.buy:hover { background: var(--green-deep); color: #fff; }
.door.sell { background: var(--paper); border-color: var(--line); color: var(--ink); } .door.sell small { color: var(--muted); }
.door.exp { border-color: var(--ink); color: var(--ink); } .door.exp small { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .door { transition: transform .15s, background .15s; } .door:hover { transform: translateY(-2px); } }

/* figures */
.facts { margin-top: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 24px 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts b { display: block; font-family: var(--display); font-size: clamp(26px, 3vw, 38px); color: var(--green); }
.facts span { color: var(--muted); font-size: 15px; }

/* sections */
section.block { padding-block: 64px 8px; display: grid; gap: 22px; }
section.block.first { padding-top: 40px; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.head h1, .head h2 { font-size: clamp(28px, 3.4vw, 42px); margin-top: 6px; }
.underline { font-weight: 600; border-bottom: 2px solid var(--shell); padding-bottom: 4px; }

/* products: a table on wide screens, cards on phones */
.table-box { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table-box table { min-width: 720px; }
th { text-align: start; background: #efe7d9; color: var(--muted); font-size: 14px; font-weight: 600; padding: 14px 20px; }
td { padding: 14px 20px; border-top: 1px solid var(--row); vertical-align: middle; }
.crop { display: flex; gap: 14px; align-items: center; }
.crop img, .crop .thumb, .cards .top img, .cards .top .thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.thumb { display: block; background: #e3d7c3 repeating-linear-gradient(135deg, rgba(120,90,50,.07) 0 12px, transparent 12px 24px); }
.crop b { font-family: var(--display); font-size: 20px; font-weight: 600; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { background: var(--tag); color: var(--green); border-radius: 99px; padding: 2px 10px; font-size: 13px; }
td a { font-weight: 600; white-space: nowrap; }
.cards { display: none; }
@media (max-width: 760px) {
  .table-box { display: none; }
  .cards { display: grid; gap: 12px; }
  .cards article { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
  .cards .top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
  .cards .top b { font-family: var(--display); font-size: 20px; flex: 1 1 0; min-width: 0; }
  .cards dl { margin: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 10px; font-size: 14px; }
  .cards dt { color: var(--muted); } .cards dd { margin: 0; }
}
.product-note { padding-top: 32px; display: grid; gap: 8px; max-width: 75ch; }
.product-note h2 { font-size: 24px; }

/* suppliers */
.suppliers { margin-top: 64px; background: var(--green); color: var(--cream); border-radius: 28px; padding: clamp(22px, 4.5vw, 60px); display: grid; gap: 32px; }
.first + .suppliers { margin-top: 0; }
.suppliers .top { display: grid; gap: 28px; }
@media (min-width: 900px) { .suppliers .top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; } }
.suppliers .kicker { color: var(--gold); }
.suppliers h2 { font-size: clamp(28px, 3.8vw, 46px); line-height: 1.3; margin-top: 6px; }
.suppliers h3 { color: var(--gold); font-size: 20px; padding-top: 8px; }
.suppliers p { color: #d6dfd2; font-size: 18px; line-height: 1.8; }
.suppliers .txt { display: grid; gap: 18px; justify-items: start; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.07); border-radius: 16px; padding: 14px 18px; }
.points .icon { color: var(--gold); width: 24px; height: 24px; }
.points b { display: block; font-size: 17px; }
.points small { color: #c9d4c4; font-size: 15px; }
.places { background: rgba(0,0,0,.14); border-radius: 18px; padding: 8px 20px 12px; overflow-x: auto; }
.places table { min-width: 560px; }
.places th { background: none; color: var(--gold); border-bottom: 1px solid rgba(255,255,255,.2); padding: 12px 10px; }
.places td { border-top: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding: 14px 10px; color: var(--cream); }
.places tr:last-child td { border-bottom: 0; }
.places a { color: var(--gold); }

/* the factory */
.factory { display: grid; gap: 32px; padding-block: 64px 8px; }
@media (min-width: 900px) { .factory { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; } }
.factory-img { width: 100%; height: 100%; min-height: clamp(220px, 32vw, 440px); border-radius: 24px; object-fit: cover; }
.factory .txt { display: grid; gap: 16px; align-content: center; }
.factory h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.35; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps .n { font-family: var(--display); font-size: 24px; color: var(--shell); min-width: 24px; line-height: 1.4; }
.steps b { display: block; font-size: 18px; }
.steps small { color: var(--soft); font-size: 15px; }

/* the last band */
.cta { margin-top: 64px; background: var(--shell); border-radius: 24px; padding: clamp(22px, 3.5vw, 44px) clamp(20px, 4vw, 56px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta h2 { font-size: clamp(24px, 2.8vw, 34px); color: var(--ink); }
.cta p { color: #3d2a14; margin-top: 6px; }
.cta .acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* pages of text */
.prose { max-width: 78ch; display: grid; gap: 14px; padding-bottom: 24px; }
.prose h1 { font-size: clamp(30px, 4vw, 44px); }
.prose h2 { font-size: 24px; margin-top: 16px; }
.prose h3 { font-size: 20px; margin-top: 8px; }
.prose .lead { font-size: 19px; color: var(--soft); }
.prose ul, .prose ol { margin: 0; padding-inline-start: 24px; }
.prose p, .prose li { overflow-wrap: anywhere; }

/* contact */
.contact { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 56px; } }
.contact .txt { display: grid; gap: 14px; align-content: start; }
.contact h1 { font-size: clamp(30px, 4vw, 44px); }
.contact h2 { font-size: 20px; margin-top: 8px; }
.reach { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.reach li, .reach a { display: flex; gap: 10px; align-items: center; color: var(--ink); overflow-wrap: anywhere; }
.form-box { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 32px); }
form { display: grid; gap: 16px; }
form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
input, select, textarea { width: 100%; font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 46px; }
textarea { resize: vertical; }
.two { display: grid; gap: 16px; }
@media (min-width: 640px) { .two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
form .check input { width: 20px; min-height: 20px; height: 20px; margin-top: 4px; flex-shrink: 0; }
form .btn { justify-self: start; min-width: 160px; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.errors { background: #fbeaea; border: 1px solid #e7b8b8; color: #7a1f1f; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.errors ul { margin: 0; padding-inline-start: 20px; }
.sent { display: flex; gap: 14px; align-items: flex-start; color: var(--green-deep); }
.sent .icon { width: 28px; height: 28px; }
.sent b { font-family: var(--display); font-size: 22px; }

/* footer and the phones' call bar */
footer.site { margin-top: 72px; background: var(--ink); color: #d9cdb9; }
footer.site .wrap { padding-block: 40px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
footer.site .about { display: grid; gap: 8px; max-width: 46ch; }
footer.site b { font-family: var(--display); font-size: 22px; color: var(--paper); }
footer.site .ids { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
footer.site nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; align-content: start; }
footer.site a { color: #d9cdb9; }
footer.site .reach a { color: #d9cdb9; }
footer.site .copy { padding-block: 16px 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; display: block; }
.callbar { display: none; }
@media (max-width: 640px) {
  .callbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; position: fixed; bottom: 0; inset-inline: 0; z-index: 30; background: var(--paper); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .callbar a { min-height: 48px; border-radius: 12px; font-weight: 600; display: flex; gap: 8px; align-items: center; justify-content: center; }
  .callbar .call { background: var(--ink); color: var(--paper); }
  .callbar .wa { background: var(--green); color: #fff; }
  body { padding-bottom: 76px; }
}
