/* ==========================================================================
   رواد البناء الحديث للصناعات الالكترونية - Rowad Al-Benaa Al-Hadith Electronic Industries
   Brand identity: charcoal + teal/aquamarine from logo (circuit globe)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700;800&family=Cairo:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Charcoal base from logo blacks */
  --primary: #0b1c24;
  --primary-light: #16303a;
  --primary-dark: #061018;

  /* Teal accents from logo (--gold kept for backwards compatibility) */
  --gold: #00a088;
  --gold-light: #2dd4bf;
  --gold-dark: #006858;

  --accent-blue: #00a088;
  --accent-cyan: #00c9b1;
  --silver-slate: #c5d5d2;

  --light-bg: #f3faf8;
  --card-bg: #ffffff;
  --text-main: #0f1c22;
  --text-muted: #5b6f76;
  --text-light: #eef8f5;
  --border-color: #d7e6e2;

  --shadow-sm: 0 4px 6px -1px rgba(11, 28, 36, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 160, 136, 0.14);
  --shadow-lg: 0 20px 25px -5px rgba(11, 28, 36, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography & Base Setup */
body {
  font-family: 'Cairo', 'Alexandria', 'Outfit', sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(ellipse 80% 40% at 100% -10%, rgba(0, 201, 177, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 35% at 0% 20%, rgba(0, 104, 88, 0.05), transparent 45%),
    #ffffff;
  overflow-x: hidden;
  line-height: 1.7;
}

[lang="en"] body {
  font-family: 'Outfit', 'Cairo', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Alexandria', 'Cairo', 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary);
}

a {
  text-decoration: none;
  transition: var(--transition);
}

/* Top Bar */
/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: #ffffff;
  box-shadow: 0 12px 40px -28px rgba(11, 28, 36, 0.55);
}

.header-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold) 45%, var(--accent-cyan) 100%);
}

.header-shell {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fcfa 100%);
  border-bottom: 1px solid rgba(0, 104, 88, 0.1);
}

.header-shell-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 88px;
  padding-block: 0.55rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.35rem 0.55rem;
  background: #ffffff;
  border: 1px solid rgba(0, 104, 88, 0.12);
  border-radius: 14px;
  box-shadow: 0 8px 24px -18px rgba(0, 104, 88, 0.55);
}

.site-brand img,
.navbar-brand img {
  height: 64px;
  width: auto;
  max-width: min(250px, 52vw);
  object-fit: contain;
  display: block;
  transition: var(--transition);
}

.site-brand:hover {
  border-color: rgba(0, 160, 136, 0.35);
  transform: translateY(-1px);
}

.header-nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem;
  background: rgba(0, 160, 136, 0.06);
  border: 1px solid rgba(0, 104, 88, 0.1);
  border-radius: 999px;
}

.header-nav-link {
  position: relative;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: var(--transition);
}

.header-nav-link:hover {
  color: var(--gold-dark);
  background: rgba(255, 255, 255, 0.85);
}

.header-nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  box-shadow: 0 8px 18px -10px rgba(0, 160, 136, 0.8);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-inline-end: 0.15rem;
}

.header-contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.7rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 104, 88, 0.14);
  color: var(--primary);
  transition: var(--transition);
}

.header-contact-chip--mail {
  padding: 0.35rem;
  width: 42px;
  height: 42px;
  justify-content: center;
}

.header-contact-chip:hover {
  border-color: rgba(0, 160, 136, 0.4);
  background: var(--light-bg);
  color: var(--gold-dark);
}

.header-contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(0, 160, 136, 0.14), rgba(0, 201, 177, 0.22));
  color: var(--gold-dark);
  flex-shrink: 0;
}

.header-contact-chip--mail .header-contact-icon {
  width: 100%;
  height: 100%;
  background: transparent;
}

.header-contact-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.header-contact-text small {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.header-contact-text strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.01em;
}

.header-cta {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.7rem 1.25rem;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 22px -12px rgba(0, 160, 136, 0.85);
  transition: var(--transition);
}

.header-cta:hover {
  color: #ffffff !important;
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--gold) 100%);
}

.header-meta {
  background: #061018;
  color: #9eb4ae;
  font-size: 0.82rem;
}

.header-meta-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 34px;
}

.header-meta-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.header-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #c5d5d2;
}

.header-meta-item i {
  color: var(--gold-light);
  font-size: 0.78rem;
}

.header-meta a:hover {
  color: var(--gold-light);
}

/* Legacy top-bar / navbar helpers kept for compatibility */
.top-bar {
  display: none;
}

.btn-lang {
  background: rgba(0, 160, 136, 0.08);
  color: var(--gold-dark);
  border: 1px solid rgba(0, 104, 88, 0.18);
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-lang:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
}

