/* ================================================================
   ترميز — أنماط الصفحة
   مبنية فوق theme.css. لا ألوان ولا خطوط جديدة — متغيّرات الثيمة فقط.
   ================================================================ */

/* ---------- أساسيات ---------- */

.tz-skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--ink-900);
  padding: 12px 22px;
  border-radius: 0 0 var(--r-card) var(--r-card);
  font-weight: 700;
  text-decoration: none;
}

.tz-skip:focus { inset-inline-start: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

img, svg { max-width: 100%; }
img { height: auto; }

/* كل قسم يحمل لوحته بنفسه (الفاتح يقلب المتغيّرات) */
.tz-section {
  background: var(--bg);
  color: var(--text);
}

/* الأقسام الفاتحة تظهر كلوح مستديرة فوق الحبر */
.tz-section[data-theme='light'] {
  border-radius: var(--r-section);
  margin-block: -1px;
}

/* تباين WCAG على اللوحة الفاتحة:
   --muted الفاتح يعطي 3.6:1 على الورقي، ودون 4.5:1 للنص الصغير،
   والأكوا/التيل الفاتح كذلك — لذا يُرفع النص الصغير درجةً واحدة
   داخل الأقسام الفاتحة فقط. الزينة تبقى على لون الأكسنت. */
[data-theme='light'] .tz-body--sm,
[data-theme='light'] .tz-row__en { color: var(--text-2); }

[data-theme='light'] .tz-kicker { color: var(--teal-600); }

/* عنوان فرعي — 1.5rem / 600 حسب سلّم الأحجام */
.tz-h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 12px;
}

/* كتلة المقدّمة أعلى كل قسم */
.tz-lead {
  position: relative;
  margin-bottom: 64px;
  max-width: 62ch;
}

.tz-lead .tz-body { margin: 20px 0 0; }

/* ---------- منطقة النص المحمية: النقش يحيط بالنص ولا يمر تحته ---------- */

.tz-lead::before,
.tz-hero__text::before,
.tz-quote::before {
  content: '';
  position: absolute;
  inset: -70px -48px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    var(--bg) 0 42%,
    color-mix(in srgb, var(--bg) 55%, transparent) 66%,
    transparent 84%);
}

/* ================================================================
   الترويسة
   ================================================================ */

.tz-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ink-900) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.tz-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.tz-brand { display: flex; align-items: center; }
.tz-brand img { display: block; width: 150px; height: auto; }

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

.tz-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: color var(--dur) var(--ease);
}

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

.tz-nav a.tz-nav__cta,
.tz-nav a.tz-nav__cta:hover {
  padding: 12px 26px;
  font-size: 0.95rem;
  gap: 10px;
  color: var(--ink-900);
}

/* زر القائمة على الجوال */
.tz-burger {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.tz-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.tz-burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tz-burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.tz-burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   1 · Hero
   ================================================================ */

.tz-hero { padding-block: clamp(70px, 11vh, 130px) clamp(90px, 14vh, 150px); }

.tz-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  min-height: min(76vh, 720px);
}

.tz-hero__text { position: relative; }

.tz-hero__sub { margin: 30px 0 0; max-width: 46ch; }

.tz-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
}

.tz-hero__art { justify-self: center; }
.tz-hero__art svg { width: min(100%, 420px); height: auto; }

.tz-scroll {
  position: absolute;
  inset-inline-start: var(--gutter);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  z-index: 2;
}

.tz-scroll:hover { color: var(--accent); }

.tz-scroll__line {
  width: 56px;
  height: 1px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}

.tz-scroll__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease);
}

.tz-scroll:hover .tz-scroll__line::after { transform: scaleX(1); }

/* ================================================================
   2 · من نحن
   ================================================================ */

.tz-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.tz-pillar { border-top: 1px solid var(--rule); padding-top: 28px; }
.tz-pillar .tz-body--sm { margin: 0 0 20px; }
.tz-pillar .tz-row__en { margin: 0; font-size: 0.75rem; }

/* عقدة الربط بحجم صغير للزينة */
.tz-node--sm {
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
}

.tz-node--sm::before,
.tz-node--sm::after { width: 7px; height: 7px; }
.tz-node--sm::before { bottom: 4px; left: 4px; }
.tz-node--sm::after  { top: 4px;    right: 4px; }

/* ================================================================
   3 · ماذا نبني
   ================================================================ */

.tz-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  position: relative;
}

/* خط الربط الأفقي خلف الأيقونات */
.tz-cards::before {
  content: '';
  position: absolute;
  top: 92px;
  inset-inline: 8%;
  height: 1px;
  background: var(--rule);
  z-index: 0;
}

.tz-cards .tz-card {
  position: relative;
  z-index: 1;
  text-align: center;
  /* تعبئة الأكسنت 4٪ فوق غلالة من لون الخلفية تُخفت النقش تحت النص إلى 12٪ */
  background:
    linear-gradient(var(--surface), var(--surface)),
    color-mix(in srgb, var(--bg) 88%, transparent);
}

