:root{
  --bg:#2D333B;
  --accent:#D6FF00;
  --ink:#E8ECEF;
  --muted:#A0A6AD;
  --card:#343B45;
}
*{
  box-sizing:border-box
}
html,body{margin:0;
  padding:0;
}
body{
  font-family:"Montserrat","Noto Kufi Arabic", system-ui, sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.6;
}
.container{width:min(1100px, 92%);
  margin-inline:auto;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  background:rgba(45,51,59,.9);
  backdrop-filter:blur(8px);
  border-bottom:1px solid #3d434b;
  z-index:10;
  padding:10px 0;
}
.nav{display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 5%;
  gap:12px;
}
.brand-link{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--ink);font-weight:700;
  letter-spacing:.3px;
}
.brand-logo{
  height: 120px;      /* كبّري/صغّري الرقم اللي يعجبك */
  width: auto;        /* لا تثبّتي عرض صغير يقيّد الارتفاع */
  object-fit: contain;
  flex: 0 0 auto;     /* يمنع الانضغاط داخل flex */
  display: block;    
}
.logo-dot{
  width:16px;
  height:16px;
  border-radius:50%;
  background:var(--accent);
  display:inline-block;
  box-shadow:0 0 20px var(--accent);
}
.nav-links{
  display:flex;
  gap:22px;
  list-style:none;
  margin:0;
  padding:0;
}
.nav-links a{
  color:var(--ink);
  text-decoration:none;
  font-weight:600;
  opacity:.9;
}
.nav-links a:hover{
  color:var(--accent);
}
.lang-switch .btn-lang{
  display:inline-block;
  padding:8px 12px;
  border-radius:10px;
  border:1px solid #4a525d;
  color:#111;
  background:var(--accent);
  font-weight:800;
  text-decoration:none;
}

/* Hero */
.hero{
  padding:48px 0 24px;
  border-bottom:1px solid #3d434b;
  background:linear-gradient(180deg, rgba(214,255,0,.06), rgba(214,255,0,0) 60%);
}
.hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:24px;
  align-items:center;
}
.hero h1{
  font-size:clamp(26px, 4vw, 44px);
  margin:0 0 10px;
  line-height:1.2;
}
.hero p{
  color:var(--muted);
  margin:0 0 22px;
}
.scene{
  width:100%;
  height:auto;
}
.sun{
  fill:var(--accent);
  opacity:.95;
}
.tower{
  fill:#4a525d;
}
.hub{
  fill:#9aa3ad;
}
.panel{
  fill:url(#g1);
  opacity:.9;
}
.stand{
  stroke:#5c646e;
  stroke-width:2;
}
.blade polygon{
  fill:#cfd6de;
  opacity:.9;
}

/* ---------- Product page ---------- */
.breadcrumb{
  display:flex;gap:8px;align-items:center;
  margin:10px 0 8px;color:var(--muted);font-size:14px
}
.breadcrumb a{color:var(--ink);text-decoration:none;opacity:.85}
.breadcrumb a:hover{color:var(--accent)}

.product-head{margin:6px 0 18px}
.product-title{margin:0 0 6px;font-size:clamp(22px,3.2vw,32px)}
.product-sub{margin:0;color:var(--muted)}

.product-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px; /* صور | مواصفات */
  gap:18px;
  align-items:start;
}

/* === Slider === */
.gallery{
  position:relative;
  width:100%;
  overflow:hidden;
  border-radius:16px;
  background:#575c65;;
  border:1px solid #3f4650;
}
.gal-track{
  display:flex;
  transition:transform .5s ease;
}
.gal-item{
  flex:0 0 100%;
  text-align:center;
}
.gal-item img{
  width:50%;        /* ← تصغير الصورة داخل السلايد */
  height:auto;
  margin:0 auto;
  display:block;
  object-fit:contain;
  border-radius:12px;
}
/* أزرار التنقل */
.gal-btn{
  position:absolute;top:50%;transform:translateY(-50%);
  background:rgba(0,0,0,.4);color:#fff;
  border:none;border-radius:50%;
  width:32px;height:32px;cursor:pointer;
}
.gal-btn:hover{background:rgba(0,0,0,.6)}
.gal-prev{left:8px}
.gal-next{right:8px}

/* ===== Specs ===== */
.product-specs{
  position:sticky;top:76px;
  background:var(--card);
  border:1px solid #3f4650;
  border-radius:16px;
  padding:14px;
}
.specs{width:100%;border-collapse:separate;border-spacing:0 8px}
.specs th{color:var(--ink);text-align:start;font-weight:600;white-space:nowrap}
.specs td{color:var(--muted);text-align:end}

.proj-link{display:block;color:inherit;text-decoration:none}
.proj-link:hover .proj-img{transform:scale(1.02)}
.proj-img{transition:transform .25s ease}


/* Buttons */
.btn{display:inline-block;
  padding:12px 18px;
  border-radius:14px;
  font-weight:700;
  text-decoration:none;
  border:1px solid #4a525d;
}
.btn-primary{
  background:var(--accent);
  color:#111;
  border-color:var(--accent);
}
.btn-ghost{background:transparent;
  color:var(--ink);
}
.btn:hover{
  transform:translateY(-1px);
}