.site-menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(11, 28, 36, 0.12);
  background: #f3faf8;
  border-radius: 12px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}

.site-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.site-menu-toggle:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.site-menu-toggle:hover span {
  background: #ffffff;
}

/* Mobile sidebar */
.site-offcanvas {
  width: min(86vw, 360px);
  background: #061018;
  color: #e2e8f0;
  border: 0;
}

.site-offcanvas-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.25rem;
  border-bottom: 1px solid rgba(0, 201, 177, 0.14);
  background: linear-gradient(135deg, #061018 0%, #0b1c24 55%, #0f3a36 100%);
}

.site-offcanvas-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.site-offcanvas-brand img {
  width: auto;
  height: 48px;
  max-width: 160px;
  object-fit: contain;
  background: #ffffff;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.site-offcanvas-brand strong {
  display: block;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.site-offcanvas-brand span {
  display: block;
  color: #94a3b8;
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.site-offcanvas-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.site-offcanvas-close:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.site-offcanvas-body {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.site-offcanvas-nav {
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.site-offcanvas-nav .nav-link {
  color: #cbd5e1;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 1rem !important;
  border: 1px solid transparent;
  border-inline-start: 3px solid transparent;
  border-radius: 0;
  background: transparent;
}

.site-offcanvas-nav .nav-link:hover,
.site-offcanvas-nav .nav-link.active {
  color: #ffffff;
  background: rgba(0, 160, 136, 0.12);
  border-color: rgba(0, 201, 177, 0.16);
  border-inline-start-color: var(--accent-cyan);
}

.site-offcanvas-cta {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.site-offcanvas-contact {
  margin-top: auto;
  display: grid;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-offcanvas-contact a,
.site-offcanvas-contact span {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #94a3b8;
  font-size: 0.92rem;
  word-break: break-word;
}

.site-offcanvas-contact a:hover {
  color: var(--gold-light);
}

.site-offcanvas-contact i {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 201, 177, 0.1);
  color: var(--gold-light);
  flex-shrink: 0;
}

/* Legacy navbar helpers */
.navbar-custom {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.nav-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-dark);
  background: rgba(0, 160, 136, 0.08);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 160, 136, 0.28);
  transition: var(--transition);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--gold) 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 160, 136, 0.4);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-dark);
  border: 2px solid var(--gold);
  font-weight: 700;
  padding: 9px 24px;
  border-radius: 10px;
  transition: var(--transition);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  transition: var(--transition);
}

.btn-navy:hover {
  background: var(--primary-light);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline-navy {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 700;
  padding: 9px 24px;
  border-radius: 10px;
  transition: var(--transition);
}

.btn-outline-navy:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Hero Slider */
.hero-slider {
  position: relative;
  background: var(--primary-dark);
  color: #ffffff;
  overflow: clip;
}

.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
  height: min(88vh, 780px);
  min-height: 580px;
}

.hero-slide {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slide-media {
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.06);
  animation: heroKenBurns 14s ease-out forwards;
  will-change: transform;
}

.carousel-item.active .hero-slide-media {
  animation: heroKenBurns 14s ease-out forwards;
}

@keyframes heroKenBurns {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero-slide-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(4, 16, 20, 0.96) 0%, rgba(6, 16, 24, 0.88) 38%, rgba(6, 16, 24, 0.35) 62%, rgba(6, 16, 24, 0.15) 100%),
    linear-gradient(0deg, rgba(4, 16, 20, 0.55) 0%, transparent 42%);
}

[dir="ltr"] .hero-slide-shade {
  background:
    linear-gradient(255deg, rgba(4, 16, 20, 0.96) 0%, rgba(6, 16, 24, 0.88) 38%, rgba(6, 16, 24, 0.35) 62%, rgba(6, 16, 24, 0.15) 100%),
    linear-gradient(0deg, rgba(4, 16, 20, 0.55) 0%, transparent 42%);
}

.hero-slide-shade--deep {
  background:
    linear-gradient(105deg, rgba(4, 16, 20, 0.96) 0%, rgba(11, 28, 36, 0.86) 40%, rgba(0, 160, 136, 0.28) 72%, rgba(0, 160, 136, 0.12) 100%),
    linear-gradient(0deg, rgba(4, 16, 20, 0.5) 0%, transparent 45%);
}

[dir="ltr"] .hero-slide-shade--deep {
  background:
    linear-gradient(255deg, rgba(4, 16, 20, 0.96) 0%, rgba(11, 28, 36, 0.86) 40%, rgba(0, 160, 136, 0.28) 72%, rgba(0, 160, 136, 0.12) 100%),
    linear-gradient(0deg, rgba(4, 16, 20, 0.5) 0%, transparent 45%);
}