.tz-card__icon {
  background: var(--bg);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.tz-card:hover .tz-card__icon {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.tz-card .tz-body--sm { margin: 0; }

/* ================================================================
   4 · مبدأ التصميم
   ================================================================ */

.tz-principle { padding-block: clamp(110px, 20vh, 220px); }

.tz-principle .tz-kicker { justify-content: center; margin-bottom: 60px; }

.tz-quote {
  position: relative;
  margin: 0 auto;
  max-width: 20ch;
  text-align: center;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* ================================================================
   5 · كيف نعمل
   ================================================================ */

.tz-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: 8px;
}

/* الخط الرابط الرأسي */
.tz-steps::before {
  content: '';
  position: absolute;
  inset-inline-start: 33px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: var(--rule);
}

.tz-step {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
  padding-block: 26px;
  position: relative;
}

.tz-step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--accent);
  font-size: 1rem;
  transition: border-color var(--dur) var(--ease);
}

.tz-step:hover .tz-step__num {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.tz-step__body { padding-top: 10px; max-width: 58ch; }
.tz-step__body .tz-body--sm { margin: 0; }

/* ================================================================
   6 · ماذا تستلم
   ================================================================ */

.tz-rows { margin-top: 8px; }

/* ================================================================
   7 · أعمالنا
   ================================================================ */

.tz-works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 5vw, 64px);
}

.tz-work { position: relative; }

/* الهالة البترولية خلف اللقطة */
.tz-work::before {
  content: '';
  position: absolute;
  inset: -6% 6% 34%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    color-mix(in srgb, var(--petrol-500) 34%, transparent) 0%,
    transparent 70%);
  filter: blur(46px);
  opacity: 0.8;
  pointer-events: none;
}

.tz-browser {
  position: relative;
  z-index: 1;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.tz-work:hover .tz-browser {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  transform: translateY(-4px);
}

.tz-browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.tz-browser__bar > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rule);
  flex: none;
}

.tz-browser__url {
  margin: 0 14px;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.tz-browser__shot {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.tz-browser__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* التلاشي السفلي */
.tz-browser__shot::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.tz-work__meta { padding: 26px 4px 0; }
.tz-work__meta .tz-row__en { margin: 0 0 14px; font-size: 0.75rem; }
.tz-work__meta .tz-body--sm { margin: 0; max-width: 46ch; }

/* ================================================================
   8 · القطاعات
   ================================================================ */

.tz-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

/* ================================================================
   9 · تواصل
   ================================================================ */

.tz-contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 20px;
  max-width: 1060px;
}

.tz-contact__item {
  display: block;
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.tz-contact__item:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  transform: translateY(-4px);
}

.tz-contact__item .tz-row__en { margin: 0 0 16px; font-size: 0.75rem; }

.tz-contact__value {
  font-size: clamp(0.95rem, 1.7vw, 1.2rem);
  color: var(--text);
}

/* أيقونة واتساب داخل وسم البطاقة — تتبع لون الوسم نفسه */
.tz-wa { flex: none; color: var(--accent); }

.tz-contact__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
}

/* ================================================================
   التذييل
   ================================================================ */

.tz-footer {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding-block: 44px;
}

.tz-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.tz-footer__logo { width: 132px; height: auto; opacity: 0.85; }
.tz-footer p { margin: 0; }
.tz-footer__made { color: var(--muted); }

/* ================================================================
   الاستجابة
   ================================================================ */

@media (max-width: 1080px) {
  .tz-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tz-cards::before { display: none; }
}

