/* =========================================================
   شركة الأفق الحديثة — التنسيقات المخصصة
   الهوية: خط الأفق (Horizon) + ألوان الخرسانة والرمل والكهرمان
   Mobile First / RTL
   ========================================================= */

:root {
  --ink: #17222e;          /* كحلي فحمي عميق */
  --ink-soft: #24384a;
  --concrete: #edeae4;     /* رمادي خرساني دافئ */
  --sand: #f7f4ee;         /* رملي فاتح */
  --amber: #d99022;        /* كهرمان إنشائي */
  --amber-deep: #b87413;
  --text: #2b3644;
  --muted: #6b7684;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(23, 34, 46, 0.10);
  --font-display: "Noto Kufi Arabic", sans-serif;
  --font-body: "Almarai", sans-serif;
}

/* ---------- الأساسيات ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--sand);
  line-height: 1.8;
  overflow-x: hidden;
}

h1, h2, h3, h4, .navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

img { max-width: 100%; }

.section-pad { padding: 4rem 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .5px;
  color: var(--amber-deep);
  background: rgba(217, 144, 34, 0.12);
  border-inline-start: 3px solid var(--amber);
  padding: .35rem .9rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: .9rem;
}

/* عنصر التوقيع: خط الأفق أسفل العناوين */
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 90px;
  height: 3px;
  background: linear-gradient(to left, var(--amber) 55%, transparent 55%),
              linear-gradient(to left, var(--ink) 0);
  background-size: 100% 100%, 40% 100%;
  background-position: 0 0, 100% 0;
  background-repeat: no-repeat;
  border-radius: 2px;
}

.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head.light .section-title { color: var(--white); }
.section-head.light .eyebrow { background: rgba(217, 144, 34, 0.18); color: var(--amber); }

/* ---------- الأزرار ---------- */
.btn { border-radius: 10px; font-weight: 700; }

.btn-accent {
  background: var(--amber);
  border: 2px solid var(--amber);
  color: var(--ink);
}
.btn-accent:hover, .btn-accent:focus {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
  color: var(--white);
}

.btn-dark-solid {
  background: var(--ink);
  border: 2px solid var(--ink);
  color: var(--white);
  padding: .65rem 1.5rem;
}
.btn-dark-solid:hover, .btn-dark-solid:focus { background: var(--ink-soft); color: var(--amber); }

.btn-outline-light { border-width: 2px; }

.btn i { margin-inline-start: .35rem; }

/* ---------- شريط التنقل ---------- */
.navbar {
  padding-block: 1rem;
  transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
}
.navbar.scrolled {
  background: rgba(23, 34, 46, 0.97);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
  padding-block: .5rem;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--white);
}
.navbar-brand:hover, .navbar-brand:focus { color: var(--white); }

/* الشعار الرسمي: شمس الأفق */
.brand-logo {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35));
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 1.35rem; font-weight: 800; letter-spacing: .3px; }
.brand-name strong { color: var(--amber); font-weight: 800; }
.brand-tag {
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .6);
  letter-spacing: .5px;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, .85);
  font-weight: 500;
  margin-inline: .35rem;
  position: relative;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active { color: var(--amber); }

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, .35);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  padding: .15rem .5rem;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(217, 144, 34, .5); }

.nav-cta { white-space: nowrap; }

@media (max-width: 991.98px) {
  .navbar { background: rgba(23, 34, 46, 0.97); }
  .brand-logo { width: 40px; height: 40px; }
  .brand-name { font-size: 1.15rem; }
  .navbar-collapse { padding-block: 1rem; }
  .nav-cta { margin-top: .5rem; display: inline-block; }
}

/* ---------- الواجهة الرئيسية ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 60% 45% at 30% 108%, rgba(217, 144, 34, .35), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 100% 52px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 52px 100%,
    linear-gradient(180deg, #101822 0%, var(--ink) 55%, var(--ink-soft) 100%);
  color: var(--white);
  padding-top: 7.5rem;
}

/* طبقات الأفق أسفل الواجهة */
.hero-strata {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 90px;
  background:
    linear-gradient(to top, rgba(217, 144, 34, .16), transparent 60%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; padding-bottom: 4rem; }

/* الاسم هو بطل الواجهة */
.hero-brand {
  color: var(--white);
  font-size: clamp(2.5rem, 8vw, 4.6rem);
  font-weight: 800;
  line-height: 1.35;
  margin-block: 1.1rem .4rem;
  position: relative;
  padding-bottom: 1.1rem;
}
.hero-brand::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 4px;
  width: min(340px, 70%);
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to left, var(--amber), transparent);
}
.accent-text { color: var(--amber); }

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.6vw, 1.55rem);
  font-weight: 700;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 1.25rem;
}

