/* =====================================================================
   ONE TRUST — التصميم العام (Mobile-first)
   الألوان والمسافات كلها في المتغيرات أدناه لسهولة التعديل.
   ===================================================================== */
/* خط ثمانية (Thmanyah Sans) — ملفات محلية في assets/fonts */
@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyah-sans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyah-sans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyah-sans-Bold.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  /* نظام الألوان: الأخضر الأساسي للهوية والعناوين والأزرار،
     العاجي للخلفية، المريمي للأسطح الهادئة، الرملي للحدود واللمسات الدافئة */
  --text: #1F2523;            /* Charcoal — النصوص */
  --text-2: #5A625E;          /* نص ثانوي */
  --primary: #0F5A2A;         /* الأخضر الأساسي (بدون تغيير) */
  --primary-hover: #0b4720;
  --accent: #C9A56C;          /* Heritage Sand — لمسات دافئة */
  --gold: #9C7A39;            /* Muted Gold — للمميز فقط، وليس للأزرار */
  --gradient: linear-gradient(135deg, #0F5A2A 0%, #0b4720 100%);
  --bg: #F8F7F3;              /* الخلفية */
  --card: #DCE7DE;            /* Soft Sage — الأسطح الثانوية */
  --border: #E3D5B8;          /* درجة فاتحة من Heritage Sand — الحدود والفواصل */
  --white: #ffffff;
  --success: #2F6B4F;
  --warning: #8C5F0E;
  --danger: #A63D2F;
  --info: #2F5E7E;

  --radius: 16px;
  --radius-sm: 12px;
  --pill: 999px;
  --shadow: 0 10px 30px -12px rgba(15, 90, 42, .22);
  --shadow-lg: 0 24px 60px -20px rgba(17, 17, 17, .28);
  --header-h: 68px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Thmanyah Sans", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200;
  background: var(--primary); color: #fff; padding: 10px 18px; border-radius: var(--pill);
}
.skip-link:focus { top: 12px; }

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

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 56px; }
.section--tight { padding-block: 32px; }

/* ---------- Eyebrow + headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--primary); margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.h1 { font-size: clamp(32px, 7vw, 60px); font-weight: 700; letter-spacing: -.01em; }
.h2 { font-size: clamp(28px, 5vw, 44px); font-weight: 700; }
.h3 { font-size: 20px; font-weight: 600; }
.lead { color: var(--text-2); font-size: 17px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head p { color: var(--text-2); max-width: 520px; margin-top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 26px; border-radius: var(--pill);
  font-weight: 600; font-size: 15px; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { background: var(--card); }
.btn--ghost-white { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost-white:hover { background: rgba(255,255,255,.12); }
.btn--sm { min-height: 40px; padding: 6px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--card); }
.icon-btn--outline { border: 1.5px solid var(--primary); color: var(--primary); }
.icon-btn--outline:hover { background: var(--primary); color: #fff; }


/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 247, 243, .88);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 8px; height: var(--header-h); }
.logo img { height: 22px; width: auto; }
.main-nav { display: none; }
.menu-toggle { margin-inline-start: -8px; }

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .logo img { height: 26px; }
  .main-nav { display: flex; gap: 6px; margin-inline-start: 36px; }
  .main-nav a {
    padding: 8px 14px; border-radius: var(--pill); color: var(--text-2); font-weight: 500; font-size: 15px;
    transition: color .2s, background .2s;
  }
  .main-nav a:hover { color: var(--text); background: rgba(220, 231, 222, .7); }
  .main-nav a[aria-current="page"] { color: var(--primary); background: var(--card); }
}

/* ---------- Mobile menu drawer ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(17, 17, 17, .45);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 100;
  width: min(440px, 92vw); background: var(--bg);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: transform .4s var(--ease), visibility .4s;
  visibility: hidden;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
/* RTL: menu from the right (start), cart from the left (end) */
.drawer--start { right: 0; transform: translateX(100%); width: min(340px, 86vw); }
.drawer--end { left: 0; transform: translateX(-100%); }
.drawer.is-open { transform: translateX(0); }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.drawer__title { font-size: 22px; font-weight: 600; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; overscroll-behavior: contain; }
.drawer__foot { border-top: 1px solid var(--border); padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); background: #fff; }

.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px; border-bottom: 1px solid var(--border); font-size: 18px; font-weight: 500;
}
.mobile-nav a[aria-current="page"] { color: var(--primary); }
.mobile-nav a svg { width: 18px; height: 18px; color: var(--text-2); }
.drawer-menu__foot { padding: 20px; display: grid; gap: 12px; }

/* ---------- Hero ---------- */
.hero { padding-top: 24px; padding-bottom: 40px; }
.hero__grid { display: grid; gap: 28px; align-items: center; }
.hero__title { margin-bottom: 16px; }
.hero__sub { color: var(--text-2); font-size: 18px; max-width: 520px; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { flex: 1 1 160px; }
.hero__media { border-radius: var(--radius); overflow: hidden; background: var(--card); aspect-ratio: 4 / 3; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--text-2); font-size: 14px; }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points svg { width: 18px; height: 18px; color: var(--accent); }
@media (min-width: 1024px) {
  .hero { padding-top: 48px; padding-bottom: 64px; }
  .hero__grid { grid-template-columns: 1fr 1.1fr; gap: 56px; }
  .hero__actions .btn { flex: 0 0 auto; }
}