.hero-slide-shade--warm {
  background:
    linear-gradient(105deg, rgba(4, 16, 20, 0.96) 0%, rgba(6, 16, 24, 0.84) 42%, rgba(0, 201, 177, 0.22) 78%, transparent 100%),
    linear-gradient(0deg, rgba(4, 16, 20, 0.5) 0%, transparent 45%);
}

[dir="ltr"] .hero-slide-shade--warm {
  background:
    linear-gradient(255deg, rgba(4, 16, 20, 0.96) 0%, rgba(6, 16, 24, 0.84) 42%, rgba(0, 201, 177, 0.22) 78%, transparent 100%),
    linear-gradient(0deg, rgba(4, 16, 20, 0.5) 0%, transparent 45%);
}

.hero-slide-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(0, 201, 177, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 201, 177, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(105deg, #000 0%, #000 34%, transparent 68%);
}

[dir="ltr"] .hero-slide-grid {
  mask-image: linear-gradient(255deg, #000 0%, #000 34%, transparent 68%);
}

.hero-copy-rail {
  position: absolute;
  z-index: 2;
  inset-block: 12%;
  inset-inline-start: max(1rem, calc((100vw - 1140px) / 2));
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--gold), transparent);
  box-shadow: 0 0 24px rgba(0, 201, 177, 0.35);
}

[dir="ltr"] .hero-copy-rail {
  inset-inline-start: auto;
  inset-inline-end: max(1rem, calc((100vw - 1140px) / 2));
}

.hero-slide-body {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;
  padding-block: 5rem 7.5rem;
  box-sizing: border-box;
}

.hero-copy {
  width: min(100%, 640px);
  margin-inline-start: 1.25rem;
  padding: 0;
}

[dir="ltr"] .hero-copy {
  margin-inline-start: 0;
  margin-inline-end: 1.25rem;
}

.carousel-item.active .hero-copy > * {
  animation: heroRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.carousel-item.active .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.carousel-item.active .hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
.carousel-item.active .hero-copy > *:nth-child(3) { animation-delay: 0.22s; }
.carousel-item.active .hero-copy > *:nth-child(4) { animation-delay: 0.3s; }
.carousel-item.active .hero-copy > *:nth-child(5) { animation-delay: 0.38s; }

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
  padding: 0.4rem 0.85rem;
  background: rgba(0, 160, 136, 0.14);
  border: 1px solid rgba(0, 201, 177, 0.28);
  border-inline-start: 3px solid var(--accent-cyan);
}

.hero-brand {
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-size: clamp(2.55rem, 6vw, 4.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 0.85rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-brand::after {
  content: '';
  display: block;
  width: 88px;
  height: 4px;
  margin-top: 16px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--gold), transparent);
}

[dir="ltr"] .hero-brand::after {
  background: linear-gradient(90deg, var(--gold), var(--accent-cyan), transparent);
}

.hero-title {
  font-size: clamp(1.2rem, 2.3vw, 1.7rem);
  font-weight: 700;
  color: #d7e6e2;
  line-height: 1.45;
  margin: 0 0 1rem;
  max-width: 32ch;
}

.hero-title span {
  color: var(--gold-light);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #9eb4ae;
  max-width: 36rem;
  margin: 0 0 1.85rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-outline-light-hero {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  font-weight: 700;
  padding: 9px 24px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  transition: var(--transition);
}

.btn-outline-light-hero:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.hero-controls {
  position: absolute;
  z-index: 6;
  inset-inline-end: clamp(1rem, 3vw, 2.5rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

[dir="ltr"] .hero-controls {
  inset-inline-end: auto;
  inset-inline-start: clamp(1rem, 3vw, 2.5rem);
}

.hero-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hero-nav {
  position: static;
  width: auto;
  height: auto;
  opacity: 1;
  transform: none;
}

.hero-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 16, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.hero-nav:hover .hero-nav-btn,
.hero-nav:focus .hero-nav-btn {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
}

.carousel-indicators.hero-indicators {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 0;
  transform: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: auto;
}

[dir="ltr"] .carousel-control-prev .fa-chevron-right,
[dir="ltr"] .carousel-control-next .fa-chevron-left {
  transform: scaleX(-1);
}

.carousel-indicators.hero-indicators [data-bs-target] {
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(6, 16, 24, 0.45);
  opacity: 1;
  text-indent: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
  box-sizing: border-box;
  backdrop-filter: blur(8px);
}

.carousel-indicators.hero-indicators [data-bs-target] span {
  font-family: 'Outfit', 'Alexandria', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #c5d5d2;
  letter-spacing: 0.04em;
}

.carousel-indicators.hero-indicators .active {
  width: 44px;
  background: linear-gradient(145deg, var(--gold), var(--gold-dark));
  border-color: transparent;
  box-shadow: 0 10px 22px -12px rgba(0, 160, 136, 0.9);
}

.carousel-indicators.hero-indicators .active span {
  color: #ffffff;
}

.hero-metrics {
  position: relative;
  z-index: 5;
  margin-top: -4.25rem;
  padding-bottom: 0;
}

.hero-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border-radius: var(--radius-md);
}

.hero-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 1.35rem 1.5rem;
  border-inline-end: 1px solid var(--border-color);
}

.hero-metric:last-child {
  border-inline-end: 0;
}

.hero-metric-num {
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--gold-dark);
  line-height: 1.1;
}

