/* MIXI — Corporate site design system */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  --forest-950: #021a0f;
  --forest-900: #042812;
  --forest-800: #0a3d24;
  --forest-700: #0d5c3a;
  --forest-600: #15803d;
  --fresh-500: #22c55e;
  --fresh-400: #4ade80;
  --fresh-300: #86efac;
  --cream-50: #f8faf8;
  --cream-100: #f0f7f2;
  --slate-700: #334155;
  --slate-500: #64748b;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(2, 26, 15, 0.06);
  --shadow-md: 0 8px 30px rgba(2, 26, 15, 0.1);
  --shadow-lg: 0 20px 50px rgba(2, 26, 15, 0.14);
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 80px;
  --max-w: 1180px;
  /* Legacy aliases for inner pages */
  --bg-start: var(--forest-950);
  --bg-mid: var(--forest-800);
  --bg-end: var(--forest-700);
  --accent: var(--fresh-500);
  --accent-light: var(--fresh-400);
  --accent-glow: rgba(34, 197, 94, 0.35);
  --card-bg: rgba(255,255,255,0.06);
  --card-border: rgba(74, 222, 128, 0.22);
  --text-primary: #f0fdf4;
  --text-muted: #bbf7d0;
  --shadow: var(--shadow-lg);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', sans-serif;
  color: var(--slate-700);
  background: var(--cream-50);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.page-dark {
  background: linear-gradient(165deg, var(--forest-950) 0%, var(--forest-800) 45%, var(--forest-700) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
}
body.page-dark::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(34, 197, 94, 0.12), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 50%, rgba(74, 222, 128, 0.06), transparent),
    radial-gradient(ellipse 45% 35% at 0% 90%, rgba(10, 61, 36, 0.3), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ——— Navigation ——— */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease), border-color 0.35s var(--ease);
}
.site-nav:not(.is-scrolled) .nav-logo-text,
.site-nav:not(.is-scrolled) .nav-link { color: rgba(255,255,255,0.92); }
.site-nav:not(.is-scrolled) .lang-btn {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
}
.site-nav:not(.is-scrolled) .nav-toggle span { background: #fff; }
.site-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}
.site-nav.is-scrolled .nav-logo-text { color: var(--forest-800); }
.site-nav.is-scrolled .nav-link { color: var(--slate-700); }
.site-nav.is-scrolled .nav-link:hover { color: var(--forest-700); }
.site-nav.is-scrolled .nav-toggle span { background: var(--forest-800); }
.site-nav.is-scrolled .lang-btn {
  border-color: rgba(13, 92, 58, 0.25);
  color: var(--forest-700);
}
.site-nav--dark.is-scrolled,
.site-nav--dark {
  background: rgba(4, 40, 18, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(74, 222, 128, 0.12);
}
.site-nav--dark.is-scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.2); }
.site-nav--dark .nav-logo-text,
.site-nav--dark .nav-link { color: var(--fresh-300); }
.site-nav--dark .nav-link:hover { color: #fff; }
.site-nav--dark .lang-btn {
  border-color: var(--card-border);
  color: var(--fresh-300);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: inline-block;
}
.nav-logo-wrap .nav-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: contain;
  border: none;
  transition: opacity 0.35s var(--ease), transform 0.3s var(--ease-out);
}
/* افتراضي: خلفية داكنة → 2.png */
.nav-logo--light { opacity: 0; pointer-events: none; }
.nav-logo--dark { opacity: 1; }
/* شريط علوي أبيض بعد التمرير (الصفحة الرئيسية والتطبيق) */
.site-nav.is-scrolled:not(.site-nav--dark) .nav-logo--light { opacity: 1; pointer-events: auto; }
.site-nav.is-scrolled:not(.site-nav--dark) .nav-logo--dark { opacity: 0; pointer-events: none; }
/* التذييل دائماً على خلفية داكنة */
.site-footer .nav-logo--light { opacity: 0; pointer-events: none; }
.site-footer .nav-logo--dark { opacity: 1; }
.nav-brand:hover .nav-logo-wrap .nav-logo { transform: scale(1.05); }
.nav-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  transition: color 0.35s var(--ease);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-link.is-active { color: var(--fresh-400); }
.site-nav.is-scrolled .nav-link.is-active { color: var(--forest-700); background: rgba(13, 92, 58, 0.08); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: rgba(255,255,255,0.9);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.lang-btn:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--fresh-400);
}
.btn-nav-cta {
  display: none;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--fresh-500), var(--forest-600));
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.site-nav.is-scrolled .nav-toggle span { background: var(--forest-800); }

