/* ========== الأساسيات ========== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Cairo', sans-serif;
  color: #222;
  background: #fff;
  padding-top: 60px;           /* يطابق ارتفاع الهيدر الثابت */
}

/* ========== الشريط العلوي (Header / Navbar) ========== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px; /* مسافة بين الصورة والنص */
}

.logo img {
  height: 100px; /* ارتفاع مناسب للشريط */
  width: auto;
  display: block;
}

.navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  height: 60px;                /* موحّد على كل المقاسات */
  background: linear-gradient(97deg, #ab863b 0%, #444 100%);
  color: #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.navbar .nav-inner{
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  padding: 0 18px;             /* بدون حشو عمودي لأن الهيدر له height ثابت */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  /* ملاحظة: أزلنا أي padding-right خاص باللوغو */
}


/* روابط القائمة */
.nav-links ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: opacity .25s;
}
.nav-links a:hover { opacity: .85; }
.nav-links a.active { border-bottom: 2px solid #ffc107; }

/* زر القائمة (موبايل) */
.menu-toggle {
  display: none;               /* يبان فقط على الموبايل */
  font-size: 26px;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
}

/* قائمة الموبايل */
@media (max-width: 900px){
  /* الغطاء الخلفي مع البلور */
  .nav-links{
    display: none;
    position: fixed;
    inset: 60px 0 auto 0;
    z-index: 1100;
    /* خلفية شفافة + بلور */
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    /* حركات ناعمة */
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: transform .35s ease, opacity .35s ease, visibility .35s ease;
  }

  /* لما تفتح */
  .nav-links.open{
    display: block;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* البانل ذاته (القائمة) نخليه شفاف/فروستد بدل التدرّج */
  .nav-links ul{
    margin: 0;
    padding: 10px 16px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;

    background: rgba(255,255,255,0.18);   /* فروستد خفيف */
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 10px 28px rgba(0,0,0,0.16);
    border-radius: 14px;

    /* مسافة بسيطة عن الحواف */
    margin: 10px 12px;
  }

  /* الروابط تضل بيضا وواضحة */
  .nav-links a{
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 12px 10px;
    border-radius: 10px;
    transition: background .18s ease, opacity .18s ease;
  }
  .nav-links a:hover{
    background: rgba(255,255,255,0.12);
    opacity: .95;
  }

  /* ترتيب زر المنيو مثل ما هو */
  .navbar .nav-inner{
    justify-content: right;
    padding-right: 5px;
  }
  .menu-toggle{
    display: inline-block;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1101;
  }
  .logo {
    font-size: 12px;   /* صغّر حجم الخط */
    line-height: 1.4;  /* خفّف تلاصق الأسطر */
  }
  /* تصغير شعار الفوتر */
  .footer-info span {
    font-size: 12px !important;
    line-height: 1.4;
    white-space: normal;
    display: block;
    text-align: center;
    margin-top: 0px;
  }

  /* كمان تصغير النص بنهاية الفوتر */
  .footer-copy span .footer-copy {
    font-size: 8px;
    line-height: 1.4;
    white-space: normal;
  }
  .team-cards {
    gap: 10px;   /* بدل 150px */
    padding: 20px;
  }
}


/* ========== البطل (Hero) ========== */
.hero { position: relative; }
.hero img{
  width: 100%;
  height: clamp(650px, 70vh, 760px);
  object-fit: cover;
  display: block;               /* يمنع فراغ أسفل الصورة */
}
.hero-text {
  position: absolute;
  top: 60%;
  transform: translateY(-50%);
  right: 8%;
  color: #fff;
  text-align: right;
  background: rgba(0,0,0,0.18);
  padding: 28px 28px 24px;
  border-radius: 12px;
  max-width: min(92vw, 520px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}
.hero-text h1 { font-size: clamp(36px, 6vw, 60px); margin: 0; }
.hero-text h3 { font-size: clamp(20px, 3.8vw, 40px); margin: 10px 0; font-weight: 500; }
.hero-text p  { font-size: clamp(14px, 2vw, 18px); line-height: 1.8; }
.yellow { color: #FFC107 !important; }

@media (max-width: 360px){
  .hero-text{ padding: 12px; }
  .hero-text p { line-height: 1.95; }
}

/* أنيميشن عامة */
.fade-in   { opacity: 0; transform: translateY(40px); animation: fadeInUp 1s forwards; animation-play-state: paused; }
.fade-in-up{ opacity: 0; transform: translateY(48px); animation: fadeInUp 2s forwards; animation-play-state: paused; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* ========== من نحن ========== */
.about-section { background: #fff; padding: 70px 0 60px; }
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding: 0 16px;
}
.about-text { flex: 2 1 630px; min-width: 300px; color: #ab863b; }
.about-text h2 { font-size: 42px; margin-bottom: 18px; }
.about-text p  { color: #5c6470; font-size: 20px; line-height: 2.1; margin-bottom: 12px; text-align: right; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex: 1 1 410px;
  min-width: 320px;
  max-width: 440px;
  margin-top: 20px;
}
.stat-box {
  background: #fff;
  border-radius: 50% 20% / 10% 40%;
  box-shadow: 0 6px 24px rgba(171,134,59,0.12);
  padding: 28px 16px;
  text-align: center;
  min-height: 110px;
  transition: box-shadow .35s cubic-bezier(.4,2,.3,1), transform .28s cubic-bezier(.4,2,.3,1), background .3s;
  position: relative; overflow: hidden;
  margin-top: 60px;
}
.stat-box:hover{
  box-shadow: 0 14px 40px rgba(171,134,59,0.21), 0 1.5px 10px rgba(0,0,0,0.10);
  transform: translateY(-9px) scale(1.045);
  background: linear-gradient(97deg,#fff,#fffbe9 110%);
}
.stat-box::before{
  content:""; position:absolute; left:-80%; top:0; width:60%; height:100%;
  background: linear-gradient(120deg, rgba(255,193,7,0.07) 0%, rgba(255,193,7,0.14) 100%);
  transform: skewX(-24deg); transition:left .45s; pointer-events:none;
}
.stat-box:hover::before{ left:100%; }
.stat-number { font-size: 34px; font-weight: bold; color: #ab863b; }
.stat-label  { color: #5c6470; font-size: 18px; font-weight: 600; margin-top: 4px; }

/* ========== خدماتنا ========== */
.services-section { background: #fcfaf7; padding: 70px 0 90px; }
.services-header { text-align: center; margin-bottom: 42px; padding: 0 16px; color: #ab863b; }
.services-header h2 { font-size: 46px; margin-bottom: 14px; }
.services-header p  { font-size: 20px; color: #7e8494; margin: 0 auto; max-width: 700px; }

.services-cards { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; padding: 0 12px; }
.service-card {
  background:#fff; border-radius: 22px; box-shadow: 0 8px 32px rgba(171,134,59,0.10);
  padding: 32px; max-width: 370px; min-width: 260px; flex: 1 1 300px;
  text-align:center; display:flex; flex-direction:column; align-items:center;
  transition: box-shadow .28s, transform .22s;
}
.service-card:hover{ box-shadow: 0 12px 42px rgba(171,134,59,0.20); transform: translateY(-7px) scale(1.035); }

/* (لو كنت محتفظ بأيقونات) */
.icon-box{
  background: #fff;
  border: 1.2px solid #f0e6c8;
  border-radius:16px;
  width:64px; height:64px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:20px;
  box-shadow: 0 4px 14px rgba(171,134,59,0.08);
  transition: background .25s, border-color .25s, box-shadow .25s, transform .2s;
}
.icon-box:hover{ transform: scale(1.08); }
.icon-box img{ width:60px; height:60px; object-fit:contain; display:block; }

.service-card h3{ font-size:26px; margin: 10px 0 8px; }
.service-card p { color:#5c6470; font-size:17px; margin-bottom: 12px; min-height: 44px; }
.service-card ul{ list-style:none; padding:0; margin:0; text-align:right; width:100%; }
.service-card ul li{
  position:relative; font-size:16.5px; color:#404855; padding-right:24px; margin-bottom: 10px; line-height:1.9;
}
.service-card ul li::before{ content:"●"; color:#FFC107; position:absolute; right:0; font-size:18px; top:.2em; }

/* ========== عملاؤنا ========== */
.clients-section { background:#fff; padding: 80px 0 160px; }
.clients-header{ text-align:center; margin-bottom: 32px; padding: 0 16px; color: #ab863b; }
.clients-header h2{ font-size: 40px; margin: 0 0 10px; }
.clients-header p { font-size: 19px; color:#7e8494; margin:0 auto; max-width:600px; }

.clients-logos{
  display:flex; flex-wrap:wrap; gap:28px;
  justify-content:center; align-items:center;
  padding: 0 4vw;
}
.client-logo{
  background:#fcfaf7; border-radius:14px; box-shadow:0 4px 14px rgba(171,134,59,0.06);
  padding:22px 28px; display:flex; align-items:center; justify-content:center;
  min-width:140px; min-height:90px; max-width:180px; max-height:110px;
  transition: box-shadow .24s, transform .2s, background .2s;
}
.client-logo img{ width:120px; height:auto; object-fit:contain; transition: filter .26s, transform .23s; display:block; }
.client-logo:hover{ box-shadow:0 10px 26px rgba(171,134,59,0.13); transform: translateY(-7px) scale(1.06); background:#fffbe7; }
.client-logo:hover img{ filter: grayscale(0%) brightness(1) drop-shadow(0 1px 8px #ffc10744); }

/* Tooltip بلون الهوية */
.client-logo[data-title]{ position: relative; }
.client-logo[data-title]:hover::after{
  content: attr(data-title);
  position: absolute;
  top: 110%; 
  right: 50%;
  transform: translateX(50%);
  background: #fff;
  color: #ab863b;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(171,134,59,0.15);
  border: 1px solid #f0e6c8;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  animation: fadeInTooltip .25s forwards;
}

@keyframes fadeInTooltip { to { opacity: 1; } }

/* ========== فريق العمل ========== */
.team-section{ background:#fcfaf7; padding: 70px 0; }
.team-header{
  text-align:right; margin: 0 auto 28px; padding: 0 16px;
  max-width: 1200px; color: #ab863b;
}
.team-header h2{ font-size:44px; margin:0 0 10px; }
.team-header p { font-size:20px; color:#7e8494; margin:0; max-width:100%; }

.team-cards{ display:flex; flex-wrap:wrap; gap:28px; justify-content:center; padding: 5%; }
.team-card{
  background:#fcfaf7; border-radius:22px; box-shadow:0 8px 32px rgba(171,134,59,0.09);
  padding:30px; max-width:290px; flex:1 1 250px; text-align:center;
  transition: box-shadow .22s, transform .22s, background .2s;
  display:flex; flex-direction:column; align-items:center; min-height: 370px;
}
.team-card:hover{ box-shadow:0 14px 40px rgba(171,134,59,0.18); transform: translateY(-7px) scale(1.035); background:#fffbe7; }
.team-img{ width:100px; height:100px; margin: 0 auto 14px; border-radius:50%; overflow:hidden; box-shadow: 0 2px 8px #ffc10738; }
.team-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.team-card h3{ font-size:23px; margin: 0 0 6px; font-weight:700; }
.team-card span{ color:#ab863b; font-size:16px; font-weight:600; margin-bottom: 10px; display:block; }
.team-card p { color:#5c6470; font-size:16px; margin:0; line-height:1.9; }

/* عنوان فرعي */
.team-subtitle{
  text-align: center;
  margin: 40px auto 20px;
  padding: 0 20px;   /* 👈 مسافة من الأطراف */
}
.team-subtitle h3{
  margin: 0;
  font-size: 26px;
  color: #ab863b;
  position: relative;
}
.team-subtitle h3::after{
  content:"";
  display:block;
  width:64px; height:3px;
  background:#ffc107;
  border-radius:999px;
  margin:8px auto 0;
  opacity:.95;
}

/* شبكة المحامين المصغّرة */
.lawyers-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* 👈 صغّرنا حجم الكرت */
  gap: 16px;
  max-width: 1100px;  /* 👈 وسّع الحاوية شوي */
  margin: 20px auto;
  padding: 0 16px;
}

.lawyer-card{
  background:#fff;
  border:1px solid #d6b65c;   /* 👈 إطار ذهبي رفيع */
  border-radius:12px;
  padding:14px 10px;
  text-align:center;
  box-shadow:0 4px 12px rgba(171,134,59,.08);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}

.lawyer-card:hover{
  transform: translateY(-3px);
  box-shadow:0 10px 20px rgba(171,134,59,.14);
  background:#fffdf7;
  border-color:#ab863b;   /* 👈 أغمق عند الهوفر */
}

.lawyer-card h4{
  margin:0;
  font-size:16px;    /* 👈 أصغر */
  font-weight:700;
  color:#222;
}
.lawyer-card span{
  display:block;
  margin-top:4px;
  font-size:13px;    /* 👈 أصغر */
  font-weight:600;
  color:#ab863b;
}

/* موبايل: خليهم صفوف من 2 */
@media (max-width: 600px){
  .lawyers-grid{
    grid-template-columns: repeat(2, 1fr); /* 👈 كل صف بطاقتين */
  }
}





/* ========== قيمنا – مهمتنا – رؤيتنا (بدون أيقونات) ========== */
.values-section{ background:#fcfaf7; padding: 80px 0 70px; }
.values-header{
  text-align:center; margin: 0 auto 34px; padding: 0 16px;
  max-width: 900px; color:#ab863b;
}
.values-header h2{ font-size: 42px; margin: 0 0 10px; }
.values-header p { font-size: 19px; color:#7e8494; margin: 0 auto; max-width: 720px; }

.values-cards{
  display:flex; flex-wrap:wrap; gap:24px;
  justify-content:center; padding: 0 12px;
}
.value-card{
  background:#fff; border-radius: 20px; box-shadow:0 8px 26px rgba(171,134,59,0.10);
  padding: 28px 22px; max-width: 360px; min-width: 260px; flex: 1 1 300px;
  text-align: center; transition: box-shadow .24s, transform .2s, background .2s;
}
.value-card:hover{
  background:#fffbe7; transform: translateY(-6px) scale(1.03);
  box-shadow:0 12px 40px rgba(171,134,59,0.18);
}
.value-card h3{
  font-size: 22px; margin: 0 0 12px; color:#ab863b; position: relative;
}
.value-card h3::after{
  content:""; display:block; width:54px; height:3px;
  background:#ffc107; border-radius: 999px; margin: 8px auto 0;
}
.value-card p { font-size:16.5px; color:#5c6470; line-height:1.9; margin:0; }

@media (max-width: 500px){
  .values-header h2{ font-size: 32px; }
}

/* ========== تواصل معنا ========== */
.contact-section{ background:#fff; padding: 80px 0; }
.contact-container{
  max-width:1200px; margin:0 auto; display:flex; gap:48px;
  justify-content:center; align-items:flex-start; flex-wrap:wrap; padding: 0 16px;
}
.contact-info{ flex:1 1 320px; min-width:260px; }
.contact-info h2{ font-size:38px; color:#ab863b; margin: 0 0 10px; }
.contact-info p { color:#6e7480; font-size:18px; margin-bottom: 18px; }

.contact-details{ list-style:none; padding:0; margin: 0 0 16px; }
.contact-details li{ font-size:17px; margin-bottom:8px; color:#4c4c4c; }
.contact-details a { color:#2b6cb0; text-decoration:none; direction:ltr; font-family:monospace; }

.contact-social a{ display:inline-block; margin: 0 6px; transition: transform .2s; }
.contact-social a:hover{ transform: scale(1.12) rotate(-6deg); }
.contact-social img{ width:32px; height:32px; }

.contact-form{
  flex:2 1 420px; min-width:300px; background:#fff;
  border-radius:18px; box-shadow:0 4px 24px rgba(171,134,59,0.08);
  padding: 32px; display:flex; flex-direction:column; gap: 14px;
}
.contact-form input, .contact-form textarea{
  width:100%; padding:12px 14px; border:1.2px solid #e8e4da; border-radius:7px;
  font-size:16px; background:#fcfaf7; color:#222; transition:border .2s;
}
.contact-form input:focus, .contact-form textarea:focus{ border-color:#ab863b; outline:none; }
.send-btn{
  background: linear-gradient(97deg, #ab863b 0%, #715f3c 100%);
  color:#fff; border:0; font-size:19px; padding:13px 0; border-radius:8px;
  box-shadow:0 3px 10px #ab863b29; cursor:pointer; font-weight:700; margin-top:6px;
  transition: background .22s, transform .19s;
}
.send-btn:hover{ background: linear-gradient(97deg, #715f3c 0%, #ab863b 100%); transform: scale(1.03) translateY(-2px); }
.form-message{ color:#ab863b; background:#eaffea; padding:12px; margin-top:10px; border-radius:6px; text-align:center; font-size:16.5px; }

/* ========== الفوتر ========== */
.main-footer{
  background: linear-gradient(97deg, #ab863b 0%, #444 100%);
  color:#fff; padding:55px 0 0; margin-top:65px; box-shadow:0 -4px 18px rgba(171,134,59,0.11);
}
.footer-container{
  max-width:1240px; margin:0 auto; display:flex; gap:48px;
  justify-content:space-between; align-items:flex-start; flex-wrap:wrap; padding: 0 18px;
}
.footer-info{ flex:1 1 330px; min-width:270px; }
.footer-logo{ display:flex; align-items:center; gap:14px; margin-bottom:8px; }
.footer-logo img{
  height: 100px;   /* بتتحكم بالارتفاع */
  width: auto;    /* العرض بيتناسب تلقائي */
  display: block; /* يخلي الصورة تصطف صح */
}
.footer-info span{ font-size:19px; font-weight:700; color:#fff; }
.footer-info p { font-size:15.7px; color:#f5e5b9; margin:14px 0 0; line-height:1.8; }

.footer-links{ flex:1 1 170px; min-width:140px; }
.footer-links h4, .footer-contact h4{ font-size:18px; color:#fffbe7; margin-bottom:12px; letter-spacing:1px; }
.footer-links ul, .footer-contact ul{ list-style:none; padding:0; margin:0; }
.footer-links li, .footer-contact li{ margin-bottom:7px; font-size:15.7px; color:#fff; }
.footer-links a, .footer-contact a{ color:#fffbe7; text-decoration:none; transition: color .23s; }
.footer-links a:hover, .footer-contact a:hover{ color:#ffe08a; text-decoration: underline; }

.footer-social{ margin-top: 12px; }
.footer-social a{ display:inline-block; margin: 0 4px; transition: transform .2s; }
.footer-social a:hover{ transform: scale(1.15) rotate(-6deg); }
.footer-social img{ width:30px; height:30px; vertical-align:middle; }

.footer-copy{
  background:#42371fad; color:#ffe08a; text-align:center;
  padding: 15px 0 10px; font-size:15px; margin-top:30px; letter-spacing:1.1px;
}

/* ========== تحسين التباين العام ========== */
.about-text p,
.service-card p,
.team-card p,
.contact-info p { color: #444; }

.services-header p,
.clients-header p,
.team-header p,
.stat-label { color: #555; }

.service-card ul li,
.contact-details li { color: #333; }

@media (max-width: 600px) {
  .clients-logos {
    gap: 50px;        /* 👈 بدل 28px → فراغ أكبر */
    padding: 0 20px;  /* 👈 مسافة إضافية من الجوانب */
  }

  .about-stats {
    gap: 20px;         /* 👈 كان 24px، زدنا */
    margin-top: -20px;  /* 👈 زيادة مسافة علوية شوي */
  }
  .stat-box {
    margin-top: 10px;  /* 👈 بدل 60px للموبايل */
  }
}