.hero-metric-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Page Header (Inner Pages) */
.page-header {
  background: linear-gradient(135deg, rgba(6, 16, 24, 0.96) 0%, rgba(11, 28, 36, 0.85) 100%),
              url('../images/hero_factory.jpg') center/cover no-repeat;
  padding: 70px 0 50px 0;
  color: #ffffff;
  text-align: center;
  position: relative;
}

.page-header h1 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.breadcrumb-custom {
  display: flex;
  justify-content: center;
  gap: 10px;
  color: var(--gold-light);
  font-weight: 600;
}

.breadcrumb-custom a {
  color: #cbd5e1;
}

.breadcrumb-custom a:hover {
  color: var(--gold-light);
}

/* Inner page hero */
.page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #ffffff;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  background: url('../images/hero_factory.jpg') center/cover no-repeat;
  transform: scale(1.05);
}

.page-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(4, 16, 20, 0.94) 0%, rgba(11, 28, 36, 0.78) 55%, rgba(0, 160, 136, 0.35) 100%),
    linear-gradient(0deg, rgba(4, 16, 20, 0.55) 0%, transparent 60%);
}

[dir="ltr"] .page-hero-shade {
  background:
    linear-gradient(260deg, rgba(4, 16, 20, 0.94) 0%, rgba(11, 28, 36, 0.78) 55%, rgba(0, 160, 136, 0.35) 100%),
    linear-gradient(0deg, rgba(4, 16, 20, 0.55) 0%, transparent 60%);
}

.page-hero-body {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 2.75rem;
}

.page-hero-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--gold-light);
}

.page-hero-crumb a {
  color: #cbd5e1;
}

.page-hero-crumb a:hover {
  color: var(--gold-light);
}

.page-hero-brand {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 0 0 0.45rem;
}

.page-hero-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.page-hero-text {
  margin: 0;
  max-width: 36rem;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Contact page */
.contact-page {
  padding: 0 0 5rem;
  background:
    radial-gradient(ellipse 55% 40% at 0% 0%, rgba(0, 201, 177, 0.07), transparent 55%),
    linear-gradient(180deg, #f4f7fb 0%, #ffffff 45%, #f8fafc 100%);
}

.contact-strip {
  position: relative;
  z-index: 2;
  margin-top: -2rem;
  margin-bottom: 2.75rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #ffffff;
  border: 1px solid rgba(11, 28, 36, 0.08);
  box-shadow: 0 22px 50px -28px rgba(11, 28, 36, 0.45);
}

.contact-strip-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.35rem 1.25rem;
  color: inherit;
  text-decoration: none;
  border-inline-end: 1px solid var(--border-color);
  transition: background 0.25s ease;
  min-width: 0;
}

.contact-strip-item:last-child {
  border-inline-end: 0;
}

a.contact-strip-item:hover {
  background: rgba(0, 160, 136, 0.04);
  color: inherit;
}

.contact-strip-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(0, 160, 136, 0.12), rgba(0, 201, 177, 0.16));
  color: var(--gold);
  font-size: 1.05rem;
}

.contact-strip-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.contact-strip-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.contact-strip-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.45;
  word-break: break-word;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr);
  gap: 1.75rem;
  align-items: start;
}

.contact-form-panel {
  background: #ffffff;
  border: 1px solid rgba(11, 28, 36, 0.08);
  box-shadow: 0 18px 40px -28px rgba(11, 28, 36, 0.4);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
}

.contact-form-panel::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent-cyan));
}

.contact-form-title {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--primary);
  margin: 0.35rem 0 0.75rem;
  line-height: 1.4;
}

.contact-form-lead {
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  line-height: 1.7;
}

.contact-label {
  display: block;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.contact-input {
  border: 1px solid #dbe3ee;
  border-radius: 0;
  padding: 0.75rem 0.95rem;
  box-shadow: none;
  background: #f8fafc;
  transition: var(--transition);
}

.contact-input:focus {
  background: #ffffff;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(0, 160, 136, 0.12);
}

.contact-submit {
  padding: 0.85rem 2.25rem;
  font-size: 1.05rem;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 100%;
}

.contact-help {
  padding: 1.6rem 1.5rem;
  color: #ffffff;
  background:
    linear-gradient(145deg, #061018 0%, #0b1c24 55%, #0f3a36 100%);
  border-inline-start: 4px solid var(--accent-cyan);
  box-shadow: 0 18px 40px -24px rgba(6, 16, 24, 0.55);
}

.contact-help-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.55rem;
}

.contact-help-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.65rem;
  line-height: 1.4;
}