/* شعار مائي خلف المحتوى */
.hero-watermark {
  position: absolute;
  top: 12%;
  inset-inline-end: -4%;
  width: clamp(280px, 38vw, 560px);
  opacity: .10;
  pointer-events: none;
}

.hero .eyebrow {
  background: rgba(255, 255, 255, .08);
  color: var(--amber);
  border-inline-start-color: var(--amber);
}

.lead-text {
  font-size: 1.06rem;
  color: rgba(255, 255, 255, .88);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 3.5rem; }

/* خط الأفق الفاصل — التوقيع البصري */
.horizon-line {
  position: relative;
  z-index: 1;
  height: 3px;
  background: linear-gradient(to left, transparent, var(--amber) 20%, var(--amber) 80%, transparent);
}

/* شريط الإحصائيات */
.stats-strip {
  position: relative;
  z-index: 1;
  background: var(--ink);
  padding-block: 1.75rem;
}
.stat { padding-block: .5rem; }
.stat-num, .stat-plus {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--amber);
}
.stat-label { display: block; color: rgba(255, 255, 255, .75); font-size: .9rem; }

/* ---------- المزايا ---------- */
.features { background: var(--sand); }

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  border-top: 3px solid var(--amber);
  box-shadow: var(--shadow);
  transition: transform .3s ease;
}
.feature-card:hover { transform: translateY(-6px); }
.feature-card h3 { font-size: 1.15rem; margin-block: 1rem .5rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: .95rem; }

.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(217, 144, 34, .14);
  color: var(--amber-deep);
  font-size: 1.6rem;
}

/* ---------- من نحن ---------- */
.about { background: var(--concrete); }

.about-media { position: relative; margin: 0; }

/* لوحة أيقونة بنفس أبعاد الصورة السابقة (4:3) */
.about-panel {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background:
    radial-gradient(ellipse 70% 50% at 50% 112%, rgba(217, 144, 34, .35), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 44px 100%,
    linear-gradient(180deg, var(--ink-soft), var(--ink));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.about-panel > i {
  font-size: clamp(6rem, 14vw, 9rem);
  color: var(--amber);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35));
}
.panel-horizon {
  position: absolute;
  bottom: 14%;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(to left, transparent, var(--amber) 25%, var(--amber) 75%, transparent);
}
.about-badge {
  position: absolute;
  bottom: -1rem;
  inset-inline-start: 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 12px;
  padding: .8rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  box-shadow: var(--shadow);
  max-width: calc(100% - 2rem);
}
.about-badge i { color: var(--amber); font-size: 1.5rem; }
.about-badge strong { display: block; font-size: .95rem; }
.about-badge span { font-size: .8rem; color: rgba(255, 255, 255, .75); }

.check-list { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; }
.check-list li { display: flex; align-items: center; gap: .6rem; padding-block: .35rem; font-weight: 500; }
.check-list i {
  color: var(--amber-deep);
  background: rgba(217, 144, 34, .16);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ---------- المنتجات ---------- */
.products { background: var(--sand); }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-btn {
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: .4rem 1.2rem;
  font-weight: 700;
  font-family: var(--font-body);
  transition: background-color .25s ease, color .25s ease;
}
.filter-btn:hover { background: rgba(23, 34, 46, .08); }
.filter-btn.active { background: var(--ink); color: var(--amber); }

.product-col.filtered-out { display: none; }

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease;
}
.product-card:hover { transform: translateY(-6px); }

.product-media { position: relative; }

/* لوحة أيقونة بنفس ارتفاع الصورة السابق */
.product-icon {
  height: 210px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 75% 55% at 50% 115%, rgba(217, 144, 34, .30), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 100% 42px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 42px 100%,
    linear-gradient(180deg, var(--ink-soft), var(--ink));
}
.product-icon i {
  font-size: 4.6rem;
  color: var(--amber);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .35));
  transition: transform .3s ease;
}
.product-card:hover .product-icon i { transform: translateY(-6px) scale(1.06); }
.product-tag {
  position: absolute;
  top: .9rem;
  inset-inline-start: .9rem;
  background: var(--ink);
  color: var(--amber);
  font-size: .78rem;
  font-weight: 700;
  padding: .25rem .8rem;
  border-radius: 999px;
}

