/**
 * ====================================================================
 * بناة مصر للإنشاءات والمقاولات (Egypt Builders – EB)
 * ملف التنسيقات الرئيسي (css/style.css)
 * --------------------------------------------------------------------
 * يعتمد على CSS3 الحديث، المتغيرات الهندسية، الخصائص المنطقية (Logical Properties)،
 * والتصميم المتجاوب بالكامل لكافة أحجام الشاشات والموبايل.
 * ====================================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  /* ألوان الهوية البصرية الرسمية */
  --blue: #1B4F7A;
  --blue-dark: #103352;
  --blue-deeper: #0A2239;
  --blue-light: #246091;
  --blue-50: #EDF4FA;
  
  --gold: #B8935A;
  --gold-light: #D4AF37;
  --gold-dark: #997332;
  --gold-50: #FAF5EE;

  --terracotta: #B85C38;
  --terracotta-dark: #994A2B;
  --terracotta-50: #FAF0EC;

  --white: #FFFFFF;
  --light: #F5F6F8;
  --light-gray: #EAECEF;
  --border: #E2E8F0;
  
  --dark: #0F172A;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* خطوط وظلال */
  --font-main: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(27, 79, 122, 0.12);
  --shadow-xl: 0 20px 48px rgba(16, 51, 82, 0.18);
  --shadow-gold: 0 8px 24px rgba(184, 147, 90, 0.28);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 84px;
}

/* إعادة الضبط الأساسي */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* روابط وأزرار */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

/* الحاوية المركزية القياسية */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

/* نمط الزخرفة الهندسية الإسلامية الخفيفة */
.islamic-pattern {
  background-image: radial-gradient(rgba(27, 79, 122, 0.06) 1.5px, transparent 1.5px),
                    radial-gradient(rgba(184, 147, 90, 0.05) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
}

.islamic-stars-bg {
  background-color: var(--light);
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231B4F7A' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M20 0l3 12 12-3-7 10 10 7-12 3 3 12-10-7-10 7 3-12-12-3 10-7-7-10 12 3z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ====================================================================
   الهيدر وشريط التنقل الرئيسي (Header & Navigation)
   ==================================================================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-scrolled {
  box-shadow: var(--shadow-md) !important;
}

/* الشريط العلوي الأبيض مع الشعار */
.header-top {
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  padding-block: 0.6rem;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* كتلة الشعار والهوية */
.brand-link {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
  transition: var(--transition);
}

.brand-link:hover .brand-logo-wrap {
  transform: scale(1.04);
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.brand-sub {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.2px;
}

/* أدوات الهيدر العلوي (زر اللغة وبيانات سريعة) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-contact-quick {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-dark);
  font-weight: 600;
}

@media (min-width: 992px) {
  .header-contact-quick {
    display: flex;
  }
}

.quick-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* زر التبديل بين اللغات */
.lang-toggle-btn {
  background: var(--gold);
  color: var(--white);
  font-weight: 800;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(184, 147, 90, 0.25);
  transition: var(--transition);
}

.lang-toggle-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

/* زر القائمة للموبايل */
.mobile-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: var(--blue-50);
  color: var(--blue);
  border-radius: var(--radius-sm);
  cursor: pointer;
  gap: 5px;
  border: 1px solid var(--border);
}

@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.hamburger-bar {
  width: 22px;
  height: 2.5px;
  background: var(--blue);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-open .hamburger-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.menu-open .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.menu-open .hamburger-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* شريط التنقل الكحلي */
.header-nav-bar {
  background: var(--blue);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}

.nav-link {
  display: inline-block;
  padding: 0.95rem 1.25rem;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--white);
  border-radius: 0;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-light);
}

/* الرابط النشط مميز باللون الذهبي */
.nav-link.active {
  background: var(--gold);
  color: var(--white);
  font-weight: 800;
  box-shadow: inset 0 -3px 0 var(--gold-dark);
}

.nav-link.active:hover {
  background: var(--gold-dark);
  color: var(--white);
}

.nav-quote-btn {
  display: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--white);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 992px) {
  .nav-quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
}

.nav-quote-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  transform: translateY(-1px);
}