@media (min-width: 1024px) {
  .btn-nav-cta { display: inline-flex; align-items: center; }
}
@media (max-width: 1023px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 4px;
    background: rgba(4, 40, 18, 0.98);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s var(--ease-out), opacity 0.3s, visibility 0.3s;
  }
  html[dir="rtl"] .nav-links { transform: translateX(-100%); }
  .nav-links.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-link {
    padding: 16px 18px;
    font-size: 1.05rem;
    border-radius: 12px;
  }
  .site-nav.is-scrolled .nav-links { background: rgba(255,255,255,0.98); }
  .site-nav.is-scrolled .nav-link { color: var(--slate-700); }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 24px 80px;
  background: linear-gradient(145deg, var(--forest-950) 0%, var(--forest-800) 50%, var(--forest-700) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(34, 197, 94, 0.15), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(13, 92, 58, 0.4), transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--fresh-300);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  animation: fadeUp 0.7s var(--ease-out) both;
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fresh-500);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
  animation: fadeUp 0.7s 0.1s var(--ease-out) both;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--fresh-300), var(--fresh-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead {
  font-size: 1.1rem;
  line-height: 1.85;
  color: rgba(240, 253, 244, 0.85);
  margin-bottom: 32px;
  max-width: 520px;
  animation: fadeUp 0.7s 0.2s var(--ease-out) both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: fadeUp 0.7s 0.3s var(--ease-out) both;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  background: linear-gradient(135deg, var(--fresh-500), var(--forest-600));
  color: #fff;
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 36px rgba(34, 197, 94, 0.45); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.35);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--fresh-400);
}
.hero-visual {
  position: relative;
  animation: fadeUp 0.8s 0.2s var(--ease-out) both;
}
.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.hero-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  display: block;
  background: var(--forest-950);
}
.hero-img-wrap img,
.sustain-visual img,
.sector-card img,
.cat-card-img,
.hero-photo {
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.hero-stat-cards {
  position: absolute;
  bottom: -20px;
  left: -20px;
  right: -20px;
  display: flex;
  gap: 12px;
  justify-content: center;
}
html[dir="ltr"] .hero-stat-cards { left: -20px; right: -20px; }
.hero-stat {
  flex: 1;
  max-width: 140px;
  padding: 14px 12px;
  background: rgba(255,255,255,0.95);
  border-radius: 14px;
  text-align: center;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}
.hero-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--forest-700);
  line-height: 1.2;
}
.hero-stat span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--slate-500);
  line-height: 1.3;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ——— Sections ——— */
.section {
  padding: 88px 24px;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest-600);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: var(--forest-900);
  margin-bottom: 16px;
  line-height: 1.25;
}
.section-desc {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--slate-500);
  max-width: 640px;
  margin-bottom: 48px;
}
.section--alt { background: var(--cream-100); }
.section--dark {
  background: linear-gradient(180deg, var(--forest-900), var(--forest-800));
  color: var(--text-primary);
}
.section--dark .section-title { color: #fff; }
.section--dark .section-desc { color: rgba(240,253,244,0.75); }
.section--dark .section-label { color: var(--fresh-400); }

/* Pillars grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pillar-card {
  padding: 28px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(13, 92, 58, 0.08);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(13,92,58,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.pillar-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--forest-900);
  margin-bottom: 10px;
}
.pillar-card p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--slate-500);
}

/* Process timeline */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--fresh-500), var(--forest-600));
  opacity: 0.3;
}
.process-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.process-num {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fresh-500), var(--forest-600));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
  position: relative;
  z-index: 1;
}
.process-step h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--forest-900);
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--slate-500);
}

/* Sustainability */
.sustain-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.sustain-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  min-height: 320px;
}
.sustain-list {
  list-style: none;
  margin-top: 24px;
}
.sustain-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(13, 92, 58, 0.1);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--slate-700);
}
.sustain-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--forest-700);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* B2B sectors */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sector-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 4/3;
  display: block;
}
.sector-card img:not(.sector-icon) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.5s var(--ease-out);
}
.sector-card .sector-icon { object-fit: contain; }
.sector-card:hover img { transform: scale(1.08); }
.sector-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,26,15,0.92) 0%, rgba(2,26,15,0.2) 60%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background 0.35s;
}
.sector-card:hover .sector-overlay {
  background: linear-gradient(to top, rgba(13,92,58,0.95) 0%, rgba(2,26,15,0.4) 70%, transparent);
}
.sector-overlay h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.sector-overlay p {
  font-size: 0.85rem;
  color: rgba(240,253,244,0.85);
  line-height: 1.5;
}
.sector-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 6px;
  object-fit: contain;
}
html[dir="ltr"] .sector-icon { right: auto; left: 16px; }

/* App download strip */
.app-strip {
  background: linear-gradient(135deg, var(--forest-800), var(--forest-700));
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  color: #fff;
}
.app-strip h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.app-strip p {
  opacity: 0.88;
  line-height: 1.75;
  margin-bottom: 20px;
}
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-badges a {
  transition: transform 0.25s var(--ease-out);
}
.store-badges a:hover { transform: translateY(-4px); }
.store-badges img { height: 48px; border-radius: 10px; }

