/* ديكور ديبوت — تنسيقات مشتركة (الهيدر الزجاجي، المسافات، الفواصل) */

/* ===== الهيدر: زجاجي شفاف ثابت ===== */
.topbar.tb{
  position:fixed; top:10px; left:0; right:0;
  background:transparent; border:0; box-shadow:none;
  opacity:1 !important; pointer-events:none !important;
  padding:0 12px;
}
.tb-inner{
  pointer-events:auto;
  max-width:1280px; margin:0 auto; height:64px;
  display:flex; align-items:center; gap:14px;
  padding:0 10px 0 14px;
  background:rgba(0,72,36,.58);
  -webkit-backdrop-filter:blur(16px) saturate(170%);
  backdrop-filter:blur(16px) saturate(170%);
  border:1px solid rgba(255,255,255,.18);
  border-radius:20px;
  box-shadow:0 10px 30px -14px rgba(0,40,20,.45), inset 0 1px 0 rgba(255,255,255,.12);
  transition:background .3s ease, box-shadow .3s ease;
}
[dir="rtl"] .tb-inner{padding:0 14px 0 10px;}
.topbar.tb.scrolled .tb-inner{background:rgba(0,60,30,.74); box-shadow:0 14px 34px -16px rgba(0,30,15,.55), inset 0 1px 0 rgba(255,255,255,.12);}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .tb-inner{background:rgba(0,72,36,.94);}
}

.topbar.tb .tb-logo{display:flex; align-items:center; flex-shrink:0; padding:0;}
.topbar.tb .tb-logo img{height:50px; width:auto; display:block; filter:drop-shadow(0 2px 8px rgba(0,0,0,.2));}

