/* ===== شركة وتد للمقاولات — الأنماط الرئيسية ===== */
:root {
  --black: #0d0d0d;
  --ink: #1a1a1a;
  --charcoal: #262626;
  --gold: #c9a24a;
  --gold-dark: #a8842f;
  --white: #ffffff;
  --paper: #f6f4ef;
  --muted: #6b6b6b;
  --line: #e4e0d6;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .35);
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Cairo", "Tajawal", system-ui, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.section { padding: 100px 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--paper { background: var(--paper); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); font-weight: 700; font-size: .95rem; margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.7rem); font-weight: 800; line-height: 1.4; margin-bottom: 16px; }
.section-lead { color: var(--muted); max-width: 640px; font-size: 1.08rem; }
.section--dark .section-lead { color: #bdbdbd; }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-inline: auto; }
.section-head.center .eyebrow::after { content: ""; width: 34px; height: 2px; background: var(--gold); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 50px; font-weight: 700; font-family: inherit;
  font-size: 1rem; cursor: pointer; border: 2px solid transparent; transition: .3s;
}
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn--outline { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--black); }

/* ===== الشريط العلوي ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0; transition: .35s;
}
.header.scrolled { background: rgba(13,13,13,.94); backdrop-filter: blur(10px); padding: 10px 0; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand img { width: 54px; height: 54px; border-radius: 50%; background: var(--white); }
.brand strong { display: block; font-size: 1.15rem; line-height: 1.3; }
.brand small { color: var(--gold); font-size: .78rem; letter-spacing: .5px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: #e8e8e8; font-weight: 600; position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; bottom: 0; right: 0; width: 0; height: 2px; background: var(--gold); transition: .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { padding: 10px 22px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.6rem; cursor: pointer; }

/* ===== الواجهة ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: var(--white); overflow: hidden;
  background:
    linear-gradient(115deg, rgba(13,13,13,.96) 35%, rgba(13,13,13,.72)),
    url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1920&q=80") center/cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(201,162,74,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(201,162,74,.06) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; padding-top: 90px; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); font-weight: 900; line-height: 1.35; margin-bottom: 22px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.15rem; color: #cfcfcf; max-width: 580px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-logo { position: relative; justify-self: center; }
.hero-logo img {
  width: min(380px, 70vw); border-radius: 50%; background: var(--white);
  box-shadow: 0 0 0 14px rgba(255,255,255,.05), 0 0 0 30px rgba(201,162,74,.08), 0 30px 80px rgba(0,0,0,.6);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px); } }
.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 20px;
}
.scroll-hint::after {
  content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--gold); border-radius: 2px; animation: scroll 1.6s infinite;
}
@keyframes scroll { to { transform: translateY(14px); opacity: 0; } }

/* ===== الأرقام ===== */
.stats { background: var(--gold); color: var(--black); padding: 46px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.2; }
.stat span { font-weight: 600; }

/* ===== من نحن ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-media { position: relative; }
.about-media .main {
  border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%;
}
.about-badge {
  position: absolute; bottom: -26px; left: -26px; background: var(--black); color: var(--white);
  padding: 22px 28px; border-radius: var(--radius); border-bottom: 4px solid var(--gold); box-shadow: var(--shadow);
}
.about-badge strong { display: block; color: var(--gold); font-size: 1.6rem; }
.about-text p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0 34px; }
.checks li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.checks li::before {
  content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--black); color: var(--gold); font-size: .85rem;
}

.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 80px; }
.mvv-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: .3s; }
.mvv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.mvv-card .icon { font-size: 2rem; margin-bottom: 12px; }
.mvv-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.mvv-card p { color: var(--muted); }

/* ===== المؤسس ===== */
.founder-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.founder-photo { position: relative; }
.founder-photo::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 2px solid var(--gold); border-radius: var(--radius);
}
.founder-photo img { position: relative; border-radius: var(--radius); aspect-ratio: 3/4; object-fit: cover; object-position: top; width: 100%; }
.founder-name { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 900; }
.founder-role { color: var(--gold); font-weight: 700; font-size: 1.1rem; margin-bottom: 24px; }
.founder-text p { color: #c9c9c9; margin-bottom: 16px; font-size: 1.05rem; }
.quote {
  margin: 30px 0; padding: 24px 28px; background: var(--charcoal); border-right: 4px solid var(--gold);
  border-radius: 8px; font-size: 1.15rem; font-weight: 600; position: relative;
}
.quote::before { content: "”"; position: absolute; top: -18px; left: 18px; font-size: 5rem; color: var(--gold); opacity: .35; line-height: 1; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25); transition: .3s;
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }

