/* =========================================================
   درع للصناعات الوقائية — نظام التصميم
   Palette:
     --charcoal   #1B1F23  سطح داكن أساسي (هيدر/فوتر/عناوين)
     --steel      #3D4046  رمادي صلب ثانوي
     --canvas     #EDEDE7  خلفية الصفحة (رمادي دافئ صناعي)
     --safety-y   #D7E100  أصفر فسفوري عالي الوضوح (المادة الفعلية للسترة)
     --safety-o   #FF5B04  برتقالي فسفوري (أزرار ودعوات الإجراء)
     --tape       #C7CBD1  فضي (محاكاة الشريط العاكس)
   Type:
     Display: 'Tajawal' 800/900 — عناوين قوية
     Body:    'Cairo' 400/500/600
     Utility: 'IBM Plex Mono' — أكواد المواصفات والأرقام
   Signature: نمط "الشريط العاكس المائل" (Chevron) كفاصل بين الأقسام
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@700;800;900&family=Cairo:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --charcoal: #1B1F23;
  --charcoal-2: #24292E;
  --steel: #3D4046;
  --steel-light: #6B7178;
  --canvas: #EDEDE7;
  --canvas-2: #E3E2DA;
  --white: #FFFFFF;
  --safety-y: #D7E100;
  --safety-y-dim: #A9B300;
  --safety-o: #FF5B04;
  --safety-o-dim: #D64B00;
  --tape: #C7CBD1;
  --danger: #C4291E;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(27,31,35,0.12);
  --stripe-size: 34px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--charcoal);
  font-family: 'Cairo', sans-serif;
  text-align: start;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Tajawal', sans-serif;
  font-weight: 900;
  color: var(--charcoal);
  line-height: 1.25;
  margin: 0 0 .5em;
}

.mono, .spec-code, .badge-code {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: .02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------
   الشريط المائل — العنصر المميز للتصميم (chevron safety stripe)
   --------------------------------------------------------- */
.stripe-divider {
  height: 14px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--charcoal) 0 18px,
    var(--safety-y) 18px 36px
  );
}
.stripe-divider.thin { height: 8px; }
.stripe-divider.orange {
  background: repeating-linear-gradient(
    -45deg,
    var(--charcoal) 0 18px,
    var(--safety-o) 18px 36px
  );
}

.chevron-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #ff5b04;
  text-transform: uppercase;
}
.chevron-tag::before {
  content: "";
  width: 26px;
  height: 12px;
  background: repeating-linear-gradient(-45deg, var(--charcoal) 0 4px, var(--safety-y) 4px 8px);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   الهيدر العلوي (شريط معلومات) + التنقل
   --------------------------------------------------------- */
.topbar {
  background: var(--charcoal);
  color: var(--tape);
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--safety-y); }
.topbar a.lang-switch {
  color: var(--charcoal);
  background: var(--safety-y);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.topbar .topbar-links { display: flex; gap: 22px; }

.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(27,31,35,.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  position: relative;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 36px;
  padding: 0;
  border: 1.5px solid rgba(27,31,35,.15);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-mobile-only { display: none; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 54px;
  width: auto;
  display: block;
}

.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--steel);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a:hover, .main-nav a.active { color: var(--charcoal); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  inset-inline-start: 0; inset-inline-end: 0; bottom: -6px;
  height: 4px;
  background: repeating-linear-gradient(-45deg, var(--charcoal) 0 5px, var(--safety-y) 5px 10px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--safety-o); color: var(--white); box-shadow: 0 6px 18px rgba(255,91,4,.35); }
.btn-primary:hover { background: var(--safety-o-dim); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--charcoal-2); }
.btn-outline { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------------------------------------------------------
   الهيرو
   --------------------------------------------------------- */
.hero {
  background: var(--charcoal);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--safety-y);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content:""; width: 30px; height: 2px; background: var(--safety-y); }
.hero h1 {
  color: var(--white);
  font-size: 46px;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--safety-y); }
.hero p.lead {
  color: var(--tape);
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div strong {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 26px;
  color: var(--safety-y);
}

/* ---------------------------------------------------------
   خلفيات متحركة للأقسام الداكنة (hero و bg-charcoal)
   طبقات: شبكة بانورامية + شرائط سلامة منزلقة + توهجات عائمة + جزيئات صاعدة
   --------------------------------------------------------- */
.section-bg-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.fx-grid {
  position: absolute;
  inset: -60px;
  background-image:
    linear-gradient(rgba(215,225,0,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215,225,0,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: fxGridPan 26s linear infinite;
}
@keyframes fxGridPan {
  from { transform: translate(0, 0); }
  to   { transform: translate(56px, 56px); }
}

.fx-stripes {
  position: absolute;
  inset: -20% -60%;
  background: repeating-linear-gradient(-45deg,
    transparent 0 54px,
    rgba(215,225,0,.05) 54px 78px);
  animation: fxStripeSlide 16s linear infinite;
}
@keyframes fxStripeSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(170px); }
}

.fx-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .28;
}
.fx-glow-1 {
  background: var(--safety-y);
  top: -140px;
  inset-inline-end: -100px;
  animation: fxGlowFloat1 13s ease-in-out infinite;
}
.fx-glow-2 {
  background: var(--safety-o);
  bottom: -150px;
  inset-inline-start: -110px;
  animation: fxGlowFloat2 15s ease-in-out infinite;
}
@keyframes fxGlowFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, 40px) scale(1.08); }
}
@keyframes fxGlowFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.1); }
}