/* Features */
.features{
  padding:40px 0;
}
.cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.card{
  background:var(--card);
  padding:18px;
  border-radius:16px;
  border:1px solid #3f4650;
}
.card h3{
  margin:8px 0;
  font-size:18px;
}
.card p{
  margin:0;
  color:var(--muted);
}
.ic{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  background:rgba(214,255,0,.12);
  border-radius:10px;
  margin-bottom:8px;
}
.ic svg{
  width:22px;
  height:22px;
  stroke:var(--accent);
  fill:none;
  stroke-width:2;
}

/* Projects */
.projects {
  padding: 50px 0;
}

.projects h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 26px;
  letter-spacing: 0.5px;
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.proj-card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #3f4650;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.proj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.proj-img-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #2d333b; /* لون الخلفية في حالة وجود فراغ */
  display: flex;
  align-items: center;
  justify-content: center;
}

.proj-img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* <<< هذا يخلي الصورة كلها تبين بدون قص */
  object-position: center;
  background-color: #575c65;;
}


.proj-card:hover .proj-img {
  transform: scale(1.05);
}

.proj-body {
  padding: 16px 18px 22px;
  text-align: center;
}

.proj-body h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.proj-body p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* PDF Download */
.pdf-download a.btn-outline {
  display:inline-block;
  padding:10px 20px;
  border:1px solid var(--accent);
  color:var(--accent);
  border-radius:8px;
  text-decoration:none;
  transition:0.3s;
}
.pdf-download a.btn-outline:hover {
  background:var(--accent);
  color:var(--bg);
}
.btn-outline {
  display:inline-block;
  padding:10px 18px;
  border:1px solid var(--accent);
  color:var(--accent);
  border-radius:8px;
  text-decoration:none;
  transition:0.3s;
  font-weight:500;
}
.btn-outline:hover {
  background:var(--accent);
  color:var(--bg);
}



/* Contact */
.contact{
  padding:36px 0 56px;
}
.contact-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:20px;
  align-items:start;
}
.contact-form{
  display:grid;
  gap:10px;background:var(--card);
  padding:16px;
  border-radius:14px;
  border:1px solid #3f4650;
}
.contact-form label{
  display:grid;
  gap:6px;
  font-weight:600;
}
.contact-form input,
.contact-form textarea{
  padding:10px;
  border-radius:10px;
  border:1px solid #4a525d;
  background:#2b3037;
  color:var(--ink);
}
.form-msg{
  margin:6px 0 0;
  color:var(--accent);
  font-weight:700;min-height:1.2em;
}
/* أرقام هاتف داخل صفحات عربية */
.tel-ltr{
  direction:ltr;               /* يمنع تشابك bidi */
  unicode-bidi:bidi-override;  /* يثبت ترتيب العلامات + والمسافات */
  display:inline-block;
  font-variant-numeric: tabular-nums; /* محاذاة أنظف */
}


/* Footer */
.site-footer{
  border-top:1px solid #3d434b;
  padding:18px 0 28px;
  background:#2a2f36;
}
.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:16px;
  align-items:start;
}
.foot-links a{
  color:var(--ink);
  text-decoration:none;
  margin-bottom:6px;
  padding: 5PX;
  font-weight:600;
  opacity:.9;
}
.foot-links a:hover{
  color:var(--accent);
}
.logo-row{display:flex;align-items:center;gap:10px}

/* RTL overrides */
[dir="rtl"] .nav{flex-direction:row-reverse}
[dir="rtl"] .nav-links{flex-direction:row-reverse}
[dir="rtl"] .hero-grid{grid-template-columns:1.1fr .9fr}
[dir="rtl"] .cta-row{direction:rtl}

/* Responsive */
@media (max-width:900px){
  .nav{
    grid-template-columns: 1fr auto 1fr;  /* تبقى صف واحد */
    row-gap: var(--space-sm);
  }
  .brand-logo{
    height:62px;
  }
  .hero-grid{
    grid-template-columns:1fr;
  }
  .hero-text{
    text-align:center;
  }
  .cta-row{
    display:flex;
    gap:10px;
    justify-content:center;
    flex-wrap:wrap}
  .scene{
    max-width:320px;
    margin-block-start:12px;
  }

  .contact-grid{
    grid-template-columns:1fr;
  }
  .cards, .proj-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:560px){
  .brand-logo{
    height:35px;
  }
  .nav{
    padding-inline: 3%;
  }
  .nav-links{
    gap:14px;
  }
  .nav-links a{
    font-size:14px;
  }
  .cards, .proj-grid{
    grid-template-columns:1fr;
  }
  .hero h1{
    font-size:clamp(22px,7vw,30px);
  }
  .btn{
    padding:10px 14px;
  }
}
/* Responsive */
@media(max-width:900px){
  .product-grid{grid-template-columns:1fr}
  .product-specs{position:relative;top:auto}
}
