@import url('https://fonts.googleapis.com/css2?family=Aref+Ruqaa:wght@400;700&family=Tajawal:wght@300;400;500;700;900&display=swap');

:root {
  --teal-deep: #0A7F76; --teal: #00BFB8; --cream: #FBF3E7;
  --burgundy: #99263A; --gold: #CE9F3E; --indigo: #372F63; --ink: #16181A;
  --font-display: 'Aref Ruqaa', 'Amiri', serif;
  --font-body: 'Tajawal', sans-serif;
  --radius: 18px;
  --shadow-soft: 0 18px 40px -18px rgba(10,40,38,.45);
}

*, *::before, *::after { box-sizing: border-box; }
/* الحل الجذري لمشكلة الشريط الذي يغطي الصور عند الضغط على الروابط */
html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); direction: rtl; text-align: right; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
section { position: relative; padding: 60px 0; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* شريط المهام (الهيدر الذكي) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* لون اللوجو الأخضر مع شفافية 60% بدون أي غباشة */
  background: rgba(10, 127, 118, 0.6);
  padding: 10px 0;
  /* تم إزالة الفلو (blur) تماماً بناءً على طلبك */
  /* إضافة حافة خفيفة من الأسفل لتعزيز شكل الزجاج */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.4s ease-in-out;
  transform: translateY(0);
}

.site-header.hidden {
  transform: translateY(-100%);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;}
.brand { display: flex; align-items: center; gap: 15px; }
.brand .main-logo { width: 70px; height: 70px; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.4); cursor: pointer; -webkit-touch-callout: none; user-select: none; transition: width 0.3s, height 0.3s; }
.brand-name { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 900; color: var(--cream); line-height: 1; }
.nav-links { display: flex; gap: 15px; margin-top: 10px; flex-wrap: wrap;}
.nav-links a { color: #fff; font-weight: bold; font-size: 1rem; transition: color 0.3s;}
.nav-links a:hover { color: var(--gold); }

.top-social-grid { display: flex; gap: 10px; margin-top: 10px; }
.social-card { background: var(--gold); padding: 5px 10px; border-radius: 8px; font-size: 0.9rem; font-weight: bold; }

/* قسم الواجهة (Hero) */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--teal-deep); padding: 0; }
.hero-slider, .hero-overlay, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.5s ease-in-out; }
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { background: rgba(0,0,0,0.5); z-index: 1; }
.hero-content { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; width: 100%; padding-top: 80px;}

/* نصوص متجاوبة لتناسب اللابتوب والموبايل معاً */
.hero p.tag { color: #fff; font-size: clamp(1.8rem, 5vw, 3.5rem); font-weight: 900; text-align: center; text-shadow: 0 4px 20px rgba(0,0,0,0.9); padding: 20px; line-height: 1.4;}
.section-head { text-align: center; margin-bottom: 30px; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); color: var(--indigo); margin: 0; }

/* شبكة الصور */
.grid-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-top: 20px; }
.grid-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* الأزرار */
.book-section-btn { background: var(--gold); color: #fff; padding: 12px 30px; border-radius: 50px; font-weight: bold; font-size: 1.1rem; display: block; margin: 20px auto 0; text-align: center; box-shadow: 0 4px 15px rgba(206,159,62,0.5); transition: transform 0.3s;}
.book-section-btn:hover { transform: translateY(-3px); }
.floating-btn { position: fixed; bottom: 30px; left: 30px; z-index: 999; background: var(--burgundy); color: #fff; padding: 15px 30px; border-radius: 50px; font-size: 1.2rem; font-weight: bold; box-shadow: 0 10px 20px rgba(153,38,58,0.5); transition: transform 0.3s; }
.floating-btn:hover { transform: translateY(-5px); }

/* السلايدر المتحرك (Spider Stage) */
.spider-stage { position: relative; width: 100%; max-width: 400px; aspect-ratio: 9/16; margin: 0 auto; overflow: hidden; border-radius: 22px; box-shadow: var(--shadow-soft); }
.spider-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out; }
.spider-slide.active { opacity: 1; z-index: 5; }
.spider-slide img { width: 100%; height: 100%; object-fit: cover; }

/* النوافذ المنبثقة (Lightbox) */
.lightbox { position: fixed; inset: 0; background: rgba(10,12,12,.95); z-index: 3000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-box { background: var(--cream); border-radius: 16px; position: relative; }
.lightbox-close { position: absolute; top: 10px; right: 15px; color: #fff; font-size: 24px; font-weight: bold; background: rgba(0,0,0,0.5); border-radius: 50%; width: 35px; height: 35px; }

/* الحقول والنماذج */
.book-input { display:block; width:100%; padding:12px; margin-bottom:12px; border:1px solid #ccc; border-radius:8px; font-family:var(--font-body); font-size: 1rem; }
.submit-btn { width:100%; background:var(--gold); color:#fff; padding:12px; border-radius:8px; font-weight:bold; font-size: 1.1rem; transition: background 0.3s;}
.submit-btn:hover { background: #b58830; }
.reaction-btn { background: #fff; padding: 10px 20px; border-radius: 20px; font-size: 1.2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* لوحة تحكم الإدارة */
.admin-dashboard { max-height: 90vh; overflow-y: auto; padding: 30px; text-align: right; background: #f9f9f9; width: 95%; max-width: 800px;}
.admin-card { background: #fff; padding: 20px; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid #eee;}
.admin-card h4 { margin-top: 0; color: var(--teal-deep); border-bottom: 2px solid var(--cream); padding-bottom: 10px; }
.bold-stat { font-weight: bold; font-size: 1.2rem; color: var(--burgundy); }
.status-txt { margin-top: 10px; font-size: 0.9rem; color: var(--teal-deep); font-weight: bold; }

/* التقييمات */
.review-card { background: #fff; padding: 15px; border-radius: 12px; margin-bottom: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.admin-reply { background: var(--cream); padding: 10px; border-radius: 8px; margin-top: 10px; font-size: 0.9rem; border-right: 3px solid var(--gold); }

/* =========================================
   التجاوب مع شاشات الموبايل والتابلت (Responsive)
   ========================================= */
@media (max-width: 768px) {
  /* تصغير الشعار وتقليل مساحة الهيدر */
  .brand .main-logo { width: 50px; height: 50px; }
  .site-header { padding: 5px 0; }

  /* شريط مهام قابل للسحب لليمين واليسار بدون تكدس */
  .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }
  .nav-links a { white-space: nowrap; font-size: 0.95rem; }
  .nav-links::-webkit-scrollbar { display: none; } /* إخفاء شريط التمرير */

  .top-social-grid { justify-content: center; flex-wrap: wrap; }

  /* تصغير شبكة الصور لتناسب الموبايل */
  .grid-gallery { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

@media (max-width: 400px) {
  .grid-gallery { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .brand-name { font-size: 1.5rem; }
}