.fx-particles { position: absolute; inset: 0; }
.fx-particles span {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: var(--safety-y);
  opacity: 0;
  animation-name: fxParticleRise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes fxParticleRise {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: .65; }
  90%  { opacity: .35; }
  100% { transform: translateY(-560px) scale(.4); opacity: 0; }
}

@media (max-width: 600px) {
  .fx-glow { width: 260px; height: 260px; filter: blur(60px); }
}
.hero-stats div span { font-size: 13px; color: var(--tape); }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,.5);
  border: 1px solid rgba(215,225,0,.25);
}
.hero-photo-frame::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(-45deg,
    var(--charcoal) 0 14px,
    var(--safety-y) 14px 28px);
  z-index: 2;
}
.hero-photo {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 380 / 250;
  object-fit: cover;
}
.hero-photo-tag {
  position: absolute;
  inset-block-end: 14px;
  inset-inline-start: 14px;
  background: rgba(27,31,35,.85);
  color: var(--safety-y);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 7px 12px;
  border-radius: 5px;
  backdrop-filter: blur(2px);
}

/* ---------------------------------------------------------
   أقسام عامة
   --------------------------------------------------------- */
section { padding: 78px 0; }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 32px; margin-top: 12px; }
.section-head p { color: var(--steel); font-size: 16px; }

.bg-white { background: var(--white); }
.bg-charcoal { background: var(--charcoal); color: var(--white); position: relative; overflow: hidden; }
.bg-charcoal > .container { position: relative; z-index: 1; }
.bg-charcoal .section-head h2 { color: var(--white); }
.bg-charcoal .section-head p { color: var(--tape); }

/* شبكة المميزات */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.feature-card {
  background: var(--white);
  border: 1px solid rgba(27,31,35,.08);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}
.feature-card .icon {
  width: 46px; height: 46px;
  border-radius: 8px;
  background: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--safety-y);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--steel); margin: 0; }

/* ---------------------------------------------------------
   بطاقات المنتجات
   --------------------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(27,31,35,.08);
  transition: box-shadow .2s ease, transform .2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.product-thumb {
  aspect-ratio: 4/3;
  position: relative;
  background: var(--canvas-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb .placeholder {
  width: 100%; height: 100%;
  background:
    linear-gradient(180deg, rgba(27,31,35,.55), rgba(27,31,35,.75)),
    repeating-linear-gradient(-45deg, var(--safety-y) 0 22px, var(--safety-y-dim) 22px 44px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 20px;
}
.product-thumb .placeholder span {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  color: var(--white);
  font-size: 18px;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.product-thumb .stripe-corner {
  position: absolute; top: 0; inset-inline-end: 0;
  width: 70px; height: 70px;
}
.product-badge {
  position: absolute; top: 12px; inset-inline-end: 12px;
  background: var(--safety-o);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
}

.product-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.product-body h3 { font-size: 18px; margin: 0; }
.product-body .short { color: var(--steel); font-size: 14px; margin: 0; flex-grow: 1; }
.badge-code {
  display: inline-block;
  font-size: 11px;
  background: var(--canvas);
  border: 1px solid var(--tape);
  color: var(--steel);
  padding: 4px 9px;
  border-radius: 4px;
  align-self: flex-start;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed var(--tape);
  font-size: 13px;
  color: var(--steel);
}
.product-meta strong { color: var(--charcoal); font-family: 'IBM Plex Mono', monospace; }

/* ---------------------------------------------------------
   قسم "لماذا" / خطوات التصنيع (تسلسل فعلي — لذلك يستخدم ترقيم)
   --------------------------------------------------------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-list::before {
  content: "";
  position: absolute;
  top: 26px; inset-inline-start: 6%; inset-inline-end: 6%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--tape) 0 10px, transparent 10px 18px);
  z-index: 0;
}
.process-step { position: relative; z-index: 1; padding: 0 16px; text-align: center; }
.process-step .num {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 18px;
  margin: 0 auto 18px;
  color: #1B1F23;
}
.process-step h4 { font-size: 16px; margin-bottom: 6px; color:#D64B00;}
.process-step p { font-size: 13.5px; color: #FFFFFF; }

/* ---------------------------------------------------------
   الشهادات / الاعتمادات
   --------------------------------------------------------- */
.certs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cert-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--white);
  border: 1px solid rgba(27,31,35,.08);
  padding: 12px 18px;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
}
.cert-chip::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--safety-o);
}