.contact-help-text {
  color: #94a3b8;
  margin: 0 0 1.25rem;
  line-height: 1.7;
}

.contact-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contact-help-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-map {
  flex: 1;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(11, 28, 36, 0.1);
  box-shadow: 0 16px 36px -24px rgba(11, 28, 36, 0.4);
  background: #e2e8f0;
}

.contact-map iframe {
  display: block;
  min-height: 320px;
}

/* Section Title */
.section-title-wrap {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: block;
}

.section-main-title {
  font-size: 2.3rem;
  color: var(--primary);
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.section-main-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  margin: 12px auto 0 auto;
  border-radius: 2px;
}

/* About Section (Homepage) */
.about-section {
  position: relative;
  padding: 5.5rem 0 5rem;
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(0, 201, 177, 0.08), transparent 55%),
    radial-gradient(ellipse 55% 50% at 0% 100%, rgba(0, 160, 136, 0.07), transparent 50%),
    linear-gradient(180deg, #f4f7fb 0%, #ffffff 55%, #f8fafc 100%);
  overflow: hidden;
}

.about-copy .section-subtitle {
  margin-bottom: 0.75rem;
}

.about-heading {
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.35;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.about-heading::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--accent-cyan));
}

.about-lead {
  font-size: 1.08rem;
  color: var(--text-main);
  line-height: 1.85;
  margin-bottom: 0.85rem;
}

.about-text {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.75rem;
}

.about-points {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 0.85rem;
}

.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.5;
}

.about-point-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(0, 160, 136, 0.12), rgba(0, 201, 177, 0.18));
  color: var(--gold);
  font-size: 1rem;
  transition: var(--transition);
}

.about-points li:hover .about-point-icon {
  background: var(--gold);
  color: #ffffff;
  transform: translateY(-2px);
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.about-visual {
  position: relative;
  padding: 1.25rem 1.25rem 2.75rem 0;
  min-height: 420px;
}

[dir="ltr"] .about-visual {
  padding: 1.25rem 0 2.75rem 1.25rem;
}

.about-visual-bg {
  position: absolute;
  inset: 2.5rem 0 1rem 2rem;
  border-radius: 4px 28px 4px 28px;
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-light) 55%, #00a088 100%);
  z-index: 0;
}

[dir="ltr"] .about-visual-bg {
  inset: 2.5rem 2rem 1rem 0;
  border-radius: 28px 4px 28px 4px;
}

.about-visual-photo {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: 4px 24px 4px 24px;
  overflow: hidden;
  box-shadow: 0 28px 50px -20px rgba(6, 16, 24, 0.45);
  aspect-ratio: 4 / 3;
}

[dir="ltr"] .about-visual-photo {
  border-radius: 24px 4px 24px 4px;
}

.about-visual-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-visual:hover .about-visual-photo img {
  transform: scale(1.07);
}

.about-visual-badge {
  position: absolute;
  z-index: 2;
  bottom: 3.5rem;
  inset-inline-start: -0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.1rem 1.35rem;
  background: #ffffff;
  border-inline-start: 4px solid var(--accent-cyan);
  box-shadow: 0 16px 40px rgba(11, 28, 36, 0.16);
  animation: aboutBadgeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes aboutBadgeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-visual-num {
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.about-visual-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.about-visual-slogan {
  position: absolute;
  z-index: 2;
  bottom: 0;
  inset-inline-end: 0;
  margin: 0;
  max-width: min(100%, 320px);
  padding: 0.7rem 1rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(6, 16, 24, 0.92);
  border-inline-start: 3px solid var(--gold-light);
  backdrop-filter: blur(6px);
}

/* Service Card */
/* Services / Products Section */
.services-section {
  position: relative;
  padding: 5rem 0 5.25rem;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 42%, #eef3f9 100%);
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  inset-inline-end: -8%;
  top: 12%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 201, 177, 0.12), transparent 68%);
  pointer-events: none;
}

.services-section--page {
  padding-top: 3.5rem;
}

.services-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
}

.services-head-copy .section-subtitle {
  margin-bottom: 0.55rem;
}

.services-heading {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.35;
  margin: 0;
  max-width: 18ch;
}

.services-heading::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--accent-cyan));
}

.services-head-link {
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid rgba(0, 160, 136, 0.25);
  transition: var(--transition);
  flex-shrink: 0;
}

.services-head-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
  gap: 0.9rem;
}