/* قائمة الموبايل المنسدلة */
@media (max-width: 991px) {
  .header-nav-bar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    box-shadow: var(--shadow-xl);
    padding: 1rem 0;
  }

  .header-nav-bar.active {
    display: block;
    animation: slideDown 0.3s ease-out;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding-inline: 1rem;
  }

  .nav-link {
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-quote-mobile {
    display: block;
    margin: 1rem 1rem 0;
    text-align: center;
    background: var(--gold);
    color: var(--white);
    padding: 0.85rem;
    font-weight: 800;
    border-radius: var(--radius-sm);
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====================================================================
   سلايدر الهيرو الرئيسي (Hero Slider)
   ==================================================================== */
.hero-slider-section {
  position: relative;
  width: 100%;
  height: calc(100vh - 140px);
  min-height: 580px;
  max-height: 780px;
  overflow: hidden;
  background: var(--dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 7s ease-out;
}

.hero-slide.active .hero-bg-img {
  transform: scale(1);
}

/* تدرج الغروب المتناغم (بنفسجي وأزرق كحلي عميق إلى برتقالي وذهبي) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 34, 57, 0.88) 0%,
    rgba(27, 79, 122, 0.75) 45%,
    rgba(184, 92, 56, 0.65) 85%,
    rgba(184, 147, 90, 0.5) 100%
  );
  backdrop-filter: blur(1.5px);
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-textbox {
  max-width: 820px;
  color: var(--white);
  padding-inline-start: 1.5rem;
  border-inline-start: 6px solid var(--gold);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  color: var(--white);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.2rem;
  }
}

.hero-title .highlight-gold {
  color: var(--gold-light);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
  max-width: 680px;
}

@media (min-width: 768px) {
  .hero-desc {
    font-size: 1.2rem;
  }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* الأزرار العامة */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  font-weight: 800;
  font-size: 0.98rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(184, 147, 90, 0.38);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* مؤشرات سلايدر الهيرو */
.hero-slider-dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
}

.hero-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--gold);
  border-color: var(--white);
  transform: scale(1.3);
  box-shadow: 0 0 10px var(--gold-light);
}

/* ====================================================================
   الفاصل المنحني المميز (Notch Separator)
   ==================================================================== */
.notch-separator-wrap {
  position: relative;
  width: 100%;
  background: var(--white);
  margin-top: -30px;
  z-index: 4;
}

.notch-shape-svg {
  display: block;
  width: 100%;
  height: 60px;
  fill: var(--white);
}

.notch-accent-bar {
  height: 6px;
  width: 160px;
  margin-inline: auto;
  background: linear-gradient(90deg, var(--gold), var(--terracotta), var(--blue));
  border-radius: var(--radius-full);
  margin-top: -3px;
}

/* ====================================================================
   قسم الرؤية المعمارية (Architectural Vision)
   ==================================================================== */
.section {
  padding-block: 5rem;
  position: relative;
}

@media (min-width: 992px) {
  .section {
    padding-block: 6.5rem;
  }
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1.35;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .vision-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.vision-textbox h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.vision-textbox p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.vision-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.vision-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.vision-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gold-50);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.vision-feature-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--blue);
  margin-bottom: 0.2rem;
}

.vision-img-frame {
  position: relative;
}

.vision-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--white);
  aspect-ratio: 4 / 3;
}

.vision-img-wrap img {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.vision-img-frame:hover .vision-img-wrap img {
  transform: scale(1.04);
}

.vision-img-accent-badge {
  position: absolute;
  bottom: -20px;
  right: -15px;
  background: var(--blue);
  color: var(--white);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 576px) {
  .vision-img-accent-badge {
    position: static;
    margin-top: 1rem;
  }
}

.vision-badge-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
}

.vision-badge-text {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ====================================================================
   شريط العدادات الرقمية المتحركة (Statistics Count-Up)
   ==================================================================== */
.stats-section {
  background: linear-gradient(135deg, var(--blue-deeper), var(--blue));
  color: var(--white);
  padding-block: 4rem;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  border-color: var(--gold);
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 0.5rem;
}

.stat-counter {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
}

@media (min-width: 768px) {
  .stat-counter {
    font-size: 3.4rem;
  }
}

.stat-suffix {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
}

.stat-title {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

/* ====================================================================
   قسم الخدمات (Services Grid)
   ==================================================================== */
.services-section {
  background: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--blue);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.service-card:hover::before {
  background: var(--gold);
  height: 6px;
}

.service-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
  background: var(--gold);
  color: var(--white);
  transform: rotate(-6deg);
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--gold-dark);
}

.service-card:hover .service-card-link {
  color: var(--blue);
}

/* ====================================================================
   قسم المشروعات والفلاتر (Projects & Filters)
   ==================================================================== */
