/* =========================================================================
   طبقة إعادة التصميم — هوية بصرية جديدة بالكامل
   أخضر زمردي + ذهبي دافئ + خلفية عاجية، حواف أهدأ، ظلال ملوّنة بلون العلامة،
   هيدر/فوتر/هيرو/بطاقات بأنماط جديدة. تُحمَّل فوق tailwind-build.css لتعيد
   تعريف عناصر الهوية (hero-gradient, card-shadow...) وتضيف مكوّنات جديدة
   تُستخدم من inc/helpers.php وheader.php وfooter.php وfront-page.php.
   ========================================================================= */

/* ---------- إعادة تعريف عناصر الهوية الأساسية بألوان جديدة ---------- */
.hero-gradient {
  background: linear-gradient(135deg, hsl(213 55% 14%) 0%, hsl(213 45% 22%) 55%, hsl(213 50% 18%) 100%);
}
.text-gradient {
  background: linear-gradient(90deg, hsl(213 50% 22%), hsl(var(--accent)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card-shadow { box-shadow: 0 8px 30px -10px hsl(213 40% 18% / 0.14); }
.card-shadow-lg { box-shadow: 0 22px 55px -18px hsl(213 45% 16% / 0.26); }

/* حواف أهدأ من التصميم الأصلي (أقل استدارة) */
.rounded-3xl { border-radius: 1.1rem; }
.rounded-\[2\.5rem\] { border-radius: 1.5rem; }

/* شارة ذهبية للـ eyebrow بدل شارة accent الزرقاء */
.bg-accent\/10 { background-color: hsl(var(--accent) / 14%); }

/* ---------- الهيدر الجديد (شفاف فوق الهيرو، بدون شريط علوي، حواف حادة) ---------- */
.ba-header-v2 {
  position: sticky; top: 0; z-index: 50; transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.ba-header-v2.is-solid { background: hsl(var(--background) / 96%); backdrop-filter: blur(10px); border-bottom-color: hsl(var(--border)); }
.ba-header-v2.is-transparent { position: fixed; top: 0; left: 0; right: 0; background: transparent; }
.ba-header-v2.is-transparent.scrolled { background: hsl(var(--primary) / 97%); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -12px hsl(213 45% 10% / .35); }

.ba-brand-block { display: flex; align-items: center; gap: .65rem; }
.ba-brand-mark {
  width: 2.75rem; height: 2.75rem; border-radius: .5rem; background: hsl(var(--accent));
  display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
  transform: rotate(-4deg);
}
.ba-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.ba-brand-text strong { font-family: "El Messiri", sans-serif; font-size: 1.25rem; font-weight: 700; color: hsl(var(--foreground)); }
.ba-brand-text em { font-style: normal; font-size: .7rem; color: hsl(var(--muted-foreground)); letter-spacing: .02em; }
.ba-header-v2.is-transparent:not(.scrolled) .ba-brand-text strong { color: #fff; }
.ba-header-v2.is-transparent:not(.scrolled) .ba-brand-text em { color: hsl(0 0% 100% / 70%); }

.ba-nav-v2 { gap: .3rem; }
.ba-nav-v2 a {
  position: relative; padding: .55rem .9rem; font-weight: 600; font-size: .92rem;
  color: hsl(var(--foreground) / 80%); border-radius: .4rem; transition: color .2s ease, background .2s ease;
}
.ba-nav-v2 a:hover { background: hsl(var(--secondary)); color: hsl(var(--primary)); }
.ba-nav-v2 a.is-active { color: hsl(var(--accent)); font-weight: 700; }
.ba-header-v2.is-transparent:not(.scrolled) .ba-nav-v2 a { color: hsl(0 0% 100% / 85%); }
.ba-header-v2.is-transparent:not(.scrolled) .ba-nav-v2 a:hover { background: hsl(0 0% 100% / 12%); color: #fff; }
.ba-header-v2.is-transparent:not(.scrolled) .ba-nav-v2 a.is-active { color: hsl(var(--accent)); }

.ba-phone-pill {
  align-items: center; gap: .4rem; font-weight: 700; font-size: .85rem;
  color: hsl(var(--foreground)); padding: .5rem .9rem; border: 1px solid hsl(var(--border)); border-radius: .5rem;
}
.ba-header-v2.is-transparent:not(.scrolled) .ba-phone-pill { color: #fff; border-color: hsl(0 0% 100% / 30%); }

.ba-cta-block {
  display: inline-flex; align-items: center; gap: .5rem; background: hsl(var(--accent)); color: #fff;
  font-weight: 700; font-size: .9rem; padding: .75rem 1.4rem; border-radius: .5rem;
  transition: filter .2s ease;
}
.ba-cta-block:hover { filter: brightness(1.08); }

.ba-burger { width: 2.5rem; height: 2.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .28rem; }
.ba-burger span { width: 1.4rem; height: 2px; background: hsl(var(--foreground)); border-radius: 2px; }
.ba-header-v2.is-transparent:not(.scrolled) .ba-burger span { background: #fff; }

/* لوحة قائمة الجوال المنزلقة */
.ba-mobile-panel {
  position: fixed; inset: 0; z-index: 100; visibility: hidden;
}
.ba-mobile-panel.open { visibility: visible; }
.ba-mobile-panel .ba-panel-overlay {
  position: absolute; inset: 0; background: hsl(213 40% 6% / 55%);
  opacity: 0; transition: opacity .25s ease;
}
.ba-mobile-panel.open .ba-panel-overlay { opacity: 1; }
.ba-mobile-panel .ba-panel-sheet {
  position: absolute; top: 0; bottom: 0; right: 0; width: 82%; max-width: 22rem;
  background: hsl(var(--background)); box-shadow: -20px 0 50px hsl(213 40% 8% / .25);
  padding: 1.5rem; transform: translateX(100%); transition: transform .3s ease;
  display: flex; flex-direction: column; gap: .25rem; overflow-y: auto;
}
.ba-mobile-panel.open .ba-panel-sheet { transform: translateX(0); }
.ba-panel-sheet a.ba-nav-link { padding: .85rem .5rem; border-bottom: 1px solid hsl(var(--border)); font-weight: 700; }
.ba-panel-close { align-self: flex-start; padding: .4rem; margin-bottom: .5rem; color: hsl(var(--foreground)); }
.ba-panel-phone { display: flex; align-items: center; gap: .5rem; padding: .85rem .5rem; font-weight: 700; color: hsl(var(--primary)); }


/* ---------- الهيرو الجديد: خلفية كحلي غامقة full-bleed بقصّة مائلة أسفل القسم ---------- */
.ba-hero-split {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, hsl(213 55% 12%) 0%, hsl(213 48% 18%) 60%, hsl(213 50% 15%) 100%);
  padding-top: 6.5rem;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  margin-bottom: -4rem;
}
@media (min-width: 768px) { .ba-hero-split { padding-top: 8rem; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); margin-bottom: -6rem; } }
.ba-hero-split::before {
  content: ''; position: absolute; top: -6rem; left: -6rem; width: 22rem; height: 22rem;
  background: hsl(var(--accent) / 12%); border-radius: 999px; filter: blur(10px);
}
.ba-hero-split .container { position: relative; padding-bottom: 6rem; }
@media (min-width: 768px) { .ba-hero-split .container { padding-bottom: 9rem; } }

.ba-hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
@media (min-width: 1024px) { .ba-hero-grid { grid-template-columns: 1.1fr .9fr; } }

.ba-hero-split h1, .ba-hero-split p, .ba-hero-eyebrow-label { color: #fff; }
.ba-hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: hsl(0 0% 100% / 10%); color: #fff;
  border: 1px solid hsl(0 0% 100% / 25%);
  padding: .45rem 1rem; border-radius: .5rem; font-weight: 700; font-size: .85rem;
}
.ba-hero-split .text-muted-foreground { color: hsl(0 0% 100% / 78%) !important; }

.ba-hero-media { position: relative; }
.ba-hero-media .ba-hero-img {
  border-radius: .9rem; width: 100%; height: 24rem; object-fit: cover;
  box-shadow: 0 30px 60px -20px hsl(213 45% 8% / .5);
  transform: rotate(2deg);
  border: 6px solid hsl(0 0% 100% / 8%);
}
.ba-hero-stat-badge {
  position: absolute; bottom: -1.5rem; left: -1rem;
  background: #fff; border-radius: .75rem; padding: 1rem 1.25rem;
  box-shadow: 0 20px 40px -12px hsl(213 45% 10% / .4);
  display: flex; align-items: center; gap: .75rem; transform: rotate(-3deg);
}
@media (max-width: 639px) { .ba-hero-stat-badge { left: .5rem; bottom: -1rem; padding: .75rem 1rem; } }
.ba-hero-stat-badge .num { font-family: "El Messiri", sans-serif; font-weight: 700; font-size: 1.5rem; color: hsl(var(--primary)); }
.ba-hero-stat-badge .lbl { font-size: .78rem; color: hsl(var(--muted-foreground)); }

/* ---------- شارات الميزات (تطفو فوق قصّة الهيرو) ---------- */
.ba-features-strip { position: relative; z-index: 2; }
.ba-feature-tile {
  background: hsl(var(--card)); border-radius: .8rem; box-shadow: 0 15px 40px -14px hsl(213 40% 18% / .18);
  border: 1px solid hsl(var(--border));
}

/* ---------- شريط الثقة (إحصائيات) ---------- */
.ba-trust-bar {
  background: hsl(var(--card)); border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border));
}
.ba-trust-item { text-align: center; padding: 2rem 1rem; position: relative; }
.ba-trust-item:not(:last-child)::after {
  content: ''; position: absolute; top: 20%; bottom: 20%; left: 0; width: 1px; background: hsl(var(--border));
}
.ba-trust-item .num { font-family: "Almarai", sans-serif; font-weight: 800; font-size: 2rem; color: hsl(var(--primary)); }
.ba-trust-item .lbl { margin-top: .35rem; color: hsl(var(--muted-foreground)); font-size: .9rem; }

/* ---------- عنوان القسم الجديد ---------- */
.ba-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 700; color: hsl(174 65% 26%);
  background: hsl(var(--accent) / 14%); padding: .3rem .9rem; border-radius: 999px;
  margin-bottom: .9rem;
}
.ba-eyebrow::before { content: ''; width: .4rem; height: .4rem; border-radius: 999px; background: hsl(var(--accent)); }

/* ---------- بطاقة الخدمة الجديدة ---------- */
.ba-service-card {
  position: relative; display: block; height: 100%;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 1.1rem; padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 8px 30px -10px hsl(213 40% 18% / 0.10);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.ba-service-card::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 3px;
  background: hsl(var(--accent)); border-radius: 0 1.1rem 1.1rem 0;
  transform: scaleY(0); transform-origin: top; transition: transform .3s ease;
}
.ba-service-card:hover { box-shadow: 0 20px 45px -14px hsl(213 45% 16% / 0.20); transform: translateY(-3px); border-color: hsl(var(--primary) / 30%); }
.ba-service-card:hover::before { transform: scaleY(1); }
.ba-service-card .ba-icon-badge {
  width: 3.25rem; height: 3.25rem; border-radius: .9rem;
  background: hsl(var(--secondary)); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem; transition: background .25s ease;
}
.ba-service-card .ba-icon-badge svg { color: hsl(var(--primary)); }
.ba-service-card:hover .ba-icon-badge { background: hsl(var(--primary)); }
.ba-service-card:hover .ba-icon-badge svg { color: #fff; }

/* ---------- الأسئلة الشائعة (أكورديون جديد) ---------- */
.ba-faq-item {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: .9rem;
  overflow: hidden; box-shadow: 0 6px 20px -10px hsl(213 40% 18% / .1);
  border-right: 3px solid transparent; transition: border-color .2s ease;
}
.ba-faq-item[open] { border-right-color: hsl(var(--accent)); }
.ba-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; font-weight: 700; }
.ba-faq-item .faq-plus { position: relative; width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.ba-faq-item .faq-plus::before, .ba-faq-item .faq-plus::after {
  content: ''; position: absolute; background: hsl(var(--primary)); border-radius: 2px;
}
.ba-faq-item .faq-plus::before { top: 50%; right: 0; left: 0; height: 2px; transform: translateY(-50%); }
.ba-faq-item .faq-plus::after { right: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(50%); transition: transform .2s ease; }
.ba-faq-item[open] .faq-plus::after { transform: translateX(50%) rotate(90deg); opacity: 0; }

/* ---------- نموذج الطلب الجديد ---------- */
.ba-quote-form-card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 1.1rem; padding: 1.75rem; box-shadow: 0 20px 50px -18px hsl(213 45% 16% / .24);
  position: relative; overflow: hidden;
}
.ba-quote-form-card::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 4px;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
}
.ba-quote-form-card input, .ba-quote-form-card textarea {
  border-radius: .65rem;
}
.ba-quote-form-card input:focus, .ba-quote-form-card textarea:focus {
  border-color: hsl(var(--primary));
}
.ba-btn-submit {
  background: hsl(var(--primary)); color: #fff; font-weight: 700; border-radius: .7rem;
  padding: .95rem; width: 100%; transition: filter .2s ease;
}
.ba-btn-submit:hover { filter: brightness(1.1); }

/* ---------- شريط الدعوة لإجراء (CTA) الجديد ---------- */
.ba-cta-band {
  position: relative; overflow: hidden; border-radius: 1.5rem;
  background: linear-gradient(120deg, hsl(213 55% 14%) 0%, hsl(213 45% 20%) 100%);
  padding: 3rem 1.5rem;
}
@media (min-width: 768px) { .ba-cta-band { padding: 3.5rem; } }
.ba-cta-band .ba-cta-dot { position: absolute; border-radius: 999px; background: hsl(174 62% 42% / .18); }
.ba-cta-grid { position: relative; display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; text-align: center; }
@media (min-width: 900px) { .ba-cta-grid { grid-template-columns: 1.3fr auto; text-align: right; } }
.ba-btn-gold {
  display: inline-flex; align-items: center; gap: .5rem; background: hsl(var(--accent)); color: hsl(213 45% 12%);
  font-weight: 700; padding: .9rem 1.6rem; border-radius: .8rem; transition: filter .2s ease, transform .2s ease;
}
.ba-btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ba-btn-outline-light {
  display: inline-flex; align-items: center; gap: .5rem; background: hsl(0 0% 100% / 8%); border: 1px solid hsl(0 0% 100% / 35%);
  color: #fff; font-weight: 700; padding: .9rem 1.6rem; border-radius: .8rem; transition: background .2s ease;
}
.ba-btn-outline-light:hover { background: hsl(0 0% 100% / 16%); }

.ba-btn-solid {
  display: inline-flex; align-items: center; gap: .5rem; background: hsl(var(--primary)); color: #fff;
  font-weight: 700; padding: .9rem 1.6rem; border-radius: .8rem; transition: filter .2s ease, transform .2s ease;
}
.ba-btn-solid:hover { filter: brightness(1.15); transform: translateY(-1px); }

/* ---------- الفوتر الجديد ---------- */
.ba-footer { background: hsl(213 48% 8%); color: hsl(42 20% 85% / .8); }
.ba-footer h4 { color: #fff; font-family: "Almarai", sans-serif; }
.ba-footer a:hover { color: hsl(174 55% 55%); }
.ba-footer-brand-icon { background: linear-gradient(135deg, hsl(213 50% 22%), hsl(var(--accent))); }
.ba-footer-social a { background: hsl(0 0% 100% / 6%); }
.ba-footer-social a:hover { background: hsl(174 62% 42% / 25%); }
.ba-footer-bottom { border-top-color: hsl(0 0% 100% / 8%) !important; }

/* ---------- شبكة الخدمات Bento (غير متساوية) ---------- */
.ba-bento-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.1rem;
}
@media (min-width: 640px) { .ba-bento-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ba-bento-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; } }
.ba-bento-card {
  position: relative; display: block; background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: .9rem; padding: 1.6rem; box-shadow: 0 8px 26px -12px hsl(213 40% 18% / 0.1);
  transition: box-shadow .25s ease, transform .25s ease, background .25s ease;
}
.ba-bento-card:hover { transform: translateY(-3px); box-shadow: 0 20px 42px -16px hsl(213 45% 16% / .2); border-color: hsl(var(--accent) / 40%); }
@media (min-width: 1024px) { .ba-bento-lg { grid-column: span 2; grid-row: span 2; padding: 2rem; } }
.ba-bento-lg .ba-icon-badge { width: 4rem; height: 4rem; }
.ba-bento-lg h3 { font-size: 1.4rem; }
.ba-bento-arrow { position: absolute; bottom: 1.4rem; left: 1.4rem; color: hsl(var(--accent)); opacity: 0; transform: translateX(6px); transition: all .2s ease; }
.ba-bento-card:hover .ba-bento-arrow { opacity: 1; transform: translateX(0); }
.ba-bento-more {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: hsl(var(--primary)); color: #fff; border: none;
}
.ba-bento-more:hover { background: hsl(213 55% 20%); }

/* ---------- بطاقات باقات الأسعار ---------- */
.ba-price-card {
  position: relative; background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 1.1rem; padding: 2rem 1.75rem; box-shadow: 0 8px 30px -10px hsl(213 40% 18% / 0.12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ba-price-card:hover { transform: translateY(-4px); box-shadow: 0 20px 45px -14px hsl(213 45% 16% / 0.2); }
.ba-price-card.is-featured {
  background: linear-gradient(160deg, hsl(213 55% 16%), hsl(213 45% 22%));
  color: #fff; border-color: transparent; transform: scale(1.03);
  box-shadow: 0 25px 55px -16px hsl(213 45% 14% / .4);
}
.ba-price-card.is-featured h3 { color: #fff; }
.ba-price-badge {
  position: absolute; top: -.9rem; right: 1.5rem; background: hsl(var(--accent)); color: #fff;
  font-size: .75rem; font-weight: 700; padding: .35rem .9rem; border-radius: 999px;
}
.ba-btn-on-dark {
  display: inline-flex; align-items: center; gap: .5rem; background: hsl(var(--accent)); color: #fff;
  font-weight: 700; padding: .85rem 1.5rem; border-radius: .7rem; transition: filter .2s ease;
}
.ba-btn-on-dark:hover { filter: brightness(1.1); }

/* ---------- أزرار عائمة (واتساب/اتصال) ---------- */
.ba-fab-call { background: hsl(var(--primary)); }

/* ---------- بطاقات عامة (لماذا نحن) ---------- */
.ba-info-card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1.1rem; padding: 1.75rem;
  box-shadow: 0 8px 26px -12px hsl(213 40% 18% / .12); transition: transform .25s ease, box-shadow .25s ease;
}
.ba-info-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -16px hsl(213 45% 16% / .18); }
.ba-info-card .ba-icon-badge-sm {
  width: 2.75rem; height: 2.75rem; border-radius: .8rem; background: hsl(var(--secondary));
  display: flex; align-items: center; justify-content: center; margin-bottom: .9rem;
}
.ba-info-card .ba-icon-badge-sm svg { color: hsl(var(--primary)); }
.ba-info-card .ba-icon-badge-sm.is-solid svg { color: #fff; }

/* ---------- بطاقة قبل/بعد ---------- */
.ba-ba-card { position: relative; border-radius: 1.1rem; overflow: hidden; box-shadow: 0 8px 30px -10px hsl(213 40% 18% / .14); }
.ba-ba-card .ba-ba-caption { position: absolute; inset: 0; background: linear-gradient(to top, hsl(213 45% 7% / .78), transparent 60%); display: flex; align-items: flex-end; padding: 1.25rem; }

/* ---------- بطاقة تقييم ---------- */
.ba-review-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1.1rem; padding: 1.75rem; box-shadow: 0 8px 30px -10px hsl(213 40% 18% / .12); }

/* ---------- مربع تقييم قوقل ---------- */
.ba-rating-box { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1rem; padding: 1rem 1.5rem; box-shadow: 0 8px 26px -12px hsl(213 40% 18% / .12); display: inline-flex; align-items: center; gap: 1rem; }

/* ---------- بطاقة منطقة صغيرة ---------- */
.ba-city-chip {
  display: flex; align-items: center; gap: .5rem; background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: .7rem; padding: .75rem 1rem; font-weight: 700; font-size: .875rem; transition: border-color .2s ease, background .2s ease;
}
.ba-city-chip:hover { border-color: hsl(var(--primary)); background: hsl(var(--secondary) / 50%); }

/* ---------- بطاقة مدونة ---------- */
.ba-blog-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1.1rem; overflow: hidden; box-shadow: 0 8px 30px -10px hsl(213 40% 18% / .12); }

/* ---------- هيرو صفحة داخلية ---------- */
.ba-page-hero { position: relative; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%); }
.ba-page-hero .ba-pattern { position: absolute; inset: 0; opacity: .08; background-image: radial-gradient(circle, #fff 1.5px, transparent 1.5px); background-size: 22px 22px; }

/* ---------- عام ---------- */
::selection { background: hsl(var(--accent) / 35%); }
a:focus-visible, button:focus-visible { outline: 2px solid hsl(var(--accent)); outline-offset: 2px; }