@media (max-width: 900px) {
  .tz-burger { display: flex; }

  .tz-nav {
    position: fixed;
    inset: 76px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 34px;
    background: var(--ink-900);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
                visibility var(--dur) var(--ease);
  }

  .tz-nav.is-open { transform: none; opacity: 1; visibility: visible; }

  .tz-nav a {
    padding-block: 18px;
    border-bottom: 1px solid var(--rule);
    font-size: 1.0625rem;
  }

  .tz-nav__cta {
    justify-content: center;
    margin-top: 22px;
    border-bottom: none;
  }

  .tz-hero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .tz-hero__art { order: -1; max-width: 300px; }
  .tz-scroll { display: none; }

  .tz-pillars { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tz-pillar { padding-block: 30px; }

  .tz-works { grid-template-columns: minmax(0, 1fr); }
  .tz-lead { margin-bottom: 46px; }
}

@media (max-width: 620px) {
  .tz-cards { grid-template-columns: minmax(0, 1fr); }

  .tz-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tz-row__ar { font-size: 1.15rem; }

  .tz-contact__grid { grid-template-columns: minmax(0, 1fr); }
  .tz-hero__cta .tz-btn,
  .tz-contact__cta .tz-btn { flex: 1 1 100%; justify-content: center; }

  .tz-step { grid-template-columns: 54px minmax(0, 1fr); }
  .tz-step__num { width: 54px; height: 54px; font-size: 0.875rem; }
  .tz-steps::before { inset-inline-start: 26px; }

  .tz-section[data-theme='light'] { border-radius: 28px; }
  .tz-footer__inner { justify-content: center; text-align: center; }
}

/* ================================================================
   الحركة — تدرّج بسيط لدخول العناصر
   ================================================================ */

.tz-reveal:nth-child(2) { transition-delay: 60ms; }
.tz-reveal:nth-child(3) { transition-delay: 120ms; }
.tz-reveal:nth-child(4) { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  .tz-reveal { opacity: 1; transform: none; }
}

/* ================================================================
   صفحات الخدمات والصفحة الرئيسية بعد تحسين الظهور في البحث (2026-10)
   متغيّرات الثيمة فقط — لا ألوان ولا خطوط جديدة.
   ================================================================ */

/* سطر التعريف تحت شعار الصفحة الرئيسية */
.tz-hero__tagline {
  margin: 26px 0 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--text);
  max-width: 34ch;
}

.tz-hero__tagline + .tz-hero__sub { margin-top: 22px; }

/* رأس صفحة الخدمة: أقصر من رأس الرئيسية وبلا رسم جانبي */
.tz-hero--page { padding-block: clamp(48px, 8vh, 96px) clamp(64px, 10vh, 120px); }
.tz-hero--page .tz-hero__text { max-width: 860px; }
.tz-h1--page { font-size: clamp(2.1rem, 5vw, 4rem); }
.tz-hero--page .tz-hero__sub { max-width: 60ch; }

/* مسار الصفحة */
.tz-crumbs { margin-bottom: 34px; }
.tz-crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
}
.tz-crumbs li + li::before { content: '‹'; margin-inline-end: 8px; color: var(--accent); }
.tz-crumbs a { color: var(--text-2); text-decoration: none; }
.tz-crumbs a:hover { color: var(--accent); }

/* بطاقات «ماذا نبني» صارت روابط، وخمس بدل أربع (٣ + ٢ في المنتصف) */
a.tz-card { display: block; color: inherit; text-decoration: none; }
.tz-card__more {
  display: inline-flex;
  gap: 10px;
  margin-top: 18px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--accent);
}

.tz-cards--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 28px; }
.tz-cards--5 .tz-card { grid-column: span 2; }
.tz-cards--5 .tz-card:nth-child(4) { grid-column: 2 / span 2; }
.tz-cards--5::before { display: none; }

/* قوائم صفحات الخدمة */
.tz-list { list-style: none; padding: 0; margin: 8px 0 0; }
.tz-row__ar--text { font-size: 1.15rem; line-height: 1.7; }

.tz-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 4vw, 56px);
}

.tz-feature {
  position: relative;
  padding: 18px 26px 18px 0;
  border-top: 1px solid var(--rule);
  color: var(--text);
  font-size: 1.0625rem;
}

.tz-feature::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 30px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.tz-feature a,
.tz-faq a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 4px; }

.tz-pillars--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* الأسئلة الشائعة */
.tz-faq { max-width: 880px; }
.tz-faq__item { border-top: 1px solid var(--rule); }
.tz-faq__item:last-child { border-bottom: 1px solid var(--rule); }
.tz-faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px;
}
.tz-faq__item summary::-webkit-details-marker { display: none; }
.tz-faq__item summary::after {
  content: '+';
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform var(--dur) var(--ease);
}
.tz-faq__item[open] summary::after { transform: rotate(45deg); }
.tz-faq__q { margin: 0; font-size: 1.2rem; font-weight: 600; line-height: 1.6; }
.tz-faq__item .tz-body { margin: 0 0 26px; max-width: 70ch; }

/* روابط الخدمات الأخرى */
a.tz-tag--link { text-decoration: none; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
a.tz-tag--link:hover { border-color: var(--accent); color: var(--text); }
.tz-more { padding-block: clamp(70px, 10vh, 120px); }

/* روابط الخدمات في التذييل */
.tz-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.tz-footer__nav a { color: var(--muted); text-decoration: none; font-size: 0.875rem; }
.tz-footer__nav a:hover,
.tz-footer__nav a[aria-current='page'] { color: var(--accent); }

@media (max-width: 1080px) {
  .tz-cards--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tz-cards--5 .tz-card,
  .tz-cards--5 .tz-card:nth-child(4) { grid-column: auto; }
}

@media (max-width: 900px) {
  .tz-features { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .tz-cards--5 { grid-template-columns: minmax(0, 1fr); }
  .tz-footer__nav { justify-content: center; }
  .tz-faq__q { font-size: 1.08rem; }
}