.projects-section {
  background: var(--white);
}

.projects-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  background: var(--light);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.filter-btn:hover {
  background: var(--blue-50);
  color: var(--blue);
}

.filter-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(27, 79, 122, 0.25);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold);
}

.project-img-box {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--light-gray);
}

.project-img-box img {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img-box img {
  transform: scale(1.08);
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--blue);
  color: var(--white);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.project-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-location {
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.project-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.project-card-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.project-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  color: var(--blue);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.project-card:hover .project-card-btn {
  color: var(--gold-dark);
}

/* ====================================================================
   قسم لماذا بناة مصر؟ (Why Choose Us)
   ==================================================================== */
.why-us-section {
  background: var(--light);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.why-card {
  background: var(--white);
  padding: 2.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}

.why-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold-50);
  color: var(--gold-dark);
  margin-inline: auto;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}

.why-card:hover .why-icon-wrap {
  background: var(--blue);
  color: var(--white);
}

.why-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.why-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ====================================================================
   قسم آراء العملاء (Testimonials Carousel)
   ==================================================================== */
.testimonials-section {
  background: var(--white);
  position: relative;
}

.testimonials-carousel-wrap {
  max-width: 920px;
  margin-inline: auto;
  position: relative;
}

.testimonial-track {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.testimonial-quote-icon {
  font-size: 2.5rem;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.testimonial-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 2rem;
  max-width: 780px;
}

@media (min-width: 768px) {
  .testimonial-text {
    font-size: 1.35rem;
  }
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--gold);
}

.author-info {
  text-align: start;
}

.author-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue);
}

.author-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* ====================================================================
   بانر الدعوة للتواصل (CTA Banner)
   ==================================================================== */
.cta-banner-section {
  position: relative;
  padding-block: 5.5rem;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: var(--white);
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 34, 57, 0.94), rgba(27, 79, 122, 0.88));
}

.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
  color: var(--white);
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 2.8rem;
  }
}

.cta-desc {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.25rem;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* ====================================================================
   بانر الصفحات الداخلية (Inner Pages Banner)
   ==================================================================== */
.inner-banner {
  position: relative;
  padding-block: 5rem 4rem;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.inner-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16, 51, 82, 0.92), rgba(27, 79, 122, 0.85));
}

.inner-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.inner-banner-title {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  color: var(--white);
}

@media (min-width: 768px) {
  .inner-banner-title {
    font-size: 3rem;
  }
}

.breadcrumb-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-nav a {
  color: var(--gold-light);
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

/* ====================================================================
   الفوتر الكحلي الشامل (Site Footer)
   ==================================================================== */
#site-footer {
  background: var(--blue-deeper);
  color: var(--white);
  border-top: 5px solid var(--gold);
  padding-top: 4.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.footer-col-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: var(--radius-full);
}

[dir="ltr"] .footer-col-title::after {
  right: auto;
  left: 0;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.footer-logo-badge {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.footer-brand-name {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
}

.footer-brand-sub {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
}

.footer-about-p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-link:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-3px);
  border-color: var(--gold);
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-link {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.footer-nav-link:hover {
  color: var(--gold-light);
  transform: translateX(-4px);
}

[dir="ltr"] .footer-nav-link:hover {
  transform: translateX(4px);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.footer-contact-icon {
  color: var(--gold-light);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  padding-block: 1.75rem;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ====================================================================
   الأزرار العائمة (Floating Buttons)
   ==================================================================== */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

[dir="ltr"] .floating-actions {
  left: auto;
  right: 2rem;
}

.whatsapp-float-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  font-size: 1.8rem;
  transition: var(--transition);
  animation: pulseFloat 2.5s infinite;
}

.whatsapp-float-btn:hover {
  background: #20BA5A;
  transform: scale(1.1);
}

@keyframes pulseFloat {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.back-to-top-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background: var(--gold);
  transform: translateY(-3px);
}

/* ====================================================================
   نافذة المعاينة المكبرة (Lightbox Modal)
   ==================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 25, 47, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 1000px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 1rem;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
}

.lightbox-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close-btn:hover {
  color: var(--gold);
}

/* حماية الصور المكسورة */
.img-fallback {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue)) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.img-fallback::after {
  content: 'بناة مصر';
  font-weight: 800;
  color: var(--gold-light);
  font-size: 1.1rem;
}

/* احترام تفضيلات الحركة (Reduced Motion) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