.tb-nav{display:none; flex:1; justify-content:center; align-items:center; gap:2px; min-width:0;}
.topbar.tb .tb-link{
  display:inline-flex; align-items:center; gap:4px;
  padding:8px 13px; border-radius:12px;
  color:rgba(255,255,255,.88); font-size:15.5px !important; font-weight:700; line-height:1;
  background:none; border:0; font-family:inherit; cursor:pointer; white-space:nowrap;
  text-decoration:none; transition:background .2s, color .2s;
}
.topbar.tb .tb-link:hover{background:rgba(255,255,255,.12); color:#fff; opacity:1;}
.topbar.tb .tb-link.is-active{background:#fff; color:var(--brand-deep);}
.topbar.tb .tb-link .ksa-chev{opacity:.8;}

.tb-actions{display:flex; align-items:center; gap:8px; margin-inline-start:auto; flex-shrink:0;}
.topbar.tb .tb-lang{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:40px; height:38px; padding:0 10px; border-radius:12px;
  border:1px solid rgba(255,255,255,.28); color:#fff; font-weight:800; font-size:14px; text-decoration:none;
  transition:background .2s;
}
.topbar.tb .tb-lang:hover{background:rgba(255,255,255,.12);}
.topbar.tb .tb-wa{
  display:inline-flex; align-items:center; gap:7px; height:40px; padding:0 15px; border-radius:12px;
  background:#25D366; color:#fff; font-weight:800; font-size:15px; text-decoration:none; white-space:nowrap;
  box-shadow:0 6px 16px -8px rgba(37,211,102,.8); transition:transform .2s, background .2s;
}
.topbar.tb .tb-wa:hover{background:#1fbf5b; transform:translateY(-1px);}
.topbar.tb .tb-wa svg{width:19px; height:19px; flex-shrink:0;}
.topbar.tb .tb-icon{
  width:40px; height:40px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); color:#fff; cursor:pointer; padding:0;
}
.topbar.tb .tb-icon:hover{background:rgba(255,255,255,.2);}
.topbar.tb .tb-icon svg{width:22px; height:22px;}
.tb-desk{display:none !important;}

@media (max-width:767px){
  /* الصفحة كلها عليها zoom 75% في الجوال، فالمقاسات هنا أكبر عشان تطلع مريحة للإصبع */
  .topbar.tb{top:8px; padding:0 8px;}
  .tb-inner{height:72px; border-radius:20px; gap:10px;}
  .topbar.tb .tb-logo img{height:54px;}
  .topbar.tb .tb-wa, .topbar.tb .tb-icon, .topbar.tb .tb-lang{width:52px; height:52px; padding:0; justify-content:center; border-radius:15px; font-size:17px;}
  .topbar.tb .tb-wa svg{width:25px; height:25px;}
  .topbar.tb .tb-icon svg{width:27px; height:27px;}
  .topbar.tb .tb-wa span{display:none;}
}
@media (min-width:768px){
  .tb-mob{display:none !important;}
  .tb-desk{display:flex !important;}
}
@media (min-width:1080px){
  .tb-nav{display:flex;}
}
@media (min-width:1080px) and (max-width:1279px){
  .topbar.tb .tb-link{padding:8px 9px; font-size:14.5px !important;}
  .topbar.tb .tb-wa span{display:none;}
  .topbar.tb .tb-wa{width:40px; padding:0; justify-content:center;}
}

/* ===== مسافات أقل بين الأقسام ===== */
section.py-14{padding-top:2.25rem; padding-bottom:2.25rem;}
section.py-10, section.py-12{padding-top:2rem; padding-bottom:2rem;}
section.py-8{padding-top:1.5rem; padding-bottom:1.5rem;}
@media (min-width:640px){
  section.sm\:py-16{padding-top:3rem; padding-bottom:3rem;}
  section.sm\:py-20{padding-top:3.5rem; padding-bottom:3.5rem;}
  section.sm\:py-14{padding-top:2.5rem; padding-bottom:2.5rem;}
  section.sm\:pb-20{padding-bottom:3.5rem;}
}
.hero-split{padding:90px 0 28px;}
@media (min-width:1024px){
  .hero-split{padding:118px 0 44px;}
}

/* ===== بدون فواصل بين الأقسام ===== */
.section-divider{display:none !important;}

/* ===== عناوين الأقسام أوضح (الكلاس font-extrabold كان مغلوب بقاعدة h2 العامة) ===== */
h1.font-extrabold, h2.font-extrabold, h2.font-bold, h3.font-extrabold{font-weight:800;}
h2.font-extrabold{letter-spacing:-.2px; color:var(--ink);}

/* ===== عنوان صغير فوق العناوين (بدل الشارة الخضراء) ===== */
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-size:15px !important; font-weight:700 !important; line-height:1.4;
  color:var(--brand); background:none; padding:0; border-radius:0;
}
.eyebrow::before, .eyebrow::after{content:""; width:22px; height:1.5px; background:currentColor; opacity:.55; flex-shrink:0;}
.eyebrow.hero-eyebrow{display:flex; width:fit-content;}
@media (min-width:1024px){
  .eyebrow.hero-eyebrow:not(.svc-title-eyebrow)::after{display:none;}
}
.eyebrow + h2, .eyebrow + h1{margin-top:.15rem;}
h2.text-xl.font-extrabold{font-size:1.6rem; line-height:1.35;}
@media (min-width:640px){ h2.text-xl.font-extrabold{font-size:2rem;} }

/* ===== أقسام بدون صناديق داخل صناديق ===== */
.results-card, .underway-card, .gallery-card, .process-timeline-card{
  background:none !important; border:0 !important; box-shadow:none !important; padding:0 !important; border-radius:0 !important;
}
.text-center.max-w-xl.mb-10{margin-bottom:1.75rem;}

/* ===== معرض الصور: إطارات أنظف ===== */
.proj-thumb{
  border:0 !important; border-radius:10px !important; background:#e9efeb !important;
  box-shadow:none !important; transform:none !important;
}
.proj-thumb:hover{transform:none !important; box-shadow:none !important;}
.proj-thumb img{transition:transform .7s cubic-bezier(.2,.7,.2,1), filter .4s;}
.proj-thumb:hover img{transform:scale(1.04);}
.proj-thumb::after{background:linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.62) 100%) !important;}
.proj-thumb-label{
  right:14px !important; left:14px !important; bottom:12px !important;
  font-weight:700 !important; font-size:.9rem !important; text-shadow:none !important;
  display:flex; align-items:center; gap:8px;
}
.proj-thumb-label::before{content:""; width:14px; height:2px; background:#fff; opacity:.8; flex-shrink:0;}
@media (min-width:640px){ .proj-thumb-label{font-size:1rem !important;} }
.proj-thumb-more{
  background:var(--brand-deep) !important; border-radius:10px !important;
}
.proj-thumb-more-text{font-size:1.05rem !important; font-weight:700 !important;}

/* المعرض المصغّر في الرئيسية: صورة كبيرة مميزة على الكمبيوتر */
@media (min-width:640px){
  .grid.grid-cols-2.sm\:grid-cols-3 > .proj-thumb:first-child{grid-column:span 2; grid-row:span 2; aspect-ratio:auto;}
  .grid.grid-cols-2.sm\:grid-cols-3 > .proj-thumb:first-child img{position:absolute; inset:0;}
  .grid.grid-cols-2.sm\:grid-cols-3 > .proj-thumb:first-child .proj-thumb-label{font-size:1.25rem !important; bottom:18px !important; right:20px !important;}
}
#projGrid > .proj-thumb:first-child{grid-column:auto; grid-row:auto; aspect-ratio:1/1;}
#projGrid{gap:10px !important;}
@media (min-width:640px){ #projGrid{gap:14px !important;} }

/* قيد التنفيذ */
.progress-tag{
  top:12px !important; right:12px !important; background:rgba(255,255,255,.92) !important; color:var(--brand-deep) !important;
  border-radius:6px !important; font-size:.75rem !important; padding:4px 9px !important;
}
.progress-tag .progress-dot{background:#1fae5b !important;}
.progress-bar-track{height:3px !important; bottom:40px !important; right:14px !important; left:14px !important; background:rgba(255,255,255,.3) !important;}
.progress-bar-fill{background:#fff !important;}

/* قبل وبعد */
.ba-card{background:none !important; border:0 !important; border-radius:0 !important; box-shadow:none !important; transform:none !important; overflow:visible !important;}
.ba-card:hover{transform:none !important; box-shadow:none !important;}
.ba-imgs{gap:4px !important; background:none !important; border-radius:10px; overflow:hidden;}
.ba-img-wrap{aspect-ratio:4/5 !important;}
.ba-img-wrap img{transition:transform .7s cubic-bezier(.2,.7,.2,1);}
.ba-img-wrap:hover img{transform:scale(1.04);}
.ba-tag{
  top:auto !important; bottom:10px !important; right:10px !important; left:auto !important;
  border-radius:5px !important; padding:3px 9px !important; font-size:.75rem !important;
}
.ba-tag.before{background:rgba(0,0,0,.6) !important;}
.ba-tag.after{background:#fff !important; color:var(--brand-deep) !important;}
.ba-caption{padding:12px 2px 0 !important;}
.ba-caption p{font-size:1.05rem !important; font-weight:700 !important; color:var(--ink);}

/* أزرار فلترة المشاريع: تبويبات بدل كبسولات */
.proj-filter-btn{
  background:none !important; border:0 !important; border-radius:0 !important;
  padding:10px 4px !important; margin:0 10px; color:var(--muted) !important;
  border-bottom:2px solid transparent !important; font-size:1rem !important;
}
.proj-filter-btn:hover{color:var(--brand-deep) !important;}
.proj-filter-btn.active{background:none !important; color:var(--brand-deep) !important; border-bottom-color:var(--brand) !important; font-weight:800 !important;}

/* نافذة تكبير الصور */
.lightbox-overlay{background:rgba(8,12,10,.94) !important;}
.lightbox-overlay img{border-radius:6px !important; box-shadow:none !important;}
@media (max-width:639px){
  #projFilters{flex-wrap:nowrap !important; overflow-x:auto; justify-content:flex-start !important; gap:0 !important; scrollbar-width:none; border-bottom:1px solid var(--line); margin-inline:-16px; padding-inline:8px;}
  #projFilters::-webkit-scrollbar{display:none;}
}

/* سلايدر الأقسام */
.gallery-item{background:none !important; border:0 !important; padding:0 !important; border-radius:0 !important; box-shadow:none !important; transform:none !important;}
.gallery-item:hover{transform:none !important; box-shadow:none !important;}
.gallery-item > div{border-radius:10px !important; transition:background .3s;}
.gallery-item:hover > div{background:var(--brand-soft) !important;}
.gallery-item p{font-weight:700 !important; font-size:1rem !important; margin-top:.6rem !important;}
@media (min-width:640px){
  .grid.grid-cols-2.sm\:grid-cols-3:has(> .proj-thumb-more){max-width:1080px; margin-inline:auto;}
}

/* نصايح المدينة */
#city-tips .city-point{background:none; border:0; border-top:2px solid var(--brand); border-radius:0; padding:1.1rem 0 0;}
#city-tips .city-tip-num{display:block; font-size:1.6rem; font-weight:900; color:var(--brand); line-height:1; margin-bottom:.6rem; opacity:.85;}
#city-tips .city-point h3{font-size:1.15rem !important; line-height:1.5;}

/* الإيميل في الفوتر ما يطلع برا الشاشة في المقاسات المتوسطة */
footer a[href^="mailto:"]{overflow-wrap:anywhere; word-break:break-word; direction:ltr; unicode-bidi:isolate;}
footer .grid > div{min-width:0;}
