/* Smart Pallet Solution — one-page site
   mobile-first, RTL, no external dependencies */

:root {
  --ink: #10221d;
  --ink-soft: #3f544d;
  --brand: #0b4d3c;
  --brand-2: #12795f;
  --brand-tint: #eaf3ef;
  --sand: #f7f4ef;
  --line: #e2ddd3;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 34, 29, .06), 0 8px 24px rgba(16, 34, 29, .06);
  --wrap: 1120px;
  --font: "Noto Sans Arabic", "Cairo", "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  font-size: 17px;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: var(--brand-tint);
  display: grid;
  place-items: center;
}

.brand-mark svg { width: 24px; height: 24px; fill: var(--brand); }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }

.brand-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .2px;
  direction: ltr;
  text-align: right;
}

.brand-sub { font-size: 12px; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: 18px; }

.nav a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.nav a:hover { color: var(--brand); }

.nav a.nav-cta {
  color: var(--white);
  background: var(--brand);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.nav a:not(.nav-cta) { display: none; }

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(120% 90% at 100% 0%, #eef6f2 0%, rgba(238, 246, 242, 0) 60%),
    linear-gradient(180deg, #fbfaf7 0%, #ffffff 100%);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--brand-2);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 7vw, 52px);
  line-height: 1.3;
  letter-spacing: -.2px;
  font-weight: 800;
}

.hero-lede {
  margin: 0 0 28px;
  max-width: 46ch;
  font-size: 17px;
  color: var(--ink-soft);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: #093f31; }

.btn-ghost { color: var(--brand); border-color: #cfe0d8; background: var(--white); }
.btn-ghost:hover { border-color: var(--brand-2); }

.btn-outline { color: var(--ink); border-color: var(--line); background: var(--white); }
.btn-outline:hover { border-color: var(--brand-2); color: var(--brand); }

.wa-icon { width: 20px; height: 20px; fill: currentColor; flex: 0 0 20px; }

.num { unicode-bidi: isolate; direction: ltr; display: inline-block; }

section[id] { scroll-margin-top: 76px; }

@media (max-width: 359px) {
  .brand-name { font-size: 13px; }
  .brand-sub { font-size: 11px; }
}

/* ---------- sections ---------- */

.section { padding: 52px 0; }

.section-alt { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: 28px; }

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 4.4vw, 30px);
  font-weight: 800;
}

.section-head p { margin: 0; color: var(--ink-soft); }

/* ---------- product cards ---------- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card-media { background: #eef0ee; }

.card-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body { padding: 18px 18px 20px; }

.card-body h3 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
}

.specs { margin: 0 0 16px; }

.specs > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

.specs > div:last-child { border-bottom: 0; }

.specs dt { color: var(--ink-soft); font-size: 15px; margin: 0; }

.specs dd { margin: 0; font-weight: 700; font-size: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-tint);
  border-radius: 999px;
  padding: 5px 12px;
}

.fineprint {
  margin: 22px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

/* ---------- why us ---------- */

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 26px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.stat strong {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.2;
}

.stat span { color: var(--ink-soft); font-size: 14.5px; }

.points { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }

.points li {
  position: relative;
  padding-inline-start: 26px;
  color: var(--ink-soft);
}

.points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--brand-2);
}

.points strong { color: var(--ink); }

/* ---------- contact ---------- */

.contact-card {
  background: linear-gradient(180deg, #0d5947 0%, #0a4636 100%);
  color: var(--white);
  border-radius: 20px;
  padding: 30px 22px;
  text-align: center;
}

.contact-card h2 { margin: 0 0 10px; font-size: clamp(22px, 4.4vw, 30px); font-weight: 800; }

.contact-card p { margin: 0 0 22px; color: rgba(255, 255, 255, .82); }

.contact-actions { display: flex; flex-direction: column; gap: 12px; }

.contact-card .btn-primary { background: #ffffff; color: var(--brand); }
.contact-card .btn-primary:hover { background: #f1f6f3; }

.contact-card .btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .38);
}

.contact-card .btn-outline:hover { border-color: #ffffff; color: #ffffff; }

.contact-note {
  margin: 18px 0 0 !important;
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  background: var(--white);
}

.footer-brand {
  margin: 0 0 6px;
  font-weight: 800;
  direction: ltr;
  text-align: right;
}

.footer-line { margin: 0; font-size: 13.5px; color: var(--ink-soft); }

/* ---------- tablet ---------- */

@media (min-width: 640px) {
  .nav a:not(.nav-cta) { display: inline; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .contact-actions { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .contact-card { padding: 44px 40px; }
  .card-media img { height: 240px; }
}

/* ---------- desktop ---------- */

@media (min-width: 1000px) {
  body { font-size: 18px; }
  .hero { padding: 76px 0 64px; }
  .section { padding: 72px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .card-media img { height: 230px; }
  .contact-card { padding: 56px 48px; }
}

.catalog-cta {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--brand-tint);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.catalog-cta p { margin: 0; color: var(--ink); }
