/* 🌐 الهوية العامة */
:root {
  --blue-light: #1E90FF;
  --blue-dark: #002D72;
  --bg: #F8FAFC;
  --text: #1E293B;
  --muted: #64748B;
  --radius: 18px;
  --shadow: 0 6px 20px rgba(0, 45, 114, 0.08);
}

/* الأساسيات */
* {box-sizing: border-box; font-family: "Tajawal", sans-serif; scroll-behavior: smooth;}
body {margin: 0; background: var(--bg); color: var(--text);}
a {text-decoration: none; color: inherit;}
.container {max-width: 1200px; margin: auto; padding: 0 20px;}

/* ✅ شاشة التحميل البسيطة */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}
#preloader .prelogo {
  width: 120px;
  height: auto;
}

/* ✅ الهيدر */
header {background: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; width: 100%;}
.navbar {display: flex; align-items: center; justify-content: space-between; padding: 14px 20px;}
.logo {display: flex; align-items: center; gap: 10px;}
.logo img {height: 60px; border-radius: 12px; object-fit: contain;}
.logo span {font-weight: 700; font-size: 20px; color: var(--blue-dark);}
.nav-links {display: flex; align-items: center; gap: 20px;}
.nav-links a {color: var(--blue-dark); font-weight: 600;}
.nav-links a:hover {color: var(--blue-light);}
.btn {
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  color: #fff; border: none; border-radius: var(--radius);
  padding: 10px 22px; cursor: pointer; font-weight: 600; transition: .3s;
}
.btn:hover {transform: translateY(-3px); box-shadow: 0 6px 18px rgba(30,144,255,.25);}
.menu-toggle {display: none; font-size: 28px; color: var(--blue-dark); background: none; border: none; cursor: pointer;}
.mobile-menu {
  display: none; flex-direction: column; position: fixed;
  top: 0; right: 0; width: 100%; height: 100%;
  background: rgba(255,255,255,0.97); z-index: 999;
  padding: 80px 0 40px; text-align: center;
}
.mobile-menu img {height: 70px; margin-bottom: 10px;}
.mobile-menu a {
  padding: 18px; color: var(--blue-dark); font-weight: 600;
  font-size: 18px; border-bottom: 1px solid #eee;
}
.mobile-header-btn {display: none;}
@media(max-width:768px){
  .nav-links{display:none;}
  .menu-toggle{display:block;}
  .mobile-header-btn{display:block;}
}

/* ✅ Hero */
.hero {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  padding: 70px 0 40px; gap: 40px;
}
.hero-text {flex: 1; min-width: 300px;}
.hero-text h1 {font-size: 42px; color: var(--blue-dark); margin: 0;}
.hero-text p {margin-top: 15px; color: var(--muted); font-size: 18px; line-height: 1.7;}
.hero-img {flex: 1; text-align: center;}
.hero-img img {max-width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow);}

/* ✅ الخدمات */
.section {padding: 80px 0;}
.section h2 {text-align: center; font-size: 28px; color: var(--blue-dark); margin-bottom: 10px;}
.section p.subtitle {text-align: center; color: var(--muted); font-size: 16px;}
.services {display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-top: 50px;}
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; text-align: center; transition: .3s;
}
.card:hover {transform: translateY(-5px);}
.card img {width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); margin-bottom: 15px;}
.card h3 {color: var(--blue-dark); margin-bottom: 10px;}
.card p {color: var(--muted); line-height: 1.6;}

/* ✅ عن الدكتور */
.about {display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; margin-top: 40px;}
.about img {flex: 1; max-width: 480px; border-radius: var(--radius); box-shadow: var(--shadow);}
.about .text {flex: 1; min-width: 300px;}
.about .text h3 {color: var(--blue-dark); font-size: 24px;}
.about .text p {color: var(--muted); line-height: 1.8;}
.about ul {margin-top: 10px; color: var(--text); line-height: 1.8; padding: 0; list-style: none;}
.about ul li::before {content: "✔️ "; color: var(--blue-light);}

/* ✅ التقييمات */
.testimonials {background: #f4f8fe; padding: 70px 0;}
.testimonial-list {display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 20px; margin-top: 40px;}
.testimonial {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; text-align: center; transition: .3s;
}
.testimonial:hover {transform: translateY(-4px);}
.testimonial img {width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin-bottom: 10px;}
.testimonial h4 {margin: 5px 0; color: var(--blue-dark);}
.stars {color: #FFD700; margin-bottom: 10px;}
.testimonial p {color: var(--muted); font-size: 15px; line-height: 1.6;}

/* ✅ خانة الحجز */
.booking-box {
  position: relative; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-top: 40px;
  padding: 25px; text-align: center;
}
.booking-box::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 200%; height: 3px;
  background: linear-gradient(90deg,#1E90FF,#22C55E,#1E90FF);
  animation: moveLine 5s linear infinite;
}
@keyframes moveLine {0%{transform:translateX(-50%);}100%{transform:translateX(0);}}
.booking-box h3 {color: var(--blue-dark);}
.booking-box p {color: var(--muted); margin: 6px 0;}

/* ✅ الفوتر */
footer {
  text-align: center; background: #fff; padding: 25px;
  border-top: 1px solid #E5E7EB; color: var(--muted);
  font-size: 14px; margin-top: 60px;
}
footer span {color: var(--blue-dark); font-weight: 600;}

/* ✅ الحركات العامة */
.fade {opacity:0; transform:translateY(30px); transition:all 1s;}
.fade.show {opacity:1; transform:translateY(0);}

/* ✅ الاستجابة */
@media(max-width:1024px){.services{grid-template-columns:repeat(2,1fr);}}
@media(max-width:600px){
  .services{grid-template-columns:1fr;}
  .hero{flex-direction:column-reverse;text-align:center;}
  .hero-text h1{font-size:32px;}
  .logo img{height:50px;}
}