/* Visibility helpers */
.only-mobile { display: none !important; }
.only-desktop { display: inline-flex; align-items: center; }

/* Mobile-only app download panel (inside hero) */
.hero-app-panel {
  display: none;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto 4px;
  padding: 0 20px;
  scroll-margin-top: calc(var(--nav-h) + 12px);
}
.hero-app-panel-inner {
  text-align: center;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.28);
}
.store-badges--hero-app {
  justify-content: center;
  gap: 10px;
}
.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: transform 0.2s var(--ease-out), opacity 0.2s;
}
.store-btn img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
  border-radius: 8px;
}
.store-btn:active { transform: scale(0.98); opacity: 0.95; }
.store-btn:hover,
.store-btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}
.hero-lead--brief { display: none; }

/* Large screens — لا يمسّ max-width: 768px */
@media (min-width: 769px) {
  .hero-app-panel {
    display: none !important;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    margin: 0;
    padding: 0;
    border: 0;
  }
  .hero-inner {
    display: grid !important;
    flex-direction: unset;
    gap: 48px;
    text-align: start;
  }
  html[dir="rtl"] .hero-inner { text-align: right; }
  html[dir="ltr"] .hero-inner { text-align: left; }
  .hero-content {
    order: unset;
    text-align: inherit;
  }
  .hero-visual {
    order: unset;
    width: auto;
    max-width: none;
    margin: 0;
  }
  .hero-lead--full { display: block; }
  .hero-lead--brief { display: none !important; }
  .hero-lead {
    margin-inline: 0;
    max-width: 520px;
  }
  .hero-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    max-width: none;
    margin: 0;
  }
  .hero-actions .btn-primary[data-app-anchor] { display: inline-flex; }
  .hero-actions .btn-outline { width: auto; max-width: none; }
  .hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
  .hero-badge { font-size: 0.85rem; margin-bottom: 20px; }
}

@media (min-width: 1025px) {
  .hero {
    min-height: 100vh;
    padding: calc(var(--nav-h) + 48px) 32px 80px;
    align-items: center;
  }
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: var(--max-w);
  }
  .hero-content { align-self: center; }
  .hero-visual { align-self: center; }
  .hero-img-wrap img { height: 420px; }
  .hero-stat-cards {
    position: absolute;
    bottom: -20px;
    left: -20px;
    right: -20px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12px;
    margin-top: 0;
    grid-template-columns: unset;
  }
  .hero-stat {
    flex: 1;
    max-width: 140px;
    min-width: 0;
    padding: 14px 12px;
  }
  .hero-stat strong { font-size: 1.35rem; }
  .hero-stat span { font-size: 0.72rem; }
  .section { padding: 96px 32px; }
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .pillars-grid { grid-template-columns: repeat(4, 1fr); }
  .sectors-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .process-grid::before { display: block; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
  .sustain-layout { grid-template-columns: 1fr 1fr; align-items: center; }
  .app-strip {
    grid-template-columns: 1fr auto;
    text-align: start;
    padding: 48px 56px;
  }
  html[dir="rtl"] .app-strip { text-align: right; }
  .app-strip .store-badges { justify-content: flex-start; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 32px) 24px 64px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
    max-width: 560px;
    margin-inline: auto;
  }
  .hero-content,
  html[dir="rtl"] .hero-content,
  html[dir="ltr"] .hero-content {
    text-align: center;
  }
  .hero-visual {
    order: -1;
    max-width: 460px;
    margin-inline: auto;
  }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-img-wrap img { height: 320px; }
  .hero-stat-cards {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
  }
  .hero-stat {
    flex: 1 1 140px;
    max-width: 160px;
    padding: 12px 10px;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-card {
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(13, 92, 58, 0.08);
  box-shadow: var(--shadow-sm);
}
.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--forest-900);
  margin-bottom: 16px;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.social-links a {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--cream-100);
  border: 1px solid rgba(13, 92, 58, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
}
.social-links a:hover {
  background: var(--forest-700);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(13, 92, 58, 0.25);
}
.social-links img { width: 24px; height: 24px; }
.email-row {
  display: grid;
  gap: 12px;
}
.email-item {
  padding: 14px 18px;
  background: var(--cream-50);
  border-radius: 12px;
  border: 1px solid rgba(13, 92, 58, 0.08);
}
.email-item label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--forest-600);
  margin-bottom: 4px;
}
.email-item a {
  color: var(--forest-800);
  font-weight: 600;
  text-decoration: none;
}
.email-item a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--forest-950);
  color: rgba(240, 253, 244, 0.7);
  padding: 56px 24px 28px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.75;
  margin-top: 12px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--fresh-400);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col a {
  display: block;
  color: rgba(240, 253, 244, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(74, 222, 128, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Inner pages — enhanced header */
.page-header.site-nav--dark {
  position: sticky;
  top: 0;
}
.main-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px 64px;
}
body.page-dark .main-wrap { max-width: 800px; }
.page-title {
  font-size: clamp(1.75rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #d1fae5, var(--fresh-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body:not(.page-dark) .page-title {
  background: linear-gradient(135deg, var(--forest-800), var(--forest-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
body:not(.page-dark) .card {
  background: var(--white);
  border-color: rgba(13, 92, 58, 0.08);
  color: var(--slate-700);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--card-border);
}
body:not(.page-dark) .card h2 { color: var(--forest-800); border-color: rgba(13,92,58,0.1); }
.card p, .card li {
  line-height: 1.85;
  font-size: 0.98rem;
  margin-bottom: 10px;
}
body.page-dark .card p { color: rgba(240,253,244,0.88); }
body:not(.page-dark) .card p { color: var(--slate-500); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fresh-400);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 20px;
  transition: color 0.25s, transform 0.25s;
}
.back-link:hover { color: #fff; }
body:not(.page-dark) .back-link { color: var(--forest-600); }
body:not(.page-dark) .back-link:hover { color: var(--forest-800); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
}
.footer-links a {
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.25s;
}
.footer-links a:hover {
  background: linear-gradient(135deg, var(--fresh-500), var(--forest-600));
  color: #fff;
  transform: translateY(-2px);
}
body:not(.page-dark) .footer-links a {
  color: var(--forest-700);
  background: var(--cream-100);
  border-color: rgba(13,92,58,0.12);
}

.bullet-list li {
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid rgba(13, 92, 58, 0.08);
  line-height: 1.75;
  color: var(--slate-500);
}
body.page-dark .bullet-list li {
  color: rgba(240, 253, 244, 0.88);
  border-color: rgba(74, 222, 128, 0.12);
}
body.page-dark .bullet-list { list-style: none; padding: 0; margin: 0; }

/* Product gallery — صور media_product */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.product-shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--forest-950);
  border: 1px solid rgba(13, 92, 58, 0.1);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.product-shot:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md);
}
.product-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--forest-950);
}
.section--dark .product-shot {
  border-color: rgba(74, 222, 128, 0.15);
}