/* ---------- Sectors we serve (home) ---------- */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 767px) { .cat:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 768px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .cats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; } }
.cat {
  display: grid; justify-items: center; gap: 14px; text-align: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 16px 24px;
}
.cat__icon { width: 84px; height: 84px; border-radius: 50%; background: var(--card); color: var(--primary); display: grid; place-items: center; }
.cat__icon svg { width: 44px; height: 44px; }
.cat__name { font-size: 17px; font-weight: 600; line-height: 1.5; }

/* ---------- About teaser / About page ---------- */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--card); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__text p { color: var(--text-2); font-size: 17px; margin-top: 14px; }
.split__text .btn { margin-top: 24px; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
@media (min-width: 768px) { .stats { gap: 16px; } }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px; }
.stat__num { font-size: clamp(28px, 5vw, 40px); font-weight: 700; color: var(--primary); line-height: 1.2; display: block; }
.stat__label { color: var(--text-2); font-size: 14px; }

.features { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform .35s var(--ease), box-shadow .35s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--card); color: var(--primary); display: grid; place-items: center; margin-bottom: 16px; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.feature p { color: var(--text-2); font-size: 15px; }

/* ---------- CTA banner ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(rgba(6, 40, 18, .22), rgba(6, 40, 18, .22)), var(--gradient);
  color: #fff; padding: 40px 22px; text-align: center;
}
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta::before { width: 320px; height: 320px; top: -140px; inset-inline-start: -80px; }
.cta::after { width: 220px; height: 220px; bottom: -110px; inset-inline-end: -40px; }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(26px, 5vw, 42px); margin-bottom: 10px; }
.cta p { opacity: .92; margin-bottom: 24px; }
@media (min-width: 768px) { .cta { padding: 64px 40px; } }

/* ---------- Page header ---------- */
.page-head { padding-top: 32px; padding-bottom: 8px; }
@media (min-width: 1024px) { .page-head { padding-top: 56px; } }
/* ---------- Contact ---------- */
.contact-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* كمبيوتر: 3 كروت في الصف الأول و2 أعرض في الصف الثاني عشان تملأ العرض بالتساوي */
@media (min-width: 1024px) {
  .contact-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .contact-card { grid-column: span 2; }
  .contact-card:nth-child(n+4) { grid-column: span 3; }
  .contact-card:last-child:nth-child(odd) { grid-column: span 3; }
}
.contact-card {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.contact-card__icon { width: 50px; height: 50px; flex: none; border-radius: 14px; background: var(--card); color: var(--primary); display: grid; place-items: center; }
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card__label { font-size: 13px; color: var(--text-2); }
.contact-card__value { font-weight: 600; font-size: 16px; }
.contact-grid { display: grid; gap: 24px; margin-top: 32px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.map { border-radius: var(--radius); overflow: hidden; background: var(--card); min-height: 320px; border: 1px solid var(--border); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
@media (min-width: 768px) { .panel { padding: 32px; } }
.panel h2 { font-size: 24px; margin-bottom: 6px; }
.panel > p { color: var(--text-2); margin-bottom: 18px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; }
@media (min-width: 600px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field .req { color: var(--danger); }
.field .optional { color: var(--text-2); font-weight: 400; font-size: 13px; }
.input {
  width: 100%; min-height: 50px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: #fff; padding: 12px 16px; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 110px; resize: vertical; }
select.input {
  appearance: none; -webkit-appearance: none; padding-inline-end: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6B63' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: left 14px center;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15,90,42,.12); }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(166,61,47,.1); }
.input[type="tel"] { direction: ltr; text-align: right; }
.error { display: none; align-items: center; gap: 6px; color: var(--danger); font-size: 13px; margin-top: 6px; }
.error svg { width: 15px; height: 15px; flex: none; }
.error.is-shown { display: flex; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; z-index: 150; bottom: calc(92px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; background: var(--text); color: #fff;
  padding: 12px 18px; border-radius: var(--pill); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg);
  animation: toast-in .35s var(--ease) both;
}
.toast svg { width: 18px; height: 18px; color: var(--success); flex: none; }
.toast.is-leaving { animation: toast-out .3s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 60; bottom: calc(18px + env(safe-area-inset-bottom)); left: 18px;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6);
  transition: transform .25s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.07); }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.5); opacity: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--border); margin-top: 32px; padding-top: 48px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.3fr; } .footer-brand { grid-column: auto; } }
.footer-brand img { height: 26px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--text-2); font-size: 15px; max-width: 360px; margin-bottom: 18px; }
.footer-col h3 { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a, .footer-col span { color: var(--text-2); font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-contact { grid-column: 1 / -1; }
@media (min-width: 1024px) { .footer-contact { grid-column: auto; } }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--primary); flex: none; margin-top: 4px; }
.footer-bottom {
  margin-top: 40px; padding-block: 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--text-2); font-size: 13.5px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
