/* 🌿 خطوط وأساسات */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

:root {
  --main-green:#168f4b;
  --dark-green:#0c5e32;
  --light-green:#eaf8ef;
  --gold:#f9cc45;
  --text-dark:#222;
  --gray:#666;
  --bg-header:#ffffff;
}

/* إعداد عام */
*{box-sizing:border-box;margin:0;padding:0;}
html,body{
  width:100%;overflow-x:hidden;scroll-behavior:smooth;
  font-family:"Cairo",sans-serif;color:var(--text-dark);
  background:#fafdfb;
}
img{max-width:100%;height:auto;display:block;}
a,button{transition:all .3s ease;cursor:pointer;}

/* ---------------- الهيدر الأبيض العائم فوق الصور ---------------- */
.main-header {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 300;
  padding: 10px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  padding: 0 3rem;
}
.logo-area {display:flex;align-items:center;gap:10px;}
.logo {width:70px;height:70px;object-fit:contain;}
.site-info h1 {color:var(--main-green);font-size:26px;margin-bottom:3px;}
.site-info p {color:#555;font-size:13px;}
nav a {
  margin:0 14px;color:var(--text-dark);font-weight:bold;
  text-decoration:none;position:relative;
}
nav a:hover {color:var(--main-green);}
nav a::after {
  content:"";position:absolute;left:0;bottom:-5px;width:0;height:2px;
  background:var(--main-green);transition:width 0.3s;
}
nav a:hover::after,nav a.active::after{width:100%;}
@media(max-width:992px){
  .main-header{top:15px;width:95%;}
  .navbar{flex-direction:column;align-items:center;padding:1rem;}
  nav{margin-top:10px;}
  .logo{width:55px;height:55px;}
}

/* ---------------- المعرض السينمائي بعرض الصفحة خلف الهيدر ---------------- */
#product-gallery{
  position:relative;width:100%;height:90vh;
  overflow:hidden;margin-top:0;
}
#product-gallery h2{display:none;}
.gallery-modern{position:relative;width:100%;height:100%;}

/* ✨ التأثير السينمائي */
@keyframes zoom-in-out {
  0%   {transform:scale(1.05);}
  50%  {transform:scale(1);}
  100% {transform:scale(1.05);}
}

.gallery-frame img{
  position:absolute;top:0;left:0;width:100%;height:100%;
  object-fit:cover;object-position:center;
  display:none;opacity:0;
  filter: brightness(95%) contrast(105%) saturate(108%);
  transition:opacity 1.5s ease-in-out, filter 2s ease-in-out;
}
.gallery-frame img.active{
  display:block;
  opacity:1;
  animation: zoom-in-out 12s ease-in-out infinite;
  filter: brightness(100%) contrast(112%) saturate(115%);
}