/* ---------------------------------------------------------
   نموذج تواصل / صفحات النماذج
   --------------------------------------------------------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(27,31,35,.08);
  padding: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 5px;
  border: 1.5px solid var(--tape);
  font-family: 'Cairo', sans-serif;
  font-size: 14.5px;
  background: var(--canvas);
  color: var(--charcoal);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--safety-o);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.alert {
  padding: 14px 18px;
  border-radius: 5px;
  font-size: 14.5px;
  margin-bottom: 22px;
  font-weight: 600;
  border-inline-start: 4px solid transparent;
}
.alert-success { background: #EAF6E6; color: #1F6B2E; border-color: #2E9E45; }
.alert-error { background: #FBEAE8; color: var(--danger); border-color: var(--danger); }

/* ---------------------------------------------------------
   صفحة تفاصيل المنتج
   --------------------------------------------------------- */
.pd-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.pd-thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.spec-table tr { border-bottom: 1px solid rgba(27,31,35,.08); }
.spec-table td { padding: 12px 0; font-size: 14.5px; }
.spec-table td:first-child { color: var(--steel); width: 180px; font-weight: 600; }
.spec-table td:last-child { font-family: 'IBM Plex Mono', monospace; font-weight: 600; }

/* ---------------------------------------------------------
   الفوتر
   --------------------------------------------------------- */
.site-footer { background: var(--charcoal); color: var(--tape); padding-top: 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-grid h4 { color: var(--white); font-size: 15px; margin-bottom: 18px; }
.footer-logo { height: 92px; width: auto; margin-bottom: 18px; }
.footer-grid p, .footer-grid a { font-size: 14px; color: var(--tape); }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--safety-y); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  color: var(--steel-light);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------------------------------------------------
   عناصر مساعدة عامة
   --------------------------------------------------------- */
.page-hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 56px 0 46px;
}
.page-hero h1 { color: var(--white); font-size: 34px; margin-bottom: 10px;}
.breadcrumb { font-size: 13px; color: var(--tape); }
.breadcrumb a { color: var(--safety-y); }

.table-wrap { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; background: var(--white); }
table.admin-table th, table.admin-table td {
  padding: 12px 14px; text-align: start; font-size: 14px;
  border-bottom: 1px solid rgba(27,31,35,.08);
}
table.admin-table th { background: var(--charcoal); color: var(--white); font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; }
table.admin-table tr:hover td { background: var(--canvas); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--steel);
}

/* ---------------------------------------------------------
   لوحة التحكم — تسجيل الدخول
   --------------------------------------------------------- */
.admin-shell { min-height: 100vh; background: var(--canvas); }
.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--charcoal);
}
.login-card {
  background: var(--white);
  width: 100%; max-width: 380px;
  border-radius: var(--radius);
  padding: 34px;
}
.admin-topbar {
  background: var(--charcoal); color: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 26px;
}
.admin-body { padding: 30px 26px; max-width: 1100px; margin: 0 auto; }
.stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 30px; }
.stat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 20px; border-inline-start: 4px solid var(--safety-o);
}
.stat-card strong { display:block; font-family:'IBM Plex Mono',monospace; font-size: 26px; }
.stat-card span { font-size: 13px; color: var(--steel); }

/* ---------------------------------------------------------
   استجابة الشاشات الصغيرة
   --------------------------------------------------------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 280px; margin: 0 auto; }
  .features-grid, .products-grid { grid-template-columns: repeat(2,1fr); }
  .process-list { grid-template-columns: repeat(2,1fr); gap: 30px 0; }
  .process-list::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pd-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    inset-inline-start: 24px;
    inset-inline-end: 24px;
    background: var(--white);
    border: 1px solid rgba(27,31,35,.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .25s ease, opacity .2s ease;
    margin-top: 8px;
  }
  .main-nav.open {
    max-height: 420px;
    opacity: 1;
  }
  .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px;
  }
  .main-nav li { border-bottom: 1px solid rgba(27,31,35,.06); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a { display: block; padding: 14px 2px; }
  .main-nav a.active::after { display: none; }
  .main-nav a.active { color: var(--safety-o-dim); }
  .nav-mobile-only { display: block; }

  .btn-primary.header-cta { padding: 10px 16px; font-size: 13px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  .features-grid, .products-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 54px 0; }
  .topbar .container { font-size: 12px; gap: 4px; }
  .topbar .topbar-links { gap: 14px; }
  .header-cta { padding: 8px 12px; font-size: 12px; }
  .brand-logo { height: 42px; }
}

/* ---------------------------------------------------------
   ظهور تدريجي للأقسام عند التمرير (fade-up)
   الكلاس .reveal لا يُخفي المحتوى إلا بعد إضافة html.js-anim عبر JS —
   بهذا الشكل تبقى الأقسام ظاهرة طبيعياً دائماً بدون JavaScript.
   --------------------------------------------------------- */
.reveal { opacity: 1; transform: none; }
html.js-anim .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1);
  will-change: opacity, transform;
}
html.js-anim .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--safety-o);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
