/* Smart — brand stylesheet (datasheet / industrial-catalog concept) */

:root {
  --brand: #D53A1F;
  --brand-deep: #A32E17;
  --brand-tint: rgba(213, 58, 31, .10);
  --brand-tint-strong: rgba(213, 58, 31, .18);
  --ink: #221812;
  --ink-soft: #6B5C53;
  --ink-dim: #9A8B80;
  --paper: #FAF6F1;
  --paper-alt: #F1E7DB;
  --paper-2: #EAE0D2;
  --line: #E4D6C8;
  --line-strong: #D8C6B4;
  --steel: #2B2622;
  --steel-soft: #C9BEB4;
  --radius: 10px;
  --shadow-sm: 0 6px 18px rgba(43, 26, 15, .08);
  --shadow: 0 22px 48px rgba(43, 26, 15, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  direction: rtl;
  line-height: 1.7;
}

h1, h2, h3, h4 { font-family: "Cairo", "Tajawal", sans-serif; }

.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; direction: ltr; unicode-bidi: isolate; }

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Hazard stripe ---------- */

.stripe-divider {
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--brand) 0 16px,
    var(--steel) 16px 32px
  );
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 241, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

.brand img { height: 28px; width: auto; }

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

.main-nav a {
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--brand-tint);
  color: var(--brand-deep);
  border-color: var(--brand);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .3px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.nav-cta:hover { background: var(--brand-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: var(--paper-alt);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(43,26,15,.035) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(43,26,15,.035) 0 1px, transparent 1px 64px),
    var(--paper);
  padding: 72px 0 88px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 7px 14px;
  border: 1px solid var(--brand);
  border-radius: 4px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.28;
  margin: 0 0 18px;
  font-weight: 900;
  color: var(--ink);
}

.hero h1 span { color: var(--brand); }

.hero p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 30px;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); }

.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-deep); transform: translateY(-2px); }

.hero-art {
  position: relative;
  border-radius: var(--radius);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-art img { border-radius: 6px; }

.stat-row {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat b { display: block; font-size: 26px; font-weight: 800; color: var(--brand-deep); }
.stat b.mono { font-weight: 600; }
.stat span { font-size: 13px; color: var(--ink-soft); }

/* ---------- Section shell ---------- */

section { padding: 84px 0; }
section.alt { background: var(--paper-alt); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: 30px; font-weight: 900; margin: 0 0 12px; color: var(--ink); }
.section-head p { color: var(--ink-soft); font-size: 16px; margin: 0; }

/* ---------- Cards / grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }

.card .icon,
.card .num {
  width: 44px; height: 44px;
  border-radius: 4px;
  background: var(--brand-tint);
  border: 1px solid var(--brand);
  color: var(--brand-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  margin-bottom: 18px;
}

.card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 800; color: var(--ink); }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Product showcase ---------- */

.product-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.product-visual {
  border-radius: 10px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-visual img, .product-visual svg { border-radius: 6px; }

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.badge {
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border: 1px solid var(--brand);
  border-radius: 4px;
}

.spec-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 14.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 12px 2px;
}
.spec-list li b { color: var(--ink-soft); font-weight: 700; font-size: 13.5px; }
.spec-list li span,
.spec-list li .mono { color: var(--ink); font-weight: 600; }

/* ---------- Timeline / process ---------- */

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process .step {
  position: relative;
  padding: 22px 18px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
}
.process .step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 13px;
  color: var(--brand-deep);
  margin-bottom: 10px;
}
.process .step h4 { margin: 0 0 8px; font-size: 16px; font-weight: 800; color: var(--ink); }
.process .step p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  background: var(--brand);
  border-radius: 14px;
  padding: 56px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: repeating-linear-gradient(-45deg, rgba(0,0,0,.4) 0 14px, transparent 14px 28px);
}
.cta-band h2 { font-size: 28px; margin: 0 0 12px; font-weight: 900; }
.cta-band p { margin: 0 0 28px; opacity: .92; }
.cta-band .btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.cta-band .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.cta-band .btn-primary { background: #fff; color: var(--brand-deep); }
.cta-band .btn-primary:hover { background: #f2ece4; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.contact-info .item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .item:last-child { border-bottom: none; }
.contact-info .icon {
  width: 44px; height: 44px; flex: none;
  border-radius: 4px;
  background: var(--brand-tint);
  border: 1px solid var(--brand);
  color: var(--brand-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.contact-info h4 { margin: 0 0 4px; font-size: 15px; color: var(--ink); }
.contact-info p, .contact-info a { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.contact-info a:hover { color: var(--brand-deep); }

form.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  gap: 16px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label { font-size: 13.5px; font-weight: 700; margin-bottom: 6px; display: block; color: var(--ink); }

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
}
input::placeholder, textarea::placeholder { color: var(--ink-dim); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--steel);
  color: var(--steel-soft);
  padding: 64px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h5 { color: #fff; font-size: 15px; margin: 0 0 16px; text-transform: uppercase; letter-spacing: .5px; }
.footer-grid img { height: 28px; margin-bottom: 14px; }
.footer-grid p { color: var(--steel-soft); opacity: .8; font-size: 14px; max-width: 32ch; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--steel-soft); font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  color: var(--steel-soft);
  opacity: .7;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background:
    repeating-linear-gradient(90deg, rgba(43,26,15,.035) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(43,26,15,.035) 0 1px, transparent 1px 64px),
    var(--paper-alt);
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--brand);
}
.page-hero h1 { font-size: 32px; margin: 0 0 10px; font-weight: 900; color: var(--ink); }
.page-hero p { color: var(--ink-soft); margin: 0; max-width: 60ch; }
.breadcrumb { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--brand-deep); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.specs-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.specs-table th, table.specs-table td { padding: 14px 18px; text-align: right; border-bottom: 1px solid var(--line); }
table.specs-table th { background: var(--paper-alt); font-weight: 800; width: 32%; color: var(--ink); }
table.specs-table td { background: var(--paper); color: var(--ink-soft); }
table.specs-table tr:last-child td, table.specs-table tr:last-child th { border-bottom: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 360px; margin: 0 auto; }
  .stat-row { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .process, .contact-grid { grid-template-columns: 1fr; }
  .product-panel { grid-template-columns: 1fr; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(34, 24, 18, .55);
  z-index: 100;
}
.mobile-menu.open { display: block; }
.mobile-menu .sheet {
  background: var(--paper);
  border-top: 3px solid var(--brand);
  padding: 24px;
  border-radius: 10px 10px 0 0;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: grid;
  gap: 8px;
}
.mobile-menu a {
  padding: 14px 16px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}
.mobile-menu a.active, .mobile-menu a:hover { background: var(--brand-tint); color: var(--brand-deep); }
.mobile-menu .close-btn {
  margin-top: 6px;
  text-align: center;
  padding: 14px;
  border-radius: 4px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}