.services-foot {
  margin-top: 2rem;
  text-align: center;
}

.product-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(11, 28, 36, 0.08);
  box-shadow: 0 10px 30px -18px rgba(11, 28, 36, 0.35);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.product-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -22px rgba(11, 28, 36, 0.45);
  border-color: rgba(0, 160, 136, 0.35);
}

.product-panel-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--primary-dark);
}

.product-panel-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 16, 24, 0.55) 100%);
  opacity: 0.85;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.product-panel:hover .product-panel-media::after {
  opacity: 1;
}

.product-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-panel:hover .product-panel-media img {
  transform: scale(1.1);
}

.product-panel-index {
  position: absolute;
  z-index: 2;
  top: 1rem;
  inset-inline-start: 1rem;
  font-family: 'Alexandria', 'Cairo', 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: rgba(6, 16, 24, 0.72);
  border-inline-start: 3px solid var(--accent-cyan);
  padding: 0.35rem 0.7rem;
  backdrop-filter: blur(6px);
}

.product-panel-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.35rem 1.4rem 1.45rem;
  background: linear-gradient(#ffffff, #f3faf8);
  position: relative;
}

.product-panel-body::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent-cyan));
}

.product-panel-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.product-panel-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(0, 160, 136, 0.12), rgba(0, 201, 177, 0.16));
  color: var(--gold);
  font-size: 1.15rem;
  transition: var(--transition);
}

.product-panel:hover .product-panel-icon {
  background: var(--primary);
  color: var(--gold-light);
}

.product-panel-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.15rem 0 0;
  line-height: 1.4;
}

.product-panel-desc {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.75;
  margin: 0 0 1.15rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: -0.25rem 0 1rem;
}

.product-panel-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  padding: 0.28rem 0.65rem;
}

.product-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-top: auto;
  transition: var(--transition);
}

.product-panel-link:hover {
  color: var(--primary);
  gap: 0.8rem;
}

[dir="ltr"] .services-head-link i,
[dir="ltr"] .product-panel-link i {
  transform: scaleX(-1);
}

/* Legacy service-card kept for any leftover markup */
.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.service-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrapper img {
  transform: scale(1.08);
}

.service-icon-badge {
  position: absolute;
  bottom: 15px;
  margin-inline-start: 15px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--gold-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border: 2px solid var(--gold);
}

.service-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-link {
  color: var(--gold-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-link:hover {
  color: var(--primary);
  gap: 12px;
}

/* Feature / Quality Box */
.feature-box {
  background: #ffffff;
  padding: 30px 25px;
  border-radius: var(--radius-md);
  border-bottom: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 65px;
  height: 65px;
  background: rgba(11, 28, 36, 0.06);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.feature-box:hover .feature-icon {
  background: var(--primary);
  color: var(--gold-light);
}

/* Stats Counter Section */
.stats-section {
  position: relative;
  color: #ffffff;
  padding: 4.25rem 0;
  overflow: hidden;
  background: var(--primary-dark);
}

.stats-section-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(4, 16, 20, 0.94) 0%, rgba(11, 28, 36, 0.88) 48%, rgba(0, 104, 88, 0.55) 100%),
    url('../images/hero_factory.jpg') center/cover no-repeat;
  transform: scale(1.04);
}

.stats-section-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(0, 201, 177, 0.08) 50%, transparent 100%);
  pointer-events: none;
}

.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}

.stats-item {
  text-align: center;
  padding: 2rem 1.25rem;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.stats-item:last-child {
  border-inline-end: 0;
}

.stats-item:hover {
  background: rgba(0, 201, 177, 0.08);
}

.stats-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  color: var(--accent-cyan);
  background: rgba(0, 201, 177, 0.12);
  border: 1px solid rgba(0, 201, 177, 0.28);
  font-size: 1rem;
}

.counter-item {
  text-align: center;
  padding: 20px;
}

.counter-number {
  font-family: 'Alexandria', 'Cairo', 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.55rem;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 20%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.counter-label {
  font-size: 0.98rem;
  color: #cbd5e1;
  font-weight: 600;
}

/* Filter Tabs */
.filter-btn-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background: #e8f5f2;
  color: var(--primary);
  border: 1px solid rgba(0, 104, 88, 0.12);
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 160, 136, 0.28);
}

/* CTA Section */
.cta-section {
  padding: 0 0 5rem;
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 4vw, 3.5rem);
  color: #ffffff;
  background:
    linear-gradient(125deg, #061018 0%, #0b1c24 42%, #0f3a36 78%, #006858 100%);
  border: 1px solid rgba(0, 201, 177, 0.22);
  box-shadow: 0 28px 60px -28px rgba(6, 16, 24, 0.55);
  border-radius: var(--radius-lg);
}