/* أزرار ونقاط المعرض */
.gallery-btn{
  position:absolute;top:50%;transform:translateY(-50%);
  background:rgba(0,0,0,0.4);color:#fff;border:none;
  font-size:30px;border-radius:4px;cursor:pointer;
  padding:8px 12px;z-index:15;transition:background .3s;
}
.gallery-btn:hover{background:rgba(0,0,0,0.6);}
.gallery-btn.prev{left:20px;}
.gallery-btn.next{right:20px;}
.gallery-dots{
  position:absolute;bottom:25px;left:50%;transform:translateX(-50%);
  display:flex;gap:8px;z-index:16;
}
.gallery-dots button{
  width:12px;height:12px;border-radius:50%;border:none;
  background:#ccc;cursor:pointer;transition:background .3s,transform .2s;
}
.gallery-dots button.active-dot{background:var(--main-green);transform:scale(1.2);}
@media(max-width:768px){#product-gallery{height:65vh;}}

/* ---------------- الشريط المتحرك أسفل المعرض ---------------- */
.slider{
  width:100%;overflow:hidden;position:relative;
  background:linear-gradient(to bottom,#f5faf7,#ffffff);
  padding:25px 0;border-bottom:2px solid rgba(0,0,0,0.05);
  margin-top:0;
}
.slides{
  display:flex;width:max-content;
  animation:scrollSlide 25s linear infinite;
}
.slides img{
  width:340px;height:210px;margin:0 10px;border-radius:12px;
  object-fit:cover;box-shadow:0 3px 10px rgba(0,0,0,0.1);
}
@keyframes scrollSlide{0%{transform:translateX(0);}100%{transform:translateX(-50%);}}
@media(max-width:768px){.slides img{width:250px;height:150px;}}

/* ---------------- STATS ---------------- */
#stats{text-align:center;padding:4rem 1rem;
  background:linear-gradient(90deg,#107b39,#19a44b);color:#fff;}
.stats-box{display:flex;flex-wrap:wrap;justify-content:center;gap:3rem;}
.stat h3{font-size:2.8rem;font-weight:700;}
.stat p{font-size:1rem;margin-top:.5rem;}
.stat:hover{transform:translateY(-6px)scale(1.05);}

/* ---------------- CERTIFICATIONS ---------------- */
#certifications{padding:5rem 2rem;text-align:center;background:#fff;}
#certifications h2{color:var(--main-green);font-size:30px;margin-bottom:10px;}
#certifications p{max-width:700px;margin:0 auto 40px;color:var(--gray);}
.cert-logos{display:flex;flex-wrap:wrap;justify-content:center;gap:40px;}
.cert-item{
  background:#fff;width:210px;border-radius:12px;
  box-shadow:0 3px 12px rgba(0,0,0,.08);
  padding:1rem;transition:transform .3s,box-shadow .3s;
}
.cert-item:hover{transform:translateY(-6px);box-shadow:0 5px 16px rgba(0,0,0,0.15);}
.cert-item img{width:90px;height:90px;object-fit:contain;margin-bottom:10px;}
.cert-item h4{color:var(--dark-green);margin-bottom:6px;font-size:17px;}
.cert-item p{font-size:13px;color:var(--gray);}

/* ---------------- PRODUCTS ---------------- */
#products{
  padding:5rem 1rem;
  background:linear-gradient(rgba(255,255,255,0.85),rgba(255,255,255,0.85)),url("images/farm2.jpg")center/cover no-repeat;
  text-align:center;
}
#products h2{color:var(--main-green);font-size:32px;margin-bottom:35px;}
.product{
  background:#fff;width:260px;display:inline-flex;flex-direction:column;align-items:center;
  margin:12px;padding:16px;border-radius:16px;box-shadow:0 3px 10px rgba(0,0,0,0.1);
  transition:all .3s;}
.product:hover{transform:translateY(-6px)scale(1.02);box-shadow:0 6px 18px rgba(0,0,0,0.15);}
.product img{width:100%;height:180px;border-radius:10px;object-fit:cover;}
.product h3{color:var(--main-green);margin:10px 0 6px;font-size:18px;}
.product p{font-size:14px;color:var(--gray);line-height:1.6;margin-bottom:10px;}
.price{background:var(--gold);color:#000;padding:5px 14px;border-radius:20px;
  font-weight:bold;font-size:14px;margin-top:auto;}

/* ---------------- FOOTER متعدد الأعمدة ---------------- */
.footer-section{
  background:url("images/footer-bg.jpg")center/cover no-repeat,var(--main-green);
  color:#fff;direction:rtl;
}
.footer-top{
  display:flex;flex-wrap:wrap;justify-content:space-around;
  padding:60px 20px 40px;background:rgba(0,0,0,0.2);
}
.footer-col{flex:1 1 250px;margin:10px;}
.footer-logo{width:70px;margin-bottom:14px;}
.footer-col h4{
  color:var(--gold);font-size:18px;margin-bottom:16px;
  border-bottom:2px solid var(--gold);display:inline-block;padding-bottom:4px;
}
.footer-col ul{list-style:none;padding:0;line-height:1.9;}
.footer-col a{color:#fff;text-decoration:none;font-size:15px;}
.footer-col a:hover{color:var(--gold);}
.footer-col p{font-size:15px;line-height:1.8;}
.footer-col i{color:var(--gold);margin-left:6px;}
.footer-bottom{
  background:rgba(0,0,0,0.4);
  display:flex;justify-content:space-between;align-items:center;
  flex-wrap:wrap;padding:10px 25px;font-size:13px;
}
.footer-bottom span{color:var(--gold);}
@media(max-width:700px){
  .footer-top{flex-direction:column;text-align:center;}
  .footer-bottom{flex-direction:column;gap:8px;}
}

/* أزرار ثابتة */
#whatsapp{
  position:fixed;bottom:20px;right:20px;width:55px;height:55px;
  background:#25d366;color:#fff;border-radius:50%;text-align:center;
  line-height:55px;font-size:26px;box-shadow:0 2px 10px rgba(0,0,0,0.3);
  z-index:1000;transition:transform .3s;
}
#whatsapp:hover{transform:scale(1.12);}
#toTop{
  position:fixed;bottom:25px;left:25px;background:var(--main-green);
  color:#fff;border:none;padding:10px;border-radius:50%;font-size:20px;
  display:none;
}
#toTop:hover{background:var(--dark-green);}
/* 🎞️ شريط عرض المنتجات */
#products {
  text-align: center;
  background: #f9f9f9;
  padding: 60px 0;
}

#products h2 {
  font-size: 2.2em;
  margin-bottom: 30px;
  color: #2e7d32;
  font-weight: 700;
}

.product-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 20px;
  scrollbar-width: none;
}

.product-slider::-webkit-scrollbar {
  display: none;
}

.product-card {
  flex: 0 0 auto;
  width: 260px;
  scroll-snap-align: center;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.product-card img {
  width: 100%;
  height: 200px;
  border-radius: 20px 20px 0 0;
  object-fit: cover;
}

.product-card h3 {
  margin: 15px 0;
  color: #333;
  font-weight: 600;
  font-size: 1.2em;
}