.product-body { padding: 1.35rem; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.product-body p { color: var(--muted); font-size: .93rem; flex: 1; }

.product-link {
  color: var(--amber-deep);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.product-link:hover, .product-link:focus { color: var(--ink); }

/* ---------- الخدمات ---------- */
.services {
  /* نمط مخطط هندسي (Blueprint) مرسوم بالكود دون صور خارجية */
  background:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 48px 100%,
    var(--ink);
  color: var(--white);
  border-block: 3px solid var(--amber);
}

.service-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  height: 100%;
  transition: border-color .3s ease, background-color .3s ease;
}
.service-card:hover { border-color: var(--amber); background: rgba(255, 255, 255, .08); }
.service-card i { font-size: 2.1rem; color: var(--amber); }
.service-card h3 { color: var(--white); font-size: 1.15rem; margin-block: .9rem .5rem; }
.service-card p { color: rgba(255, 255, 255, .78); margin: 0; font-size: .95rem; }

/* ---------- العملاء ---------- */
.clients { background: var(--concrete); }

.client-chip {
  background: var(--white);
  border-radius: 12px;
  padding: 1.1rem .75rem;
  text-align: center;
  font-weight: 700;
  font-size: .88rem;
  color: var(--ink);
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.client-chip i { font-size: 1.6rem; color: var(--amber-deep); }

/* ---------- اتصل بنا ---------- */
.contact { background: var(--ink); color: var(--white); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.contact-form .form-label { font-weight: 700; color: var(--ink); }
.contact-form .form-control,
.contact-form .form-select {
  border: 1.5px solid #d8d4cc;
  border-radius: 10px;
  padding: .65rem .9rem;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(217, 144, 34, .25);
}

.form-success {
  margin-top: 1rem;
  margin-bottom: 0;
  background: rgba(25, 135, 84, .12);
  color: #157347;
  border-radius: 10px;
  padding: .8rem 1rem;
  font-weight: 700;
}
.form-success i { margin-inline-end: .4rem; }

.contact-info {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
}
.info-item { display: flex; gap: 1rem; padding-block: .9rem; }
.info-item + .info-item { border-top: 1px solid rgba(255, 255, 255, .1); }
.info-item i {
  font-size: 1.25rem;
  color: var(--amber);
  background: rgba(217, 144, 34, .14);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.info-item strong { display: block; margin-bottom: .15rem; }
.info-item span { display: block; color: rgba(255, 255, 255, .8); font-size: .93rem; }
.info-item a { color: rgba(255, 255, 255, .85); text-decoration: none; direction: ltr; unicode-bidi: embed; }
.info-item a:hover, .info-item a:focus { color: var(--amber); }

/* ---------- التذييل ---------- */
.site-footer {
  background: #101822;
  color: rgba(255, 255, 255, .8);
  padding: 3.5rem 0 0;
  border-top: 3px solid var(--amber);
}
.footer-brand { margin-bottom: 1rem; }
.footer-about { font-size: .93rem; }

.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 1.1rem; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding-block: .3rem; }
.footer-links a, .footer-plain {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  font-size: .93rem;
  transition: color .25s ease;
}
.footer-links a:hover, .footer-links a:focus { color: var(--amber); }
.footer-links i { margin-inline-end: .35rem; color: var(--amber); }

.social-links { display: flex; gap: .6rem; }
.social-links a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  color: var(--white);
  font-size: 1.1rem;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease;
}
.social-links a:hover, .social-links a:focus { background: var(--amber); color: var(--ink); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 2.5rem;
  padding-block: 1.25rem;
  text-align: center;
  font-size: .88rem;
}
.footer-bottom p { margin: 0; }

/* ---------- زر العودة للأعلى ---------- */
.back-to-top {
  position: fixed;
  bottom: 1.25rem;
  inset-inline-start: 1.25rem;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: var(--amber);
  color: var(--ink);
  font-size: 1.3rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
  z-index: 1029;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--amber-deep); color: var(--white); }

/* ---------- حركة الظهور عند التمرير ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- شاشات أكبر ---------- */
@media (min-width: 768px) {
  .section-pad { padding: 5.5rem 0; }
  .section-title { font-size: 2.1rem; }
  .hero { padding-top: 9rem; }
}

@media (min-width: 992px) {
  .stat-num, .stat-plus { font-size: 2.4rem; }
}

/* ---------- تقليل الحركة ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .feature-card, .product-card, .back-to-top, .product-icon i { transition: none; }
  .services { background-attachment: scroll; }
}