/* Responsive */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-grid::before { display: none; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .sustain-layout { grid-template-columns: 1fr; }
  .app-strip { grid-template-columns: 1fr; text-align: center; }
  .store-badges { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-h: 72px; }
  .only-mobile { display: inline-flex !important; align-items: center; }
  .only-desktop { display: none !important; }
  .btn-nav-cta.only-mobile {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  /* Hero — عمود واحد مرتب */
  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 12px) 16px 48px;
    align-items: stretch;
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    grid-template-columns: unset;
    text-align: center;
  }
  .hero-app-panel {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    order: 1;
  }
  .hero-app-panel-inner {
    padding: 10px 12px;
  }
  .store-badges--hero-app {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .store-badges--hero-app .store-btn {
    padding: 8px 4px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(74, 222, 128, 0.2);
  }
  .store-badges--hero-app .store-btn img { height: 38px; }

  .hero-visual {
    order: 2;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .hero-img-wrap img {
    height: 200px;
    object-fit: contain;
  }
  .hero-stat-cards {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 10px;
    left: auto;
    right: auto;
  }
  .hero-stat {
    flex: unset;
    max-width: none;
    min-width: 0;
    padding: 8px 4px;
  }
  .hero-stat strong { font-size: 1rem; }
  .hero-stat span { font-size: 0.62rem; line-height: 1.25; }

  .hero-content {
    order: 3;
    text-align: center;
  }
  .hero-badge { margin-bottom: 12px; font-size: 0.78rem; }
  .hero h1 {
    font-size: 1.45rem;
    line-height: 1.35;
    margin-bottom: 10px;
  }
  .hero-lead--full { display: none; }
  .hero-lead--brief {
    display: block;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 auto 16px;
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .hero-actions .btn-primary[data-app-anchor] { display: none; }
  .hero-actions .btn-outline {
    width: 100%;
    max-width: 280px;
  }

  .section { padding: 56px 16px; }
  .section-title { font-size: 1.5rem; margin-bottom: 12px; }
  .section-desc { font-size: 0.95rem; margin-bottom: 32px; line-height: 1.75; }
  .sector-card { min-height: 200px; }
  .contact-card { padding: 24px 20px; }
  .footer-grid { gap: 28px; }
}
@media (max-width: 600px) {
  .section { padding: 48px 14px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pillars-grid,
  .sectors-grid,
  .process-grid { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .app-strip { padding: 28px 20px; }
  .app-strip h2 { font-size: 1.35rem; }
  .store-badges img { height: 44px; }
  .nav-inner { padding: 0 14px; }
}