/* ===== الخدمات ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  position: relative; background: var(--white); border-radius: var(--radius); padding: 36px 30px;
  border: 1px solid var(--line); overflow: hidden; transition: .35s;
}
.service::before {
  content: ""; position: absolute; inset: 0; background: var(--black); transform: translateY(101%); transition: .4s; z-index: 0;
}
.service > * { position: relative; z-index: 1; }
.service:hover::before { transform: translateY(0); }
.service:hover { color: var(--white); box-shadow: var(--shadow); }
.service:hover p { color: #bdbdbd; }
.service .num { position: absolute; top: 18px; left: 24px; font-size: 3rem; font-weight: 900; color: rgba(201,162,74,.18); }
.service .icon {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: var(--paper); margin-bottom: 22px; transition: .35s;
}
.service:hover .icon { background: var(--gold); }
.service .icon svg { width: 32px; height: 32px; stroke: var(--black); fill: none; stroke-width: 1.6; }
.service h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service p { color: var(--muted); transition: .35s; }

/* ===== مراحل العمل ===== */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; counter-reset: step; }
.step { text-align: center; position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 40px; left: -15px; width: calc(100% - 80px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px); transform: translateX(-50%); margin-left: 0;
}
.step-circle {
  counter-increment: step; width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--charcoal); border: 2px solid var(--gold);
  font-size: 1.8rem; font-weight: 900; color: var(--gold);
}
.step-circle::before { content: counter(step, arabic-indic); }
.step h3 { margin-bottom: 8px; }
.step p { color: #bdbdbd; font-size: .97rem; }

/* ===== المشاريع ===== */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter {
  font-family: inherit; font-size: .98rem; font-weight: 700; padding: 9px 22px; border-radius: 50px;
  background: transparent; border: 1px solid var(--line); cursor: pointer; transition: .3s; color: var(--ink);
}
.filter.active, .filter:hover { background: var(--black); color: var(--gold); border-color: var(--black); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer;
  background: var(--charcoal);
}
.project img { width: 100%; height: 100%; object-fit: cover; transition: .6s; }
.project:hover img { transform: scale(1.08); }
.project-info {
  position: absolute; inset: auto 0 0 0; padding: 60px 24px 22px; color: var(--white);
  background: linear-gradient(transparent, rgba(0,0,0,.88));
}
.project-info span { color: var(--gold); font-size: .85rem; font-weight: 700; }
.project-info h3 { font-size: 1.2rem; }
.project.hide { display: none; }

/* ===== لماذا نحن ===== */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.why-list { display: grid; gap: 22px; }
.why-item { display: flex; gap: 18px; }
.why-item .icon {
  flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--black); color: var(--gold);
  display: grid; place-items: center; font-size: 1.5rem;
}
.why-item h3 { font-size: 1.15rem; margin-bottom: 4px; }
.why-item p { color: var(--muted); }
.why-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; width: 100%; }

/* ===== دعوة للتواصل ===== */
.cta {
  background: linear-gradient(rgba(13,13,13,.85), rgba(13,13,13,.85)),
    url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1920&q=80") center/cover fixed;
  color: var(--white); text-align: center; padding: 90px 0;
}
.cta h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 900; margin-bottom: 14px; }
.cta p { color: #cfcfcf; margin-bottom: 30px; font-size: 1.1rem; }

/* ===== اتصل بنا ===== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; }
.contact-info { display: grid; gap: 18px; align-content: start; }
.info-card {
  display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
}
.info-card .icon {
  flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--black); color: var(--gold);
  display: grid; place-items: center; font-size: 1.3rem;
}
.info-card small { color: var(--muted); display: block; }
.info-card strong, .info-card a { font-size: 1.05rem; }
.info-card a[dir="ltr"] { unicode-bidi: embed; }
.form { background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; padding: 13px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper); transition: .25s; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px rgba(201,162,74,.15); }
.field textarea { min-height: 130px; resize: vertical; }
.form .btn { width: 100%; justify-content: center; }
.form-note { margin-top: 12px; font-size: .9rem; color: var(--muted); text-align: center; }

/* ===== التذييل ===== */
.footer { background: var(--black); color: #bdbdbd; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer h4 { color: var(--white); margin-bottom: 18px; font-size: 1.1rem; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: var(--gold); }
.footer .brand { margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid #2a2a2a; padding: 22px 0; text-align: center; font-size: .92rem; }

/* ===== أزرار عائمة ===== */
.whatsapp {
  position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(37,211,102,.45); transition: .3s;
}
.whatsapp:hover { transform: scale(1.1); }
.whatsapp svg { width: 32px; height: 32px; fill: #fff; }
.to-top {
  position: fixed; bottom: 24px; left: 24px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: var(--black); border: 0; font-size: 1.3rem; cursor: pointer;
  opacity: 0; visibility: hidden; transition: .3s;
}
.to-top.show { opacity: 1; visibility: visible; }

/* ===== نافذة عرض الصور ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 80vh; border-radius: 10px; }
.lightbox-caption { color: var(--white); text-align: center; margin-top: 14px; font-weight: 700; }
.lightbox-close {
  position: absolute; top: 20px; left: 24px; background: none; border: 0; color: var(--white); font-size: 2.4rem; cursor: pointer;
}

/* ===== ظهور العناصر عند التمرير ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== التجاوب ===== */
@media (max-width: 1024px) {
  .services-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .step::after { display: none; }
}
@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: 280px; flex-direction: column; gap: 6px;
    background: var(--black); padding: 100px 30px 30px; transform: translateX(100%); transition: .35s;
    box-shadow: -10px 0 30px rgba(0,0,0,.4);
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.1rem; padding: 10px 0; }
  .menu-toggle { display: block; z-index: 101; }
  .nav-cta { display: none; }
  .hero-grid, .about-grid, .founder-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { text-align: center; gap: 40px; }
  .hero p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-logo { order: -1; }
  .hero-logo img { width: min(240px, 60vw); }
  .mvv { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .founder-photo { max-width: 420px; margin-inline: auto; }
  .about-badge { left: 12px; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .services-grid, .projects-grid, .footer-grid, .form-row, .checks, .process { grid-template-columns: 1fr; }
  .form { padding: 26px 20px; }
  .brand strong { font-size: 1rem; }
  .brand img { width: 46px; height: 46px; }
  .founder-photo::before { inset: 14px -10px -14px 10px; }
  .cta { background-attachment: scroll; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
