:root {
  --grey-1: #cfcfcf;
  --grey-2: #d1cfcf;
  --grey-3: #b4b4b4;
  --grey-4: #707070;
  --black: #000;
  --white: #fff;
  --blue-soft: #b4c3ea;
  --accent: #c74300;
  --accent-2: #c47e4f;
  --font: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--black); background: #eddfe4; line-height: 1.6; }
html[dir="rtl"] body { font-family: "Noto Kufi Arabic", Tahoma, Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(207,207,207,.96); backdrop-filter: blur(6px);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.nav { max-width: 1180px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 18px; }
.nav .logo img { height: 52px; width: auto; }
.nav ul.menu { list-style: none; display: flex; gap: 2px; margin-inline-start: auto; align-items: center; }
.nav ul.menu > li { position: relative; }
.nav ul.menu a, .nav .more-btn { text-decoration: none; padding: 6px 11px; font-size: 16px; transition: color .3s; background: none; border: 0; cursor: pointer; font: inherit; color: inherit; display: block; }
.nav ul.menu a:hover, .nav .more-btn:hover, .nav ul.menu a.active { color: var(--accent-2); }
.nav ul.menu a.active { font-weight: bold; }
.dropdown { display: none; position: absolute; inset-inline-end: 0; top: 100%; background: var(--grey-1); border-radius: 8px; min-width: 210px; padding: 6px 0; box-shadow: 0 6px 16px rgba(0,0,0,.15); list-style: none; }
.has-dd:hover .dropdown, .has-dd.open .dropdown { display: block; }
.dropdown a { padding: 8px 16px !important; }
.lang { display: flex; gap: 2px; border: 1px solid rgba(0,0,0,.25); border-radius: 20px; overflow: hidden; }
.lang button { border: 0; background: transparent; padding: 4px 10px; cursor: pointer; font: inherit; font-size: 13px; }
.lang button.on { background: var(--black); color: var(--grey-1); }
.btn-sub {
  background: var(--black); color: var(--grey-1);
  border: 1px solid var(--black); border-radius: 8px; padding: 4px 16px; text-decoration: none; font-size: 15px; cursor: pointer; font-family: inherit;
  transition: background .3s, color .3s; white-space: nowrap;
}
.btn-sub:hover { background: var(--grey-1); color: var(--black); }
.menu-toggle { display: none; margin-inline-start: auto; background: none; border: 0; font-size: 28px; cursor: pointer; }

/* Social bar */
.social { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 22px; }
.social a { width: 31px; height: 31px; display: grid; place-items: center; background: var(--black); color: var(--white); border-radius: 50%; transition: background .3s; }
.social a:hover { background: var(--accent); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* Common blocks */
h1.page-title { font-size: clamp(26px, 4vw, 38px); letter-spacing: .08em; text-align: center; padding: 50px 16px 10px; }
.page-sub { text-align: center; color: var(--grey-4); font-weight: bold; font-size: 20px; margin-bottom: 30px; padding: 0 16px; }
h2 { font-size: 25px; font-weight: bold; margin-bottom: 20px; }
.lead { font-size: 20px; letter-spacing: .05em; line-height: 1.8; margin-bottom: 24px; }
.body-l { font-size: 18px; letter-spacing: .04em; line-height: 1.8; margin-bottom: 22px; }
html[dir="rtl"] .lead, html[dir="rtl"] .body-l, html[dir="rtl"] .hero h1 { letter-spacing: 0; }
.section { padding: 50px 0; }
.panel { background: rgba(255,255,255,.55); border-radius: 16px; padding: 32px; }
.btn-more {
  display: inline-block; text-decoration: none; background: var(--grey-1); border: 2px solid var(--grey-2); border-radius: 50px;
  padding: 8px 26px; font-size: 16px; letter-spacing: .05em; transition: all .2s; cursor: pointer; font-family: inherit; color: var(--black);
}
.btn-more:hover { background: var(--accent); border-color: var(--accent); color: var(--white); border-radius: 20px; }
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.split .photo { background: center/cover no-repeat; min-height: 420px; }
.split .text { padding: 50px 48px; }
.grad-blue { background: linear-gradient(232deg, var(--grey-2) 38%, var(--blue-soft) 100%); }
.grad-warm {
  background:
    radial-gradient(circle at 20% 92%, rgba(239,165,115,.76) 0%, rgba(239,165,115,0) 35%),
    radial-gradient(circle at 53% 86%, #098be1 0%, rgba(9,139,225,0) 40%),
    radial-gradient(circle at 18% 12%, var(--blue-soft) 0%, rgba(180,195,234,0) 70%),
    radial-gradient(circle at 93% 15%, var(--blue-soft) 0%, rgba(180,195,234,0) 70%),
    var(--grey-1);
}
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.15); border-radius: 50px; padding: 6px 16px; }
.loading { text-align: center; color: var(--grey-4); padding: 40px; }
.notice { padding: 12px 16px; border-radius: 8px; margin-top: 14px; }
.notice.ok { background: #e4f4e4; } .notice.err { background: #fbe3e3; }

/* Hero */
.hero {
  position: relative; min-height: 620px; display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 140px 16px 0; background: url("../images/hero.jpg") center/cover no-repeat; overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 300px; background: rgba(180,180,180,.9); clip-path: ellipse(75% 100% at 50% 0%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 275px; background: linear-gradient(0deg, rgba(0,0,0,.66), rgba(180,195,234,0)); }
.hero h1, .hero p { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: .08em; line-height: 1.5; }
.hero p { margin-top: 12px; color: var(--grey-4); font-weight: bold; font-size: clamp(18px, 2.4vw, 25px); }

/* Home: vision */
.vision { display: grid; grid-template-columns: 392fr 588fr; background: linear-gradient(0deg, rgba(180,180,180,0), var(--blue-soft)); }
.vision .text { padding: 57px 40px 60px 56px; padding-inline: 56px 40px; position: relative; }
.vision .text::before { content: ""; position: absolute; inset-inline-start: 28px; top: 150px; bottom: 60px; width: 1px; background: var(--grey-3); }
.vision .text::after { content: ""; position: absolute; inset-inline-start: 27px; top: 150px; height: 102px; width: 3px; background: var(--grey-1); }
.vision .photo { background: url("../images/vision.jpg") center/cover no-repeat; min-height: 600px; }
.services { text-align: center; padding: 37px 16px 46px; }
.services .lead { max-width: 832px; margin: 0 auto 12px; }
.services .chips { justify-content: center; margin-top: 24px; }

/* Home: why */
.why { position: relative; background: url("../images/why-bg.jpg") center/cover no-repeat; }
.why::before { content: ""; position: absolute; inset: 0; background: rgba(207,207,207,.53); }
.why .wrap { position: relative; max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 539fr 441fr; background: rgba(207,207,207,.5); }
.why .photo { background: url("../images/why-side.jpg") center/cover no-repeat; min-height: 500px; }
.why .card-col { padding: 43px 0 40px; }
.card { margin-inline-start: -63px; background: rgba(207,207,207,.65); border: 1px solid var(--black); border-radius: 16px; padding: 61px 40px 57px 63px; padding-inline: 63px 40px; position: relative; }
.card::before { content: ""; position: absolute; inset-inline-start: 30px; top: 61px; height: 116px; width: 3px; background: var(--grey-1); }
.card p { font-size: 18px; line-height: 1.8; margin-bottom: 20px; }

/* Products */
.shop { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding: 20px 16px 60px; max-width: 1180px; margin: 0 auto; }
.filters { background: rgba(255,255,255,.5); border-radius: 12px; padding: 18px; align-self: start; position: sticky; top: 90px; }
.filters h3 { font-size: 15px; margin: 14px 0 8px; }
.filters h3:first-child { margin-top: 0; }
.filters label { display: block; font-size: 15px; cursor: pointer; padding: 2px 0; }
.filters input[type=search], .filters select { width: 100%; padding: 8px; border: 1px solid var(--grey-3); border-radius: 6px; font: inherit; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.pcard { background: var(--white); border-radius: 12px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.pcard img { aspect-ratio: 1; object-fit: contain; background: #fff; padding: 10px; }
.pcard .info { padding: 12px 14px 16px; border-top: 1px solid #eee; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pcard .name { font-size: 15px; font-weight: bold; }
.pcard .price { color: var(--accent); font-weight: bold; margin-top: auto; }
.pdetail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 40px 16px 60px; max-width: 1100px; margin: 0 auto; }
.pdetail .img { background: #fff; border-radius: 12px; padding: 20px; }
.pdetail h1 { font-size: 28px; margin-bottom: 10px; }
.pdetail .price { font-size: 24px; color: var(--accent); font-weight: bold; margin: 10px 0 20px; }
.rich p, .rich li { margin-bottom: 8px; line-height: 1.7; }
.rich ul { padding-inline-start: 22px; }
.crumbs { max-width: 1100px; margin: 0 auto; padding: 20px 16px 0; font-size: 14px; }

/* Careers / jobs */
.jobs { display: grid; gap: 14px; }
.job { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(255,255,255,.6); border-radius: 12px; padding: 18px 22px; flex-wrap: wrap; }
.job h3 { font-size: 18px; letter-spacing: .04em; }
.job small { color: var(--grey-4); display: block; }

/* Forms */
form.std { display: grid; gap: 12px; }
form.std .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
form.std input, form.std textarea, form.std select { width: 100%; padding: 11px; border: 1px solid var(--grey-3); border-radius: 8px; font: inherit; background: #fff; }
form.std textarea { min-height: 130px; resize: vertical; }
form.std label.f { font-size: 14px; color: var(--grey-4); }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; }
.post-card img { aspect-ratio: 16/10; object-fit: cover; }
.post-card .info { padding: 16px 18px 20px; }
.post-card h3 { font-size: 18px; margin: 4px 0 8px; }
.post-card .meta, .meta { font-size: 13px; color: var(--grey-4); }
article.post { max-width: 820px; margin: 0 auto; padding: 40px 16px 60px; }
article.post h1 { font-size: 32px; margin-bottom: 10px; }
article.post .cover { border-radius: 12px; margin: 20px 0; }

/* FAQ */
details.faq { background: rgba(255,255,255,.6); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
details.faq summary { cursor: pointer; font-weight: bold; font-size: 18px; }
details.faq .rich { margin-top: 12px; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.timeline .item { background: rgba(255,255,255,.6); border-radius: 12px; padding: 24px; border-top: 4px solid var(--accent); }
.timeline .year { font-size: 34px; font-weight: bold; color: var(--accent); }

/* Footer */
footer.site { background: var(--grey-2); }
.foot { max-width: 980px; margin: 0 auto; padding: 32px 16px 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; font-size: 17px; }
.foot h3 { font-size: 18px; margin-bottom: 14px; }
.foot ul { list-style: none; line-height: 1.9; }
.foot a { text-decoration: underline; }
.foot a:hover { color: var(--grey-4); }
.contact-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.contact-row svg { width: 22px; height: 22px; fill: #070d3a; flex: none; }
.payments { display: flex; justify-content: center; gap: 8px; margin-top: 16px; font-size: 12px; font-weight: bold; flex-wrap: wrap; }
.payments span { border: 1px solid rgba(0,0,0,.2); border-radius: 4px; padding: 3px 8px; background: var(--white); }
.copyright { text-align: center; font-size: 13px; color: var(--grey-4); padding: 0 16px 20px; }

dialog { border: 0; border-radius: 12px; padding: 32px; max-width: 420px; width: calc(100% - 32px); margin: auto; }
dialog::backdrop { background: rgba(0,0,0,.5); }
dialog h2 { margin-bottom: 12px; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { flex-wrap: wrap; }
  .nav ul.menu { display: none; flex-direction: column; align-items: stretch; width: 100%; margin: 0; }
  .nav ul.menu.open { display: flex; }
  .dropdown { position: static; box-shadow: none; background: transparent; display: block; padding-inline-start: 14px; }
  .social { right: 8px; gap: 12px; }
  .vision, .why .wrap, .split, .pdetail, .shop { grid-template-columns: 1fr; }
  .filters { position: static; }
  .vision .photo { min-height: 380px; }
  .vision .text, .split .text { padding: 40px 24px; padding-inline: 48px 24px; }
  .why .photo, .split .photo { min-height: 300px; }
  .card { margin: 0 16px; padding: 40px 22px; padding-inline: 44px 22px; }
  .foot { grid-template-columns: 1fr; }
  form.std .two { grid-template-columns: 1fr; }
  .hero { min-height: 480px; padding-top: 100px; }
  .hero::before { height: 230px; }
}
