/* قالب "شركة مقاولات" */

:root {
  --navy: #0b2545;
  --navy-dark: #071a33;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --card: #ffffff;
  --bg-soft: #f3f4f6;
  --radius: 10px;
  --shadow: 0 12px 32px rgba(11, 37, 69, 0.12);
  --font-body: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-heading: var(--font-body);
  --head-bg: #ffffff;
  --head-ink: #111827;
  --foot-bg: #071a33;
  --foot-ink: #cbd5e1;
  --foot-head: #ffffff;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

/* `img{display:block}` أعلاه من أنماط المؤلّف، وقاعدة المتصفح
   `[hidden]{display:none}` من أنماط الوكيل — والمؤلّف يغلب الوكيل مهما
   كانت الأخصّية. فبلا هذا السطر يظهر شقّ الشعار المخفيّ مربّعًا فارغًا
   في الشريط. قِيس ورُئي. */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.3; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: .4rem;
  padding-inline-start: 1.6rem;
  position: relative;
}
.eyebrow::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 1.1rem;
  height: 3px;
  background: var(--accent);
  transform: translateY(-50%);
}

/* الأزرار */
.btn {
  display: inline-block;
  padding: .85rem 1.8rem;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #111827; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-dark); }
.btn-small { padding: .5rem 1.1rem; font-size: .95rem; }

/* الشريط العلوي */
.topbar { background: var(--navy-dark); color: rgba(255, 255, 255, .85); font-size: .9rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar-contacts { display: flex; gap: 1.5rem; }
.topbar a:hover { color: var(--accent); }
.topbar [dir="ltr"] { display: inline-block; }

/* الترويسة */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(11, 37, 69, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { font-weight: 900; font-size: 1.4rem; color: var(--navy); }
.brand::before { content: ""; display: inline-block; width: .9rem; height: .9rem; background: var(--accent); margin-inline-end: .5rem; transform: skewX(-12deg); }
.nav { display: flex; align-items: center; gap: 1.6rem; font-weight: 700; }
.nav a:not(.btn):hover { color: var(--accent-dark); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); display: block; }

/* الواجهة */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 26, 51, .88) 0%, rgba(7, 26, 51, .55) 60%, rgba(7, 26, 51, .25) 100%); }
.hero-inner { position: relative; max-width: 42rem; }
.hero .eyebrow { color: var(--accent); }
.lead { font-size: 1.2rem; color: rgba(255, 255, 255, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* الأقسام */
section { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.section-head .eyebrow { padding-inline: 1.6rem; }
.section-head .eyebrow::after { content: ""; position: absolute; inset-inline-end: 0; top: 50%; width: 1.1rem; height: 3px; background: var(--accent); transform: translateY(-50%); }
.section-head p:not(.eyebrow) { color: var(--muted); }

/* الخدمات */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  padding: 2rem 1.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 4px solid var(--navy);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-top-color: var(--accent); }
.card-icon { width: 64px; height: 64px; margin-bottom: 1rem; }
.card p { color: var(--muted); margin: 0; }

/* من نحن */
.about { background: var(--bg-soft); }
.about-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.about-art { position: relative; }
.about-art img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-art::after { content: ""; position: absolute; inset-inline-start: -14px; bottom: -14px; width: 40%; height: 40%; background: var(--accent); z-index: -1; border-radius: var(--radius); }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .55rem; }
.checks li { position: relative; padding-inline-start: 2rem; font-weight: 600; }
.checks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .5em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 3px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23111827' stroke-width='2.2' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center/70% no-repeat;
}

/* الأرقام */
.stats { background: var(--navy); color: #fff; padding: 3rem 0; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat { padding: 1rem; }
.stat + .stat { border-inline-start: 1px solid rgba(255, 255, 255, .15); }
.stat strong { display: block; font-size: 2.6rem; font-weight: 900; color: var(--accent); line-height: 1.1; }
.stat span { color: rgba(255, 255, 255, .8); font-weight: 600; }

/* المشاريع */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.project { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.project:hover img { transform: scale(1.04); }
.project-meta {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(7, 26, 51, .92));
  color: #fff;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.project-meta h3 { margin: 0; font-size: 1.1rem; }
.project-meta span { color: var(--accent); font-weight: 700; font-size: .9rem; white-space: nowrap; }

/* آراء العملاء */
.testimonials { background: var(--bg-soft); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.quote { margin: 0; padding: 1.8rem; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 1.2rem; font-size: 1.02rem; color: var(--ink); flex: 1; }
.quote blockquote::before { content: "“"; color: var(--accent); font-size: 2.4rem; line-height: 0; vertical-align: -0.5em; margin-inline-end: .2rem; }
.quote figcaption { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: .8rem; align-items: center; }
.quote figcaption img { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.quote-name { font-weight: 800; }
.quote-role { color: var(--muted); font-size: .9rem; }
.trusted { text-align: center; margin: 2.5rem 0 0; font-weight: 700; color: var(--navy); }

/* دعوة للتواصل */
.cta-band { background: var(--accent); color: #111827; padding: 3rem 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: .3rem; }
.cta-inner p { margin: 0; color: rgba(17, 24, 39, .8); max-width: 36rem; }

/* التواصل */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; }
.contact-item { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); border-inline-start: 4px solid var(--accent); }
.contact-label { display: block; color: var(--muted); font-size: .9rem; margin-bottom: .3rem; }
.contact-item a { color: var(--navy); font-weight: 800; }
.contact-item a:hover { color: var(--accent-dark); }
.contact-item p { margin: 0; font-weight: 600; }
.contact-item [dir="ltr"] { display: inline-block; }


/* الشاشات الصغيرة */
@media (max-width: 960px) {
  .cards, .grid, .quotes { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .15); }
}
@media (max-width: 720px) {
  .topbar { display: none; }
  .cards, .grid, .quotes, .about-inner { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 76px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1rem 1rem;
  }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: .8rem; text-align: center; border: 0; }
  .nav.open { display: flex; }
  }

/* ── شقوق المنصة: الشعار ومبدّل اللغة وألوان الشريط والتذييل ──
   تُكتب في آخر الورقة كي تغلب قواعد الشريط والتذييل أعلاه بلا حذفها. */

.site-header { background: var(--head-bg); color: var(--head-ink); }
.site-header .brand { color: inherit; }

.brand { display: flex; align-items: center; gap: .6rem; }
/* الشقّان مخفيّان حتى يرفع العميل شعارًا، فموقعٌ بلا شعار يعرض اسمه
   نصًّا كما كان. */
.brand-logo { height: var(--logo-h, 80px); width: auto; max-width: 340px; object-fit: contain; }
.foot-logo { height: var(--logo-h, 80px); width: auto; max-width: 340px; object-fit: contain; margin-bottom: .8rem; }

.lang-switch {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: .28rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.lang-switch:hover { border-color: var(--primary, currentColor); color: var(--primary, currentColor); }

.site-footer { background: var(--foot-bg); color: var(--foot-ink); padding: 3rem 0 0; text-align: start; border-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.2rem; }
.footer-col h3 { color: var(--foot-head); font-size: 1.05rem; margin-bottom: .7rem; }
.footer-col p { margin: 0 0 .5rem; font-size: .95rem; }
.footer-col a:hover { color: var(--foot-head); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.1rem 0; text-align: center; font-size: .9rem; }
.footer-bottom p { margin: 0; }
.site-footer [dir="ltr"] { display: inline-block; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
}