.cta-panel-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  inset-inline-end: -120px;
  top: -160px;
  background: radial-gradient(circle, rgba(0, 201, 177, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.cta-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 201, 177, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 201, 177, 0.35) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000 20%, transparent 75%);
}

.cta-panel::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--gold));
}

.cta-panel-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.cta-kicker {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
}

.cta-title {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.45;
  margin: 0 0 0.85rem;
  max-width: 28ch;
}

.cta-desc {
  margin: 0;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 42rem;
}

.cta-panel-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
}

.cta-btn-primary {
  width: 100%;
  justify-content: center;
}

.cta-phone {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transition: var(--transition);
}

.cta-phone:hover {
  background: rgba(0, 201, 177, 0.12);
  border-color: rgba(0, 201, 177, 0.4);
  color: #ffffff;
}

.cta-phone-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 201, 177, 0.16);
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.cta-phone-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.cta-phone-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

.cta-phone-number {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Legacy CTA class (kept if referenced elsewhere) */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 50px;
  color: #ffffff;
  border: 1px solid rgba(0, 201, 177, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 201, 177, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* Contact Info Cards */
.contact-info-card {
  background: #ffffff;
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.contact-info-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 160, 136, 0.12);
  color: var(--gold-dark);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Service Detail Page Sidebar */
.service-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-nav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  color: var(--primary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.service-nav-item:last-child a {
  border-bottom: none;
}

.service-nav-item a:hover,
.service-nav-item.active a {
  background: var(--primary);
  color: var(--gold-light);
  padding-inline-start: 25px;
}

.tech-spec-badge {
  background: var(--light-bg);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--border-color);
}

/* Footer */
.site-footer {
  position: relative;
  color: #94a3b8;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(0, 160, 136, 0.18), transparent 55%),
    radial-gradient(ellipse 45% 40% at 0% 100%, rgba(0, 201, 177, 0.1), transparent 50%),
    linear-gradient(180deg, #061018 0%, #041014 100%);
  margin-top: 0;
}

.site-footer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--gold), var(--accent-cyan));
}

.site-footer-top {
  padding: 4.5rem 0 3rem;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1.1fr 1.15fr;
  gap: 2.5rem 2rem;
}

.site-footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 0.55rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.site-footer-logo img {
  display: block;
  max-height: 64px;
  max-width: 220px;
  width: auto;
}

.site-footer-name {
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.75rem;
}

.site-footer-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #94a3b8;
  margin: 0 0 1.35rem;
  max-width: 34ch;
}

.site-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.site-footer-col h5 {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 1.35rem;
  padding-bottom: 0.75rem;
  position: relative;
}

.site-footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 42px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: #cbd5e1;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
}

.footer-links a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 201, 177, 0.45);
  flex-shrink: 0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
  transform: translateX(-4px);
}

[dir="ltr"] .footer-links a:hover {
  transform: translateX(4px);
}

.footer-links a:hover::before {
  background: var(--accent-cyan);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.footer-contact-list a {
  color: #cbd5e1;
  word-break: break-word;
}

.footer-contact-list a:hover {
  color: var(--gold-light);
}

.footer-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 201, 177, 0.1);
  border: 1px solid rgba(0, 201, 177, 0.22);
  color: var(--gold-light);
  font-size: 0.9rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
  transform: translateY(-3px);
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  padding: 1.15rem 0;
}

.site-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer-bottom p {
  color: #64748b;
  font-size: 0.9rem;
}

.site-footer-bottom-link {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.35);
  padding-bottom: 2px;
  transition: var(--transition);
}

.site-footer-bottom-link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Legacy footer class (kept for compatibility) */
.footer {
  background: var(--primary-dark);
  color: #94a3b8;
  padding-top: 70px;
  border-top: 3px solid var(--gold);
}

.footer h5 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 2px;
}

[dir="rtl"] .footer h5::after {
  left: auto;
  right: 0;
}

