:root {
  --green: #1b7a3d;
  --green-dark: #0f4f27;
  --gold: #e2b52b;
  --gold-dark: #b98c12;
  --red: #c4262e;
  --navy: #1f2456;
  --ink: #1e2a22;
  --muted: #5d6b62;
  --bg: #ffffff;
  --tint: #f6f3ea;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 79, 39, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: "Tajawal", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.8; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* أزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 28px; border-radius: 50px; font-weight: 700; font-family: inherit; font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.btn-gold { background: var(--gold); color: var(--green-dark); }
.btn-gold:hover { background: #f0c63d; }
.btn-green { background: var(--green); color: #fff; }
.btn-fb { background: #1877f2; color: #fff; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--green-dark); }
.btn-sm { padding: 8px 20px; font-size: .95rem; }
.btn-block { width: 100%; }

/* الشريط العلوي */
.topbar { background: var(--green-dark); color: #dfe9e2; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.topbar-phones { display: flex; gap: 16px; direction: ltr; }
.topbar a:hover { color: var(--gold); }

/* الهيدر */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); box-shadow: 0 2px 16px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 62px; width: auto; }
.brand strong { display: block; color: var(--green-dark); font-size: 1.1rem; line-height: 1.3; }
.brand small { color: var(--gold-dark); font-weight: 700; letter-spacing: 1px; font-size: .7rem; }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 500; }
.nav a:not(.btn) { position: relative; padding: 4px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; bottom: -2px; right: 0; width: 0; height: 2px; background: var(--gold); transition: width .25s; }
.nav a:not(.btn):hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--green); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--green-dark); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* الواجهة */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); animation: heroZoom 18s ease-in-out infinite alternate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(270deg, rgba(15,79,39,.94) 0%, rgba(15,79,39,.78) 45%, rgba(15,79,39,.25) 100%); }
.hero-content { position: relative; z-index: 2; padding: 80px 0; }
.hero-verse { font-family: "Amiri", serif; color: var(--gold); font-size: 1.6rem; margin-bottom: 10px; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); line-height: 1.2; font-weight: 800; }
.hero h1 span { color: var(--gold); }
.hero-tag { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 700; margin: 18px 0 6px; }
.hero-sub { max-width: 560px; opacity: .92; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-badge { position: absolute; z-index: 2; left: 6%; bottom: 12%; width: 170px; height: 170px; border-radius: 50%; background: #fff; color: var(--green-dark); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 6px solid var(--gold); box-shadow: var(--shadow); animation: float 4s ease-in-out infinite; }
.hero-badge strong { font-size: 1.4rem; }
.hero-badge span { color: var(--red); font-weight: 700; }
@keyframes heroZoom { to { transform: scale(1.15); } }
@keyframes float { 50% { transform: translateY(-12px); } }

/* أرقام */
.stats { background: var(--gold); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat { padding: 26px 10px; border-left: 1px solid rgba(15,79,39,.18); color: var(--green-dark); }
.stat:last-child { border-left: 0; }
.stat b { display: block; font-size: 2rem; font-weight: 800; direction: ltr; }
.stat span { font-weight: 500; }

/* أقسام */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--green-dark); color: #fff; }
.section-head { text-align: center; margin-bottom: 52px; }
.eyebrow { display: inline-block; color: var(--gold-dark); font-weight: 700; margin-bottom: 6px; position: relative; padding: 0 34px; }
.eyebrow::before, .eyebrow::after { content: ""; position: absolute; top: 50%; width: 24px; height: 2px; background: currentColor; }
.eyebrow::before { right: 0; } .eyebrow::after { left: 0; }
.eyebrow.light, .section-head.light .eyebrow { color: var(--gold); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.3; color: var(--green-dark); font-weight: 800; }
.section-dark h2, .register h2 { color: #fff; }

/* من نحن */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-media { position: relative; padding-bottom: 60px; }
.about-media img:first-child { width: 85%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; }
.about-media-small { position: absolute; left: 0; bottom: 0; width: 45%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow); }
.about-text .eyebrow { padding-right: 34px; }
.about-text h2 { margin-bottom: 18px; }
.about-text p { color: var(--muted); margin-bottom: 14px; }
.values { display: grid; gap: 14px; margin-top: 24px; }
.value { display: flex; gap: 14px; align-items: center; background: var(--tint); padding: 16px 18px; border-radius: 14px; border-right: 4px solid var(--gold); }
.value i { font-style: normal; font-size: 1.8rem; }
.value b { display: block; color: var(--green-dark); }
.value span { color: var(--muted); }

/* المراحل */
.stages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.stage { background: #fff; border-radius: var(--radius); padding: 36px 28px; box-shadow: var(--shadow); text-align: center; border-top: 6px solid var(--green); transition: transform .25s; }
.stage:hover { transform: translateY(-8px); }
.stage-kg { border-top-color: var(--red); }
.stage-values { border-top-color: var(--gold); }
.stage-icon { font-size: 2.6rem; width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; }
.stage h3 { color: var(--green-dark); font-size: 1.35rem; margin-bottom: 8px; }
.stage p { color: var(--muted); }

/* المميزات */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 28px 22px; border-radius: var(--radius); border: 1px solid #e8e4d6; transition: .25s; background: #fff; }
.feature:hover { background: var(--green); color: #fff; border-color: var(--green); transform: translateY(-4px); }
.feature:hover h3, .feature:hover p { color: #fff; }
.feature span { font-size: 2rem; }
.feature h3 { font-size: 1.1rem; color: var(--green-dark); margin: 10px 0 4px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* المعرض */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.g-item { position: relative; overflow: hidden; border-radius: 14px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-item:hover img { transform: scale(1.08); }
.g-item span { position: absolute; inset: auto 0 0 0; padding: 30px 14px 10px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-weight: 700; }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }

/* الأخبار */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s; }
.news-card:hover { transform: translateY(-6px); }
.news-card img { width: 100%; height: 280px; object-fit: cover; object-position: top; }
.news-body { padding: 20px 22px 24px; }
.tag { display: inline-block; background: var(--tint); color: var(--gold-dark); font-weight: 700; font-size: .8rem; padding: 2px 12px; border-radius: 20px; }
.news-body h3 { color: var(--green-dark); font-size: 1.15rem; margin: 8px 0 4px; line-height: 1.5; }
.news-body p { color: var(--muted); font-size: .95rem; }

/* التسجيل */
.register { background: linear-gradient(135deg, var(--navy), #2b3275); color: #fff; padding: 96px 0; position: relative; overflow: hidden; }
.register::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(196,38,46,.25); top: -160px; left: -140px; }
.register-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.register p { opacity: .9; margin: 16px 0; }
.register-list { list-style: none; display: grid; gap: 8px; }
.register-list li::before { content: "✔"; color: var(--gold); margin-left: 10px; }
.register-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 32px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.register-card h3 { color: var(--green-dark); font-size: 1.4rem; margin-bottom: 14px; }
.register-card label { display: block; font-weight: 500; margin-bottom: 12px; font-size: .95rem; }
.register-card input, .register-card select { display: block; width: 100%; margin-top: 4px; padding: 11px 14px; border-radius: 10px; border: 1px solid #d9d6cb; font-family: inherit; font-size: 1rem; background: #fcfbf7; }
.register-card input:focus, .register-card select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.register-card small { display: block; text-align: center; color: var(--muted); margin-top: 10px; }

/* الوظائف */
.jobs-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.jobs-grid h2 { margin-bottom: 12px; }
.jobs-grid > div > p { color: var(--muted); }
.check-list { list-style: none; margin: 18px 0; display: grid; gap: 8px; }
.check-list li { padding-right: 30px; position: relative; }
.check-list li::before { content: "◆"; position: absolute; right: 4px; color: var(--green); }
.note { background: #fff; padding: 12px 18px; border-radius: 12px; border-right: 4px solid var(--gold); }
.note a { color: var(--green); font-weight: 700; direction: ltr; display: inline-block; }
.jobs-img img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* تواصل */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; }
.contact-cards { display: grid; gap: 14px; align-content: start; }
.c-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--tint); border-radius: 14px; }
.c-card i { font-style: normal; font-size: 1.6rem; }
.c-card b { display: block; color: var(--green-dark); }
.c-card span { color: var(--muted); }
.c-card a { direction: ltr; display: inline-block; font-weight: 700; color: var(--ink); }
.c-card a:hover { color: var(--green); }
.c-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

/* الفوتر */
.footer { background: var(--green-dark); color: #cfdcd3; padding: 36px 0; border-top: 5px solid var(--gold); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 70px; background: #fff; border-radius: 12px; padding: 6px; }
.footer-brand strong { color: #fff; font-size: 1.1rem; }
.copy { font-size: .9rem; }

/* واتساب عائم */
.wa-float { position: fixed; left: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.1); }

/* عارض الصور */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 10px; }
.lb-close { position: absolute; top: 14px; left: 20px; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1; }

/* ظهور تدريجي */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

/* استجابة */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; background: #fff; padding: 10px 16px 20px; gap: 4px; box-shadow: 0 12px 20px rgba(0,0,0,.08); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { width: 100%; padding: 10px 0; border-bottom: 1px solid #eee; }
  .nav .btn { margin-top: 10px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .about-grid, .register-inner, .jobs-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .stages-grid, .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-left: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .hero-badge { width: 110px; height: 110px; left: 16px; top: 20px; bottom: auto; border-width: 4px; }
  .hero-badge strong { font-size: 1rem; } .hero-badge span { font-size: .8rem; }
  .topbar-inner > span:first-child { display: none; }
  .topbar-phones { width: 100%; justify-content: center; }
  .section, .register { padding: 70px 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand img { height: 48px; }
  .brand strong { font-size: .95rem; }
  .brand small { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; }
  .hero::before { background: rgba(15,79,39,.85); }
  .topbar-phones { gap: 10px; font-size: .78rem; }
  .register-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
