/* ================================================================
   الوطني للطاقة المتجددة — Apple / Clean redesign
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  --bg:        #ffffff;
  --bg-alt:    #f5f5f7;   /* رمادي آبل الفاتح */
  --bg-deep:   #08160e;   /* أخضر شبه أسود للأقسام الداكنة */
  --ink:       #1d1d1f;   /* شبه أسود */
  --ink-soft:  #6e6e73;   /* نص ثانوي */
  --ink-mute:  #86868b;
  --line:      #d2d2d7;   /* خط شعري */
  --green:     #1a7a45;
  --green-deep:#0f5130;
  --green-pale:#eef7f1;
  --orange:    #e08a1e;
  --radius:    20px;
  --radius-sm: 14px;
  --ease:      cubic-bezier(.4,0,.2,1);
  --wrap:      1120px;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  direction: rtl;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--green); color: #fff; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-thumb { background: #c7c7cc; border-radius: 5px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* أدوات نصية */
.eyebrow {
  font-size: 15px; font-weight: 700; color: var(--green);
  letter-spacing: .01em; margin-bottom: 12px;
}
.h-xl { font-size: clamp(40px, 7vw, 88px); font-weight: 900; letter-spacing: -.02em; line-height: 1.04; }
.h-lg { font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.h-md { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.01em; }
.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--ink-soft); font-weight: 400; line-height: 1.7; }
.text-green { color: var(--green); }
.text-grad {
  background: linear-gradient(120deg, var(--green) 0%, #2ea666 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* أزرار */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
  padding: 13px 28px; border-radius: 980px; border: none;
  transition: all .25s var(--ease); white-space: nowrap;
}
.btn-solid { background: var(--green); color: #fff; }
.btn-solid:hover { background: var(--green-deep); transform: scale(1.03); }
.btn-ghost { background: transparent; color: var(--green); padding: 13px 8px; }
.btn-ghost::after { content: '‹'; font-size: 22px; transition: transform .25s var(--ease); }
.btn-ghost:hover::after { transform: translateX(-5px); }
.btn-dark { background: #fff; color: var(--ink); }
.btn-dark:hover { transform: scale(1.03); background: #f0f0f2; }

/* أقسام */
.section { padding: clamp(72px, 11vw, 130px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(44px, 6vw, 72px); }
.section-head .lead { margin-top: 16px; }

/* ===================== NAV ===================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: 56px;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
  transition: transform .35s var(--ease);
}
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo span { font-size: 16px; font-weight: 800; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink); opacity: .85; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; color: var(--green); }
.nav-cta { font-size: 14.5px; font-weight: 700; color: #fff !important; background: var(--green);
  padding: 8px 18px; border-radius: 980px; opacity: 1 !important; transition: background .2s; }
.nav-cta:hover { background: var(--green-deep); }
.nav-menu { display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; }
.nav-store { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%; background: var(--green-pale); color: var(--green-deep);
  transition: background .2s var(--ease), color .2s var(--ease); }
.nav-store:hover { background: var(--green); color: #fff; }
.nav-store svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.mobile-menu { display: none; position: fixed; top: 56px; inset-inline: 0; z-index: 999;
  background: rgba(255,255,255,.96); backdrop-filter: blur(20px); padding: 16px 24px 24px;
  border-bottom: 1px solid var(--line); }
.mobile-menu.open { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a { padding: 13px 4px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: none; }

/* ===================== HERO ===================== */
.hero { padding: 140px 0 0; text-align: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--green);
  background: var(--green-pale); padding: 7px 16px; border-radius: 980px; margin-bottom: 26px;
}
.hero .badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero h1 { margin: 0 auto; max-width: 14ch; }
.hero .lead { margin: 24px auto 0; max-width: 620px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-visual {
  margin: clamp(48px, 7vw, 84px) auto 0; max-width: 1180px; position: relative;
}
.hero-visual img {
  width: 100%; border-radius: clamp(18px, 3vw, 34px); object-fit: cover;
  aspect-ratio: 16 / 8; box-shadow: 0 40px 90px -30px rgba(8,22,14,.5);
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 760px; margin: clamp(48px, 7vw, 80px) auto 0;
}
.hero-stat .num { font-size: clamp(38px, 6vw, 60px); font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.hero-stat .lbl { margin-top: 8px; font-size: 15px; color: var(--ink-soft); font-weight: 500; }

/* ===================== ABOUT ===================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-visual { position: relative; }
.about-visual .card-img {
  background: linear-gradient(160deg, #0f5130, #08160e); border-radius: var(--radius);
  padding: 56px 40px; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3;
}
.about-visual .card-img img { max-height: 220px; width: auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,.4)); }
.about-year {
  position: absolute; bottom: -22px; inset-inline-start: -18px;
  background: #fff; border-radius: var(--radius-sm); box-shadow: 0 18px 40px -14px rgba(0,0,0,.25);
  padding: 16px 22px; text-align: center; border: 1px solid var(--line);
}
.about-year .y { font-size: 30px; font-weight: 900; color: var(--green); line-height: 1; }
.about-year .t { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.about-list { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.about-item { display: flex; gap: 16px; }
.about-item .ic {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
}
.about-item .ic svg { width: 22px; height: 22px; fill: none; stroke: var(--green); stroke-width: 2; }
.about-item h4 { font-size: 18px; font-weight: 800; margin-bottom: 3px; }
.about-item p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }

/* ===================== CARDS GRID (services / why) ===================== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.section-alt .card { background: #fff; }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -20px rgba(8,22,14,.22); }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px; background: var(--green-pale);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card .ic svg { width: 26px; height: 26px; fill: none; stroke: var(--green); stroke-width: 2; }
.card h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { font-size: 15px; color: var(--ink-soft); line-height: 1.7; }

/* بطاقات مرقّمة */
.num-card { position: relative; }
.num-card .n { font-size: 15px; font-weight: 800; color: var(--green); margin-bottom: 14px; }

/* ===================== PROJECTS ===================== */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.proj-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.proj-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -20px rgba(8,22,14,.22); }
.proj-card .top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.proj-card .top .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--green-pale);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.proj-card .top .ic svg { width: 22px; height: 22px; fill: var(--green); }
.proj-card h4 { font-size: 19px; font-weight: 800; }
.proj-card .loc { font-size: 14px; color: var(--ink-mute); }
.proj-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 18px; }
.proj-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 980px; }
.tag-green { background: var(--green-pale); color: var(--green-deep); }
.tag-orange { background: #fef2e2; color: #9a5c07; }

/* ===================== BRANDS / PARTNERS ===================== */
.brands-block { margin-top: 40px; }
.brands-block + .brands-block { margin-top: 48px; }
.brands-label { text-align: center; font-size: 15px; font-weight: 700; color: var(--ink-soft); margin-bottom: 22px; }
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.brand-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  height: 100px; display: flex; align-items: center; justify-content: center; padding: 20px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); text-decoration: none;
}
a.brand-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(8,22,14,.22); }
.brand-card img { max-width: 100%; max-height: 60px; object-fit: contain;
  filter: grayscale(1); opacity: .7; transition: filter .25s var(--ease), opacity .25s var(--ease); }