.footer-bottom {
  background: #041014;
  padding: 20px 0;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

/* Modal styling */
.modal-content {
  border-radius: var(--radius-md);
  border: 1px solid var(--gold);
}

.modal-header {
  background: var(--primary);
  color: #ffffff;
  border-bottom: 2px solid var(--gold);
}

.modal-header .btn-close {
  filter: invert(1);
}

/* Direction flip helpers */
[dir="rtl"] .fa-arrow-right {
  transform: rotate(180deg);
}

[dir="rtl"] .fa-chevron-right {
  transform: rotate(180deg);
}

/* Bootstrap Theme Overrides for Logo Compatibility */
.text-warning {
  color: var(--gold-light) !important;
}

.border-warning {
  border-color: var(--gold) !important;
}

.bg-warning {
  background-color: var(--gold) !important;
  color: #ffffff !important;
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
  .header-nav-link {
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
  }

  .header-shell-inner {
    gap: 0.85rem;
  }
}

@media (max-width: 991.98px) {
  .header-shell-inner {
    grid-template-columns: 1fr auto;
    min-height: 72px;
  }

  .header-nav {
    display: none !important;
  }

  .site-brand {
    padding: 0.25rem 0.4rem;
    border-radius: 12px;
  }

  .site-brand img,
  .navbar-brand img {
    height: 52px;
    max-width: min(200px, 58vw);
  }

  .hero-slider .carousel,
  .hero-slider .carousel-inner,
  .hero-slider .carousel-item {
    height: auto;
    min-height: 560px;
  }

  .hero-slide {
    align-items: flex-end;
    min-height: 560px;
  }

  .hero-copy-rail {
    inset-block: 18% 22%;
    inset-inline-start: 1rem;
    width: 3px;
  }

  .hero-slide-body {
    padding: 5rem 0.25rem 7.5rem;
    max-width: 100%;
  }

  .hero-copy {
    margin-inline-start: 0.85rem;
    width: min(100%, 520px);
  }

  .hero-brand {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .hero-title {
    font-size: 1.25rem;
    max-width: none;
  }

  .hero-controls {
    inset: auto auto 5.75rem 50%;
    top: auto;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 0.75rem;
  }

  [dir="ltr"] .hero-controls {
    inset: auto auto 5.75rem 50%;
    inset-inline-start: 50%;
  }

  .hero-nav-group {
    flex-direction: row;
  }

  .carousel-indicators.hero-indicators {
    flex-direction: row;
  }

  .hero-metrics {
    margin-top: -3rem;
    padding: 0 1rem 0;
  }

  .hero-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-metric:nth-child(2) {
    border-inline-end: 0;
  }

  .hero-metric:nth-child(1),
  .hero-metric:nth-child(2) {
    border-bottom: 1px solid var(--border-color);
  }

  .section-main-title {
    font-size: 1.8rem;
  }

  .about-section {
    padding: 3.5rem 0 3rem;
  }

  .about-heading {
    max-width: none;
  }

  .about-visual {
    margin-top: 0.5rem;
    padding: 0.75rem 0.75rem 2.5rem 0;
    min-height: 0;
  }

  [dir="ltr"] .about-visual {
    padding: 0.75rem 0 2.5rem 0.75rem;
  }

  .about-visual-bg {
    inset: 1.5rem 0 0.75rem 1.25rem;
  }

  [dir="ltr"] .about-visual-bg {
    inset: 1.5rem 1.25rem 0.75rem 0;
  }

  .about-visual-badge {
    inset-inline-start: 0;
    bottom: 3.1rem;
  }

  .services-head {
    margin-bottom: 2rem;
  }

  .services-heading {
    max-width: none;
  }

  .services-section {
    padding: 3.5rem 0 3.25rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-item:nth-child(2) {
    border-inline-end: 0;
  }

  .stats-item:nth-child(1),
  .stats-item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .cta-section {
    margin-top: -1rem;
    padding-bottom: 3.5rem;
  }

  .cta-panel-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-title {
    max-width: none;
  }

  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem 1.5rem;
  }

  .site-footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer-desc {
    max-width: none;
  }

  .contact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -1.5rem;
  }

  .contact-strip-item:nth-child(2) {
    border-inline-end: 0;
  }

  .contact-strip-item:nth-child(1),
  .contact-strip-item:nth-child(2) {
    border-bottom: 1px solid var(--border-color);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-map {
    min-height: 280px;
  }

  .site-brand img,
  .navbar-brand img {
    height: 58px;
  }
}

@media (max-width: 575.98px) {
  .hero-slide-body {
    padding: 4.5rem 0.15rem 7.25rem;
  }

  .hero-copy {
    margin-inline-start: 0.5rem;
  }

  .hero-controls {
    inset: auto auto 5.1rem 50%;
  }

  .hero-nav-group {
    display: none;
  }

  .carousel-indicators.hero-indicators [data-bs-target] {
    width: 38px;
    height: 38px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-metric {
    padding: 1.1rem 1rem;
  }

  .hero-metric-num {
    font-size: 1.5rem;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .contact-strip {
    grid-template-columns: 1fr;
  }

  .contact-strip-item {
    border-inline-end: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .contact-strip-item:last-child {
    border-bottom: 0;
  }

  .contact-strip-item:nth-child(1),
  .contact-strip-item:nth-child(2) {
    border-bottom: 1px solid var(--border-color);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide-media,
  .carousel-item.active .hero-slide-media,
  .carousel-item.active .hero-copy > *,
  .about-visual-badge,
  .about-visual-photo img {
    animation: none !important;
  }

  .about-visual:hover .about-visual-photo img {
    transform: none;
  }
}