.brand-card:hover img { filter: grayscale(0); opacity: 1; }
.brand-name { font-size: 17px; font-weight: 800; color: var(--ink); }

/* ===================== GALLERY ===================== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery-item { padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  cursor: zoom-in; background: #fff; aspect-ratio: 4 / 3; display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); display: block; }
.gallery-item:hover img { transform: scale(1.06); }

/* ===================== LIGHTBOX ===================== */
.lightbox { position: fixed; inset: 0; z-index: 5000; background: rgba(8,22,14,.94);
  display: none; align-items: center; justify-content: center; padding: 4vh 4vw; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px;
  background: #fff; padding: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: lb-in .22s var(--ease); }
@keyframes lb-in { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lb-close { position: absolute; top: 20px; right: 22px; width: 46px; height: 46px; border-radius: 50%;
  border: none; cursor: pointer; background: rgba(255,255,255,.14); color: #fff; font-size: 26px;
  display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lb-close:hover { background: var(--green); }
.lb-caption { position: absolute; bottom: 22px; inset-inline: 0; text-align: center;
  color: rgba(255,255,255,.85); font-size: 15px; font-weight: 700; padding: 0 20px; pointer-events: none; }

/* ===================== CTA band ===================== */
.cta-band {
  background: linear-gradient(160deg, #0f5130 0%, #08160e 100%);
  border-radius: clamp(20px, 4vw, 34px); padding: clamp(48px, 8vw, 90px) 32px; text-align: center; color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.75); font-size: 18px; margin-bottom: 30px; }

/* ===================== CONTACT ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.c-item { display: flex; align-items: center; gap: 15px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: all .25s var(--ease); }
.c-item:hover { border-color: var(--green); transform: translateX(-4px); }
.c-item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--green-pale);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c-item .ic svg { width: 21px; height: 21px; fill: none; stroke: var(--green); stroke-width: 2; }
.c-item .lbl { font-size: 13px; color: var(--ink-mute); }
.c-item .val { font-size: 16px; font-weight: 700; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 40px); }
.contact-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 22px; letter-spacing: -.01em; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; font-family: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { display: none; padding: 13px 16px; border-radius: 12px; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.form-note.ok { display: block; background: var(--green-pale); color: var(--green-deep); }
.form-note.err { display: block; background: #fdecea; color: #c0392b; }

/* ===================== FOOTER ===================== */
.footer { background: var(--bg-deep); color: rgba(255,255,255,.62); padding: 72px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 46px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { font-size: 14.5px; line-height: 1.8; max-width: 320px; }
.footer h5 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14.5px; transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer-bottom { margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.footer-bottom .brand { color: #fff; font-weight: 700; }

/* واتساب عائم */
.wa-float { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ===================== REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-menu { gap: 14px; }
  .nav-logo span { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
